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 PKG_CONFIG ALSA_CFLAGS ALSA_LIBS CFLAGS_SOUND SET_MAKE 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'
1358 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
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 ia64-
*-freebsd*) machine
=ia64
;;
1721 sparc64-
*-freebsd*) machine
=sparc
;;
1722 powerpc-
*-freebsd*) machine
=macppc
;;
1723 i
[3456]86-*-freebsd*) machine
=intel386
;;
1724 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
1731 if test -f /usr
/lib
/crti.o
; then
1733 cat >>confdefs.h
<<\_ACEOF
1739 case "${canonical}" in
1740 alpha
*-*-netbsd*) machine
=alpha
;;
1741 i
[3456]86-*-netbsd*) machine
=intel386
;;
1743 # This is somewhat bogus.
1744 machine
=hp9000s300
;;
1745 powerpc-apple-netbsd
*) machine
=macppc
;;
1746 mips-
*-netbsd*) machine
=pmax
;;
1747 mipsel-
*-netbsd*) machine
=pmax
;;
1748 mipseb-
*-netbsd*) machine
=pmax
;;
1749 ns32k-
*-netbsd*) machine
=ns32000
;;
1750 powerpc-
*-netbsd*) machine
=macppc
;;
1751 sparc
*-*-netbsd*) machine
=sparc
;;
1752 vax-
*-netbsd*) machine
=vax
;;
1753 arm-
*-netbsd*) machine
=arm
;;
1760 case "${canonical}" in
1761 alpha
*-*-openbsd*) machine
=alpha
;;
1762 i386-
*-openbsd*) machine
=intel386
;;
1763 x86_64-
*-openbsd*) machine
=amdx86-64
;;
1764 m68k-
*-openbsd*) machine
=hp9000s300
;;
1765 mipsel-
*-openbsd*) machine
=pmax
;;
1766 ns32k-
*-openbsd*) machine
=ns32000
;;
1767 sparc-
*-openbsd*) machine
=sparc
;;
1768 vax-
*-openbsd*) machine
=vax
;;
1775 case "${canonical}" in
1776 i
[3456]86-*-lynxos*) machine
=intel386
;;
1777 powerpc-
*-lynxos*) machine
=powerpc
;;
1782 arm-acorn-riscix1.1
* )
1783 machine
=acorn opsys
=riscix1-1
1785 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1786 ## This name is riscix12 instead of riscix1.2
1787 ## to avoid a file name conflict on MSDOS.
1788 machine
=acorn opsys
=riscix12
1794 case "${canonical}" in
1795 i
[345]86-*-bsdi*) machine
=intel386
;;
1796 sparc-
*-bsdi*) machine
=sparc
;;
1797 powerpc-
*-bsdi*) machine
=macppc
;;
1799 case "${canonical}" in
1800 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1801 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1802 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1803 *-*-bsdi3* ) opsys
=bsdos3
;;
1804 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1809 ## Strictly speaking, we need the version of the alliant operating
1810 ## system to choose the right machine file, but currently the
1811 ## configuration name doesn't tell us enough to choose the right
1812 ## one; we need to give alliants their own operating system name to
1813 ## do this right. When someone cares, they can help us.
1815 machine
=alliant4 opsys
=bsd4-2
1818 machine
=alliant-2800 opsys
=bsd4-3
1821 ## Alpha (DEC) machines.
1823 machine
=alpha opsys
=osf1
1824 # This is needed to find X11R6.1 libraries for certain tests.
1825 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1826 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1827 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1828 # due to non-traditional preprocessing with the current compiler
1829 # defaults. OSF 4 can also have that compiler version, and there
1830 # seems always to have been a usable /usr/bin/cpp.
1831 NON_GNU_CPP
=/usr
/bin
/cpp
1832 case "${canonical}" in
1833 alpha
*-dec-osf[5-9]*)
1838 alpha
*-*-linux-gnu* )
1839 machine
=alpha opsys
=gnu-linux
1843 machine
=arm opsys
=gnu-linux
1848 machine
=altos opsys
=usg5-2
1853 machine
=amdahl opsys
=usg5-2-2
1856 ## Apollo, Domain/OS
1858 machine
=apollo opsys
=bsd4-3
1861 ## AT&T 3b2, 3b5, 3b15, 3b20
1863 machine
=att3b opsys
=usg5-2-2
1866 ## AT&T 3b1 - The Mighty Unix PC!
1868 machine
=7300 opsys
=usg5-2-2
1873 machine
=ibmrs6000 opsys
=aix3-2
1878 machine
=dpx2 opsys
=usg5-3
1883 machine
=sps7 opsys
=usg5-2
1886 ## CCI 5/32, 6/32 -- see "Tahoe".
1889 ## I don't know what configuration name to use for this; config.sub
1890 ## doesn't seem to know anything about it. Hey, Celerity users, get
1891 ## in touch with us!
1892 celerity-celerity-bsd
* )
1893 machine
=celerity opsys
=bsd4-2
1897 ## What operating systems does this chip run that Emacs has been
1901 ## We'll use the catch-all code at the bottom to guess the
1902 ## operating system.
1906 mips-compaq-nonstopux
* )
1907 machine
=nonstopux opsys
=nonstopux
1911 *-convex-bsd* |
*-convex-convexos* )
1912 machine
=convex opsys
=bsd4-3
1913 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1914 NON_GNU_CPP
="cc -E -P"
1918 i
[3456]86-cubix-sysv* )
1919 machine
=intel386 opsys
=usg5-3
1923 cydra
*-cydrome-sysv* )
1924 machine
=cydra5 opsys
=usg5-3
1927 ## Data General AViiON Machines
1928 ## DG changed naming conventions with the release of 5.4.4.10, they
1929 ## dropped the initial 5.4 but left the intervening R. Because of the
1930 ## R this shouldn't conflict with older versions of the OS (which I
1931 ## think were named like dgux4.*). In addition, DG new AViiONs series
1932 ## uses either Motorola M88k or Intel Pentium CPUs.
1933 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1934 machine
=aviion opsys
=dgux4
1936 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1937 ## This name is dgux5-4-3 instead of dgux5-4r3
1938 ## to avoid a file name conflict on MSDOS.
1939 machine
=aviion opsys
=dgux5-4-3
1941 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1942 machine
=aviion opsys
=dgux5-4r2
1945 machine
=aviion opsys
=dgux
1948 ## Data General AViiON Intel (x86) Machines
1949 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1950 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1951 i
[345]86-dg-dguxR4* )
1952 machine
=aviion-intel opsys
=dgux4
1956 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1957 machine
=pmax opsys
=bsd4-2
1959 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1960 machine
=pmax opsys
=bsd4-3
1963 machine
=pmax opsys
=ultrix4-3
1966 machine
=pmax opsys
=osf1
1968 mips-dec-mach_bsd4.3
* )
1969 machine
=pmax opsys
=mach-bsd4-3
1972 ## Motorola Delta machines
1973 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1974 machine
=delta opsys
=usg5-3
1975 if test -z "`type gnucc | grep 'not found'`"
1977 if test -s /etc
/167config
1978 then CC
="gnucc -m68040"
1979 else CC
="gnucc -m68881"
1982 if test -z "`type gcc | grep 'not found'`"
1988 m88k-motorola-sysv4
* )
1989 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1990 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1991 # I hope there are not other 4.0 versions for this machine
1992 # which really need usg5-4 instead.
1993 machine
=delta88k opsys
=usg5-4-2
1995 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1996 machine
=delta88k opsys
=usg5-3
2001 machine
=dual opsys
=usg5-2
2003 m68
*-dual-uniplus* )
2004 machine
=dual opsys
=unipl5-2
2009 machine
=elxsi opsys
=usg5-2
2014 machine
=ns16000 opsys
=umax
2017 ## The GEC 63 - apparently, this port isn't really finished yet.
2018 # I'm sure we finished off the last of the machines, though. -- fx
2020 ## Gould Power Node and NP1
2022 machine
=gould opsys
=bsd4-2
2025 machine
=gould opsys
=bsd4-3
2028 machine
=gould-np1 opsys
=bsd4-3
2031 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2032 ## as far as Emacs is concerned).
2034 # Build needs to be different on 7.0 and later releases
2035 case "`uname -r`" in
2036 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2037 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2039 NON_GNU_CPP
="/lib/cpp"
2041 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2043 machine
=nh3000 opsys
=cxux
2045 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2046 powerpc-harris-powerunix
)
2047 machine
=nh6000 opsys
=powerunix
2048 NON_GNU_CPP
="cc -Xo -E -P"
2050 ## SR2001/SR2201 running HI-UX/MPP
2051 hppa1.1
-hitachi-hiuxmpp* )
2052 machine
=sr2k opsys
=hiuxmpp
2054 hppa1.1
-hitachi-hiuxwe2* )
2055 machine
=sr2k opsys
=hiuxwe2
2058 xps
*-honeywell-sysv* )
2059 machine
=xps100 opsys
=usg5-2
2062 ## HP 9000 series 200 or 300
2064 machine
=hp9000s300 opsys
=bsd4-3
2066 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2068 case "`uname -r`" in
2069 ## Someone's system reports A.B8.05 for this.
2070 ## I wonder what other possibilities there are.
2071 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2072 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2073 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2074 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2075 *) machine
=hp9000s300 opsys
=hpux
;;
2079 ## HP 9000 series 700 and 800, running HP/UX
2081 machine
=hp800 opsys
=hpux
2084 machine
=hp800 opsys
=hpux8
2086 hppa
*-hp-hpux9shr* )
2087 machine
=hp800 opsys
=hpux9shr
2090 machine
=hp800 opsys
=hpux9
2092 hppa
*-hp-hpux10.2
* )
2093 machine
=hp800 opsys
=hpux10-20
2096 machine
=hp800 opsys
=hpux10
2098 hppa
*-hp-hpux1[1-9]* )
2099 machine
=hp800 opsys
=hpux11
2100 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2103 hppa
*-*-linux-gnu* )
2104 machine
=hp800 opsys
=gnu-linux
2107 ## HP 9000 series 700 and 800, running HP/UX
2109 ## Cross-compilation? Nah!
2110 case "`uname -r`" in
2111 ## Someone's system reports A.B8.05 for this.
2112 ## I wonder what other possibilities there are.
2113 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2114 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2115 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2116 *) machine
=hp800 opsys
=hpux10
;;
2120 machine
=hp800 opsys
=nextstep
2125 machine
=orion opsys
=bsd4-2
2127 clipper-orion-bsd
* )
2128 machine
=orion105 opsys
=bsd4-2
2132 i
[3456]86-ibm-aix1.1
* )
2133 machine
=ibmps2-aix opsys
=usg5-2-2
2135 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2136 machine
=ibmps2-aix opsys
=usg5-3
2139 machine
=ibm370aix opsys
=usg5-3
2142 machine
=ibms390 opsys
=gnu-linux
2144 s390x-
*-linux-gnu* )
2145 machine
=ibms390x opsys
=gnu-linux
2147 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2148 machine
=ibmrs6000 opsys
=aix3-1
2150 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2151 machine
=ibmrs6000 opsys
=aix3-2-5
2153 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2154 machine
=ibmrs6000 opsys
=aix4-1
2156 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2157 machine
=ibmrs6000 opsys
=aix4-2
2159 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2160 machine
=ibmrs6000 opsys
=aix4-2
2162 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2163 machine
=ibmrs6000 opsys
=aix4
2165 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2166 machine
=ibmrs6000 opsys
=aix4-1
2168 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2169 machine
=ibmrs6000 opsys
=aix3-2
2172 machine
=ibmrt opsys
=bsd4-3
2175 machine
=ibmrt opsys
=bsd4-2
2178 machine
=ibmrt opsys
=bsd4-3
2181 machine
=ibmrt opsys
=bsd4-2
2184 machine
=ibmrt opsys
=bsd4-3
2187 machine
=ibmrt opsys
=bsd4-3
2190 machine
=ibmrt-aix opsys
=usg5-2-2
2193 ## Integrated Solutions `Optimum V'
2195 machine
=isi-ov opsys
=bsd4-2
2198 machine
=isi-ov opsys
=bsd4-3
2201 ## Intel 386 machines where we do care about the manufacturer
2202 i
[3456]86-intsys-sysv* )
2203 machine
=is386 opsys
=usg5-2-2
2207 i
[3456]86-prime-sysv* )
2208 machine
=i386 opsys
=usg5-3
2211 ## Sequent Symmetry running Dynix
2212 i
[3456]86-sequent-bsd* )
2213 machine
=symmetry opsys
=bsd4-3
2216 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2217 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2218 machine
=sequent-ptx opsys
=ptx4
2219 NON_GNU_CPP
=/lib
/cpp
2222 ## Sequent Symmetry running DYNIX/ptx
2223 ## Use the old cpp rather than the newer ANSI one.
2224 i
[3456]86-sequent-ptx* )
2225 machine
=sequent-ptx opsys
=ptx
2226 NON_GNU_CPP
="/lib/cpp"
2229 ## ncr machine running svr4.3.
2230 i
[3456]86-ncr-sysv4.3
)
2231 machine
=ncr386 opsys
=usg5-4-3
2234 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2235 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2236 i
[3456]86-ncr-sysv* )
2237 machine
=ncr386 opsys
=usg5-4-2
2240 ## Intel Paragon OSF/1
2242 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2247 machine
=i860 opsys
=usg5-4
2248 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2249 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2252 ## Macintosh PowerPC
2253 powerpc
*-*-linux-gnu* )
2254 machine
=macppc opsys
=gnu-linux
2257 ## Masscomp machines
2258 m68
*-masscomp-rtu* )
2259 machine
=masscomp opsys
=rtu
2262 ## Megatest machines
2263 m68
*-megatest-bsd* )
2264 machine
=mega68 opsys
=bsd4-2
2267 ## Workstations sold by MIPS
2268 ## This is not necessarily all workstations using the MIPS processor -
2269 ## Irises are produced by SGI, and DECstations by DEC.
2271 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2272 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2273 ## it gives for choosing between the alternatives seems to be "Use
2274 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2275 ## the BSD world." I'll assume that these are instructions for
2276 ## handling two odd situations, and that every other situation
2277 ## should use mips.h and usg5-2-2, they being listed first.
2280 ## Fall through to the general code at the bottom to decide on the OS.
2282 mips-mips-riscos4
* )
2283 machine
=mips4 opsys
=bsd4-3
2284 NON_GNU_CC
="cc -systype bsd43"
2285 NON_GNU_CPP
="cc -systype bsd43 -E"
2287 mips-mips-riscos5
* )
2288 machine
=mips4 opsys
=riscos5
2289 NON_GNU_CC
="cc -systype bsd43"
2290 NON_GNU_CPP
="cc -systype bsd43 -E"
2293 machine
=mips opsys
=bsd4-3
2296 machine
=mips opsys
=usg5-2-2
2300 m68
*-next-* | m68k-
*-nextstep* )
2301 machine
=m68k opsys
=nextstep
2304 ## The complete machine from National Semiconductor
2306 machine
=ns32000 opsys
=usg5-2
2310 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2311 machine
=tower32 opsys
=usg5-2-2
2313 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2314 machine
=tower32v3 opsys
=usg5-3
2319 machine
=ews4800 opsys
=ux4800
2322 ## Nixdorf Targon 31
2323 m68
*-nixdorf-sysv* )
2324 machine
=targon31 opsys
=usg5-2-2
2329 machine
=nu opsys
=usg5-2
2334 machine
=plexus opsys
=usg5-2
2338 ## I don't really have any idea what sort of processor the Pyramid has,
2339 ## so I'm assuming it is its own architecture.
2340 pyramid-pyramid-bsd
* )
2341 machine
=pyramid opsys
=bsd4-2
2345 ns32k-sequent-bsd4.2
* )
2346 machine
=sequent opsys
=bsd4-2
2348 ns32k-sequent-bsd4.3
* )
2349 machine
=sequent opsys
=bsd4-3
2353 mips-siemens-sysv
* | mips-sni-sysv
*)
2354 machine
=mips-siemens opsys
=usg5-4
2355 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2356 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2359 ## Silicon Graphics machines
2360 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2362 machine
=irist opsys
=iris3-5
2364 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2365 machine
=irist opsys
=iris3-6
2369 machine
=iris4d opsys
=irix3-3
2372 machine
=iris4d opsys
=irix4-0
2375 machine
=iris4d opsys
=irix6-5
2376 # Without defining _LANGUAGE_C, things get masked out in the headers
2377 # so that, for instance, grepping for `free' in stdlib.h fails and
2378 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2379 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2380 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2383 machine
=iris4d opsys
=irix6-0
2384 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2385 # but presumably it does no harm.
2386 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2387 # -32 probably isn't necessary in later v.6s -- anyone know which?
2388 NON_GCC_TEST_OPTIONS
=-32
2390 mips-sgi-irix5.
[01]* )
2391 machine
=iris4d opsys
=irix5-0
2393 mips-sgi-irix5
* | mips-sgi-irix
* )
2394 machine
=iris4d opsys
=irix5-2
2399 machine
=news opsys
=bsd4-2
2402 machine
=news opsys
=bsd4-3
2404 m68
*-sony-newsos3* | m68
*-sony-news3*)
2405 machine
=news opsys
=bsd4-3
2407 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2408 machine
=news-risc opsys
=bsd4-3
2410 mips-sony-newsos6
* )
2411 machine
=news-r6 opsys
=newsos6
2414 machine
=news-risc opsys
=newsos5
2419 machine
=stride opsys
=usg5-2
2423 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2424 machine
=sparc opsys
=gnu-linux
2427 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2428 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2429 | rs6000-
*-solaris2*)
2430 case "${canonical}" in
2431 m68
*-sunos1* ) machine
=sun1
;;
2432 m68
*-sunos2* ) machine
=sun2
;;
2433 m68
* ) machine
=sun3
;;
2434 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2435 i
[3456]86-*-* ) machine
=intel386
;;
2436 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2437 powerpcle
* ) machine
=powerpcle
;;
2438 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2439 sparc
* ) machine
=sparc
;;
2442 case "${canonical}" in
2443 ## The Sun386 didn't get past 4.0.
2444 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2445 *-sunos4.0
* ) opsys
=sunos4-0
;;
2446 *-sunos4.1.
[3-9]*noshare
)
2447 ## This name is sunos413 instead of sunos4-1-3
2448 ## to avoid a file name conflict on MSDOS.
2450 NON_GNU_CPP
=/usr
/lib
/cpp
2451 NON_GCC_TEST_OPTIONS
=-Bstatic
2452 GCC_TEST_OPTIONS
=-static
2454 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2456 NON_GNU_CPP
=/usr
/lib
/cpp
2458 *-sunos4* |
*-sunos )
2460 NON_GCC_TEST_OPTIONS
=-Bstatic
2461 GCC_TEST_OPTIONS
=-static
2463 *-sunos5.3
* |
*-solaris2.3
* )
2465 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2467 *-sunos5.4
* |
*-solaris2.4
* )
2469 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2472 *-sunos5.5
* |
*-solaris2.5
* )
2474 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2477 *-sunos5.6
* |
*-solaris2.6
* )
2479 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2482 *-sunos5* |
*-solaris* )
2484 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2488 ## Watch out for a compiler that we know will not work.
2489 case "${canonical}" in
2490 *-solaris* |
*-sunos5* )
2491 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2492 ## /usr/ucb/cc doesn't work;
2493 ## we should find some other compiler that does work.
2501 machine
=sparc opsys
=nextstep
2505 m68
*-tadpole-sysv* )
2506 machine
=tad68k opsys
=usg5-3
2510 tahoe-tahoe-bsd4.2
* )
2511 machine
=tahoe opsys
=bsd4-2
2513 tahoe-tahoe-bsd4.3
* )
2514 machine
=tahoe opsys
=bsd4-3
2517 ## Tandem Integrity S2
2519 machine
=tandem-s2 opsys
=usg5-3
2523 m88k-tektronix-sysv3
* )
2524 machine
=tekxd88 opsys
=usg5-3
2527 ## Tektronix 16000 box (6130?)
2528 ns16k-tektronix-bsd
* )
2529 machine
=ns16000 opsys
=bsd4-2
2532 ## src/m/tek4300.h hints that this is a m68k machine.
2533 m68
*-tektronix-bsd* )
2534 machine
=tek4300 opsys
=bsd4-3
2538 ## We seem to have lost the machine-description file titan.h!
2540 machine
=titan opsys
=usg5-3
2543 ## Ustation E30 (SS5E)
2544 m68
*-unisys-uniplus* )
2545 machine
=ustation opsystem
=unipl5-2
2551 case "${canonical}" in
2552 *-bsd4.1
* ) opsys
=bsd4-1
;;
2553 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2554 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2555 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2556 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2557 *-vms* ) opsys
=vms
;;
2563 ns16k-whitechapel-
* )
2565 ## We don't know what sort of OS runs on these; we'll let the
2566 ## operating system guessing code below try.
2571 machine
=wicat opsys
=usg5-2
2576 machine
=ia64 opsys
=gnu-linux
2579 ## Intel 386 machines where we don't care about the manufacturer
2582 case "${canonical}" in
2583 *-cygwin ) opsys
=cygwin
;;
2584 *-darwin* ) opsys
=darwin
2585 CPP
="${CC-cc} -E -no-cpp-precomp"
2587 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2588 *-isc2.2
* ) opsys
=isc2-2
;;
2589 *-isc4.0
* ) opsys
=isc4-0
;;
2590 *-isc4.
* ) opsys
=isc4-1
2591 GCC_TEST_OPTIONS
=-posix
2592 NON_GCC_TEST_OPTIONS
=-Xp
2594 *-isc* ) opsys
=isc3-0
;;
2595 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2596 *-esix* ) opsys
=esix
;;
2597 *-xenix* ) opsys
=xenix
;;
2598 *-linux-gnu* ) opsys
=gnu-linux
;;
2599 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2600 *-sco3.2v5
* ) opsys
=sco5
2601 NON_GNU_CPP
=/lib
/cpp
2602 # Prevent -belf from being passed to $CPP.
2603 # /lib/cpp does not accept it.
2604 OVERRIDE_CPPFLAGS
=" "
2606 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2607 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2608 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2609 *-386bsd* ) opsys
=386bsd
;;
2610 *-nextstep* ) opsys
=nextstep
;;
2611 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2615 ## m68k Linux-based GNU system
2617 machine
=m68k opsys
=gnu-linux
2620 ## Mips Linux-based GNU system
2621 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2622 machine
=mips opsys
=gnu-linux
2626 sparc-fujitsu-sysv4
* )
2627 machine
=sparc opsys
=uxpds
2628 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2633 f301-fujitsu-uxpv4.1
)
2634 machine
=f301 opsys
=uxpv
2637 ## Darwin / Mac OS X
2638 powerpc-apple-darwin
* )
2639 machine
=powermac opsys
=darwin
2640 # Define CPP as follows to make autoconf work correctly.
2641 CPP
="${CC-cc} -E -no-cpp-precomp"
2642 # Use fink packages if available.
2643 if test -d /sw
/include
&& test -d /sw
/lib
; then
2644 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2645 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2646 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2650 ## AMD x86-64 Linux-based GNU system
2651 x86_64-
*-linux-gnu* )
2652 machine
=amdx86-64 opsys
=gnu-linux
2660 ### If the code above didn't choose an operating system, just choose
2661 ### an operating system based on the configuration name. You really
2662 ### only want to use this when you have no idea what the right
2663 ### operating system is; if you know what operating systems a machine
2664 ### runs, it's cleaner to make it explicit in the case statement
2666 if test x
"${opsys}" = x
; then
2667 case "${canonical}" in
2668 *-gnu* ) opsys
=gnu
;;
2669 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2670 *-bsd4.2
) opsys
=bsd4-2
;;
2671 *-bsd4.3
) opsys
=bsd4-3
;;
2672 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2673 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2674 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2675 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2676 *-sysv4.2uw
* ) opsys
=unixware
;;
2677 *-sysv5uw* ) opsys
=unixware
;;
2678 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2679 *-sysv4.1
* |
*-sysvr4.1
* )
2680 NON_GNU_CPP
=/usr
/lib
/cpp
2682 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2683 if [ x
$NON_GNU_CPP = x
]; then
2684 if [ -f /usr
/ccs
/lib
/cpp
]; then
2685 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2687 NON_GNU_CPP
=/lib
/cpp
2691 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2700 if test $unported = yes; then
2701 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2702 Check \`etc/MACHINES' for recognized configuration names." >&5
2703 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2704 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2705 { (exit 1); exit 1; }; }
2708 machfile
="m/${machine}.h"
2709 opsysfile
="s/${opsys}.h"
2712 #### Choose a compiler.
2713 test -n "$CC" && cc_specified
=yes
2715 # Save the value of CFLAGS that the user specified.
2716 SPECIFIED_CFLAGS
="$CFLAGS"
2719 "yes" ) CC
="gcc" GCC
=yes ;;
2720 "no" ) : ${CC=cc} ;;
2724 ac_cpp
='$CPP $CPPFLAGS'
2725 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2726 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2727 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2728 if test -n "$ac_tool_prefix"; then
2729 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2730 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2731 echo "$as_me:$LINENO: checking for $ac_word" >&5
2732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2733 if test "${ac_cv_prog_CC+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 if test -n "$CC"; then
2737 ac_cv_prog_CC
="$CC" # Let the user override the test.
2739 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2743 test -z "$as_dir" && as_dir
=.
2744 for ac_exec_ext
in '' $ac_executable_extensions; do
2745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2746 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2756 if test -n "$CC"; then
2757 echo "$as_me:$LINENO: result: $CC" >&5
2758 echo "${ECHO_T}$CC" >&6
2760 echo "$as_me:$LINENO: result: no" >&5
2761 echo "${ECHO_T}no" >&6
2765 if test -z "$ac_cv_prog_CC"; then
2767 # Extract the first word of "gcc", so it can be a program name with args.
2768 set dummy gcc
; ac_word
=$2
2769 echo "$as_me:$LINENO: checking for $ac_word" >&5
2770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2771 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2772 echo $ECHO_N "(cached) $ECHO_C" >&6
2774 if test -n "$ac_ct_CC"; then
2775 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2777 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2781 test -z "$as_dir" && as_dir
=.
2782 for ac_exec_ext
in '' $ac_executable_extensions; do
2783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2784 ac_cv_prog_ac_ct_CC
="gcc"
2785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2794 if test -n "$ac_ct_CC"; then
2795 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2796 echo "${ECHO_T}$ac_ct_CC" >&6
2798 echo "$as_me:$LINENO: result: no" >&5
2799 echo "${ECHO_T}no" >&6
2807 if test -z "$CC"; then
2808 if test -n "$ac_tool_prefix"; then
2809 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2810 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2811 echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2813 if test "${ac_cv_prog_CC+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 if test -n "$CC"; then
2817 ac_cv_prog_CC
="$CC" # Let the user override the test.
2819 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2823 test -z "$as_dir" && as_dir
=.
2824 for ac_exec_ext
in '' $ac_executable_extensions; do
2825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 if test -n "$CC"; then
2837 echo "$as_me:$LINENO: result: $CC" >&5
2838 echo "${ECHO_T}$CC" >&6
2840 echo "$as_me:$LINENO: result: no" >&5
2841 echo "${ECHO_T}no" >&6
2845 if test -z "$ac_cv_prog_CC"; then
2847 # Extract the first word of "cc", so it can be a program name with args.
2848 set dummy cc
; ac_word
=$2
2849 echo "$as_me:$LINENO: checking for $ac_word" >&5
2850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2851 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2852 echo $ECHO_N "(cached) $ECHO_C" >&6
2854 if test -n "$ac_ct_CC"; then
2855 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2857 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2861 test -z "$as_dir" && as_dir
=.
2862 for ac_exec_ext
in '' $ac_executable_extensions; do
2863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2864 ac_cv_prog_ac_ct_CC
="cc"
2865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2873 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2874 if test -n "$ac_ct_CC"; then
2875 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2876 echo "${ECHO_T}$ac_ct_CC" >&6
2878 echo "$as_me:$LINENO: result: no" >&5
2879 echo "${ECHO_T}no" >&6
2888 if test -z "$CC"; then
2889 # Extract the first word of "cc", so it can be a program name with args.
2890 set dummy cc
; ac_word
=$2
2891 echo "$as_me:$LINENO: checking for $ac_word" >&5
2892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2893 if test "${ac_cv_prog_CC+set}" = set; then
2894 echo $ECHO_N "(cached) $ECHO_C" >&6
2896 if test -n "$CC"; then
2897 ac_cv_prog_CC
="$CC" # Let the user override the test.
2900 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2904 test -z "$as_dir" && as_dir
=.
2905 for ac_exec_ext
in '' $ac_executable_extensions; do
2906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2907 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2908 ac_prog_rejected
=yes
2912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2918 if test $ac_prog_rejected = yes; then
2919 # We found a bogon in the path, so make sure we never use it.
2920 set dummy
$ac_cv_prog_CC
2922 if test $# != 0; then
2923 # We chose a different compiler from the bogus one.
2924 # However, it has the same basename, so the bogon will be chosen
2925 # first if we set CC to just the basename; use the full file name.
2927 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2933 if test -n "$CC"; then
2934 echo "$as_me:$LINENO: result: $CC" >&5
2935 echo "${ECHO_T}$CC" >&6
2937 echo "$as_me:$LINENO: result: no" >&5
2938 echo "${ECHO_T}no" >&6
2942 if test -z "$CC"; then
2943 if test -n "$ac_tool_prefix"; then
2946 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2947 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2948 echo "$as_me:$LINENO: checking for $ac_word" >&5
2949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2950 if test "${ac_cv_prog_CC+set}" = set; then
2951 echo $ECHO_N "(cached) $ECHO_C" >&6
2953 if test -n "$CC"; then
2954 ac_cv_prog_CC
="$CC" # Let the user override the test.
2956 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2960 test -z "$as_dir" && as_dir
=.
2961 for ac_exec_ext
in '' $ac_executable_extensions; do
2962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2963 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2973 if test -n "$CC"; then
2974 echo "$as_me:$LINENO: result: $CC" >&5
2975 echo "${ECHO_T}$CC" >&6
2977 echo "$as_me:$LINENO: result: no" >&5
2978 echo "${ECHO_T}no" >&6
2981 test -n "$CC" && break
2984 if test -z "$CC"; then
2988 # Extract the first word of "$ac_prog", so it can be a program name with args.
2989 set dummy
$ac_prog; ac_word
=$2
2990 echo "$as_me:$LINENO: checking for $ac_word" >&5
2991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2992 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2993 echo $ECHO_N "(cached) $ECHO_C" >&6
2995 if test -n "$ac_ct_CC"; then
2996 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2998 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3002 test -z "$as_dir" && as_dir
=.
3003 for ac_exec_ext
in '' $ac_executable_extensions; do
3004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3005 ac_cv_prog_ac_ct_CC
="$ac_prog"
3006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3015 if test -n "$ac_ct_CC"; then
3016 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3017 echo "${ECHO_T}$ac_ct_CC" >&6
3019 echo "$as_me:$LINENO: result: no" >&5
3020 echo "${ECHO_T}no" >&6
3023 test -n "$ac_ct_CC" && break
3032 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3033 See \`config.log' for more details." >&5
3034 echo "$as_me: error: no acceptable C compiler found in \$PATH
3035 See \`config.log' for more details." >&2;}
3036 { (exit 1); exit 1; }; }
3038 # Provide some information about the compiler.
3039 echo "$as_me:$LINENO:" \
3040 "checking for C compiler version" >&5
3041 ac_compiler
=`set X $ac_compile; echo $2`
3042 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3043 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }
3047 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3048 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }
3052 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3053 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }
3058 cat >conftest.
$ac_ext <<_ACEOF
3061 cat confdefs.h
>>conftest.
$ac_ext
3062 cat >>conftest.
$ac_ext <<_ACEOF
3063 /* end confdefs.h. */
3073 ac_clean_files_save
=$ac_clean_files
3074 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3075 # Try to create an executable without -o first, disregard a.out.
3076 # It will help us diagnose broken compilers, and finding out an intuition
3078 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3079 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3080 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3081 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3082 (eval $ac_link_default) 2>&5
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); }; then
3086 # Find the output, starting from the most likely. This scheme is
3087 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3090 # Be careful to initialize this variable, since it used to be cached.
3091 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3093 # b.out is created by i960 compilers.
3094 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3096 test -f "$ac_file" ||
continue
3098 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3101 # This is the source file.
3104 # We found the default executable, but exeext='' is most
3108 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3109 # FIXME: I believe we export ac_cv_exeext for Libtool,
3110 # but it would be cool to find out if it's true. Does anybody
3111 # maintain Libtool? --akim.
3119 echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.
$ac_ext >&5
3122 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3123 See \`config.log' for more details." >&5
3124 echo "$as_me: error: C compiler cannot create executables
3125 See \`config.log' for more details." >&2;}
3126 { (exit 77); exit 77; }; }
3129 ac_exeext
=$ac_cv_exeext
3130 echo "$as_me:$LINENO: result: $ac_file" >&5
3131 echo "${ECHO_T}$ac_file" >&6
3133 # Check the compiler produces executables we can run. If not, either
3134 # the compiler is broken, or we cross compile.
3135 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3136 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3137 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3138 # If not cross compiling, check that we can run a simple program.
3139 if test "$cross_compiling" != yes; then
3140 if { ac_try
='./$ac_file'
3141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; }; then
3148 if test "$cross_compiling" = maybe
; then
3151 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3152 If you meant to cross compile, use \`--host'.
3153 See \`config.log' for more details." >&5
3154 echo "$as_me: error: cannot run C compiled programs.
3155 If you meant to cross compile, use \`--host'.
3156 See \`config.log' for more details." >&2;}
3157 { (exit 1); exit 1; }; }
3161 echo "$as_me:$LINENO: result: yes" >&5
3162 echo "${ECHO_T}yes" >&6
3164 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3165 ac_clean_files
=$ac_clean_files_save
3166 # Check the compiler produces executables we can run. If not, either
3167 # the compiler is broken, or we cross compile.
3168 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3169 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3170 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3171 echo "${ECHO_T}$cross_compiling" >&6
3173 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3174 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3176 (eval $ac_link) 2>&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; then
3180 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3181 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3182 # work properly (i.e., refer to `conftest.exe'), while it won't with
3184 for ac_file
in conftest.exe conftest conftest.
*; do
3185 test -f "$ac_file" ||
continue
3187 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3188 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3195 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3196 See \`config.log' for more details." >&5
3197 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3198 See \`config.log' for more details." >&2;}
3199 { (exit 1); exit 1; }; }
3202 rm -f conftest
$ac_cv_exeext
3203 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3204 echo "${ECHO_T}$ac_cv_exeext" >&6
3206 rm -f conftest.
$ac_ext
3207 EXEEXT
=$ac_cv_exeext
3209 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3210 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3211 if test "${ac_cv_objext+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3214 cat >conftest.
$ac_ext <<_ACEOF
3217 cat confdefs.h
>>conftest.
$ac_ext
3218 cat >>conftest.
$ac_ext <<_ACEOF
3219 /* end confdefs.h. */
3229 rm -f conftest.o conftest.obj
3230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3231 (eval $ac_compile) 2>&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); }; then
3235 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3237 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3238 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3243 echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.
$ac_ext >&5
3246 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3247 See \`config.log' for more details." >&5
3248 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3249 See \`config.log' for more details." >&2;}
3250 { (exit 1); exit 1; }; }
3253 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3255 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3256 echo "${ECHO_T}$ac_cv_objext" >&6
3257 OBJEXT
=$ac_cv_objext
3259 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3260 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3261 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3262 echo $ECHO_N "(cached) $ECHO_C" >&6
3264 cat >conftest.
$ac_ext <<_ACEOF
3267 cat confdefs.h
>>conftest.
$ac_ext
3268 cat >>conftest.
$ac_ext <<_ACEOF
3269 /* end confdefs.h. */
3282 rm -f conftest.
$ac_objext
3283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3284 (eval $ac_compile) 2>conftest.er1
3286 grep -v '^ *+' conftest.er1
>conftest.err
3288 cat conftest.err
>&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); } &&
3291 { ac_try
='test -z "$ac_c_werror_flag"
3292 || test ! -s conftest.err'
3293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }; } &&
3298 { ac_try
='test -s conftest.$ac_objext'
3299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; }; then
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.
$ac_ext >&5
3311 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3312 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3315 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3316 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3317 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3318 ac_test_CFLAGS
=${CFLAGS+set}
3319 ac_save_CFLAGS
=$CFLAGS
3321 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3322 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3323 if test "${ac_cv_prog_cc_g+set}" = set; then
3324 echo $ECHO_N "(cached) $ECHO_C" >&6
3326 cat >conftest.
$ac_ext <<_ACEOF
3329 cat confdefs.h
>>conftest.
$ac_ext
3330 cat >>conftest.
$ac_ext <<_ACEOF
3331 /* end confdefs.h. */
3341 rm -f conftest.
$ac_objext
3342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3343 (eval $ac_compile) 2>conftest.er1
3345 grep -v '^ *+' conftest.er1
>conftest.err
3347 cat conftest.err
>&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); } &&
3350 { ac_try
='test -z "$ac_c_werror_flag"
3351 || test ! -s conftest.err'
3352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; } &&
3357 { ac_try
='test -s conftest.$ac_objext'
3358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }; }; then
3365 echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.
$ac_ext >&5
3370 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3372 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3373 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3374 if test "$ac_test_CFLAGS" = set; then
3375 CFLAGS
=$ac_save_CFLAGS
3376 elif test $ac_cv_prog_cc_g = yes; then
3377 if test "$GCC" = yes; then
3383 if test "$GCC" = yes; then
3389 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3390 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3391 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3394 ac_cv_prog_cc_stdc
=no
3396 cat >conftest.
$ac_ext <<_ACEOF
3399 cat confdefs.h
>>conftest.
$ac_ext
3400 cat >>conftest.
$ac_ext <<_ACEOF
3401 /* end confdefs.h. */
3404 #include <sys/types.h>
3405 #include <sys/stat.h>
3406 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3407 struct buf { int x; };
3408 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3409 static char *e (p, i)
3415 static char *f (char * (*g) (char **, int), char **p, ...)
3420 s = g (p, va_arg (v,int));
3425 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3426 function prototypes and stuff, but not '\xHH' hex character constants.
3427 These don't provoke an error unfortunately, instead are silently treated
3428 as 'x'. The following induces an error, until -std1 is added to get
3429 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3430 array size at least. It's necessary to write '\x00'==0 to get something
3431 that's true only with -std1. */
3432 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3434 int test (int i, double x);
3435 struct s1 {int (*f) (int a);};
3436 struct s2 {int (*f) (double a);};
3437 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3443 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3448 # Don't try gcc -ansi; that turns off useful extensions and
3449 # breaks some systems' header files.
3450 # AIX -qlanglvl=ansi
3451 # Ultrix and OSF/1 -std1
3452 # HP-UX 10.20 and later -Ae
3453 # HP-UX older versions -Aa -D_HPUX_SOURCE
3454 # SVR4 -Xc -D__EXTENSIONS__
3455 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3457 CC
="$ac_save_CC $ac_arg"
3458 rm -f conftest.
$ac_objext
3459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3460 (eval $ac_compile) 2>conftest.er1
3462 grep -v '^ *+' conftest.er1
>conftest.err
3464 cat conftest.err
>&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } &&
3467 { ac_try
='test -z "$ac_c_werror_flag"
3468 || test ! -s conftest.err'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; } &&
3474 { ac_try
='test -s conftest.$ac_objext'
3475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; }; then
3480 ac_cv_prog_cc_stdc
=$ac_arg
3483 echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.
$ac_ext >&5
3487 rm -f conftest.err conftest.
$ac_objext
3489 rm -f conftest.
$ac_ext conftest.
$ac_objext
3494 case "x$ac_cv_prog_cc_stdc" in
3496 echo "$as_me:$LINENO: result: none needed" >&5
3497 echo "${ECHO_T}none needed" >&6 ;;
3499 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3500 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3501 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3504 # Some people use a C++ compiler to compile C. Since we use `exit',
3505 # in C++ we need to declare it. In case someone uses the same compiler
3506 # for both compiling C and C++ we need to have the C++ compiler decide
3507 # the declaration of exit, since it's the most demanding environment.
3508 cat >conftest.
$ac_ext <<_ACEOF
3513 rm -f conftest.
$ac_objext
3514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3515 (eval $ac_compile) 2>conftest.er1
3517 grep -v '^ *+' conftest.er1
>conftest.err
3519 cat conftest.err
>&5
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); } &&
3522 { ac_try
='test -z "$ac_c_werror_flag"
3523 || test ! -s conftest.err'
3524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }; } &&
3529 { ac_try
='test -s conftest.$ac_objext'
3530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); }; }; then
3535 for ac_declaration
in \
3537 'extern "C" void std::exit (int) throw (); using std::exit;' \
3538 'extern "C" void std::exit (int); using std::exit;' \
3539 'extern "C" void exit (int) throw ();' \
3540 'extern "C" void exit (int);' \
3543 cat >conftest.
$ac_ext <<_ACEOF
3546 cat confdefs.h
>>conftest.
$ac_ext
3547 cat >>conftest.
$ac_ext <<_ACEOF
3548 /* end confdefs.h. */
3559 rm -f conftest.
$ac_objext
3560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3561 (eval $ac_compile) 2>conftest.er1
3563 grep -v '^ *+' conftest.er1
>conftest.err
3565 cat conftest.err
>&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } &&
3568 { ac_try
='test -z "$ac_c_werror_flag"
3569 || test ! -s conftest.err'
3570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }; } &&
3575 { ac_try
='test -s conftest.$ac_objext'
3576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); }; }; then
3583 echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.
$ac_ext >&5
3588 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3589 cat >conftest.
$ac_ext <<_ACEOF
3592 cat confdefs.h
>>conftest.
$ac_ext
3593 cat >>conftest.
$ac_ext <<_ACEOF
3594 /* end confdefs.h. */
3604 rm -f conftest.
$ac_objext
3605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3606 (eval $ac_compile) 2>conftest.er1
3608 grep -v '^ *+' conftest.er1
>conftest.err
3610 cat conftest.err
>&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); } &&
3613 { ac_try
='test -z "$ac_c_werror_flag"
3614 || test ! -s conftest.err'
3615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; } &&
3620 { ac_try
='test -s conftest.$ac_objext'
3621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; }; then
3628 echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.
$ac_ext >&5
3632 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3635 if test -n "$ac_declaration"; then
3636 echo '#ifdef __cplusplus' >>confdefs.h
3637 echo $ac_declaration >>confdefs.h
3638 echo '#endif' >>confdefs.h
3642 echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.
$ac_ext >&5
3646 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3648 ac_cpp
='$CPP $CPPFLAGS'
3649 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3650 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3651 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3654 # On Suns, sometimes $CPP names a directory.
3655 if test -n "$CPP" && test -d "$CPP"; then
3659 #### Some systems specify a CPP to use unless we are using GCC.
3660 #### Now that we know whether we are using GCC, we can decide whether
3661 #### to use that one.
3662 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3667 #### Some systems specify a CC to use unless we are using GCC.
3668 #### Now that we know whether we are using GCC, we can decide whether
3669 #### to use that one.
3670 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3671 test x
$cc_specified != xyes
3676 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3678 CC
="$CC $GCC_TEST_OPTIONS"
3681 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3683 CC
="$CC $NON_GCC_TEST_OPTIONS"
3688 ac_cpp
='$CPP $CPPFLAGS'
3689 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3692 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3693 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3694 # On Suns, sometimes $CPP names a directory.
3695 if test -n "$CPP" && test -d "$CPP"; then
3698 if test -z "$CPP"; then
3699 if test "${ac_cv_prog_CPP+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3702 # Double quotes because CPP needs to be expanded
3703 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3706 for ac_c_preproc_warn_flag
in '' yes
3708 # Use a header file that comes with gcc, so configuring glibc
3709 # with a fresh cross-compiler works.
3710 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3711 # <limits.h> exists even on freestanding compilers.
3712 # On the NeXT, cc -E runs the code through the compiler's parser,
3713 # not just through cpp. "Syntax error" is here to catch this case.
3714 cat >conftest.
$ac_ext <<_ACEOF
3717 cat confdefs.h
>>conftest.
$ac_ext
3718 cat >>conftest.
$ac_ext <<_ACEOF
3719 /* end confdefs.h. */
3721 # include <limits.h>
3723 # include <assert.h>
3727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3728 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3730 grep -v '^ *+' conftest.er1
>conftest.err
3732 cat conftest.err
>&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); } >/dev
/null
; then
3735 if test -s conftest.err
; then
3736 ac_cpp_err
=$ac_c_preproc_warn_flag
3737 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3744 if test -z "$ac_cpp_err"; then
3747 echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.
$ac_ext >&5
3750 # Broken: fails on valid input.
3753 rm -f conftest.err conftest.
$ac_ext
3755 # OK, works on sane cases. Now check whether non-existent headers
3756 # can be detected and how.
3757 cat >conftest.
$ac_ext <<_ACEOF
3760 cat confdefs.h
>>conftest.
$ac_ext
3761 cat >>conftest.
$ac_ext <<_ACEOF
3762 /* end confdefs.h. */
3763 #include <ac_nonexistent.h>
3765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3766 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3768 grep -v '^ *+' conftest.er1
>conftest.err
3770 cat conftest.err
>&5
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); } >/dev
/null
; then
3773 if test -s conftest.err
; then
3774 ac_cpp_err
=$ac_c_preproc_warn_flag
3775 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3782 if test -z "$ac_cpp_err"; then
3783 # Broken: success on invalid input.
3786 echo "$as_me: failed program was:" >&5
3787 sed 's/^/| /' conftest.
$ac_ext >&5
3789 # Passes both tests.
3793 rm -f conftest.err conftest.
$ac_ext
3796 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3797 rm -f conftest.err conftest.
$ac_ext
3798 if $ac_preproc_ok; then
3810 echo "$as_me:$LINENO: result: $CPP" >&5
3811 echo "${ECHO_T}$CPP" >&6
3813 for ac_c_preproc_warn_flag
in '' yes
3815 # Use a header file that comes with gcc, so configuring glibc
3816 # with a fresh cross-compiler works.
3817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3818 # <limits.h> exists even on freestanding compilers.
3819 # On the NeXT, cc -E runs the code through the compiler's parser,
3820 # not just through cpp. "Syntax error" is here to catch this case.
3821 cat >conftest.
$ac_ext <<_ACEOF
3824 cat confdefs.h
>>conftest.
$ac_ext
3825 cat >>conftest.
$ac_ext <<_ACEOF
3826 /* end confdefs.h. */
3828 # include <limits.h>
3830 # include <assert.h>
3834 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3835 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3837 grep -v '^ *+' conftest.er1
>conftest.err
3839 cat conftest.err
>&5
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); } >/dev
/null
; then
3842 if test -s conftest.err
; then
3843 ac_cpp_err
=$ac_c_preproc_warn_flag
3844 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3851 if test -z "$ac_cpp_err"; then
3854 echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.
$ac_ext >&5
3857 # Broken: fails on valid input.
3860 rm -f conftest.err conftest.
$ac_ext
3862 # OK, works on sane cases. Now check whether non-existent headers
3863 # can be detected and how.
3864 cat >conftest.
$ac_ext <<_ACEOF
3867 cat confdefs.h
>>conftest.
$ac_ext
3868 cat >>conftest.
$ac_ext <<_ACEOF
3869 /* end confdefs.h. */
3870 #include <ac_nonexistent.h>
3872 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3873 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3875 grep -v '^ *+' conftest.er1
>conftest.err
3877 cat conftest.err
>&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); } >/dev
/null
; then
3880 if test -s conftest.err
; then
3881 ac_cpp_err
=$ac_c_preproc_warn_flag
3882 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3889 if test -z "$ac_cpp_err"; then
3890 # Broken: success on invalid input.
3893 echo "$as_me: failed program was:" >&5
3894 sed 's/^/| /' conftest.
$ac_ext >&5
3896 # Passes both tests.
3900 rm -f conftest.err conftest.
$ac_ext
3903 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3904 rm -f conftest.err conftest.
$ac_ext
3905 if $ac_preproc_ok; then
3908 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3909 See \`config.log' for more details." >&5
3910 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3911 See \`config.log' for more details." >&2;}
3912 { (exit 1); exit 1; }; }
3916 ac_cpp
='$CPP $CPPFLAGS'
3917 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3918 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3919 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3922 echo "$as_me:$LINENO: checking for egrep" >&5
3923 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3924 if test "${ac_cv_prog_egrep+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3928 then ac_cv_prog_egrep
='grep -E'
3929 else ac_cv_prog_egrep
='egrep'
3932 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3933 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3934 EGREP
=$ac_cv_prog_egrep
3938 echo "$as_me:$LINENO: checking for AIX" >&5
3939 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3940 cat >conftest.
$ac_ext <<_ACEOF
3943 cat confdefs.h
>>conftest.
$ac_ext
3944 cat >>conftest.
$ac_ext <<_ACEOF
3945 /* end confdefs.h. */
3951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3952 $EGREP "yes" >/dev
/null
2>&1; then
3953 echo "$as_me:$LINENO: result: yes" >&5
3954 echo "${ECHO_T}yes" >&6
3955 cat >>confdefs.h
<<\_ACEOF
3956 #define _ALL_SOURCE 1
3960 echo "$as_me:$LINENO: result: no" >&5
3961 echo "${ECHO_T}no" >&6
3967 cat >>confdefs.h
<<\_ACEOF
3968 #define _GNU_SOURCE 1
3973 ### Use -Wno-pointer-sign if the compiler supports it
3974 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3975 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3976 SAVE_CFLAGS
="$CFLAGS"
3977 CFLAGS
="$CFLAGS -Wno-pointer-sign"
3978 cat >conftest.
$ac_ext <<_ACEOF
3981 cat confdefs.h
>>conftest.
$ac_ext
3982 cat >>conftest.
$ac_ext <<_ACEOF
3983 /* end confdefs.h. */
3993 rm -f conftest.
$ac_objext
3994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3995 (eval $ac_compile) 2>conftest.er1
3997 grep -v '^ *+' conftest.er1
>conftest.err
3999 cat conftest.err
>&5
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); } &&
4002 { ac_try
='test -z "$ac_c_werror_flag"
4003 || test ! -s conftest.err'
4004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }; } &&
4009 { ac_try
='test -s conftest.$ac_objext'
4010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); }; }; then
4017 echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.
$ac_ext >&5
4022 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4023 if test $has_option = yes; then
4024 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4026 echo "$as_me:$LINENO: result: $has_option" >&5
4027 echo "${ECHO_T}$has_option" >&6
4028 CFLAGS
="$SAVE_CFLAGS"
4032 #### Some other nice autoconf tests.
4034 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4035 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4037 if test "$LN_S" = "ln -s"; then
4038 echo "$as_me:$LINENO: result: yes" >&5
4039 echo "${ECHO_T}yes" >&6
4041 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4042 echo "${ECHO_T}no, using $LN_S" >&6
4046 ac_cpp
='$CPP $CPPFLAGS'
4047 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4048 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4049 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4050 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4051 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4052 # On Suns, sometimes $CPP names a directory.
4053 if test -n "$CPP" && test -d "$CPP"; then
4056 if test -z "$CPP"; then
4057 if test "${ac_cv_prog_CPP+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 # Double quotes because CPP needs to be expanded
4061 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4064 for ac_c_preproc_warn_flag
in '' yes
4066 # Use a header file that comes with gcc, so configuring glibc
4067 # with a fresh cross-compiler works.
4068 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4069 # <limits.h> exists even on freestanding compilers.
4070 # On the NeXT, cc -E runs the code through the compiler's parser,
4071 # not just through cpp. "Syntax error" is here to catch this case.
4072 cat >conftest.
$ac_ext <<_ACEOF
4075 cat confdefs.h
>>conftest.
$ac_ext
4076 cat >>conftest.
$ac_ext <<_ACEOF
4077 /* end confdefs.h. */
4079 # include <limits.h>
4081 # include <assert.h>
4085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4086 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4088 grep -v '^ *+' conftest.er1
>conftest.err
4090 cat conftest.err
>&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } >/dev
/null
; then
4093 if test -s conftest.err
; then
4094 ac_cpp_err
=$ac_c_preproc_warn_flag
4095 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4102 if test -z "$ac_cpp_err"; then
4105 echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.
$ac_ext >&5
4108 # Broken: fails on valid input.
4111 rm -f conftest.err conftest.
$ac_ext
4113 # OK, works on sane cases. Now check whether non-existent headers
4114 # can be detected and how.
4115 cat >conftest.
$ac_ext <<_ACEOF
4118 cat confdefs.h
>>conftest.
$ac_ext
4119 cat >>conftest.
$ac_ext <<_ACEOF
4120 /* end confdefs.h. */
4121 #include <ac_nonexistent.h>
4123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4124 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4126 grep -v '^ *+' conftest.er1
>conftest.err
4128 cat conftest.err
>&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); } >/dev
/null
; then
4131 if test -s conftest.err
; then
4132 ac_cpp_err
=$ac_c_preproc_warn_flag
4133 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4140 if test -z "$ac_cpp_err"; then
4141 # Broken: success on invalid input.
4144 echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.
$ac_ext >&5
4147 # Passes both tests.
4151 rm -f conftest.err conftest.
$ac_ext
4154 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4155 rm -f conftest.err conftest.
$ac_ext
4156 if $ac_preproc_ok; then
4168 echo "$as_me:$LINENO: result: $CPP" >&5
4169 echo "${ECHO_T}$CPP" >&6
4171 for ac_c_preproc_warn_flag
in '' yes
4173 # Use a header file that comes with gcc, so configuring glibc
4174 # with a fresh cross-compiler works.
4175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4176 # <limits.h> exists even on freestanding compilers.
4177 # On the NeXT, cc -E runs the code through the compiler's parser,
4178 # not just through cpp. "Syntax error" is here to catch this case.
4179 cat >conftest.
$ac_ext <<_ACEOF
4182 cat confdefs.h
>>conftest.
$ac_ext
4183 cat >>conftest.
$ac_ext <<_ACEOF
4184 /* end confdefs.h. */
4186 # include <limits.h>
4188 # include <assert.h>
4192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4193 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4195 grep -v '^ *+' conftest.er1
>conftest.err
4197 cat conftest.err
>&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); } >/dev
/null
; then
4200 if test -s conftest.err
; then
4201 ac_cpp_err
=$ac_c_preproc_warn_flag
4202 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4209 if test -z "$ac_cpp_err"; then
4212 echo "$as_me: failed program was:" >&5
4213 sed 's/^/| /' conftest.
$ac_ext >&5
4215 # Broken: fails on valid input.
4218 rm -f conftest.err conftest.
$ac_ext
4220 # OK, works on sane cases. Now check whether non-existent headers
4221 # can be detected and how.
4222 cat >conftest.
$ac_ext <<_ACEOF
4225 cat confdefs.h
>>conftest.
$ac_ext
4226 cat >>conftest.
$ac_ext <<_ACEOF
4227 /* end confdefs.h. */
4228 #include <ac_nonexistent.h>
4230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4231 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4233 grep -v '^ *+' conftest.er1
>conftest.err
4235 cat conftest.err
>&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); } >/dev
/null
; then
4238 if test -s conftest.err
; then
4239 ac_cpp_err
=$ac_c_preproc_warn_flag
4240 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4247 if test -z "$ac_cpp_err"; then
4248 # Broken: success on invalid input.
4251 echo "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.
$ac_ext >&5
4254 # Passes both tests.
4258 rm -f conftest.err conftest.
$ac_ext
4261 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4262 rm -f conftest.err conftest.
$ac_ext
4263 if $ac_preproc_ok; then
4266 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4267 See \`config.log' for more details." >&5
4268 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4269 See \`config.log' for more details." >&2;}
4270 { (exit 1); exit 1; }; }
4274 ac_cpp
='$CPP $CPPFLAGS'
4275 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4276 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4277 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4279 # Find a good install program. We prefer a C program (faster),
4280 # so one script is as good as another. But avoid the broken or
4281 # incompatible versions:
4282 # SysV /etc/install, /usr/sbin/install
4283 # SunOS /usr/etc/install
4284 # IRIX /sbin/install
4286 # AmigaOS /C/install, which installs bootblocks on floppy discs
4287 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4288 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4289 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4290 # OS/2's system install, which has a completely different semantic
4291 # ./install, which can be erroneously created by make from ./install.sh.
4292 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4293 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4294 if test -z "$INSTALL"; then
4295 if test "${ac_cv_path_install+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4298 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4302 test -z "$as_dir" && as_dir
=.
4303 # Account for people who put trailing slashes in PATH elements.
4305 .
/ | .
// |
/cC
/* | \
4306 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4307 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4310 # OSF1 and SCO ODT 3.0 have their own names for install.
4311 # Don't use installbsd from OSF since it installs stuff as root
4313 for ac_prog
in ginstall scoinst
install; do
4314 for ac_exec_ext
in '' $ac_executable_extensions; do
4315 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4316 if test $ac_prog = install &&
4317 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4318 # AIX install. It has an incompatible calling convention.
4320 elif test $ac_prog = install &&
4321 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4322 # program-specific install script used by HP pwplus--don't use.
4325 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4337 if test "${ac_cv_path_install+set}" = set; then
4338 INSTALL
=$ac_cv_path_install
4340 # As a last resort, use the slow shell script. We don't cache a
4341 # path for INSTALL within a source directory, because that will
4342 # break other packages using the cache if that directory is
4343 # removed, or if the path is relative.
4344 INSTALL
=$ac_install_sh
4347 echo "$as_me:$LINENO: result: $INSTALL" >&5
4348 echo "${ECHO_T}$INSTALL" >&6
4350 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4351 # It thinks the first close brace ends the variable substitution.
4352 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4354 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4356 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4358 if test "x$RANLIB" = x
; then
4359 if test -n "$ac_tool_prefix"; then
4360 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4361 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4362 echo "$as_me:$LINENO: checking for $ac_word" >&5
4363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4364 if test "${ac_cv_prog_RANLIB+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 if test -n "$RANLIB"; then
4368 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4370 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4374 test -z "$as_dir" && as_dir
=.
4375 for ac_exec_ext
in '' $ac_executable_extensions; do
4376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4377 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4386 RANLIB
=$ac_cv_prog_RANLIB
4387 if test -n "$RANLIB"; then
4388 echo "$as_me:$LINENO: result: $RANLIB" >&5
4389 echo "${ECHO_T}$RANLIB" >&6
4391 echo "$as_me:$LINENO: result: no" >&5
4392 echo "${ECHO_T}no" >&6
4396 if test -z "$ac_cv_prog_RANLIB"; then
4397 ac_ct_RANLIB
=$RANLIB
4398 # Extract the first word of "ranlib", so it can be a program name with args.
4399 set dummy ranlib
; ac_word
=$2
4400 echo "$as_me:$LINENO: checking for $ac_word" >&5
4401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4402 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4403 echo $ECHO_N "(cached) $ECHO_C" >&6
4405 if test -n "$ac_ct_RANLIB"; then
4406 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4408 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4412 test -z "$as_dir" && as_dir
=.
4413 for ac_exec_ext
in '' $ac_executable_extensions; do
4414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4415 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4425 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4426 if test -n "$ac_ct_RANLIB"; then
4427 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4428 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4430 echo "$as_me:$LINENO: result: no" >&5
4431 echo "${ECHO_T}no" >&6
4434 RANLIB
=$ac_ct_RANLIB
4436 RANLIB
="$ac_cv_prog_RANLIB"
4440 # Extract the first word of "install-info", so it can be a program name with args.
4441 set dummy install-info
; ac_word
=$2
4442 echo "$as_me:$LINENO: checking for $ac_word" >&5
4443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4444 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 case $INSTALL_INFO in
4449 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4452 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4456 test -z "$as_dir" && as_dir
=.
4457 for ac_exec_ext
in '' $ac_executable_extensions; do
4458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4459 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4469 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4471 if test -n "$INSTALL_INFO"; then
4472 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4473 echo "${ECHO_T}$INSTALL_INFO" >&6
4475 echo "$as_me:$LINENO: result: no" >&5
4476 echo "${ECHO_T}no" >&6
4479 # Extract the first word of "install-info", so it can be a program name with args.
4480 set dummy install-info
; ac_word
=$2
4481 echo "$as_me:$LINENO: checking for $ac_word" >&5
4482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4483 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4486 case $INSTALL_INFO in
4488 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4491 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4492 for as_dir
in /usr
/sbin
4495 test -z "$as_dir" && as_dir
=.
4496 for ac_exec_ext
in '' $ac_executable_extensions; do
4497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4498 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4508 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4510 if test -n "$INSTALL_INFO"; then
4511 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4512 echo "${ECHO_T}$INSTALL_INFO" >&6
4514 echo "$as_me:$LINENO: result: no" >&5
4515 echo "${ECHO_T}no" >&6
4518 # Extract the first word of "install-info", so it can be a program name with args.
4519 set dummy install-info
; ac_word
=$2
4520 echo "$as_me:$LINENO: checking for $ac_word" >&5
4521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4522 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4525 case $INSTALL_INFO in
4527 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4530 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4534 test -z "$as_dir" && as_dir
=.
4535 for ac_exec_ext
in '' $ac_executable_extensions; do
4536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4537 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4548 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4550 if test -n "$INSTALL_INFO"; then
4551 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4552 echo "${ECHO_T}$INSTALL_INFO" >&6
4554 echo "$as_me:$LINENO: result: no" >&5
4555 echo "${ECHO_T}no" >&6
4558 # Extract the first word of "gzip", so it can be a program name with args.
4559 set dummy
gzip; ac_word
=$2
4560 echo "$as_me:$LINENO: checking for $ac_word" >&5
4561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4562 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4567 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
4570 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4574 test -z "$as_dir" && as_dir
=.
4575 for ac_exec_ext
in '' $ac_executable_extensions; do
4576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4577 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
4578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 GZIP_PROG
=$ac_cv_path_GZIP_PROG
4589 if test -n "$GZIP_PROG"; then
4590 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4591 echo "${ECHO_T}$GZIP_PROG" >&6
4593 echo "$as_me:$LINENO: result: no" >&5
4594 echo "${ECHO_T}no" >&6
4599 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4601 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4604 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4606 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4610 late_LDFLAGS
=$LDFLAGS
4611 if test "$GCC" = yes; then
4612 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
4614 LDFLAGS
="$LDFLAGS -znocombreloc"
4617 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4618 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4619 cat >conftest.
$ac_ext <<_ACEOF
4622 rm -f conftest.
$ac_objext conftest
$ac_exeext
4623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4624 (eval $ac_link) 2>conftest.er1
4626 grep -v '^ *+' conftest.er1
>conftest.err
4628 cat conftest.err
>&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); } &&
4631 { ac_try
='test -z "$ac_c_werror_flag"
4632 || test ! -s conftest.err'
4633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; } &&
4638 { ac_try
='test -s conftest$ac_exeext'
4639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); }; }; then
4644 echo "$as_me:$LINENO: result: yes" >&5
4645 echo "${ECHO_T}yes" >&6
4647 echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.
$ac_ext >&5
4650 LDFLAGS
=$late_LDFLAGS
4651 echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6
4654 rm -f conftest.err conftest.
$ac_objext \
4655 conftest
$ac_exeext conftest.
$ac_ext
4657 #### Extract some information from the operating system and machine files.
4659 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4660 - which libraries the lib-src programs will want, and
4661 - whether the GNU malloc routines are usable..." >&5
4662 echo "$as_me: checking the machine- and system-dependent files to find out
4663 - which libraries the lib-src programs will want, and
4664 - whether the GNU malloc routines are usable..." >&6;}
4666 ### First figure out CFLAGS (which we use for running the compiler here)
4667 ### and REAL_CFLAGS (which we use for real compilation).
4668 ### The two are the same except on a few systems, where they are made
4669 ### different to work around various lossages. For example,
4670 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4671 ### as implying static linking.
4673 ### If the CFLAGS env var is specified, we use that value
4674 ### instead of the default.
4676 ### It's not important that this name contain the PID; you can't run
4677 ### two configures in the same directory and have anything work
4679 tempcname
="conftest.c"
4682 #include "'${srcdir}'/src/'${opsysfile}'"
4683 #include "'${srcdir}'/src/'${machfile}'"
4684 #ifndef LIBS_MACHINE
4685 #define LIBS_MACHINE
4690 #ifndef C_SWITCH_SYSTEM
4691 #define C_SWITCH_SYSTEM
4693 #ifndef C_SWITCH_MACHINE
4694 #define C_SWITCH_MACHINE
4696 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4697 configure___ c_switch_system=C_SWITCH_SYSTEM
4698 configure___ c_switch_machine=C_SWITCH_MACHINE
4701 #define LIB_X11_LIB -lX11
4704 #ifndef LIBX11_MACHINE
4705 #define LIBX11_MACHINE
4708 #ifndef LIBX11_SYSTEM
4709 #define LIBX11_SYSTEM
4711 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4714 configure___ unexec=UNEXEC
4716 configure___ unexec=unexec.o
4719 #ifdef SYSTEM_MALLOC
4720 configure___ system_malloc=yes
4722 configure___ system_malloc=no
4725 #ifdef USE_MMAP_FOR_BUFFERS
4726 configure___ use_mmap_for_buffers=yes
4728 configure___ use_mmap_for_buffers=no
4731 #ifndef C_DEBUG_SWITCH
4732 #define C_DEBUG_SWITCH -g
4735 #ifndef C_OPTIMIZE_SWITCH
4737 #define C_OPTIMIZE_SWITCH -O2
4739 #define C_OPTIMIZE_SWITCH -O
4743 #ifndef C_WARNINGS_SWITCH
4744 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4747 #ifndef LD_SWITCH_MACHINE
4748 #define LD_SWITCH_MACHINE
4751 #ifndef LD_SWITCH_SYSTEM
4752 #define LD_SWITCH_SYSTEM
4755 #ifndef LD_SWITCH_X_SITE_AUX
4756 #define LD_SWITCH_X_SITE_AUX
4759 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4760 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4762 #ifdef THIS_IS_CONFIGURE
4764 /* Get the CFLAGS for tests in configure. */
4766 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4768 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4771 #else /* not THIS_IS_CONFIGURE */
4773 /* Get the CFLAGS for real compilation. */
4775 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4777 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4780 #endif /* not THIS_IS_CONFIGURE */
4783 # The value of CPP is a quoted variable reference, so we need to do this
4784 # to get its actual value...
4785 CPP
=`eval "echo $CPP"`
4786 eval `${CPP} -Isrc ${tempcname} \
4787 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4788 if test "x$SPECIFIED_CFLAGS" = x
; then
4789 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4790 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4792 REAL_CFLAGS
="$CFLAGS"
4796 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4798 ### Make sure subsequent tests use flags consistent with the build flags.
4800 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4801 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4803 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4808 # Check whether --enable-largefile or --disable-largefile was given.
4809 if test "${enable_largefile+set}" = set; then
4810 enableval
="$enable_largefile"
4813 if test "$enable_largefile" != no
; then
4815 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4816 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4817 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
4820 ac_cv_sys_largefile_CC
=no
4821 if test "$GCC" != yes; then
4824 # IRIX 6.2 and later do not support large files by default,
4825 # so use the C compiler's -n32 option if that helps.
4826 cat >conftest.
$ac_ext <<_ACEOF
4829 cat confdefs.h
>>conftest.
$ac_ext
4830 cat >>conftest.
$ac_ext <<_ACEOF
4831 /* end confdefs.h. */
4832 #include <sys/types.h>
4833 /* Check that off_t can represent 2**63 - 1 correctly.
4834 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4835 since some C++ compilers masquerading as C compilers
4836 incorrectly reject 9223372036854775807. */
4837 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4838 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4839 && LARGE_OFF_T % 2147483647 == 1)
4849 rm -f conftest.
$ac_objext
4850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4851 (eval $ac_compile) 2>conftest.er1
4853 grep -v '^ *+' conftest.er1
>conftest.err
4855 cat conftest.err
>&5
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); } &&
4858 { ac_try
='test -z "$ac_c_werror_flag"
4859 || test ! -s conftest.err'
4860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); }; } &&
4865 { ac_try
='test -s conftest.$ac_objext'
4866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); }; }; then
4873 echo "$as_me: failed program was:" >&5
4874 sed 's/^/| /' conftest.
$ac_ext >&5
4877 rm -f conftest.err conftest.
$ac_objext
4879 rm -f conftest.
$ac_objext
4880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4881 (eval $ac_compile) 2>conftest.er1
4883 grep -v '^ *+' conftest.er1
>conftest.err
4885 cat conftest.err
>&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); } &&
4888 { ac_try
='test -z "$ac_c_werror_flag"
4889 || test ! -s conftest.err'
4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; } &&
4895 { ac_try
='test -s conftest.$ac_objext'
4896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }; }; then
4901 ac_cv_sys_largefile_CC
=' -n32'; break
4903 echo "$as_me: failed program was:" >&5
4904 sed 's/^/| /' conftest.
$ac_ext >&5
4907 rm -f conftest.err conftest.
$ac_objext
4911 rm -f conftest.
$ac_ext
4914 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4915 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4916 if test "$ac_cv_sys_largefile_CC" != no
; then
4917 CC
=$CC$ac_cv_sys_largefile_CC
4920 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4921 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4922 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4923 echo $ECHO_N "(cached) $ECHO_C" >&6
4926 ac_cv_sys_file_offset_bits
=no
4927 cat >conftest.
$ac_ext <<_ACEOF
4930 cat confdefs.h
>>conftest.
$ac_ext
4931 cat >>conftest.
$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4933 #include <sys/types.h>
4934 /* Check that off_t can represent 2**63 - 1 correctly.
4935 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4936 since some C++ compilers masquerading as C compilers
4937 incorrectly reject 9223372036854775807. */
4938 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4939 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4940 && LARGE_OFF_T % 2147483647 == 1)
4950 rm -f conftest.
$ac_objext
4951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4952 (eval $ac_compile) 2>conftest.er1
4954 grep -v '^ *+' conftest.er1
>conftest.err
4956 cat conftest.err
>&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); } &&
4959 { ac_try
='test -z "$ac_c_werror_flag"
4960 || test ! -s conftest.err'
4961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); }; } &&
4966 { ac_try
='test -s conftest.$ac_objext'
4967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }; }; then
4974 echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.
$ac_ext >&5
4978 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4979 cat >conftest.
$ac_ext <<_ACEOF
4982 cat confdefs.h
>>conftest.
$ac_ext
4983 cat >>conftest.
$ac_ext <<_ACEOF
4984 /* end confdefs.h. */
4985 #define _FILE_OFFSET_BITS 64
4986 #include <sys/types.h>
4987 /* Check that off_t can represent 2**63 - 1 correctly.
4988 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4989 since some C++ compilers masquerading as C compilers
4990 incorrectly reject 9223372036854775807. */
4991 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4992 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4993 && LARGE_OFF_T % 2147483647 == 1)
5003 rm -f conftest.
$ac_objext
5004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5005 (eval $ac_compile) 2>conftest.er1
5007 grep -v '^ *+' conftest.er1
>conftest.err
5009 cat conftest.err
>&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); } &&
5012 { ac_try
='test -z "$ac_c_werror_flag"
5013 || test ! -s conftest.err'
5014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); }; } &&
5019 { ac_try
='test -s conftest.$ac_objext'
5020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; }; then
5025 ac_cv_sys_file_offset_bits
=64; break
5027 echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.
$ac_ext >&5
5031 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5035 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5036 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5037 if test "$ac_cv_sys_file_offset_bits" != no
; then
5039 cat >>confdefs.h
<<_ACEOF
5040 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5045 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5046 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5047 if test "${ac_cv_sys_large_files+set}" = set; then
5048 echo $ECHO_N "(cached) $ECHO_C" >&6
5051 ac_cv_sys_large_files
=no
5052 cat >conftest.
$ac_ext <<_ACEOF
5055 cat confdefs.h
>>conftest.
$ac_ext
5056 cat >>conftest.
$ac_ext <<_ACEOF
5057 /* end confdefs.h. */
5058 #include <sys/types.h>
5059 /* Check that off_t can represent 2**63 - 1 correctly.
5060 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5061 since some C++ compilers masquerading as C compilers
5062 incorrectly reject 9223372036854775807. */
5063 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5064 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5065 && LARGE_OFF_T % 2147483647 == 1)
5075 rm -f conftest.
$ac_objext
5076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5077 (eval $ac_compile) 2>conftest.er1
5079 grep -v '^ *+' conftest.er1
>conftest.err
5081 cat conftest.err
>&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); } &&
5084 { ac_try
='test -z "$ac_c_werror_flag"
5085 || test ! -s conftest.err'
5086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); }; } &&
5091 { ac_try
='test -s conftest.$ac_objext'
5092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); }; }; then
5099 echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.
$ac_ext >&5
5103 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5104 cat >conftest.
$ac_ext <<_ACEOF
5107 cat confdefs.h
>>conftest.
$ac_ext
5108 cat >>conftest.
$ac_ext <<_ACEOF
5109 /* end confdefs.h. */
5110 #define _LARGE_FILES 1
5111 #include <sys/types.h>
5112 /* Check that off_t can represent 2**63 - 1 correctly.
5113 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5114 since some C++ compilers masquerading as C compilers
5115 incorrectly reject 9223372036854775807. */
5116 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5117 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5118 && LARGE_OFF_T % 2147483647 == 1)
5128 rm -f conftest.
$ac_objext
5129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5130 (eval $ac_compile) 2>conftest.er1
5132 grep -v '^ *+' conftest.er1
>conftest.err
5134 cat conftest.err
>&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } &&
5137 { ac_try
='test -z "$ac_c_werror_flag"
5138 || test ! -s conftest.err'
5139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); }; } &&
5144 { ac_try
='test -s conftest.$ac_objext'
5145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); }; }; then
5150 ac_cv_sys_large_files
=1; break
5152 echo "$as_me: failed program was:" >&5
5153 sed 's/^/| /' conftest.
$ac_ext >&5
5156 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5160 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5161 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5162 if test "$ac_cv_sys_large_files" != no
; then
5164 cat >>confdefs.h
<<_ACEOF
5165 #define _LARGE_FILES $ac_cv_sys_large_files
5174 ### The standard library on x86-64 GNU/Linux distributions can
5175 ### be located in either /usr/lib64 or /usr/lib.
5176 case "${canonical}" in
5177 x86_64-
*-linux-gnu* )
5178 if test -d /usr
/lib64
; then
5180 cat >>confdefs.h
<<\_ACEOF
5181 #define HAVE_X86_64_LIB64_DIR 1
5190 if test "${with_sound}" != "no"; then
5191 # Sound support for GNU/Linux and the free BSDs.
5192 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5193 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5194 if test "${ac_cv_header_stdc+set}" = set; then
5195 echo $ECHO_N "(cached) $ECHO_C" >&6
5197 cat >conftest.
$ac_ext <<_ACEOF
5200 cat confdefs.h
>>conftest.
$ac_ext
5201 cat >>conftest.
$ac_ext <<_ACEOF
5202 /* end confdefs.h. */
5216 rm -f conftest.
$ac_objext
5217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5218 (eval $ac_compile) 2>conftest.er1
5220 grep -v '^ *+' conftest.er1
>conftest.err
5222 cat conftest.err
>&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); } &&
5225 { ac_try
='test -z "$ac_c_werror_flag"
5226 || test ! -s conftest.err'
5227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }; } &&
5232 { ac_try
='test -s conftest.$ac_objext'
5233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); }; }; then
5238 ac_cv_header_stdc
=yes
5240 echo "$as_me: failed program was:" >&5
5241 sed 's/^/| /' conftest.
$ac_ext >&5
5243 ac_cv_header_stdc
=no
5245 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5247 if test $ac_cv_header_stdc = yes; then
5248 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5249 cat >conftest.
$ac_ext <<_ACEOF
5252 cat confdefs.h
>>conftest.
$ac_ext
5253 cat >>conftest.
$ac_ext <<_ACEOF
5254 /* end confdefs.h. */
5258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5259 $EGREP "memchr" >/dev
/null
2>&1; then
5262 ac_cv_header_stdc
=no
5268 if test $ac_cv_header_stdc = yes; then
5269 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5270 cat >conftest.
$ac_ext <<_ACEOF
5273 cat confdefs.h
>>conftest.
$ac_ext
5274 cat >>conftest.
$ac_ext <<_ACEOF
5275 /* end confdefs.h. */
5279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5280 $EGREP "free" >/dev
/null
2>&1; then
5283 ac_cv_header_stdc
=no
5289 if test $ac_cv_header_stdc = yes; then
5290 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5291 if test "$cross_compiling" = yes; then
5294 cat >conftest.
$ac_ext <<_ACEOF
5297 cat confdefs.h
>>conftest.
$ac_ext
5298 cat >>conftest.
$ac_ext <<_ACEOF
5299 /* end confdefs.h. */
5301 #if ((' ' & 0x0FF) == 0x020)
5302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5305 # define ISLOWER(c) \
5306 (('a' <= (c) && (c) <= 'i') \
5307 || ('j' <= (c) && (c) <= 'r') \
5308 || ('s' <= (c) && (c) <= 'z'))
5309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5317 for (i = 0; i < 256; i++)
5318 if (XOR (islower (i), ISLOWER (i))
5319 || toupper (i) != TOUPPER (i))
5324 rm -f conftest
$ac_exeext
5325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5326 (eval $ac_link) 2>&5
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); }; }; then
5337 echo "$as_me: program exited with status $ac_status" >&5
5338 echo "$as_me: failed program was:" >&5
5339 sed 's/^/| /' conftest.
$ac_ext >&5
5342 ac_cv_header_stdc
=no
5344 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5348 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5349 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5350 if test $ac_cv_header_stdc = yes; then
5352 cat >>confdefs.h
<<\_ACEOF
5353 #define STDC_HEADERS 1
5358 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5368 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5369 inttypes.h stdint.h unistd.h
5371 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5372 echo "$as_me:$LINENO: checking for $ac_header" >&5
5373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5377 cat >conftest.
$ac_ext <<_ACEOF
5380 cat confdefs.h
>>conftest.
$ac_ext
5381 cat >>conftest.
$ac_ext <<_ACEOF
5382 /* end confdefs.h. */
5383 $ac_includes_default
5385 #include <$ac_header>
5387 rm -f conftest.
$ac_objext
5388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5389 (eval $ac_compile) 2>conftest.er1
5391 grep -v '^ *+' conftest.er1
>conftest.err
5393 cat conftest.err
>&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } &&
5396 { ac_try
='test -z "$ac_c_werror_flag"
5397 || test ! -s conftest.err'
5398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }; } &&
5403 { ac_try
='test -s conftest.$ac_objext'
5404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); }; }; then
5409 eval "$as_ac_Header=yes"
5411 echo "$as_me: failed program was:" >&5
5412 sed 's/^/| /' conftest.
$ac_ext >&5
5414 eval "$as_ac_Header=no"
5416 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5421 cat >>confdefs.h
<<_ACEOF
5422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5433 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5435 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5437 echo "$as_me:$LINENO: checking for $ac_header" >&5
5438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5440 echo $ECHO_N "(cached) $ECHO_C" >&6
5442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5445 # Is the header compilable?
5446 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5447 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5448 cat >conftest.
$ac_ext <<_ACEOF
5451 cat confdefs.h
>>conftest.
$ac_ext
5452 cat >>conftest.
$ac_ext <<_ACEOF
5453 /* end confdefs.h. */
5454 $ac_includes_default
5455 #include <$ac_header>
5457 rm -f conftest.
$ac_objext
5458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5459 (eval $ac_compile) 2>conftest.er1
5461 grep -v '^ *+' conftest.er1
>conftest.err
5463 cat conftest.err
>&5
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); } &&
5466 { ac_try
='test -z "$ac_c_werror_flag"
5467 || test ! -s conftest.err'
5468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }; } &&
5473 { ac_try
='test -s conftest.$ac_objext'
5474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); }; }; then
5479 ac_header_compiler
=yes
5481 echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.
$ac_ext >&5
5484 ac_header_compiler
=no
5486 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5487 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5488 echo "${ECHO_T}$ac_header_compiler" >&6
5490 # Is the header present?
5491 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5493 cat >conftest.
$ac_ext <<_ACEOF
5496 cat confdefs.h
>>conftest.
$ac_ext
5497 cat >>conftest.
$ac_ext <<_ACEOF
5498 /* end confdefs.h. */
5499 #include <$ac_header>
5501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5502 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5504 grep -v '^ *+' conftest.er1
>conftest.err
5506 cat conftest.err
>&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); } >/dev
/null
; then
5509 if test -s conftest.err
; then
5510 ac_cpp_err
=$ac_c_preproc_warn_flag
5511 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5518 if test -z "$ac_cpp_err"; then
5519 ac_header_preproc
=yes
5521 echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.
$ac_ext >&5
5524 ac_header_preproc
=no
5526 rm -f conftest.err conftest.
$ac_ext
5527 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5528 echo "${ECHO_T}$ac_header_preproc" >&6
5530 # So? What about this header?
5531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5533 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5534 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5536 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5537 ac_header_preproc
=yes
5540 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5541 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5542 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5543 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5544 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5545 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5546 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5547 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5550 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5551 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5554 ## ------------------------------------------ ##
5555 ## Report this to the AC_PACKAGE_NAME lists. ##
5556 ## ------------------------------------------ ##
5559 sed "s/^/$as_me: WARNING: /" >&2
5562 echo "$as_me:$LINENO: checking for $ac_header" >&5
5563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5567 eval "$as_ac_Header=\$ac_header_preproc"
5569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5574 cat >>confdefs.h
<<_ACEOF
5575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5582 # Emulation library used on NetBSD.
5583 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5584 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5585 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5586 echo $ECHO_N "(cached) $ECHO_C" >&6
5588 ac_check_lib_save_LIBS
=$LIBS
5589 LIBS
="-lossaudio $LIBS"
5590 cat >conftest.
$ac_ext <<_ACEOF
5593 cat confdefs.h
>>conftest.
$ac_ext
5594 cat >>conftest.
$ac_ext <<_ACEOF
5595 /* end confdefs.h. */
5597 /* Override any gcc2 internal prototype to avoid an error. */
5601 /* We use char because int might match the return type of a gcc2
5602 builtin and then its argument prototype would still apply. */
5612 rm -f conftest.
$ac_objext conftest
$ac_exeext
5613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5614 (eval $ac_link) 2>conftest.er1
5616 grep -v '^ *+' conftest.er1
>conftest.err
5618 cat conftest.err
>&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } &&
5621 { ac_try
='test -z "$ac_c_werror_flag"
5622 || test ! -s conftest.err'
5623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); }; } &&
5628 { ac_try
='test -s conftest$ac_exeext'
5629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); }; }; then
5634 ac_cv_lib_ossaudio__oss_ioctl
=yes
5636 echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.
$ac_ext >&5
5639 ac_cv_lib_ossaudio__oss_ioctl
=no
5641 rm -f conftest.err conftest.
$ac_objext \
5642 conftest
$ac_exeext conftest.
$ac_ext
5643 LIBS
=$ac_check_lib_save_LIBS
5645 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5646 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5647 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5656 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
5657 if test "X${with_pkg_config_prog}" != X
; then
5658 PKG_CONFIG
="${with_pkg_config_prog}"
5663 if test -z "$PKG_CONFIG"; then
5664 # Extract the first word of "pkg-config", so it can be a program name with args.
5665 set dummy pkg-config
; ac_word
=$2
5666 echo "$as_me:$LINENO: checking for $ac_word" >&5
5667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5668 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5673 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
5676 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5680 test -z "$as_dir" && as_dir
=.
5681 for ac_exec_ext
in '' $ac_executable_extensions; do
5682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5683 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5690 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
5694 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
5696 if test -n "$PKG_CONFIG"; then
5697 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5698 echo "${ECHO_T}$PKG_CONFIG" >&6
5700 echo "$as_me:$LINENO: result: no" >&5
5701 echo "${ECHO_T}no" >&6
5706 if test "$PKG_CONFIG" = "no" ; then
5709 PKG_CONFIG_MIN_VERSION
=0.9.0
5710 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5711 echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
5712 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6
5714 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5715 echo "$as_me:$LINENO: result: yes" >&5
5716 echo "${ECHO_T}yes" >&6
5719 echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
5720 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6
5721 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
5722 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
5723 echo "${ECHO_T}$ALSA_CFLAGS" >&6
5725 echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
5726 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6
5727 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"`
5728 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
5729 echo "${ECHO_T}$ALSA_LIBS" >&6
5731 echo "$as_me:$LINENO: result: no" >&5
5732 echo "${ECHO_T}no" >&6
5735 ## If we have a custom action on failure, don't print errors, but
5736 ## do set a variable so people can do so.
5737 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5744 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5745 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5749 if test $succeeded = yes; then
5755 if test $HAVE_ALSA = yes; then
5756 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
5757 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
5759 cat >>confdefs.h
<<\_ACEOF
5792 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5793 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5794 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5795 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
5798 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5800 echo "$as_me:$LINENO: checking for $ac_header" >&5
5801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5808 # Is the header compilable?
5809 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5810 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5811 cat >conftest.
$ac_ext <<_ACEOF
5814 cat confdefs.h
>>conftest.
$ac_ext
5815 cat >>conftest.
$ac_ext <<_ACEOF
5816 /* end confdefs.h. */
5817 $ac_includes_default
5818 #include <$ac_header>
5820 rm -f conftest.
$ac_objext
5821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5822 (eval $ac_compile) 2>conftest.er1
5824 grep -v '^ *+' conftest.er1
>conftest.err
5826 cat conftest.err
>&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } &&
5829 { ac_try
='test -z "$ac_c_werror_flag"
5830 || test ! -s conftest.err'
5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; } &&
5836 { ac_try
='test -s conftest.$ac_objext'
5837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); }; }; then
5842 ac_header_compiler
=yes
5844 echo "$as_me: failed program was:" >&5
5845 sed 's/^/| /' conftest.
$ac_ext >&5
5847 ac_header_compiler
=no
5849 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5850 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5851 echo "${ECHO_T}$ac_header_compiler" >&6
5853 # Is the header present?
5854 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5855 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5856 cat >conftest.
$ac_ext <<_ACEOF
5859 cat confdefs.h
>>conftest.
$ac_ext
5860 cat >>conftest.
$ac_ext <<_ACEOF
5861 /* end confdefs.h. */
5862 #include <$ac_header>
5864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5865 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5867 grep -v '^ *+' conftest.er1
>conftest.err
5869 cat conftest.err
>&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } >/dev
/null
; then
5872 if test -s conftest.err
; then
5873 ac_cpp_err
=$ac_c_preproc_warn_flag
5874 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5881 if test -z "$ac_cpp_err"; then
5882 ac_header_preproc
=yes
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.
$ac_ext >&5
5887 ac_header_preproc
=no
5889 rm -f conftest.err conftest.
$ac_ext
5890 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5891 echo "${ECHO_T}$ac_header_preproc" >&6
5893 # So? What about this header?
5894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5899 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5900 ac_header_preproc
=yes
5903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5906 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5907 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5908 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5909 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5910 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5913 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5914 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5917 ## ------------------------------------------ ##
5918 ## Report this to the AC_PACKAGE_NAME lists. ##
5919 ## ------------------------------------------ ##
5922 sed "s/^/$as_me: WARNING: /" >&2
5925 echo "$as_me:$LINENO: checking for $ac_header" >&5
5926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
5930 eval "$as_ac_Header=\$ac_header_preproc"
5932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5937 cat >>confdefs.h
<<_ACEOF
5938 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5946 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5947 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5948 cat >conftest.
$ac_ext <<_ACEOF
5951 cat confdefs.h
>>conftest.
$ac_ext
5952 cat >>conftest.
$ac_ext <<_ACEOF
5953 /* end confdefs.h. */
5954 #include <sys/personality.h>
5958 personality (PER_LINUX32)
5963 rm -f conftest.
$ac_objext
5964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5965 (eval $ac_compile) 2>conftest.er1
5967 grep -v '^ *+' conftest.er1
>conftest.err
5969 cat conftest.err
>&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); } &&
5972 { ac_try
='test -z "$ac_c_werror_flag"
5973 || test ! -s conftest.err'
5974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); }; } &&
5979 { ac_try
='test -s conftest.$ac_objext'
5980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); }; }; then
5985 emacs_cv_personality_linux32
=yes
5987 echo "$as_me: failed program was:" >&5
5988 sed 's/^/| /' conftest.
$ac_ext >&5
5990 emacs_cv_personality_linux32
=no
5992 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5993 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5994 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5996 if test $emacs_cv_personality_linux32 = yes; then
5998 cat >>confdefs.h
<<\_ACEOF
5999 #define HAVE_PERSONALITY_LINUX32 1
6005 for ac_header
in term.h
6007 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6008 echo "$as_me:$LINENO: checking for $ac_header" >&5
6009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 cat >conftest.
$ac_ext <<_ACEOF
6016 cat confdefs.h
>>conftest.
$ac_ext
6017 cat >>conftest.
$ac_ext <<_ACEOF
6018 /* end confdefs.h. */
6019 #include <$ac_header>
6021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6022 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6024 grep -v '^ *+' conftest.er1
>conftest.err
6026 cat conftest.err
>&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } >/dev
/null
; then
6029 if test -s conftest.err
; then
6030 ac_cpp_err
=$ac_c_preproc_warn_flag
6031 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6038 if test -z "$ac_cpp_err"; then
6039 eval "$as_ac_Header=yes"
6041 echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.
$ac_ext >&5
6044 eval "$as_ac_Header=no"
6046 rm -f conftest.err conftest.
$ac_ext
6048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6051 cat >>confdefs.h
<<_ACEOF
6052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6059 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6060 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6061 if test "${ac_cv_header_stdc+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6064 cat >conftest.
$ac_ext <<_ACEOF
6067 cat confdefs.h
>>conftest.
$ac_ext
6068 cat >>conftest.
$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6083 rm -f conftest.
$ac_objext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6085 (eval $ac_compile) 2>conftest.er1
6087 grep -v '^ *+' conftest.er1
>conftest.err
6089 cat conftest.err
>&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } &&
6092 { ac_try
='test -z "$ac_c_werror_flag"
6093 || test ! -s conftest.err'
6094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); }; } &&
6099 { ac_try
='test -s conftest.$ac_objext'
6100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); }; }; then
6105 ac_cv_header_stdc
=yes
6107 echo "$as_me: failed program was:" >&5
6108 sed 's/^/| /' conftest.
$ac_ext >&5
6110 ac_cv_header_stdc
=no
6112 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6114 if test $ac_cv_header_stdc = yes; then
6115 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6116 cat >conftest.
$ac_ext <<_ACEOF
6119 cat confdefs.h
>>conftest.
$ac_ext
6120 cat >>conftest.
$ac_ext <<_ACEOF
6121 /* end confdefs.h. */
6125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6126 $EGREP "memchr" >/dev
/null
2>&1; then
6129 ac_cv_header_stdc
=no
6135 if test $ac_cv_header_stdc = yes; then
6136 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6137 cat >conftest.
$ac_ext <<_ACEOF
6140 cat confdefs.h
>>conftest.
$ac_ext
6141 cat >>conftest.
$ac_ext <<_ACEOF
6142 /* end confdefs.h. */
6146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6147 $EGREP "free" >/dev
/null
2>&1; then
6150 ac_cv_header_stdc
=no
6156 if test $ac_cv_header_stdc = yes; then
6157 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6158 if test "$cross_compiling" = yes; then
6161 cat >conftest.
$ac_ext <<_ACEOF
6164 cat confdefs.h
>>conftest.
$ac_ext
6165 cat >>conftest.
$ac_ext <<_ACEOF
6166 /* end confdefs.h. */
6168 #if ((' ' & 0x0FF) == 0x020)
6169 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6170 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6172 # define ISLOWER(c) \
6173 (('a' <= (c) && (c) <= 'i') \
6174 || ('j' <= (c) && (c) <= 'r') \
6175 || ('s' <= (c) && (c) <= 'z'))
6176 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6179 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6184 for (i = 0; i < 256; i++)
6185 if (XOR (islower (i), ISLOWER (i))
6186 || toupper (i) != TOUPPER (i))
6191 rm -f conftest
$ac_exeext
6192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6193 (eval $ac_link) 2>&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; }; then
6204 echo "$as_me: program exited with status $ac_status" >&5
6205 echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.
$ac_ext >&5
6209 ac_cv_header_stdc
=no
6211 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6215 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6216 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6217 if test $ac_cv_header_stdc = yes; then
6219 cat >>confdefs.h
<<\_ACEOF
6220 #define STDC_HEADERS 1
6225 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6226 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6227 if test "${ac_cv_header_time+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6230 cat >conftest.
$ac_ext <<_ACEOF
6233 cat confdefs.h
>>conftest.
$ac_ext
6234 cat >>conftest.
$ac_ext <<_ACEOF
6235 /* end confdefs.h. */
6236 #include <sys/types.h>
6237 #include <sys/time.h>
6243 if ((struct tm *) 0)
6249 rm -f conftest.
$ac_objext
6250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6251 (eval $ac_compile) 2>conftest.er1
6253 grep -v '^ *+' conftest.er1
>conftest.err
6255 cat conftest.err
>&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } &&
6258 { ac_try
='test -z "$ac_c_werror_flag"
6259 || test ! -s conftest.err'
6260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; } &&
6265 { ac_try
='test -s conftest.$ac_objext'
6266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }; }; then
6271 ac_cv_header_time
=yes
6273 echo "$as_me: failed program was:" >&5
6274 sed 's/^/| /' conftest.
$ac_ext >&5
6276 ac_cv_header_time
=no
6278 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6280 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6281 echo "${ECHO_T}$ac_cv_header_time" >&6
6282 if test $ac_cv_header_time = yes; then
6284 cat >>confdefs.h
<<\_ACEOF
6285 #define TIME_WITH_SYS_TIME 1
6290 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6291 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6292 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6295 cat >conftest.
$ac_ext <<_ACEOF
6298 cat confdefs.h
>>conftest.
$ac_ext
6299 cat >>conftest.
$ac_ext <<_ACEOF
6300 /* end confdefs.h. */
6301 $ac_includes_default
6306 char *p = (char *) sys_siglist;
6313 rm -f conftest.
$ac_objext
6314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6315 (eval $ac_compile) 2>conftest.er1
6317 grep -v '^ *+' conftest.er1
>conftest.err
6319 cat conftest.err
>&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); } &&
6322 { ac_try
='test -z "$ac_c_werror_flag"
6323 || test ! -s conftest.err'
6324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; } &&
6329 { ac_try
='test -s conftest.$ac_objext'
6330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }; }; then
6335 ac_cv_have_decl_sys_siglist
=yes
6337 echo "$as_me: failed program was:" >&5
6338 sed 's/^/| /' conftest.
$ac_ext >&5
6340 ac_cv_have_decl_sys_siglist
=no
6342 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6344 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6345 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6346 if test $ac_cv_have_decl_sys_siglist = yes; then
6348 cat >>confdefs.h
<<_ACEOF
6349 #define HAVE_DECL_SYS_SIGLIST 1
6354 cat >>confdefs.h
<<_ACEOF
6355 #define HAVE_DECL_SYS_SIGLIST 0
6362 if test $ac_cv_have_decl_sys_siglist != yes; then
6363 # For Tru64, at least:
6364 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6365 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6366 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6367 echo $ECHO_N "(cached) $ECHO_C" >&6
6369 cat >conftest.
$ac_ext <<_ACEOF
6372 cat confdefs.h
>>conftest.
$ac_ext
6373 cat >>conftest.
$ac_ext <<_ACEOF
6374 /* end confdefs.h. */
6375 $ac_includes_default
6379 #ifndef __sys_siglist
6380 char *p = (char *) __sys_siglist;
6387 rm -f conftest.
$ac_objext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389 (eval $ac_compile) 2>conftest.er1
6391 grep -v '^ *+' conftest.er1
>conftest.err
6393 cat conftest.err
>&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } &&
6396 { ac_try
='test -z "$ac_c_werror_flag"
6397 || test ! -s conftest.err'
6398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; } &&
6403 { ac_try
='test -s conftest.$ac_objext'
6404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); }; }; then
6409 ac_cv_have_decl___sys_siglist
=yes
6411 echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.
$ac_ext >&5
6414 ac_cv_have_decl___sys_siglist
=no
6416 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6418 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6419 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6420 if test $ac_cv_have_decl___sys_siglist = yes; then
6422 cat >>confdefs.h
<<_ACEOF
6423 #define HAVE_DECL___SYS_SIGLIST 1
6428 cat >>confdefs.h
<<_ACEOF
6429 #define HAVE_DECL___SYS_SIGLIST 0
6436 if test $ac_cv_have_decl___sys_siglist = yes; then
6438 cat >>confdefs.h
<<\_ACEOF
6439 #define sys_siglist __sys_siglist
6444 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6445 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6446 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6449 cat >conftest.
$ac_ext <<_ACEOF
6452 cat confdefs.h
>>conftest.
$ac_ext
6453 cat >>conftest.
$ac_ext <<_ACEOF
6454 /* end confdefs.h. */
6455 #include <sys/types.h>
6456 #include <sys/wait.h>
6458 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6461 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6469 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6474 rm -f conftest.
$ac_objext
6475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6476 (eval $ac_compile) 2>conftest.er1
6478 grep -v '^ *+' conftest.er1
>conftest.err
6480 cat conftest.err
>&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); } &&
6483 { ac_try
='test -z "$ac_c_werror_flag"
6484 || test ! -s conftest.err'
6485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); }; } &&
6490 { ac_try
='test -s conftest.$ac_objext'
6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; }; then
6496 ac_cv_header_sys_wait_h
=yes
6498 echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.
$ac_ext >&5
6501 ac_cv_header_sys_wait_h
=no
6503 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6505 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6506 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6507 if test $ac_cv_header_sys_wait_h = yes; then
6509 cat >>confdefs.h
<<\_ACEOF
6510 #define HAVE_SYS_WAIT_H 1
6516 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6517 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6518 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 cat >conftest.
$ac_ext <<_ACEOF
6524 cat confdefs.h
>>conftest.
$ac_ext
6525 cat >>conftest.
$ac_ext <<_ACEOF
6526 /* end confdefs.h. */
6527 #ifdef TIME_WITH_SYS_TIME
6528 #include <sys/time.h>
6531 #ifdef HAVE_SYS_TIME_H
6532 #include <sys/time.h>
6543 static struct utimbuf x; x.actime = x.modtime;
6548 rm -f conftest.
$ac_objext
6549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6550 (eval $ac_compile) 2>conftest.er1
6552 grep -v '^ *+' conftest.er1
>conftest.err
6554 cat conftest.err
>&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); } &&
6557 { ac_try
='test -z "$ac_c_werror_flag"
6558 || test ! -s conftest.err'
6559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; } &&
6564 { ac_try
='test -s conftest.$ac_objext'
6565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); }; }; then
6570 emacs_cv_struct_utimbuf
=yes
6572 echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.
$ac_ext >&5
6575 emacs_cv_struct_utimbuf
=no
6577 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6579 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6580 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6581 if test $emacs_cv_struct_utimbuf = yes; then
6583 cat >>confdefs.h
<<\_ACEOF
6584 #define HAVE_STRUCT_UTIMBUF 1
6589 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6590 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6591 if test "${ac_cv_type_signal+set}" = set; then
6592 echo $ECHO_N "(cached) $ECHO_C" >&6
6594 cat >conftest.
$ac_ext <<_ACEOF
6597 cat confdefs.h
>>conftest.
$ac_ext
6598 cat >>conftest.
$ac_ext <<_ACEOF
6599 /* end confdefs.h. */
6600 #include <sys/types.h>
6606 extern "C" void (*signal (int, void (*)(int)))(int);
6608 void (*signal ()) ();
6619 rm -f conftest.
$ac_objext
6620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6621 (eval $ac_compile) 2>conftest.er1
6623 grep -v '^ *+' conftest.er1
>conftest.err
6625 cat conftest.err
>&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } &&
6628 { ac_try
='test -z "$ac_c_werror_flag"
6629 || test ! -s conftest.err'
6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; } &&
6635 { ac_try
='test -s conftest.$ac_objext'
6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; }; then
6641 ac_cv_type_signal
=void
6643 echo "$as_me: failed program was:" >&5
6644 sed 's/^/| /' conftest.
$ac_ext >&5
6646 ac_cv_type_signal
=int
6648 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6650 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6651 echo "${ECHO_T}$ac_cv_type_signal" >&6
6653 cat >>confdefs.h
<<_ACEOF
6654 #define RETSIGTYPE $ac_cv_type_signal
6659 echo "$as_me:$LINENO: checking for speed_t" >&5
6660 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6661 if test "${emacs_cv_speed_t+set}" = set; then
6662 echo $ECHO_N "(cached) $ECHO_C" >&6
6664 cat >conftest.
$ac_ext <<_ACEOF
6667 cat confdefs.h
>>conftest.
$ac_ext
6668 cat >>conftest.
$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6670 #include <termios.h>
6679 rm -f conftest.
$ac_objext
6680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6681 (eval $ac_compile) 2>conftest.er1
6683 grep -v '^ *+' conftest.er1
>conftest.err
6685 cat conftest.err
>&5
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); } &&
6688 { ac_try
='test -z "$ac_c_werror_flag"
6689 || test ! -s conftest.err'
6690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); }; } &&
6695 { ac_try
='test -s conftest.$ac_objext'
6696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); }; }; then
6701 emacs_cv_speed_t
=yes
6703 echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.
$ac_ext >&5
6708 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6710 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6711 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6712 if test $emacs_cv_speed_t = yes; then
6714 cat >>confdefs.h
<<\_ACEOF
6715 #define HAVE_SPEED_T 1
6720 echo "$as_me:$LINENO: checking for struct timeval" >&5
6721 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6722 if test "${emacs_cv_struct_timeval+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 cat >conftest.
$ac_ext <<_ACEOF
6728 cat confdefs.h
>>conftest.
$ac_ext
6729 cat >>conftest.
$ac_ext <<_ACEOF
6730 /* end confdefs.h. */
6731 #ifdef TIME_WITH_SYS_TIME
6732 #include <sys/time.h>
6735 #ifdef HAVE_SYS_TIME_H
6736 #include <sys/time.h>
6744 static struct timeval x; x.tv_sec = x.tv_usec;
6749 rm -f conftest.
$ac_objext
6750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6751 (eval $ac_compile) 2>conftest.er1
6753 grep -v '^ *+' conftest.er1
>conftest.err
6755 cat conftest.err
>&5
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); } &&
6758 { ac_try
='test -z "$ac_c_werror_flag"
6759 || test ! -s conftest.err'
6760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); }; } &&
6765 { ac_try
='test -s conftest.$ac_objext'
6766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); }; }; then
6771 emacs_cv_struct_timeval
=yes
6773 echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.
$ac_ext >&5
6776 emacs_cv_struct_timeval
=no
6778 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6780 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6781 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6782 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6783 if test $emacs_cv_struct_timeval = yes; then
6785 cat >>confdefs.h
<<\_ACEOF
6786 #define HAVE_TIMEVAL 1
6791 echo "$as_me:$LINENO: checking for struct exception" >&5
6792 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6793 if test "${emacs_cv_struct_exception+set}" = set; then
6794 echo $ECHO_N "(cached) $ECHO_C" >&6
6796 cat >conftest.
$ac_ext <<_ACEOF
6799 cat confdefs.h
>>conftest.
$ac_ext
6800 cat >>conftest.
$ac_ext <<_ACEOF
6801 /* end confdefs.h. */
6806 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6811 rm -f conftest.
$ac_objext
6812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6813 (eval $ac_compile) 2>conftest.er1
6815 grep -v '^ *+' conftest.er1
>conftest.err
6817 cat conftest.err
>&5
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); } &&
6820 { ac_try
='test -z "$ac_c_werror_flag"
6821 || test ! -s conftest.err'
6822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); }; } &&
6827 { ac_try
='test -s conftest.$ac_objext'
6828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); }; }; then
6833 emacs_cv_struct_exception
=yes
6835 echo "$as_me: failed program was:" >&5
6836 sed 's/^/| /' conftest.
$ac_ext >&5
6838 emacs_cv_struct_exception
=no
6840 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6842 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6843 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6844 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6845 if test $emacs_cv_struct_exception != yes; then
6847 cat >>confdefs.h
<<\_ACEOF
6848 #define NO_MATHERR 1
6854 for ac_header
in sys
/socket.h
6856 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6858 echo "$as_me:$LINENO: checking for $ac_header" >&5
6859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6866 # Is the header compilable?
6867 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6868 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6869 cat >conftest.
$ac_ext <<_ACEOF
6872 cat confdefs.h
>>conftest.
$ac_ext
6873 cat >>conftest.
$ac_ext <<_ACEOF
6874 /* end confdefs.h. */
6875 $ac_includes_default
6876 #include <$ac_header>
6878 rm -f conftest.
$ac_objext
6879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6880 (eval $ac_compile) 2>conftest.er1
6882 grep -v '^ *+' conftest.er1
>conftest.err
6884 cat conftest.err
>&5
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); } &&
6887 { ac_try
='test -z "$ac_c_werror_flag"
6888 || test ! -s conftest.err'
6889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); }; } &&
6894 { ac_try
='test -s conftest.$ac_objext'
6895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); }; }; then
6900 ac_header_compiler
=yes
6902 echo "$as_me: failed program was:" >&5
6903 sed 's/^/| /' conftest.
$ac_ext >&5
6905 ac_header_compiler
=no
6907 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6908 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6909 echo "${ECHO_T}$ac_header_compiler" >&6
6911 # Is the header present?
6912 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6914 cat >conftest.
$ac_ext <<_ACEOF
6917 cat confdefs.h
>>conftest.
$ac_ext
6918 cat >>conftest.
$ac_ext <<_ACEOF
6919 /* end confdefs.h. */
6920 #include <$ac_header>
6922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6923 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6925 grep -v '^ *+' conftest.er1
>conftest.err
6927 cat conftest.err
>&5
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); } >/dev
/null
; then
6930 if test -s conftest.err
; then
6931 ac_cpp_err
=$ac_c_preproc_warn_flag
6932 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6939 if test -z "$ac_cpp_err"; then
6940 ac_header_preproc
=yes
6942 echo "$as_me: failed program was:" >&5
6943 sed 's/^/| /' conftest.
$ac_ext >&5
6945 ac_header_preproc
=no
6947 rm -f conftest.err conftest.
$ac_ext
6948 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6949 echo "${ECHO_T}$ac_header_preproc" >&6
6951 # So? What about this header?
6952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6954 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6955 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6957 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6958 ac_header_preproc
=yes
6961 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6962 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6963 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6964 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6965 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6966 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6967 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6968 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6970 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6971 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6972 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6975 ## ------------------------------------------ ##
6976 ## Report this to the AC_PACKAGE_NAME lists. ##
6977 ## ------------------------------------------ ##
6980 sed "s/^/$as_me: WARNING: /" >&2
6983 echo "$as_me:$LINENO: checking for $ac_header" >&5
6984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 eval "$as_ac_Header=\$ac_header_preproc"
6990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6995 cat >>confdefs.h
<<_ACEOF
6996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7004 for ac_header
in net
/if.h
7006 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7007 echo "$as_me:$LINENO: checking for $ac_header" >&5
7008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7012 cat >conftest.
$ac_ext <<_ACEOF
7015 cat confdefs.h
>>conftest.
$ac_ext
7016 cat >>conftest.
$ac_ext <<_ACEOF
7017 /* end confdefs.h. */
7018 $ac_includes_default
7019 #if HAVE_SYS_SOCKET_H
7020 #include <sys/socket.h>
7023 #include <$ac_header>
7025 rm -f conftest.
$ac_objext
7026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7027 (eval $ac_compile) 2>conftest.er1
7029 grep -v '^ *+' conftest.er1
>conftest.err
7031 cat conftest.err
>&5
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } &&
7034 { ac_try
='test -z "$ac_c_werror_flag"
7035 || test ! -s conftest.err'
7036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); }; } &&
7041 { ac_try
='test -s conftest.$ac_objext'
7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; }; then
7047 eval "$as_ac_Header=yes"
7049 echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.
$ac_ext >&5
7052 eval "$as_ac_Header=no"
7054 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7059 cat >>confdefs.h
<<_ACEOF
7060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7068 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7069 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7070 if test "${ac_cv_struct_tm+set}" = set; then
7071 echo $ECHO_N "(cached) $ECHO_C" >&6
7073 cat >conftest.
$ac_ext <<_ACEOF
7076 cat confdefs.h
>>conftest.
$ac_ext
7077 cat >>conftest.
$ac_ext <<_ACEOF
7078 /* end confdefs.h. */
7079 #include <sys/types.h>
7085 struct tm *tp; tp->tm_sec;
7090 rm -f conftest.
$ac_objext
7091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7092 (eval $ac_compile) 2>conftest.er1
7094 grep -v '^ *+' conftest.er1
>conftest.err
7096 cat conftest.err
>&5
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); } &&
7099 { ac_try
='test -z "$ac_c_werror_flag"
7100 || test ! -s conftest.err'
7101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); }; } &&
7106 { ac_try
='test -s conftest.$ac_objext'
7107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); }; }; then
7112 ac_cv_struct_tm
=time.h
7114 echo "$as_me: failed program was:" >&5
7115 sed 's/^/| /' conftest.
$ac_ext >&5
7117 ac_cv_struct_tm
=sys
/time.h
7119 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7121 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7122 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7123 if test $ac_cv_struct_tm = sys
/time.h
; then
7125 cat >>confdefs.h
<<\_ACEOF
7126 #define TM_IN_SYS_TIME 1
7131 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7132 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
7133 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7136 cat >conftest.
$ac_ext <<_ACEOF
7139 cat confdefs.h
>>conftest.
$ac_ext
7140 cat >>conftest.
$ac_ext <<_ACEOF
7141 /* end confdefs.h. */
7142 #include <sys/types.h>
7143 #include <$ac_cv_struct_tm>
7149 static struct tm ac_aggr;
7150 if (ac_aggr.tm_zone)
7156 rm -f conftest.
$ac_objext
7157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7158 (eval $ac_compile) 2>conftest.er1
7160 grep -v '^ *+' conftest.er1
>conftest.err
7162 cat conftest.err
>&5
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); } &&
7165 { ac_try
='test -z "$ac_c_werror_flag"
7166 || test ! -s conftest.err'
7167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; } &&
7172 { ac_try
='test -s conftest.$ac_objext'
7173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); }; }; then
7178 ac_cv_member_struct_tm_tm_zone
=yes
7180 echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.
$ac_ext >&5
7183 cat >conftest.
$ac_ext <<_ACEOF
7186 cat confdefs.h
>>conftest.
$ac_ext
7187 cat >>conftest.
$ac_ext <<_ACEOF
7188 /* end confdefs.h. */
7189 #include <sys/types.h>
7190 #include <$ac_cv_struct_tm>
7196 static struct tm ac_aggr;
7197 if (sizeof ac_aggr.tm_zone)
7203 rm -f conftest.
$ac_objext
7204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7205 (eval $ac_compile) 2>conftest.er1
7207 grep -v '^ *+' conftest.er1
>conftest.err
7209 cat conftest.err
>&5
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); } &&
7212 { ac_try
='test -z "$ac_c_werror_flag"
7213 || test ! -s conftest.err'
7214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); }; } &&
7219 { ac_try
='test -s conftest.$ac_objext'
7220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); }; }; then
7225 ac_cv_member_struct_tm_tm_zone
=yes
7227 echo "$as_me: failed program was:" >&5
7228 sed 's/^/| /' conftest.
$ac_ext >&5
7230 ac_cv_member_struct_tm_tm_zone
=no
7232 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7234 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7236 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7237 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7238 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7240 cat >>confdefs.h
<<_ACEOF
7241 #define HAVE_STRUCT_TM_TM_ZONE 1
7247 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7249 cat >>confdefs.h
<<\_ACEOF
7250 #define HAVE_TM_ZONE 1
7254 echo "$as_me:$LINENO: checking for tzname" >&5
7255 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7256 if test "${ac_cv_var_tzname+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7259 cat >conftest.
$ac_ext <<_ACEOF
7262 cat confdefs.h
>>conftest.
$ac_ext
7263 cat >>conftest.
$ac_ext <<_ACEOF
7264 /* end confdefs.h. */
7266 #ifndef tzname /* For SGI. */
7267 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7278 rm -f conftest.
$ac_objext conftest
$ac_exeext
7279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7280 (eval $ac_link) 2>conftest.er1
7282 grep -v '^ *+' conftest.er1
>conftest.err
7284 cat conftest.err
>&5
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); } &&
7287 { ac_try
='test -z "$ac_c_werror_flag"
7288 || test ! -s conftest.err'
7289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); }; } &&
7294 { ac_try
='test -s conftest$ac_exeext'
7295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); }; }; then
7300 ac_cv_var_tzname
=yes
7302 echo "$as_me: failed program was:" >&5
7303 sed 's/^/| /' conftest.
$ac_ext >&5
7307 rm -f conftest.err conftest.
$ac_objext \
7308 conftest
$ac_exeext conftest.
$ac_ext
7310 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7311 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7312 if test $ac_cv_var_tzname = yes; then
7314 cat >>confdefs.h
<<\_ACEOF
7315 #define HAVE_TZNAME 1
7321 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7322 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7323 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 cat >conftest.
$ac_ext <<_ACEOF
7329 cat confdefs.h
>>conftest.
$ac_ext
7330 cat >>conftest.
$ac_ext <<_ACEOF
7331 /* end confdefs.h. */
7337 static struct tm ac_aggr;
7338 if (ac_aggr.tm_gmtoff)
7344 rm -f conftest.
$ac_objext
7345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7346 (eval $ac_compile) 2>conftest.er1
7348 grep -v '^ *+' conftest.er1
>conftest.err
7350 cat conftest.err
>&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } &&
7353 { ac_try
='test -z "$ac_c_werror_flag"
7354 || test ! -s conftest.err'
7355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); }; } &&
7360 { ac_try
='test -s conftest.$ac_objext'
7361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); }; }; then
7366 ac_cv_member_struct_tm_tm_gmtoff
=yes
7368 echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.
$ac_ext >&5
7371 cat >conftest.
$ac_ext <<_ACEOF
7374 cat confdefs.h
>>conftest.
$ac_ext
7375 cat >>conftest.
$ac_ext <<_ACEOF
7376 /* end confdefs.h. */
7382 static struct tm ac_aggr;
7383 if (sizeof ac_aggr.tm_gmtoff)
7389 rm -f conftest.
$ac_objext
7390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7391 (eval $ac_compile) 2>conftest.er1
7393 grep -v '^ *+' conftest.er1
>conftest.err
7395 cat conftest.err
>&5
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); } &&
7398 { ac_try
='test -z "$ac_c_werror_flag"
7399 || test ! -s conftest.err'
7400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); }; } &&
7405 { ac_try
='test -s conftest.$ac_objext'
7406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); }; }; then
7411 ac_cv_member_struct_tm_tm_gmtoff
=yes
7413 echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.
$ac_ext >&5
7416 ac_cv_member_struct_tm_tm_gmtoff
=no
7418 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7420 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7422 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7423 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7424 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7426 cat >>confdefs.h
<<\_ACEOF
7427 #define HAVE_TM_GMTOFF 1
7432 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7433 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7434 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7437 cat >conftest.
$ac_ext <<_ACEOF
7440 cat confdefs.h
>>conftest.
$ac_ext
7441 cat >>conftest.
$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7443 $ac_includes_default
7444 #if HAVE_SYS_SOCKET_H
7445 #include <sys/socket.h>
7454 static struct ifreq ac_aggr;
7455 if (ac_aggr.ifr_flags)
7461 rm -f conftest.
$ac_objext
7462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7463 (eval $ac_compile) 2>conftest.er1
7465 grep -v '^ *+' conftest.er1
>conftest.err
7467 cat conftest.err
>&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } &&
7470 { ac_try
='test -z "$ac_c_werror_flag"
7471 || test ! -s conftest.err'
7472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); }; } &&
7477 { ac_try
='test -s conftest.$ac_objext'
7478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); }; }; then
7483 ac_cv_member_struct_ifreq_ifr_flags
=yes
7485 echo "$as_me: failed program was:" >&5
7486 sed 's/^/| /' conftest.
$ac_ext >&5
7488 cat >conftest.
$ac_ext <<_ACEOF
7491 cat confdefs.h
>>conftest.
$ac_ext
7492 cat >>conftest.
$ac_ext <<_ACEOF
7493 /* end confdefs.h. */
7494 $ac_includes_default
7495 #if HAVE_SYS_SOCKET_H
7496 #include <sys/socket.h>
7505 static struct ifreq ac_aggr;
7506 if (sizeof ac_aggr.ifr_flags)
7512 rm -f conftest.
$ac_objext
7513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7514 (eval $ac_compile) 2>conftest.er1
7516 grep -v '^ *+' conftest.er1
>conftest.err
7518 cat conftest.err
>&5
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); } &&
7521 { ac_try
='test -z "$ac_c_werror_flag"
7522 || test ! -s conftest.err'
7523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); }; } &&
7528 { ac_try
='test -s conftest.$ac_objext'
7529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); }; }; then
7534 ac_cv_member_struct_ifreq_ifr_flags
=yes
7536 echo "$as_me: failed program was:" >&5
7537 sed 's/^/| /' conftest.
$ac_ext >&5
7539 ac_cv_member_struct_ifreq_ifr_flags
=no
7541 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7543 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7545 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7546 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7547 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7549 cat >>confdefs.h
<<_ACEOF
7550 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7555 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7556 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7557 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7560 cat >conftest.
$ac_ext <<_ACEOF
7563 cat confdefs.h
>>conftest.
$ac_ext
7564 cat >>conftest.
$ac_ext <<_ACEOF
7565 /* end confdefs.h. */
7566 $ac_includes_default
7567 #if HAVE_SYS_SOCKET_H
7568 #include <sys/socket.h>
7577 static struct ifreq ac_aggr;
7578 if (ac_aggr.ifr_hwaddr)
7584 rm -f conftest.
$ac_objext
7585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7586 (eval $ac_compile) 2>conftest.er1
7588 grep -v '^ *+' conftest.er1
>conftest.err
7590 cat conftest.err
>&5
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); } &&
7593 { ac_try
='test -z "$ac_c_werror_flag"
7594 || test ! -s conftest.err'
7595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); }; } &&
7600 { ac_try
='test -s conftest.$ac_objext'
7601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }; }; then
7606 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7608 echo "$as_me: failed program was:" >&5
7609 sed 's/^/| /' conftest.
$ac_ext >&5
7611 cat >conftest.
$ac_ext <<_ACEOF
7614 cat confdefs.h
>>conftest.
$ac_ext
7615 cat >>conftest.
$ac_ext <<_ACEOF
7616 /* end confdefs.h. */
7617 $ac_includes_default
7618 #if HAVE_SYS_SOCKET_H
7619 #include <sys/socket.h>
7628 static struct ifreq ac_aggr;
7629 if (sizeof ac_aggr.ifr_hwaddr)
7635 rm -f conftest.
$ac_objext
7636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7637 (eval $ac_compile) 2>conftest.er1
7639 grep -v '^ *+' conftest.er1
>conftest.err
7641 cat conftest.err
>&5
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); } &&
7644 { ac_try
='test -z "$ac_c_werror_flag"
7645 || test ! -s conftest.err'
7646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); }; } &&
7651 { ac_try
='test -s conftest.$ac_objext'
7652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); }; }; then
7657 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7659 echo "$as_me: failed program was:" >&5
7660 sed 's/^/| /' conftest.
$ac_ext >&5
7662 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
7664 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7666 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7668 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7669 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7670 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7672 cat >>confdefs.h
<<_ACEOF
7673 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7678 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7679 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7680 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7683 cat >conftest.
$ac_ext <<_ACEOF
7686 cat confdefs.h
>>conftest.
$ac_ext
7687 cat >>conftest.
$ac_ext <<_ACEOF
7688 /* end confdefs.h. */
7689 $ac_includes_default
7690 #if HAVE_SYS_SOCKET_H
7691 #include <sys/socket.h>
7700 static struct ifreq ac_aggr;
7701 if (ac_aggr.ifr_netmask)
7707 rm -f conftest.
$ac_objext
7708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7709 (eval $ac_compile) 2>conftest.er1
7711 grep -v '^ *+' conftest.er1
>conftest.err
7713 cat conftest.err
>&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); } &&
7716 { ac_try
='test -z "$ac_c_werror_flag"
7717 || test ! -s conftest.err'
7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; } &&
7723 { ac_try
='test -s conftest.$ac_objext'
7724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); }; }; then
7729 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7731 echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.
$ac_ext >&5
7734 cat >conftest.
$ac_ext <<_ACEOF
7737 cat confdefs.h
>>conftest.
$ac_ext
7738 cat >>conftest.
$ac_ext <<_ACEOF
7739 /* end confdefs.h. */
7740 $ac_includes_default
7741 #if HAVE_SYS_SOCKET_H
7742 #include <sys/socket.h>
7751 static struct ifreq ac_aggr;
7752 if (sizeof ac_aggr.ifr_netmask)
7758 rm -f conftest.
$ac_objext
7759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7760 (eval $ac_compile) 2>conftest.er1
7762 grep -v '^ *+' conftest.er1
>conftest.err
7764 cat conftest.err
>&5
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); } &&
7767 { ac_try
='test -z "$ac_c_werror_flag"
7768 || test ! -s conftest.err'
7769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); }; } &&
7774 { ac_try
='test -s conftest.$ac_objext'
7775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); }; }; then
7780 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7782 echo "$as_me: failed program was:" >&5
7783 sed 's/^/| /' conftest.
$ac_ext >&5
7785 ac_cv_member_struct_ifreq_ifr_netmask
=no
7787 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7789 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7791 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7792 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7793 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7795 cat >>confdefs.h
<<_ACEOF
7796 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7801 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7802 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7803 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7806 cat >conftest.
$ac_ext <<_ACEOF
7809 cat confdefs.h
>>conftest.
$ac_ext
7810 cat >>conftest.
$ac_ext <<_ACEOF
7811 /* end confdefs.h. */
7812 $ac_includes_default
7813 #if HAVE_SYS_SOCKET_H
7814 #include <sys/socket.h>
7823 static struct ifreq ac_aggr;
7824 if (ac_aggr.ifr_broadaddr)
7830 rm -f conftest.
$ac_objext
7831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7832 (eval $ac_compile) 2>conftest.er1
7834 grep -v '^ *+' conftest.er1
>conftest.err
7836 cat conftest.err
>&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); } &&
7839 { ac_try
='test -z "$ac_c_werror_flag"
7840 || test ! -s conftest.err'
7841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); }; } &&
7846 { ac_try
='test -s conftest.$ac_objext'
7847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); }; }; then
7852 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7854 echo "$as_me: failed program was:" >&5
7855 sed 's/^/| /' conftest.
$ac_ext >&5
7857 cat >conftest.
$ac_ext <<_ACEOF
7860 cat confdefs.h
>>conftest.
$ac_ext
7861 cat >>conftest.
$ac_ext <<_ACEOF
7862 /* end confdefs.h. */
7863 $ac_includes_default
7864 #if HAVE_SYS_SOCKET_H
7865 #include <sys/socket.h>
7874 static struct ifreq ac_aggr;
7875 if (sizeof ac_aggr.ifr_broadaddr)
7881 rm -f conftest.
$ac_objext
7882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7883 (eval $ac_compile) 2>conftest.er1
7885 grep -v '^ *+' conftest.er1
>conftest.err
7887 cat conftest.err
>&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); } &&
7890 { ac_try
='test -z "$ac_c_werror_flag"
7891 || test ! -s conftest.err'
7892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; } &&
7897 { ac_try
='test -s conftest.$ac_objext'
7898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); }; }; then
7903 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7905 echo "$as_me: failed program was:" >&5
7906 sed 's/^/| /' conftest.
$ac_ext >&5
7908 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7910 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7912 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7914 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7915 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7916 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7918 cat >>confdefs.h
<<_ACEOF
7919 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7924 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7925 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7926 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7929 cat >conftest.
$ac_ext <<_ACEOF
7932 cat confdefs.h
>>conftest.
$ac_ext
7933 cat >>conftest.
$ac_ext <<_ACEOF
7934 /* end confdefs.h. */
7935 $ac_includes_default
7936 #if HAVE_SYS_SOCKET_H
7937 #include <sys/socket.h>
7946 static struct ifreq ac_aggr;
7947 if (ac_aggr.ifr_addr)
7953 rm -f conftest.
$ac_objext
7954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7955 (eval $ac_compile) 2>conftest.er1
7957 grep -v '^ *+' conftest.er1
>conftest.err
7959 cat conftest.err
>&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } &&
7962 { ac_try
='test -z "$ac_c_werror_flag"
7963 || test ! -s conftest.err'
7964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); }; } &&
7969 { ac_try
='test -s conftest.$ac_objext'
7970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); }; }; then
7975 ac_cv_member_struct_ifreq_ifr_addr
=yes
7977 echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.
$ac_ext >&5
7980 cat >conftest.
$ac_ext <<_ACEOF
7983 cat confdefs.h
>>conftest.
$ac_ext
7984 cat >>conftest.
$ac_ext <<_ACEOF
7985 /* end confdefs.h. */
7986 $ac_includes_default
7987 #if HAVE_SYS_SOCKET_H
7988 #include <sys/socket.h>
7997 static struct ifreq ac_aggr;
7998 if (sizeof ac_aggr.ifr_addr)
8004 rm -f conftest.
$ac_objext
8005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8006 (eval $ac_compile) 2>conftest.er1
8008 grep -v '^ *+' conftest.er1
>conftest.err
8010 cat conftest.err
>&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } &&
8013 { ac_try
='test -z "$ac_c_werror_flag"
8014 || test ! -s conftest.err'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; } &&
8020 { ac_try
='test -s conftest.$ac_objext'
8021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; }; then
8026 ac_cv_member_struct_ifreq_ifr_addr
=yes
8028 echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.
$ac_ext >&5
8031 ac_cv_member_struct_ifreq_ifr_addr
=no
8033 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8035 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8037 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8038 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
8039 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8041 cat >>confdefs.h
<<_ACEOF
8042 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8050 echo "$as_me:$LINENO: checking for function prototypes" >&5
8051 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8052 if test "$ac_cv_prog_cc_stdc" != no
; then
8053 echo "$as_me:$LINENO: result: yes" >&5
8054 echo "${ECHO_T}yes" >&6
8056 cat >>confdefs.h
<<\_ACEOF
8057 #define PROTOTYPES 1
8061 cat >>confdefs.h
<<\_ACEOF
8062 #define __PROTOTYPES 1
8066 echo "$as_me:$LINENO: result: no" >&5
8067 echo "${ECHO_T}no" >&6
8070 echo "$as_me:$LINENO: checking for working volatile" >&5
8071 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8072 if test "${ac_cv_c_volatile+set}" = set; then
8073 echo $ECHO_N "(cached) $ECHO_C" >&6
8075 cat >conftest.
$ac_ext <<_ACEOF
8078 cat confdefs.h
>>conftest.
$ac_ext
8079 cat >>conftest.
$ac_ext <<_ACEOF
8080 /* end confdefs.h. */
8092 rm -f conftest.
$ac_objext
8093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8094 (eval $ac_compile) 2>conftest.er1
8096 grep -v '^ *+' conftest.er1
>conftest.err
8098 cat conftest.err
>&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); } &&
8101 { ac_try
='test -z "$ac_c_werror_flag"
8102 || test ! -s conftest.err'
8103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); }; } &&
8108 { ac_try
='test -s conftest.$ac_objext'
8109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); }; }; then
8114 ac_cv_c_volatile
=yes
8116 echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.
$ac_ext >&5
8121 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8123 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8124 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8125 if test $ac_cv_c_volatile = no
; then
8127 cat >>confdefs.h
<<\_ACEOF
8133 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8134 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8135 if test "${ac_cv_c_const+set}" = set; then
8136 echo $ECHO_N "(cached) $ECHO_C" >&6
8138 cat >conftest.
$ac_ext <<_ACEOF
8141 cat confdefs.h
>>conftest.
$ac_ext
8142 cat >>conftest.
$ac_ext <<_ACEOF
8143 /* end confdefs.h. */
8148 /* FIXME: Include the comments suggested by Paul. */
8150 /* Ultrix mips cc rejects this. */
8151 typedef int charset[2];
8153 /* SunOS 4.1.1 cc rejects this. */
8154 char const *const *ccp;
8156 /* NEC SVR4.0.2 mips cc rejects this. */
8157 struct point {int x, y;};
8158 static struct point const zero = {0,0};
8159 /* AIX XL C 1.02.0.0 rejects this.
8160 It does not let you subtract one const X* pointer from another in
8161 an arm of an if-expression whose if-part is not a constant
8163 const char *g = "string";
8164 ccp = &g + (g ? g-g : 0);
8165 /* HPUX 7.0 cc rejects these. */
8168 ccp = (char const *const *) p;
8169 { /* SCO 3.2v4 cc rejects this. */
8171 char const *s = 0 ? (char *) 0 : (char const *) 0;
8175 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8177 const int *foo = &x[0];
8180 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8181 typedef const int *iptr;
8185 { /* AIX XL C 1.02.0.0 rejects this saying
8186 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8187 struct s { int j; const int *ap[3]; };
8188 struct s *b; b->j = 5;
8190 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8199 rm -f conftest.
$ac_objext
8200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8201 (eval $ac_compile) 2>conftest.er1
8203 grep -v '^ *+' conftest.er1
>conftest.err
8205 cat conftest.err
>&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } &&
8208 { ac_try
='test -z "$ac_c_werror_flag"
8209 || test ! -s conftest.err'
8210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); }; } &&
8215 { ac_try
='test -s conftest.$ac_objext'
8216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); }; }; then
8223 echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.
$ac_ext >&5
8228 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8230 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8231 echo "${ECHO_T}$ac_cv_c_const" >&6
8232 if test $ac_cv_c_const = no
; then
8234 cat >>confdefs.h
<<\_ACEOF
8240 echo "$as_me:$LINENO: checking for void * support" >&5
8241 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8242 if test "${emacs_cv_void_star+set}" = set; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
8245 cat >conftest.
$ac_ext <<_ACEOF
8248 cat confdefs.h
>>conftest.
$ac_ext
8249 cat >>conftest.
$ac_ext <<_ACEOF
8250 /* end confdefs.h. */
8260 rm -f conftest.
$ac_objext
8261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8262 (eval $ac_compile) 2>conftest.er1
8264 grep -v '^ *+' conftest.er1
>conftest.err
8266 cat conftest.err
>&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); } &&
8269 { ac_try
='test -z "$ac_c_werror_flag"
8270 || test ! -s conftest.err'
8271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); }; } &&
8276 { ac_try
='test -s conftest.$ac_objext'
8277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); }; }; then
8282 emacs_cv_void_star
=yes
8284 echo "$as_me: failed program was:" >&5
8285 sed 's/^/| /' conftest.
$ac_ext >&5
8287 emacs_cv_void_star
=no
8289 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8291 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8292 echo "${ECHO_T}$emacs_cv_void_star" >&6
8293 if test $emacs_cv_void_star = yes; then
8294 cat >>confdefs.h
<<\_ACEOF
8295 #define POINTER_TYPE void
8299 cat >>confdefs.h
<<\_ACEOF
8300 #define POINTER_TYPE char
8309 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8310 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8311 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
8312 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8313 echo $ECHO_N "(cached) $ECHO_C" >&6
8315 cat >conftest.
make <<\_ACEOF
8317 @
echo 'ac_maketemp="$(MAKE)"'
8319 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8320 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8321 if test -n "$ac_maketemp"; then
8322 eval ac_cv_prog_make_
${ac_make}_set
=yes
8324 eval ac_cv_prog_make_
${ac_make}_set
=no
8328 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8329 echo "$as_me:$LINENO: result: yes" >&5
8330 echo "${ECHO_T}yes" >&6
8333 echo "$as_me:$LINENO: result: no" >&5
8334 echo "${ECHO_T}no" >&6
8335 SET_MAKE
="MAKE=${MAKE-make}"
8339 echo "$as_me:$LINENO: checking for long file names" >&5
8340 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8341 if test "${ac_cv_sys_long_file_names+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8344 ac_cv_sys_long_file_names
=yes
8345 # Test for long file names in all the places we know might matter:
8346 # . the current directory, where building will happen
8347 # $prefix/lib where we will be installing things
8348 # $exec_prefix/lib likewise
8349 # eval it to expand exec_prefix.
8350 # $TMPDIR if set, where it might want to write temporary files
8351 # if $TMPDIR is not set:
8352 # /tmp where it might want to write temporary files
8355 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8358 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
8360 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8361 test -d $ac_dir ||
continue
8362 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
8363 ac_xdir
=$ac_dir/cf$$
8364 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
8365 ac_tf1
=$ac_xdir/conftest9012345
8366 ac_tf2
=$ac_xdir/conftest9012346
8367 (echo 1 >$ac_tf1) 2>/dev
/null
8368 (echo 2 >$ac_tf2) 2>/dev
/null
8369 ac_val
=`cat $ac_tf1 2>/dev/null`
8370 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
8371 ac_cv_sys_long_file_names
=no
8372 rm -rf $ac_xdir 2>/dev
/null
8375 rm -rf $ac_xdir 2>/dev
/null
8378 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8379 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8380 if test $ac_cv_sys_long_file_names = yes; then
8382 cat >>confdefs.h
<<\_ACEOF
8383 #define HAVE_LONG_FILE_NAMES 1
8389 #### Choose a window system.
8391 echo "$as_me:$LINENO: checking for X" >&5
8392 echo $ECHO_N "checking for X... $ECHO_C" >&6
8395 # Check whether --with-x or --without-x was given.
8396 if test "${with_x+set}" = set; then
8400 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8401 if test "x$with_x" = xno
; then
8402 # The user explicitly disabled X.
8405 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
8406 # Both variables are already set.
8409 if test "${ac_cv_have_x+set}" = set; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8412 # One or both of the vars are not set, and there is no cached value.
8413 ac_x_includes
=no ac_x_libraries
=no
8415 if mkdir conftest.dir
; then
8417 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8418 cat >Imakefile
<<'_ACEOF'
8420 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8422 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8423 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8424 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8425 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8426 for ac_extension
in a so sl
; do
8427 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
8428 test -f $ac_im_libdir/libX11.
$ac_extension; then
8429 ac_im_usrlibdir
=$ac_im_libdir; break
8432 # Screen out bogus values from the imake configuration. They are
8433 # bogus both because they are the default anyway, and because
8434 # using them would break gcc on systems where it needs fixed includes.
8435 case $ac_im_incroot in
8437 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8439 case $ac_im_usrlibdir in
8441 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8448 # Standard set of common directories for X headers.
8449 # Check X11 before X11Rn because it is often a symlink to the current release.
8461 /usr/local/X11/include
8462 /usr/local/X11R6/include
8463 /usr/local/X11R5/include
8464 /usr/local/X11R4/include
8466 /usr/local/include/X11
8467 /usr/local/include/X11R6
8468 /usr/local/include/X11R5
8469 /usr/local/include/X11R4
8473 /usr/XFree86/include/X11
8477 /usr/unsupported/include
8479 /usr/local/x11r5/include
8480 /usr/lpp/Xamples/include
8482 /usr/openwin/include
8483 /usr/openwin/share/include'
8485 if test "$ac_x_includes" = no
; then
8486 # Guess where to find include files, by looking for Intrinsic.h.
8487 # First, try using that file with no special directory specified.
8488 cat >conftest.
$ac_ext <<_ACEOF
8491 cat confdefs.h
>>conftest.
$ac_ext
8492 cat >>conftest.
$ac_ext <<_ACEOF
8493 /* end confdefs.h. */
8494 #include <X11/Intrinsic.h>
8496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8497 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8499 grep -v '^ *+' conftest.er1
>conftest.err
8501 cat conftest.err
>&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); } >/dev
/null
; then
8504 if test -s conftest.err
; then
8505 ac_cpp_err
=$ac_c_preproc_warn_flag
8506 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8513 if test -z "$ac_cpp_err"; then
8514 # We can compile using X headers with no special include directory.
8517 echo "$as_me: failed program was:" >&5
8518 sed 's/^/| /' conftest.
$ac_ext >&5
8520 for ac_dir
in $ac_x_header_dirs; do
8521 if test -r "$ac_dir/X11/Intrinsic.h"; then
8522 ac_x_includes
=$ac_dir
8527 rm -f conftest.err conftest.
$ac_ext
8528 fi # $ac_x_includes = no
8530 if test "$ac_x_libraries" = no
; then
8531 # Check for the libraries.
8532 # See if we find them without any special options.
8533 # Don't add to $LIBS permanently.
8536 cat >conftest.
$ac_ext <<_ACEOF
8539 cat confdefs.h
>>conftest.
$ac_ext
8540 cat >>conftest.
$ac_ext <<_ACEOF
8541 /* end confdefs.h. */
8542 #include <X11/Intrinsic.h>
8551 rm -f conftest.
$ac_objext conftest
$ac_exeext
8552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8553 (eval $ac_link) 2>conftest.er1
8555 grep -v '^ *+' conftest.er1
>conftest.err
8557 cat conftest.err
>&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } &&
8560 { ac_try
='test -z "$ac_c_werror_flag"
8561 || test ! -s conftest.err'
8562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; } &&
8567 { ac_try
='test -s conftest$ac_exeext'
8568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); }; }; then
8574 # We can link X programs with no special library path.
8577 echo "$as_me: failed program was:" >&5
8578 sed 's/^/| /' conftest.
$ac_ext >&5
8581 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8583 # Don't even attempt the hair of trying to link an X program!
8584 for ac_extension
in a so sl
; do
8585 if test -r $ac_dir/libXt.
$ac_extension; then
8586 ac_x_libraries
=$ac_dir
8592 rm -f conftest.err conftest.
$ac_objext \
8593 conftest
$ac_exeext conftest.
$ac_ext
8594 fi # $ac_x_libraries = no
8596 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8597 # Didn't find X anywhere. Cache the known absence of X.
8598 ac_cv_have_x
="have_x=no"
8600 # Record where we found X for the cache.
8601 ac_cv_have_x
="have_x=yes \
8602 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8607 eval "$ac_cv_have_x"
8610 if test "$have_x" != yes; then
8611 echo "$as_me:$LINENO: result: $have_x" >&5
8612 echo "${ECHO_T}$have_x" >&6
8615 # If each of the values was on the command line, it overrides each guess.
8616 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8617 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8618 # Update the cache value to reflect the command line values.
8619 ac_cv_have_x
="have_x=yes \
8620 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8621 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8622 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8625 if test "$no_x" = yes; then
8631 if test "${x_libraries}" != NONE
; then
8632 if test -n "${x_libraries}"; then
8633 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8634 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8636 x_default_search_path
=""
8637 x_search_path
=${x_libraries}
8638 if test -z "${x_search_path}"; then
8639 x_search_path
=/usr
/lib
8641 for x_library
in `echo ${x_search_path}: | \
8642 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8644 ${x_library}/X11/%L/%T/%N%C%S:\
8645 ${x_library}/X11/%l/%T/%N%C%S:\
8646 ${x_library}/X11/%T/%N%C%S:\
8647 ${x_library}/X11/%L/%T/%N%S:\
8648 ${x_library}/X11/%l/%T/%N%S:\
8649 ${x_library}/X11/%T/%N%S"
8650 if test x
"${x_default_search_path}" = x
; then
8651 x_default_search_path
=${x_search_path}
8653 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8657 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8658 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8661 if test x
"${x_includes}" = x
; then
8662 bitmapdir
=/usr
/include
/X11
/bitmaps
8664 # accumulate include directories that have X11 bitmap subdirectories
8666 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8667 if test -d "${bmd}/X11/bitmaps"; then
8668 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8670 if test -d "${bmd}/bitmaps"; then
8671 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8674 if test ${bmd_acc} != "dummyval"; then
8675 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8680 if test "${with_carbon}" != no
; then
8681 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8682 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8683 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8684 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8685 echo $ECHO_N "(cached) $ECHO_C" >&6
8687 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8688 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8690 # Is the header compilable?
8691 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8692 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8693 cat >conftest.
$ac_ext <<_ACEOF
8696 cat confdefs.h
>>conftest.
$ac_ext
8697 cat >>conftest.
$ac_ext <<_ACEOF
8698 /* end confdefs.h. */
8699 $ac_includes_default
8700 #include <Carbon/Carbon.h>
8702 rm -f conftest.
$ac_objext
8703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8704 (eval $ac_compile) 2>conftest.er1
8706 grep -v '^ *+' conftest.er1
>conftest.err
8708 cat conftest.err
>&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } &&
8711 { ac_try
='test -z "$ac_c_werror_flag"
8712 || test ! -s conftest.err'
8713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); }; } &&
8718 { ac_try
='test -s conftest.$ac_objext'
8719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); }; }; then
8724 ac_header_compiler
=yes
8726 echo "$as_me: failed program was:" >&5
8727 sed 's/^/| /' conftest.
$ac_ext >&5
8729 ac_header_compiler
=no
8731 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8732 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8733 echo "${ECHO_T}$ac_header_compiler" >&6
8735 # Is the header present?
8736 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8737 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8738 cat >conftest.
$ac_ext <<_ACEOF
8741 cat confdefs.h
>>conftest.
$ac_ext
8742 cat >>conftest.
$ac_ext <<_ACEOF
8743 /* end confdefs.h. */
8744 #include <Carbon/Carbon.h>
8746 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8747 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8749 grep -v '^ *+' conftest.er1
>conftest.err
8751 cat conftest.err
>&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); } >/dev
/null
; then
8754 if test -s conftest.err
; then
8755 ac_cpp_err
=$ac_c_preproc_warn_flag
8756 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8763 if test -z "$ac_cpp_err"; then
8764 ac_header_preproc
=yes
8766 echo "$as_me: failed program was:" >&5
8767 sed 's/^/| /' conftest.
$ac_ext >&5
8769 ac_header_preproc
=no
8771 rm -f conftest.err conftest.
$ac_ext
8772 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8773 echo "${ECHO_T}$ac_header_preproc" >&6
8775 # So? What about this header?
8776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8778 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8779 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8780 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8781 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8782 ac_header_preproc
=yes
8785 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8786 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8787 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8788 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8789 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8790 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8791 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8792 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8793 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8794 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8795 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8796 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8799 ## ------------------------------------------ ##
8800 ## Report this to the AC_PACKAGE_NAME lists. ##
8801 ## ------------------------------------------ ##
8804 sed "s/^/$as_me: WARNING: /" >&2
8807 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8808 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8809 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8810 echo $ECHO_N "(cached) $ECHO_C" >&6
8812 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
8814 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8815 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8818 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8824 if test "${window_system}" = x11
&& test "${HAVE_CARBON}" = yes; then
8825 if test "${with_carbon+set}" != set \
8826 && test "${carbon_appdir_x+set}" != set; then
8827 for var
in with_x with_x_toolkit with_gtk with_xim \
8828 with_xpm with_jpeg with_tiff with_gif with_png
; do
8829 if eval test \"\
${$var+set}\" = set; then
8836 if test "${HAVE_CARBON}" = yes; then
8840 case "${window_system}" in
8844 case "${with_x_toolkit}" in
8845 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8846 motif
) USE_X_TOOLKIT
=MOTIF
;;
8848 USE_X_TOOLKIT
=none
;;
8849 no
) USE_X_TOOLKIT
=none
;;
8850 * ) USE_X_TOOLKIT
=maybe
;;
8860 ### If we're using X11, we should use the X menu package.
8863 yes ) HAVE_MENUS
=yes ;;
8866 if test "${opsys}" = "hpux9"; then
8867 case "${x_libraries}" in
8869 opsysfile
="s/hpux9-x11r4.h"
8874 if test "${opsys}" = "hpux9shr"; then
8875 case "${x_libraries}" in
8877 opsysfile
="s/hpux9shxr4.h"
8882 ### Compute the unexec source name from the object name.
8883 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
8885 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8886 # Assume not, until told otherwise.
8889 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8890 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8891 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8892 echo $ECHO_N "(cached) $ECHO_C" >&6
8894 cat >conftest.
$ac_ext <<_ACEOF
8897 cat confdefs.h
>>conftest.
$ac_ext
8898 cat >>conftest.
$ac_ext <<_ACEOF
8899 /* end confdefs.h. */
8900 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8902 #define malloc_get_state innocuous_malloc_get_state
8904 /* System header to define __stub macros and hopefully few prototypes,
8905 which can conflict with char malloc_get_state (); below.
8906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8907 <limits.h> exists even on freestanding compilers. */
8910 # include <limits.h>
8912 # include <assert.h>
8915 #undef malloc_get_state
8917 /* Override any gcc2 internal prototype to avoid an error. */
8922 /* We use char because int might match the return type of a gcc2
8923 builtin and then its argument prototype would still apply. */
8924 char malloc_get_state ();
8925 /* The GNU C library defines this for functions which it implements
8926 to always fail with ENOSYS. Some functions are actually named
8927 something starting with __ and the normal name is an alias. */
8928 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8931 char (*f) () = malloc_get_state;
8940 return f != malloc_get_state;
8945 rm -f conftest.
$ac_objext conftest
$ac_exeext
8946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8947 (eval $ac_link) 2>conftest.er1
8949 grep -v '^ *+' conftest.er1
>conftest.err
8951 cat conftest.err
>&5
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); } &&
8954 { ac_try
='test -z "$ac_c_werror_flag"
8955 || test ! -s conftest.err'
8956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); }; } &&
8961 { ac_try
='test -s conftest$ac_exeext'
8962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); }; }; then
8967 ac_cv_func_malloc_get_state
=yes
8969 echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.
$ac_ext >&5
8972 ac_cv_func_malloc_get_state
=no
8974 rm -f conftest.err conftest.
$ac_objext \
8975 conftest
$ac_exeext conftest.
$ac_ext
8977 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8978 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8979 if test $ac_cv_func_malloc_get_state = yes; then
8985 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8986 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8987 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8988 echo $ECHO_N "(cached) $ECHO_C" >&6
8990 cat >conftest.
$ac_ext <<_ACEOF
8993 cat confdefs.h
>>conftest.
$ac_ext
8994 cat >>conftest.
$ac_ext <<_ACEOF
8995 /* end confdefs.h. */
8996 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8998 #define malloc_set_state innocuous_malloc_set_state
9000 /* System header to define __stub macros and hopefully few prototypes,
9001 which can conflict with char malloc_set_state (); below.
9002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9003 <limits.h> exists even on freestanding compilers. */
9006 # include <limits.h>
9008 # include <assert.h>
9011 #undef malloc_set_state
9013 /* Override any gcc2 internal prototype to avoid an error. */
9018 /* We use char because int might match the return type of a gcc2
9019 builtin and then its argument prototype would still apply. */
9020 char malloc_set_state ();
9021 /* The GNU C library defines this for functions which it implements
9022 to always fail with ENOSYS. Some functions are actually named
9023 something starting with __ and the normal name is an alias. */
9024 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
9027 char (*f) () = malloc_set_state;
9036 return f != malloc_set_state;
9041 rm -f conftest.
$ac_objext conftest
$ac_exeext
9042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9043 (eval $ac_link) 2>conftest.er1
9045 grep -v '^ *+' conftest.er1
>conftest.err
9047 cat conftest.err
>&5
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); } &&
9050 { ac_try
='test -z "$ac_c_werror_flag"
9051 || test ! -s conftest.err'
9052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); }; } &&
9057 { ac_try
='test -s conftest$ac_exeext'
9058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); }; }; then
9063 ac_cv_func_malloc_set_state
=yes
9065 echo "$as_me: failed program was:" >&5
9066 sed 's/^/| /' conftest.
$ac_ext >&5
9068 ac_cv_func_malloc_set_state
=no
9070 rm -f conftest.err conftest.
$ac_objext \
9071 conftest
$ac_exeext conftest.
$ac_ext
9073 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9074 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
9075 if test $ac_cv_func_malloc_set_state = yes; then
9081 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9082 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
9083 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9084 echo $ECHO_N "(cached) $ECHO_C" >&6
9086 cat >conftest.
$ac_ext <<_ACEOF
9089 cat confdefs.h
>>conftest.
$ac_ext
9090 cat >>conftest.
$ac_ext <<_ACEOF
9091 /* end confdefs.h. */
9092 extern void (* __after_morecore_hook)();
9096 __after_morecore_hook = 0
9101 rm -f conftest.
$ac_objext conftest
$ac_exeext
9102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9103 (eval $ac_link) 2>conftest.er1
9105 grep -v '^ *+' conftest.er1
>conftest.err
9107 cat conftest.err
>&5
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 (exit $ac_status); } &&
9110 { ac_try
='test -z "$ac_c_werror_flag"
9111 || test ! -s conftest.err'
9112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); }; } &&
9117 { ac_try
='test -s conftest$ac_exeext'
9118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); }; }; then
9123 emacs_cv_var___after_morecore_hook
=yes
9125 echo "$as_me: failed program was:" >&5
9126 sed 's/^/| /' conftest.
$ac_ext >&5
9128 emacs_cv_var___after_morecore_hook
=no
9130 rm -f conftest.err conftest.
$ac_objext \
9131 conftest
$ac_exeext conftest.
$ac_ext
9133 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9134 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
9135 if test $emacs_cv_var___after_morecore_hook = no
; then
9138 if test "${system_malloc}" = "yes"; then
9141 (The GNU allocators don't work with this system configuration.)"
9143 if test "$doug_lea_malloc" = "yes" ; then
9144 if test "$GNU_MALLOC" = yes ; then
9146 (Using Doug Lea's new malloc from the GNU C Library.)"
9149 cat >>confdefs.h
<<\_ACEOF
9150 #define DOUG_LEA_MALLOC 1
9155 if test x
"${REL_ALLOC}" = x
; then
9156 REL_ALLOC
=${GNU_MALLOC}
9162 for ac_header
in stdlib.h unistd.h
9164 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9166 echo "$as_me:$LINENO: checking for $ac_header" >&5
9167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9169 echo $ECHO_N "(cached) $ECHO_C" >&6
9171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9172 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9174 # Is the header compilable?
9175 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9176 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9177 cat >conftest.
$ac_ext <<_ACEOF
9180 cat confdefs.h
>>conftest.
$ac_ext
9181 cat >>conftest.
$ac_ext <<_ACEOF
9182 /* end confdefs.h. */
9183 $ac_includes_default
9184 #include <$ac_header>
9186 rm -f conftest.
$ac_objext
9187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9188 (eval $ac_compile) 2>conftest.er1
9190 grep -v '^ *+' conftest.er1
>conftest.err
9192 cat conftest.err
>&5
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); } &&
9195 { ac_try
='test -z "$ac_c_werror_flag"
9196 || test ! -s conftest.err'
9197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); }; } &&
9202 { ac_try
='test -s conftest.$ac_objext'
9203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); }; }; then
9208 ac_header_compiler
=yes
9210 echo "$as_me: failed program was:" >&5
9211 sed 's/^/| /' conftest.
$ac_ext >&5
9213 ac_header_compiler
=no
9215 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9216 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9217 echo "${ECHO_T}$ac_header_compiler" >&6
9219 # Is the header present?
9220 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9221 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9222 cat >conftest.
$ac_ext <<_ACEOF
9225 cat confdefs.h
>>conftest.
$ac_ext
9226 cat >>conftest.
$ac_ext <<_ACEOF
9227 /* end confdefs.h. */
9228 #include <$ac_header>
9230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9231 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9233 grep -v '^ *+' conftest.er1
>conftest.err
9235 cat conftest.err
>&5
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); } >/dev
/null
; then
9238 if test -s conftest.err
; then
9239 ac_cpp_err
=$ac_c_preproc_warn_flag
9240 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9247 if test -z "$ac_cpp_err"; then
9248 ac_header_preproc
=yes
9250 echo "$as_me: failed program was:" >&5
9251 sed 's/^/| /' conftest.
$ac_ext >&5
9253 ac_header_preproc
=no
9255 rm -f conftest.err conftest.
$ac_ext
9256 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9257 echo "${ECHO_T}$ac_header_preproc" >&6
9259 # So? What about this header?
9260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9262 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9263 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9265 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9266 ac_header_preproc
=yes
9269 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9270 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9271 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9272 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9273 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9274 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9275 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9276 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9278 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9279 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9280 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9283 ## ------------------------------------------ ##
9284 ## Report this to the AC_PACKAGE_NAME lists. ##
9285 ## ------------------------------------------ ##
9288 sed "s/^/$as_me: WARNING: /" >&2
9291 echo "$as_me:$LINENO: checking for $ac_header" >&5
9292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9294 echo $ECHO_N "(cached) $ECHO_C" >&6
9296 eval "$as_ac_Header=\$ac_header_preproc"
9298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9302 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9303 cat >>confdefs.h
<<_ACEOF
9304 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9312 for ac_func
in getpagesize
9314 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9315 echo "$as_me:$LINENO: checking for $ac_func" >&5
9316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9317 if eval "test \"\${$as_ac_var+set}\" = set"; then
9318 echo $ECHO_N "(cached) $ECHO_C" >&6
9320 cat >conftest.
$ac_ext <<_ACEOF
9323 cat confdefs.h
>>conftest.
$ac_ext
9324 cat >>conftest.
$ac_ext <<_ACEOF
9325 /* end confdefs.h. */
9326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9328 #define $ac_func innocuous_$ac_func
9330 /* System header to define __stub macros and hopefully few prototypes,
9331 which can conflict with char $ac_func (); below.
9332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9333 <limits.h> exists even on freestanding compilers. */
9336 # include <limits.h>
9338 # include <assert.h>
9343 /* Override any gcc2 internal prototype to avoid an error. */
9348 /* We use char because int might match the return type of a gcc2
9349 builtin and then its argument prototype would still apply. */
9351 /* The GNU C library defines this for functions which it implements
9352 to always fail with ENOSYS. Some functions are actually named
9353 something starting with __ and the normal name is an alias. */
9354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9357 char (*f) () = $ac_func;
9366 return f != $ac_func;
9371 rm -f conftest.
$ac_objext conftest
$ac_exeext
9372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9373 (eval $ac_link) 2>conftest.er1
9375 grep -v '^ *+' conftest.er1
>conftest.err
9377 cat conftest.err
>&5
9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 (exit $ac_status); } &&
9380 { ac_try
='test -z "$ac_c_werror_flag"
9381 || test ! -s conftest.err'
9382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); }; } &&
9387 { ac_try
='test -s conftest$ac_exeext'
9388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); }; }; then
9393 eval "$as_ac_var=yes"
9395 echo "$as_me: failed program was:" >&5
9396 sed 's/^/| /' conftest.
$ac_ext >&5
9398 eval "$as_ac_var=no"
9400 rm -f conftest.err conftest.
$ac_objext \
9401 conftest
$ac_exeext conftest.
$ac_ext
9403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9404 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9405 if test `eval echo '${'$as_ac_var'}'` = yes; then
9406 cat >>confdefs.h
<<_ACEOF
9407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9413 echo "$as_me:$LINENO: checking for working mmap" >&5
9414 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9415 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9416 echo $ECHO_N "(cached) $ECHO_C" >&6
9418 if test "$cross_compiling" = yes; then
9419 ac_cv_func_mmap_fixed_mapped
=no
9421 cat >conftest.
$ac_ext <<_ACEOF
9424 cat confdefs.h
>>conftest.
$ac_ext
9425 cat >>conftest.
$ac_ext <<_ACEOF
9426 /* end confdefs.h. */
9427 $ac_includes_default
9428 /* malloc might have been renamed as rpl_malloc. */
9431 /* Thanks to Mike Haertel and Jim Avera for this test.
9432 Here is a matrix of mmap possibilities:
9433 mmap private not fixed
9434 mmap private fixed at somewhere currently unmapped
9435 mmap private fixed at somewhere already mapped
9436 mmap shared not fixed
9437 mmap shared fixed at somewhere currently unmapped
9438 mmap shared fixed at somewhere already mapped
9439 For private mappings, we should verify that changes cannot be read()
9440 back from the file, nor mmap's back from the file at a different
9441 address. (There have been systems where private was not correctly
9442 implemented like the infamous i386 svr4.0, and systems where the
9443 VM page cache was not coherent with the file system buffer cache
9444 like early versions of FreeBSD and possibly contemporary NetBSD.)
9445 For shared mappings, we should conversely verify that changes get
9446 propagated back to all the places they're supposed to be.
9448 Grep wants private fixed already mapped.
9449 The main things grep needs to know about mmap are:
9450 * does it exist and is it safe to write into the mmap'd area
9451 * how to use it (BSD variants) */
9454 #include <sys/mman.h>
9456 #if !STDC_HEADERS && !HAVE_STDLIB_H
9460 /* This mess was copied from the GNU getpagesize.h. */
9461 #if !HAVE_GETPAGESIZE
9462 /* Assume that all systems that can run configure have sys/param.h. */
9463 # if !HAVE_SYS_PARAM_H
9464 # define HAVE_SYS_PARAM_H 1
9467 # ifdef _SC_PAGESIZE
9468 # define getpagesize() sysconf(_SC_PAGESIZE)
9469 # else /* no _SC_PAGESIZE */
9470 # if HAVE_SYS_PARAM_H
9471 # include <sys/param.h>
9472 # ifdef EXEC_PAGESIZE
9473 # define getpagesize() EXEC_PAGESIZE
9474 # else /* no EXEC_PAGESIZE */
9476 # define getpagesize() NBPG * CLSIZE
9479 # endif /* no CLSIZE */
9480 # else /* no NBPG */
9482 # define getpagesize() NBPC
9483 # else /* no NBPC */
9485 # define getpagesize() PAGESIZE
9486 # endif /* PAGESIZE */
9487 # endif /* no NBPC */
9488 # endif /* no NBPG */
9489 # endif /* no EXEC_PAGESIZE */
9490 # else /* no HAVE_SYS_PARAM_H */
9491 # define getpagesize() 8192 /* punt totally */
9492 # endif /* no HAVE_SYS_PARAM_H */
9493 # endif /* no _SC_PAGESIZE */
9495 #endif /* no HAVE_GETPAGESIZE */
9500 char *data, *data2, *data3;
9504 pagesize = getpagesize ();
9506 /* First, make a file with some known garbage in it. */
9507 data = (char *) malloc (pagesize);
9510 for (i = 0; i < pagesize; ++i)
9511 *(data + i) = rand ();
9513 fd = creat ("conftest.mmap", 0600);
9516 if (write (fd, data, pagesize) != pagesize)
9520 /* Next, try to mmap the file at a fixed address which already has
9521 something else allocated at it. If we can, also make sure that
9522 we see the same garbage. */
9523 fd = open ("conftest.mmap", O_RDWR);
9526 data2 = (char *) malloc (2 * pagesize);
9529 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9530 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9531 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9533 for (i = 0; i < pagesize; ++i)
9534 if (*(data + i) != *(data2 + i))
9537 /* Finally, make sure that changes to the mapped area do not
9538 percolate back to the file as seen by read(). (This is a bug on
9539 some variants of i386 svr4.0.) */
9540 for (i = 0; i < pagesize; ++i)
9541 *(data2 + i) = *(data2 + i) + 1;
9542 data3 = (char *) malloc (pagesize);
9545 if (read (fd, data3, pagesize) != pagesize)
9547 for (i = 0; i < pagesize; ++i)
9548 if (*(data + i) != *(data3 + i))
9554 rm -f conftest
$ac_exeext
9555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9556 (eval $ac_link) 2>&5
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); }; }; then
9565 ac_cv_func_mmap_fixed_mapped
=yes
9567 echo "$as_me: program exited with status $ac_status" >&5
9568 echo "$as_me: failed program was:" >&5
9569 sed 's/^/| /' conftest.
$ac_ext >&5
9572 ac_cv_func_mmap_fixed_mapped
=no
9574 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9577 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9578 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9579 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9581 cat >>confdefs.h
<<\_ACEOF
9588 if test $use_mmap_for_buffers = yes; then
9592 LIBS
="$libsrc_libs $LIBS"
9595 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9596 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9597 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9598 echo $ECHO_N "(cached) $ECHO_C" >&6
9600 ac_check_lib_save_LIBS
=$LIBS
9602 cat >conftest.
$ac_ext <<_ACEOF
9605 cat confdefs.h
>>conftest.
$ac_ext
9606 cat >>conftest.
$ac_ext <<_ACEOF
9607 /* end confdefs.h. */
9609 /* Override any gcc2 internal prototype to avoid an error. */
9613 /* We use char because int might match the return type of a gcc2
9614 builtin and then its argument prototype would still apply. */
9624 rm -f conftest.
$ac_objext conftest
$ac_exeext
9625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9626 (eval $ac_link) 2>conftest.er1
9628 grep -v '^ *+' conftest.er1
>conftest.err
9630 cat conftest.err
>&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } &&
9633 { ac_try
='test -z "$ac_c_werror_flag"
9634 || test ! -s conftest.err'
9635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); }; } &&
9640 { ac_try
='test -s conftest$ac_exeext'
9641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); }; }; then
9646 ac_cv_lib_dnet_dnet_ntoa
=yes
9648 echo "$as_me: failed program was:" >&5
9649 sed 's/^/| /' conftest.
$ac_ext >&5
9651 ac_cv_lib_dnet_dnet_ntoa
=no
9653 rm -f conftest.err conftest.
$ac_objext \
9654 conftest
$ac_exeext conftest.
$ac_ext
9655 LIBS
=$ac_check_lib_save_LIBS
9657 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9658 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9659 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9660 cat >>confdefs.h
<<_ACEOF
9661 #define HAVE_LIBDNET 1
9669 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9670 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9671 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9672 echo $ECHO_N "(cached) $ECHO_C" >&6
9674 ac_check_lib_save_LIBS
=$LIBS
9676 cat >conftest.
$ac_ext <<_ACEOF
9679 cat confdefs.h
>>conftest.
$ac_ext
9680 cat >>conftest.
$ac_ext <<_ACEOF
9681 /* end confdefs.h. */
9692 rm -f conftest.
$ac_objext conftest
$ac_exeext
9693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9694 (eval $ac_link) 2>conftest.er1
9696 grep -v '^ *+' conftest.er1
>conftest.err
9698 cat conftest.err
>&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); } &&
9701 { ac_try
='test -z "$ac_c_werror_flag"
9702 || test ! -s conftest.err'
9703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); }; } &&
9708 { ac_try
='test -s conftest$ac_exeext'
9709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; }; then
9714 ac_cv_lib_Xbsd_main
=yes
9716 echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.
$ac_ext >&5
9719 ac_cv_lib_Xbsd_main
=no
9721 rm -f conftest.err conftest.
$ac_objext \
9722 conftest
$ac_exeext conftest.
$ac_ext
9723 LIBS
=$ac_check_lib_save_LIBS
9725 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9726 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9727 if test $ac_cv_lib_Xbsd_main = yes; then
9728 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9733 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9734 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9735 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9736 echo $ECHO_N "(cached) $ECHO_C" >&6
9738 ac_check_lib_save_LIBS
=$LIBS
9739 LIBS
="-lpthreads $LIBS"
9740 cat >conftest.
$ac_ext <<_ACEOF
9743 cat confdefs.h
>>conftest.
$ac_ext
9744 cat >>conftest.
$ac_ext <<_ACEOF
9745 /* end confdefs.h. */
9747 /* Override any gcc2 internal prototype to avoid an error. */
9751 /* We use char because int might match the return type of a gcc2
9752 builtin and then its argument prototype would still apply. */
9762 rm -f conftest.
$ac_objext conftest
$ac_exeext
9763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9764 (eval $ac_link) 2>conftest.er1
9766 grep -v '^ *+' conftest.er1
>conftest.err
9768 cat conftest.err
>&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); } &&
9771 { ac_try
='test -z "$ac_c_werror_flag"
9772 || test ! -s conftest.err'
9773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); }; } &&
9778 { ac_try
='test -s conftest$ac_exeext'
9779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); }; }; then
9784 ac_cv_lib_pthreads_cma_open
=yes
9786 echo "$as_me: failed program was:" >&5
9787 sed 's/^/| /' conftest.
$ac_ext >&5
9789 ac_cv_lib_pthreads_cma_open
=no
9791 rm -f conftest.err conftest.
$ac_objext \
9792 conftest
$ac_exeext conftest.
$ac_ext
9793 LIBS
=$ac_check_lib_save_LIBS
9795 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9796 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9797 if test $ac_cv_lib_pthreads_cma_open = yes; then
9798 cat >>confdefs.h
<<_ACEOF
9799 #define HAVE_LIBPTHREADS 1
9802 LIBS
="-lpthreads $LIBS"
9807 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9808 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9809 if test -d /usr
/X386
/include
; then
9811 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9815 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9816 echo "${ECHO_T}$HAVE_XFREE386" >&6
9821 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9822 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9823 if test "${gdb_cv_bigtoc+set}" = set; then
9824 echo $ECHO_N "(cached) $ECHO_C" >&6
9828 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9829 *) gdb_cv_bigtoc
=-bbigtoc ;;
9832 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9833 cat >conftest.
$ac_ext <<_ACEOF
9836 cat confdefs.h
>>conftest.
$ac_ext
9837 cat >>conftest.
$ac_ext <<_ACEOF
9838 /* end confdefs.h. */
9848 rm -f conftest.
$ac_objext conftest
$ac_exeext
9849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9850 (eval $ac_link) 2>conftest.er1
9852 grep -v '^ *+' conftest.er1
>conftest.err
9854 cat conftest.err
>&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); } &&
9857 { ac_try
='test -z "$ac_c_werror_flag"
9858 || test ! -s conftest.err'
9859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); }; } &&
9864 { ac_try
='test -s conftest$ac_exeext'
9865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); }; }; then
9872 echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.
$ac_ext >&5
9877 rm -f conftest.err conftest.
$ac_objext \
9878 conftest
$ac_exeext conftest.
$ac_ext
9881 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9882 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9886 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9887 # used for the tests that follow. We set them back to REAL_CFLAGS and
9888 # REAL_CPPFLAGS later on.
9890 REAL_CPPFLAGS
="$CPPFLAGS"
9892 if test "${HAVE_X11}" = "yes"; then
9893 DEFS
="$C_SWITCH_X_SITE $DEFS"
9894 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9896 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9897 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9899 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9900 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9901 # but it's more convenient here to set LD_RUN_PATH
9902 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9903 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9904 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9908 if test "${opsys}" = "gnu-linux"; then
9909 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9910 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9911 cat >conftest.
$ac_ext <<_ACEOF
9914 cat confdefs.h
>>conftest.
$ac_ext
9915 cat >>conftest.
$ac_ext <<_ACEOF
9916 /* end confdefs.h. */
9921 XOpenDisplay ("foo");
9926 rm -f conftest.
$ac_objext conftest
$ac_exeext
9927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9928 (eval $ac_link) 2>conftest.er1
9930 grep -v '^ *+' conftest.er1
>conftest.err
9932 cat conftest.err
>&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } &&
9935 { ac_try
='test -z "$ac_c_werror_flag"
9936 || test ! -s conftest.err'
9937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); }; } &&
9942 { ac_try
='test -s conftest$ac_exeext'
9943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); }; }; then
9948 xlinux_first_failure
=no
9950 echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.
$ac_ext >&5
9953 xlinux_first_failure
=yes
9955 rm -f conftest.err conftest.
$ac_objext \
9956 conftest
$ac_exeext conftest.
$ac_ext
9957 if test "${xlinux_first_failure}" = "yes"; then
9958 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9959 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9960 OLD_CPPFLAGS
="$CPPFLAGS"
9962 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9963 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9964 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9965 LIBS
="$LIBS -b i486-linuxaout"
9966 cat >conftest.
$ac_ext <<_ACEOF
9969 cat confdefs.h
>>conftest.
$ac_ext
9970 cat >>conftest.
$ac_ext <<_ACEOF
9971 /* end confdefs.h. */
9976 XOpenDisplay ("foo");
9981 rm -f conftest.
$ac_objext conftest
$ac_exeext
9982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9983 (eval $ac_link) 2>conftest.er1
9985 grep -v '^ *+' conftest.er1
>conftest.err
9987 cat conftest.err
>&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } &&
9990 { ac_try
='test -z "$ac_c_werror_flag"
9991 || test ! -s conftest.err'
9992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; } &&
9997 { ac_try
='test -s conftest$ac_exeext'
9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; }; then
10003 xlinux_second_failure
=no
10005 echo "$as_me: failed program was:" >&5
10006 sed 's/^/| /' conftest.
$ac_ext >&5
10008 xlinux_second_failure
=yes
10010 rm -f conftest.err conftest.
$ac_objext \
10011 conftest
$ac_exeext conftest.
$ac_ext
10012 if test "${xlinux_second_failure}" = "yes"; then
10013 # If we get the same failure with -b, there is no use adding -b.
10014 # So take it out. This plays safe.
10015 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10016 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10017 CPPFLAGS
="$OLD_CPPFLAGS"
10019 echo "$as_me:$LINENO: result: no" >&5
10020 echo "${ECHO_T}no" >&6
10022 echo "$as_me:$LINENO: result: yes" >&5
10023 echo "${ECHO_T}yes" >&6
10026 echo "$as_me:$LINENO: result: no" >&5
10027 echo "${ECHO_T}no" >&6
10031 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10032 # header files included from there.
10033 echo "$as_me:$LINENO: checking for Xkb" >&5
10034 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
10035 cat >conftest.
$ac_ext <<_ACEOF
10038 cat confdefs.h
>>conftest.
$ac_ext
10039 cat >>conftest.
$ac_ext <<_ACEOF
10040 /* end confdefs.h. */
10041 #include <X11/Xlib.h>
10042 #include <X11/XKBlib.h>
10046 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10051 rm -f conftest.
$ac_objext conftest
$ac_exeext
10052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10053 (eval $ac_link) 2>conftest.er1
10055 grep -v '^ *+' conftest.er1
>conftest.err
10057 cat conftest.err
>&5
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); } &&
10060 { ac_try
='test -z "$ac_c_werror_flag"
10061 || test ! -s conftest.err'
10062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10063 (eval $ac_try) 2>&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); }; } &&
10067 { ac_try
='test -s conftest$ac_exeext'
10068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10069 (eval $ac_try) 2>&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; }; then
10075 echo "$as_me: failed program was:" >&5
10076 sed 's/^/| /' conftest.
$ac_ext >&5
10080 rm -f conftest.err conftest.
$ac_objext \
10081 conftest
$ac_exeext conftest.
$ac_ext
10082 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10083 echo "${ECHO_T}$emacs_xkb" >&6
10084 if test $emacs_xkb = yes; then
10086 cat >>confdefs.h
<<\_ACEOF
10087 #define HAVE_XKBGETKEYBOARD 1
10096 for ac_func
in XrmSetDatabase XScreenResourceString \
10097 XScreenNumberOfScreen XSetWMProtocols
10099 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10100 echo "$as_me:$LINENO: checking for $ac_func" >&5
10101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10102 if eval "test \"\${$as_ac_var+set}\" = set"; then
10103 echo $ECHO_N "(cached) $ECHO_C" >&6
10105 cat >conftest.
$ac_ext <<_ACEOF
10108 cat confdefs.h
>>conftest.
$ac_ext
10109 cat >>conftest.
$ac_ext <<_ACEOF
10110 /* end confdefs.h. */
10111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10113 #define $ac_func innocuous_$ac_func
10115 /* System header to define __stub macros and hopefully few prototypes,
10116 which can conflict with char $ac_func (); below.
10117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10118 <limits.h> exists even on freestanding compilers. */
10121 # include <limits.h>
10123 # include <assert.h>
10128 /* Override any gcc2 internal prototype to avoid an error. */
10133 /* We use char because int might match the return type of a gcc2
10134 builtin and then its argument prototype would still apply. */
10136 /* The GNU C library defines this for functions which it implements
10137 to always fail with ENOSYS. Some functions are actually named
10138 something starting with __ and the normal name is an alias. */
10139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10142 char (*f) () = $ac_func;
10151 return f != $ac_func;
10156 rm -f conftest.
$ac_objext conftest
$ac_exeext
10157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10158 (eval $ac_link) 2>conftest.er1
10160 grep -v '^ *+' conftest.er1
>conftest.err
10162 cat conftest.err
>&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); } &&
10165 { ac_try
='test -z "$ac_c_werror_flag"
10166 || test ! -s conftest.err'
10167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10168 (eval $ac_try) 2>&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; } &&
10172 { ac_try
='test -s conftest$ac_exeext'
10173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10174 (eval $ac_try) 2>&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); }; }; then
10178 eval "$as_ac_var=yes"
10180 echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.
$ac_ext >&5
10183 eval "$as_ac_var=no"
10185 rm -f conftest.err conftest.
$ac_objext \
10186 conftest
$ac_exeext conftest.
$ac_ext
10188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10189 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10190 if test `eval echo '${'$as_ac_var'}'` = yes; then
10191 cat >>confdefs.h
<<_ACEOF
10192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10200 if test "${window_system}" = "x11"; then
10201 echo "$as_me:$LINENO: checking X11 version 6" >&5
10202 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
10203 if test "${emacs_cv_x11_version_6+set}" = set; then
10204 echo $ECHO_N "(cached) $ECHO_C" >&6
10206 cat >conftest.
$ac_ext <<_ACEOF
10209 cat confdefs.h
>>conftest.
$ac_ext
10210 cat >>conftest.
$ac_ext <<_ACEOF
10211 /* end confdefs.h. */
10212 #include <X11/Xlib.h>
10216 #if XlibSpecificationRelease < 6
10224 rm -f conftest.
$ac_objext conftest
$ac_exeext
10225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10226 (eval $ac_link) 2>conftest.er1
10228 grep -v '^ *+' conftest.er1
>conftest.err
10230 cat conftest.err
>&5
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); } &&
10233 { ac_try
='test -z "$ac_c_werror_flag"
10234 || test ! -s conftest.err'
10235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10236 (eval $ac_try) 2>&5
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); }; } &&
10240 { ac_try
='test -s conftest$ac_exeext'
10241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10242 (eval $ac_try) 2>&5
10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 (exit $ac_status); }; }; then
10246 emacs_cv_x11_version_6
=yes
10248 echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.
$ac_ext >&5
10251 emacs_cv_x11_version_6
=no
10253 rm -f conftest.err conftest.
$ac_objext \
10254 conftest
$ac_exeext conftest.
$ac_ext
10257 if test $emacs_cv_x11_version_6 = yes; then
10258 echo "$as_me:$LINENO: result: 6 or newer" >&5
10259 echo "${ECHO_T}6 or newer" >&6
10261 cat >>confdefs.h
<<\_ACEOF
10262 #define HAVE_X11R6 1
10266 echo "$as_me:$LINENO: result: before 6" >&5
10267 echo "${ECHO_T}before 6" >&6
10271 if test "${window_system}" = "x11"; then
10272 echo "$as_me:$LINENO: checking X11 version 5" >&5
10273 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10274 if test "${emacs_cv_x11_version_5+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 #include <X11/Xlib.h>
10287 #if XlibSpecificationRelease < 5
10295 rm -f conftest.
$ac_objext conftest
$ac_exeext
10296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10297 (eval $ac_link) 2>conftest.er1
10299 grep -v '^ *+' conftest.er1
>conftest.err
10301 cat conftest.err
>&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); } &&
10304 { ac_try
='test -z "$ac_c_werror_flag"
10305 || test ! -s conftest.err'
10306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307 (eval $ac_try) 2>&5
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); }; } &&
10311 { ac_try
='test -s conftest$ac_exeext'
10312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10313 (eval $ac_try) 2>&5
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); }; }; then
10317 emacs_cv_x11_version_5
=yes
10319 echo "$as_me: failed program was:" >&5
10320 sed 's/^/| /' conftest.
$ac_ext >&5
10322 emacs_cv_x11_version_5
=no
10324 rm -f conftest.err conftest.
$ac_objext \
10325 conftest
$ac_exeext conftest.
$ac_ext
10328 if test $emacs_cv_x11_version_5 = yes; then
10329 echo "$as_me:$LINENO: result: 5 or newer" >&5
10330 echo "${ECHO_T}5 or newer" >&6
10333 cat >>confdefs.h
<<\_ACEOF
10334 #define HAVE_X11R5 1
10339 echo "$as_me:$LINENO: result: before 5" >&5
10340 echo "${ECHO_T}before 5" >&6
10345 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
10346 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10347 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10348 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10349 { (exit 1); exit 1; }; };
10353 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10355 if test "X${with_pkg_config_prog}" != X
; then
10356 PKG_CONFIG
="${with_pkg_config_prog}"
10361 if test -z "$PKG_CONFIG"; then
10362 # Extract the first word of "pkg-config", so it can be a program name with args.
10363 set dummy pkg-config
; ac_word
=$2
10364 echo "$as_me:$LINENO: checking for $ac_word" >&5
10365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10366 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10367 echo $ECHO_N "(cached) $ECHO_C" >&6
10369 case $PKG_CONFIG in
10371 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10374 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10375 for as_dir
in $PATH
10378 test -z "$as_dir" && as_dir
=.
10379 for ac_exec_ext
in '' $ac_executable_extensions; do
10380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10381 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10388 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10392 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10394 if test -n "$PKG_CONFIG"; then
10395 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10396 echo "${ECHO_T}$PKG_CONFIG" >&6
10398 echo "$as_me:$LINENO: result: no" >&5
10399 echo "${ECHO_T}no" >&6
10404 if test "$PKG_CONFIG" = "no" ; then
10405 { { echo "$as_me:$LINENO: error:
10406 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&5
10407 echo "$as_me: error:
10408 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&2;}
10409 { (exit 1); exit 1; }; }
10411 PKG_CONFIG_MIN_VERSION
=0.9.0
10412 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10413 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10414 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10416 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10417 echo "$as_me:$LINENO: result: yes" >&5
10418 echo "${ECHO_T}yes" >&6
10421 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10422 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10423 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10424 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10425 echo "${ECHO_T}$GTK_CFLAGS" >&6
10427 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10428 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10429 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
10430 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10431 echo "${ECHO_T}$GTK_LIBS" >&6
10433 echo "$as_me:$LINENO: result: no" >&5
10434 echo "${ECHO_T}no" >&6
10437 ## If we have a custom action on failure, don't print errors, but
10438 ## do set a variable so people can do so.
10439 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10440 echo $GTK_PKG_ERRORS
10446 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10447 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10451 if test $succeeded = yes; then
10454 { { 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
10455 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;}
10456 { (exit 1); exit 1; }; }
10461 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10462 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10463 LIBS
="$GTK_LIBS $LIBS"
10466 cat >>confdefs.h
<<\_ACEOF
10472 if test "$with_toolkit_scroll_bars" != no
; then
10473 with_toolkit_scroll_bars
=yes
10476 HAVE_GTK_MULTIDISPLAY
=no
10478 for ac_func
in gdk_display_open
10480 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10481 echo "$as_me:$LINENO: checking for $ac_func" >&5
10482 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10483 if eval "test \"\${$as_ac_var+set}\" = set"; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10486 cat >conftest.
$ac_ext <<_ACEOF
10489 cat confdefs.h
>>conftest.
$ac_ext
10490 cat >>conftest.
$ac_ext <<_ACEOF
10491 /* end confdefs.h. */
10492 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10494 #define $ac_func innocuous_$ac_func
10496 /* System header to define __stub macros and hopefully few prototypes,
10497 which can conflict with char $ac_func (); below.
10498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10499 <limits.h> exists even on freestanding compilers. */
10502 # include <limits.h>
10504 # include <assert.h>
10509 /* Override any gcc2 internal prototype to avoid an error. */
10514 /* We use char because int might match the return type of a gcc2
10515 builtin and then its argument prototype would still apply. */
10517 /* The GNU C library defines this for functions which it implements
10518 to always fail with ENOSYS. Some functions are actually named
10519 something starting with __ and the normal name is an alias. */
10520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10523 char (*f) () = $ac_func;
10532 return f != $ac_func;
10537 rm -f conftest.
$ac_objext conftest
$ac_exeext
10538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10539 (eval $ac_link) 2>conftest.er1
10541 grep -v '^ *+' conftest.er1
>conftest.err
10543 cat conftest.err
>&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } &&
10546 { ac_try
='test -z "$ac_c_werror_flag"
10547 || test ! -s conftest.err'
10548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549 (eval $ac_try) 2>&5
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); }; } &&
10553 { ac_try
='test -s conftest$ac_exeext'
10554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10555 (eval $ac_try) 2>&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }; }; then
10559 eval "$as_ac_var=yes"
10561 echo "$as_me: failed program was:" >&5
10562 sed 's/^/| /' conftest.
$ac_ext >&5
10564 eval "$as_ac_var=no"
10566 rm -f conftest.err conftest.
$ac_objext \
10567 conftest
$ac_exeext conftest.
$ac_ext
10569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10570 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10571 if test `eval echo '${'$as_ac_var'}'` = yes; then
10572 cat >>confdefs.h
<<_ACEOF
10573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10575 HAVE_GTK_MULTIDISPLAY
=yes
10579 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10581 cat >>confdefs.h
<<\_ACEOF
10582 #define HAVE_GTK_MULTIDISPLAY 1
10586 HAVE_GTK_FILE_SELECTION
=no
10588 for ac_func
in gtk_file_selection_new
10590 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10591 echo "$as_me:$LINENO: checking for $ac_func" >&5
10592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10593 if eval "test \"\${$as_ac_var+set}\" = set"; then
10594 echo $ECHO_N "(cached) $ECHO_C" >&6
10596 cat >conftest.
$ac_ext <<_ACEOF
10599 cat confdefs.h
>>conftest.
$ac_ext
10600 cat >>conftest.
$ac_ext <<_ACEOF
10601 /* end confdefs.h. */
10602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10604 #define $ac_func innocuous_$ac_func
10606 /* System header to define __stub macros and hopefully few prototypes,
10607 which can conflict with char $ac_func (); below.
10608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10609 <limits.h> exists even on freestanding compilers. */
10612 # include <limits.h>
10614 # include <assert.h>
10619 /* Override any gcc2 internal prototype to avoid an error. */
10624 /* We use char because int might match the return type of a gcc2
10625 builtin and then its argument prototype would still apply. */
10627 /* The GNU C library defines this for functions which it implements
10628 to always fail with ENOSYS. Some functions are actually named
10629 something starting with __ and the normal name is an alias. */
10630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10633 char (*f) () = $ac_func;
10642 return f != $ac_func;
10647 rm -f conftest.
$ac_objext conftest
$ac_exeext
10648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10649 (eval $ac_link) 2>conftest.er1
10651 grep -v '^ *+' conftest.er1
>conftest.err
10653 cat conftest.err
>&5
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); } &&
10656 { ac_try
='test -z "$ac_c_werror_flag"
10657 || test ! -s conftest.err'
10658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10659 (eval $ac_try) 2>&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; } &&
10663 { ac_try
='test -s conftest$ac_exeext'
10664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665 (eval $ac_try) 2>&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; }; then
10669 eval "$as_ac_var=yes"
10671 echo "$as_me: failed program was:" >&5
10672 sed 's/^/| /' conftest.
$ac_ext >&5
10674 eval "$as_ac_var=no"
10676 rm -f conftest.err conftest.
$ac_objext \
10677 conftest
$ac_exeext conftest.
$ac_ext
10679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10680 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10681 if test `eval echo '${'$as_ac_var'}'` = yes; then
10682 cat >>confdefs.h
<<_ACEOF
10683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10685 HAVE_GTK_FILE_SELECTION
=yes
10690 HAVE_GTK_FILE_CHOOSER
=no
10692 for ac_func
in gtk_file_chooser_dialog_new
10694 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10695 echo "$as_me:$LINENO: checking for $ac_func" >&5
10696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10697 if eval "test \"\${$as_ac_var+set}\" = set"; then
10698 echo $ECHO_N "(cached) $ECHO_C" >&6
10700 cat >conftest.
$ac_ext <<_ACEOF
10703 cat confdefs.h
>>conftest.
$ac_ext
10704 cat >>conftest.
$ac_ext <<_ACEOF
10705 /* end confdefs.h. */
10706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10708 #define $ac_func innocuous_$ac_func
10710 /* System header to define __stub macros and hopefully few prototypes,
10711 which can conflict with char $ac_func (); below.
10712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10713 <limits.h> exists even on freestanding compilers. */
10716 # include <limits.h>
10718 # include <assert.h>
10723 /* Override any gcc2 internal prototype to avoid an error. */
10728 /* We use char because int might match the return type of a gcc2
10729 builtin and then its argument prototype would still apply. */
10731 /* The GNU C library defines this for functions which it implements
10732 to always fail with ENOSYS. Some functions are actually named
10733 something starting with __ and the normal name is an alias. */
10734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10737 char (*f) () = $ac_func;
10746 return f != $ac_func;
10751 rm -f conftest.
$ac_objext conftest
$ac_exeext
10752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10753 (eval $ac_link) 2>conftest.er1
10755 grep -v '^ *+' conftest.er1
>conftest.err
10757 cat conftest.err
>&5
10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); } &&
10760 { ac_try
='test -z "$ac_c_werror_flag"
10761 || test ! -s conftest.err'
10762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10763 (eval $ac_try) 2>&5
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); }; } &&
10767 { ac_try
='test -s conftest$ac_exeext'
10768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10769 (eval $ac_try) 2>&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); }; }; then
10773 eval "$as_ac_var=yes"
10775 echo "$as_me: failed program was:" >&5
10776 sed 's/^/| /' conftest.
$ac_ext >&5
10778 eval "$as_ac_var=no"
10780 rm -f conftest.err conftest.
$ac_objext \
10781 conftest
$ac_exeext conftest.
$ac_ext
10783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10784 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10785 if test `eval echo '${'$as_ac_var'}'` = yes; then
10786 cat >>confdefs.h
<<_ACEOF
10787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10789 HAVE_GTK_FILE_CHOOSER
=yes
10794 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10795 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10797 cat >>confdefs.h
<<\_ACEOF
10798 #define HAVE_GTK_FILE_BOTH 1
10803 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10804 HAVE_GTK_AND_PTHREAD
=no
10806 for ac_header
in pthread.h
10808 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10810 echo "$as_me:$LINENO: checking for $ac_header" >&5
10811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10813 echo $ECHO_N "(cached) $ECHO_C" >&6
10815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10818 # Is the header compilable?
10819 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10821 cat >conftest.
$ac_ext <<_ACEOF
10824 cat confdefs.h
>>conftest.
$ac_ext
10825 cat >>conftest.
$ac_ext <<_ACEOF
10826 /* end confdefs.h. */
10827 $ac_includes_default
10828 #include <$ac_header>
10830 rm -f conftest.
$ac_objext
10831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10832 (eval $ac_compile) 2>conftest.er1
10834 grep -v '^ *+' conftest.er1
>conftest.err
10836 cat conftest.err
>&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); } &&
10839 { ac_try
='test -z "$ac_c_werror_flag"
10840 || test ! -s conftest.err'
10841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10842 (eval $ac_try) 2>&5
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); }; } &&
10846 { ac_try
='test -s conftest.$ac_objext'
10847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10848 (eval $ac_try) 2>&5
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); }; }; then
10852 ac_header_compiler
=yes
10854 echo "$as_me: failed program was:" >&5
10855 sed 's/^/| /' conftest.
$ac_ext >&5
10857 ac_header_compiler
=no
10859 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10860 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10861 echo "${ECHO_T}$ac_header_compiler" >&6
10863 # Is the header present?
10864 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10865 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10866 cat >conftest.
$ac_ext <<_ACEOF
10869 cat confdefs.h
>>conftest.
$ac_ext
10870 cat >>conftest.
$ac_ext <<_ACEOF
10871 /* end confdefs.h. */
10872 #include <$ac_header>
10874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10875 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10877 grep -v '^ *+' conftest.er1
>conftest.err
10879 cat conftest.err
>&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); } >/dev
/null
; then
10882 if test -s conftest.err
; then
10883 ac_cpp_err
=$ac_c_preproc_warn_flag
10884 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10891 if test -z "$ac_cpp_err"; then
10892 ac_header_preproc
=yes
10894 echo "$as_me: failed program was:" >&5
10895 sed 's/^/| /' conftest.
$ac_ext >&5
10897 ac_header_preproc
=no
10899 rm -f conftest.err conftest.
$ac_ext
10900 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10901 echo "${ECHO_T}$ac_header_preproc" >&6
10903 # So? What about this header?
10904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10910 ac_header_preproc
=yes
10913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10916 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10918 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10920 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10924 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10927 ## ------------------------------------------ ##
10928 ## Report this to the AC_PACKAGE_NAME lists. ##
10929 ## ------------------------------------------ ##
10932 sed "s/^/$as_me: WARNING: /" >&2
10935 echo "$as_me:$LINENO: checking for $ac_header" >&5
10936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10938 echo $ECHO_N "(cached) $ECHO_C" >&6
10940 eval "$as_ac_Header=\$ac_header_preproc"
10942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10943 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10947 cat >>confdefs.h
<<_ACEOF
10948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10955 if test "$ac_cv_header_pthread_h"; then
10956 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10957 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10958 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10959 echo $ECHO_N "(cached) $ECHO_C" >&6
10961 ac_check_lib_save_LIBS
=$LIBS
10962 LIBS
="-lpthread $LIBS"
10963 cat >conftest.
$ac_ext <<_ACEOF
10966 cat confdefs.h
>>conftest.
$ac_ext
10967 cat >>conftest.
$ac_ext <<_ACEOF
10968 /* end confdefs.h. */
10970 /* Override any gcc2 internal prototype to avoid an error. */
10974 /* We use char because int might match the return type of a gcc2
10975 builtin and then its argument prototype would still apply. */
10976 char pthread_self ();
10985 rm -f conftest.
$ac_objext conftest
$ac_exeext
10986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10987 (eval $ac_link) 2>conftest.er1
10989 grep -v '^ *+' conftest.er1
>conftest.err
10991 cat conftest.err
>&5
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); } &&
10994 { ac_try
='test -z "$ac_c_werror_flag"
10995 || test ! -s conftest.err'
10996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10997 (eval $ac_try) 2>&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); }; } &&
11001 { ac_try
='test -s conftest$ac_exeext'
11002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11003 (eval $ac_try) 2>&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); }; }; then
11007 ac_cv_lib_pthread_pthread_self
=yes
11009 echo "$as_me: failed program was:" >&5
11010 sed 's/^/| /' conftest.
$ac_ext >&5
11012 ac_cv_lib_pthread_pthread_self
=no
11014 rm -f conftest.err conftest.
$ac_objext \
11015 conftest
$ac_exeext conftest.
$ac_ext
11016 LIBS
=$ac_check_lib_save_LIBS
11018 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11019 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
11020 if test $ac_cv_lib_pthread_pthread_self = yes; then
11021 HAVE_GTK_AND_PTHREAD
=yes
11025 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11026 GTK_LIBS
="$GTK_LIBS -lpthread"
11028 cat >>confdefs.h
<<\_ACEOF
11029 #define HAVE_GTK_AND_PTHREAD 1
11036 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
11037 if test x
"${HAVE_X11R5}" = xyes
; then
11038 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11039 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
11040 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11041 echo $ECHO_N "(cached) $ECHO_C" >&6
11043 cat >conftest.
$ac_ext <<_ACEOF
11046 cat confdefs.h
>>conftest.
$ac_ext
11047 cat >>conftest.
$ac_ext <<_ACEOF
11048 /* end confdefs.h. */
11050 #include <X11/Intrinsic.h>
11051 #include <X11/Xaw/Simple.h>
11060 rm -f conftest.
$ac_objext conftest
$ac_exeext
11061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11062 (eval $ac_link) 2>conftest.er1
11064 grep -v '^ *+' conftest.er1
>conftest.err
11066 cat conftest.err
>&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); } &&
11069 { ac_try
='test -z "$ac_c_werror_flag"
11070 || test ! -s conftest.err'
11071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072 (eval $ac_try) 2>&5
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); }; } &&
11076 { ac_try
='test -s conftest$ac_exeext'
11077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11078 (eval $ac_try) 2>&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); }; }; then
11082 emacs_cv_x11_version_5_with_xaw
=yes
11084 echo "$as_me: failed program was:" >&5
11085 sed 's/^/| /' conftest.
$ac_ext >&5
11087 emacs_cv_x11_version_5_with_xaw
=no
11089 rm -f conftest.err conftest.
$ac_objext \
11090 conftest
$ac_exeext conftest.
$ac_ext
11093 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11094 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11095 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
11096 USE_X_TOOLKIT
=LUCID
11098 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11099 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
11107 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11109 if test "${USE_X_TOOLKIT}" != "none"; then
11110 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11111 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
11112 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11113 echo $ECHO_N "(cached) $ECHO_C" >&6
11115 cat >conftest.
$ac_ext <<_ACEOF
11118 cat confdefs.h
>>conftest.
$ac_ext
11119 cat >>conftest.
$ac_ext <<_ACEOF
11120 /* end confdefs.h. */
11121 #include <X11/Intrinsic.h>
11125 #if XtSpecificationRelease < 6
11133 rm -f conftest.
$ac_objext conftest
$ac_exeext
11134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11135 (eval $ac_link) 2>conftest.er1
11137 grep -v '^ *+' conftest.er1
>conftest.err
11139 cat conftest.err
>&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); } &&
11142 { ac_try
='test -z "$ac_c_werror_flag"
11143 || test ! -s conftest.err'
11144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11145 (eval $ac_try) 2>&5
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); }; } &&
11149 { ac_try
='test -s conftest$ac_exeext'
11150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11151 (eval $ac_try) 2>&5
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); }; }; then
11155 emacs_cv_x11_toolkit_version_6
=yes
11157 echo "$as_me: failed program was:" >&5
11158 sed 's/^/| /' conftest.
$ac_ext >&5
11160 emacs_cv_x11_toolkit_version_6
=no
11162 rm -f conftest.err conftest.
$ac_objext \
11163 conftest
$ac_exeext conftest.
$ac_ext
11166 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11167 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11168 echo "$as_me:$LINENO: result: 6 or newer" >&5
11169 echo "${ECHO_T}6 or newer" >&6
11171 cat >>confdefs.h
<<\_ACEOF
11172 #define HAVE_X11XTR6 1
11176 echo "$as_me:$LINENO: result: before 6" >&5
11177 echo "${ECHO_T}before 6" >&6
11181 if test x
$HAVE_X11XTR6 = xyes
; then
11182 LIBS
="-lXt -lSM -lICE $LIBS"
11187 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11188 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
11189 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11190 echo $ECHO_N "(cached) $ECHO_C" >&6
11192 ac_check_lib_save_LIBS
=$LIBS
11194 cat >conftest.
$ac_ext <<_ACEOF
11197 cat confdefs.h
>>conftest.
$ac_ext
11198 cat >>conftest.
$ac_ext <<_ACEOF
11199 /* end confdefs.h. */
11201 /* Override any gcc2 internal prototype to avoid an error. */
11205 /* We use char because int might match the return type of a gcc2
11206 builtin and then its argument prototype would still apply. */
11207 char XmuConvertStandardSelection ();
11211 XmuConvertStandardSelection ();
11216 rm -f conftest.
$ac_objext conftest
$ac_exeext
11217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11218 (eval $ac_link) 2>conftest.er1
11220 grep -v '^ *+' conftest.er1
>conftest.err
11222 cat conftest.err
>&5
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); } &&
11225 { ac_try
='test -z "$ac_c_werror_flag"
11226 || test ! -s conftest.err'
11227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11228 (eval $ac_try) 2>&5
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); }; } &&
11232 { ac_try
='test -s conftest$ac_exeext'
11233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11234 (eval $ac_try) 2>&5
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); }; }; then
11238 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11240 echo "$as_me: failed program was:" >&5
11241 sed 's/^/| /' conftest.
$ac_ext >&5
11243 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11245 rm -f conftest.err conftest.
$ac_objext \
11246 conftest
$ac_exeext conftest.
$ac_ext
11247 LIBS
=$ac_check_lib_save_LIBS
11249 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11250 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
11251 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11252 cat >>confdefs.h
<<_ACEOF
11253 #define HAVE_LIBXMU 1
11260 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11263 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11264 if test "${HAVE_X11}" = "yes"; then
11265 if test "${USE_X_TOOLKIT}" != "none"; then
11267 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11268 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
11269 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
11272 ac_check_lib_save_LIBS
=$LIBS
11273 LIBS
="-lXext $LIBS"
11274 cat >conftest.
$ac_ext <<_ACEOF
11277 cat confdefs.h
>>conftest.
$ac_ext
11278 cat >>conftest.
$ac_ext <<_ACEOF
11279 /* end confdefs.h. */
11281 /* Override any gcc2 internal prototype to avoid an error. */
11285 /* We use char because int might match the return type of a gcc2
11286 builtin and then its argument prototype would still apply. */
11287 char XShapeQueryExtension ();
11291 XShapeQueryExtension ();
11296 rm -f conftest.
$ac_objext conftest
$ac_exeext
11297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11298 (eval $ac_link) 2>conftest.er1
11300 grep -v '^ *+' conftest.er1
>conftest.err
11302 cat conftest.err
>&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); } &&
11305 { ac_try
='test -z "$ac_c_werror_flag"
11306 || test ! -s conftest.err'
11307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11308 (eval $ac_try) 2>&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; } &&
11312 { ac_try
='test -s conftest$ac_exeext'
11313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314 (eval $ac_try) 2>&5
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); }; }; then
11318 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11320 echo "$as_me: failed program was:" >&5
11321 sed 's/^/| /' conftest.
$ac_ext >&5
11323 ac_cv_lib_Xext_XShapeQueryExtension
=no
11325 rm -f conftest.err conftest.
$ac_objext \
11326 conftest
$ac_exeext conftest.
$ac_ext
11327 LIBS
=$ac_check_lib_save_LIBS
11329 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11330 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11331 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11332 cat >>confdefs.h
<<_ACEOF
11333 #define HAVE_LIBXEXT 1
11336 LIBS
="-lXext $LIBS"
11343 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11344 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11345 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11346 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
11349 cat >conftest.
$ac_ext <<_ACEOF
11352 cat confdefs.h
>>conftest.
$ac_ext
11353 cat >>conftest.
$ac_ext <<_ACEOF
11354 /* end confdefs.h. */
11359 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11362 Motif version prior to 2.1.
11368 rm -f conftest.
$ac_objext
11369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11370 (eval $ac_compile) 2>conftest.er1
11372 grep -v '^ *+' conftest.er1
>conftest.err
11374 cat conftest.err
>&5
11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); } &&
11377 { ac_try
='test -z "$ac_c_werror_flag"
11378 || test ! -s conftest.err'
11379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11380 (eval $ac_try) 2>&5
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); }; } &&
11384 { ac_try
='test -s conftest.$ac_objext'
11385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11386 (eval $ac_try) 2>&5
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); }; }; then
11390 emacs_cv_motif_version_2_1
=yes
11392 echo "$as_me: failed program was:" >&5
11393 sed 's/^/| /' conftest.
$ac_ext >&5
11395 emacs_cv_motif_version_2_1
=no
11397 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11399 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11400 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11401 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
11402 if test $emacs_cv_motif_version_2_1 = yes; then
11405 cat >>confdefs.h
<<\_ACEOF
11406 #define HAVE_MOTIF_2_1 1
11409 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11410 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11411 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11412 echo $ECHO_N "(cached) $ECHO_C" >&6
11414 ac_check_lib_save_LIBS
=$LIBS
11416 cat >conftest.
$ac_ext <<_ACEOF
11419 cat confdefs.h
>>conftest.
$ac_ext
11420 cat >>conftest.
$ac_ext <<_ACEOF
11421 /* end confdefs.h. */
11423 /* Override any gcc2 internal prototype to avoid an error. */
11427 /* We use char because int might match the return type of a gcc2
11428 builtin and then its argument prototype would still apply. */
11429 char XpCreateContext ();
11433 XpCreateContext ();
11438 rm -f conftest.
$ac_objext conftest
$ac_exeext
11439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11440 (eval $ac_link) 2>conftest.er1
11442 grep -v '^ *+' conftest.er1
>conftest.err
11444 cat conftest.err
>&5
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); } &&
11447 { ac_try
='test -z "$ac_c_werror_flag"
11448 || test ! -s conftest.err'
11449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11450 (eval $ac_try) 2>&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); }; } &&
11454 { ac_try
='test -s conftest$ac_exeext'
11455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11456 (eval $ac_try) 2>&5
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); }; }; then
11460 ac_cv_lib_Xp_XpCreateContext
=yes
11462 echo "$as_me: failed program was:" >&5
11463 sed 's/^/| /' conftest.
$ac_ext >&5
11465 ac_cv_lib_Xp_XpCreateContext
=no
11467 rm -f conftest.err conftest.
$ac_objext \
11468 conftest
$ac_exeext conftest.
$ac_ext
11469 LIBS
=$ac_check_lib_save_LIBS
11471 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11472 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11473 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11477 if test ${HAVE_LIBXP} = yes; then
11479 cat >>confdefs.h
<<\_ACEOF
11480 #define HAVE_LIBXP 1
11485 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11486 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11487 if test "${emacs_cv_lesstif+set}" = set; then
11488 echo $ECHO_N "(cached) $ECHO_C" >&6
11490 # We put this in CFLAGS temporarily to precede other -I options
11491 # that might be in CFLAGS temporarily.
11492 # We put this in CPPFLAGS where it precedes the other -I options.
11493 OLD_CPPFLAGS
=$CPPFLAGS
11495 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11496 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11497 cat >conftest.
$ac_ext <<_ACEOF
11500 cat confdefs.h
>>conftest.
$ac_ext
11501 cat >>conftest.
$ac_ext <<_ACEOF
11502 /* end confdefs.h. */
11503 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11512 rm -f conftest.
$ac_objext
11513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11514 (eval $ac_compile) 2>conftest.er1
11516 grep -v '^ *+' conftest.er1
>conftest.err
11518 cat conftest.err
>&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); } &&
11521 { ac_try
='test -z "$ac_c_werror_flag"
11522 || test ! -s conftest.err'
11523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11524 (eval $ac_try) 2>&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); }; } &&
11528 { ac_try
='test -s conftest.$ac_objext'
11529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11530 (eval $ac_try) 2>&5
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); }; }; then
11534 emacs_cv_lesstif
=yes
11536 echo "$as_me: failed program was:" >&5
11537 sed 's/^/| /' conftest.
$ac_ext >&5
11539 emacs_cv_lesstif
=no
11541 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11543 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11544 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11545 if test $emacs_cv_lesstif = yes; then
11546 # Make sure this -I option remains in CPPFLAGS after it is set
11547 # back to REAL_CPPFLAGS.
11548 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11549 # have those other -I options anyway. Ultimately, having this
11550 # directory ultimately in CPPFLAGS will be enough.
11551 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11552 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11555 CPPFLAGS
=$OLD_CPPFLAGS
11560 ### Is -lXaw3d available?
11562 if test "${HAVE_X11}" = "yes"; then
11563 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
11564 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11565 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11566 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11567 echo $ECHO_N "(cached) $ECHO_C" >&6
11569 cat >conftest.
$ac_ext <<_ACEOF
11572 cat confdefs.h
>>conftest.
$ac_ext
11573 cat >>conftest.
$ac_ext <<_ACEOF
11574 /* end confdefs.h. */
11575 #include <X11/Xaw3d/Scrollbar.h>
11577 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11578 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11580 grep -v '^ *+' conftest.er1
>conftest.err
11582 cat conftest.err
>&5
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); } >/dev
/null
; then
11585 if test -s conftest.err
; then
11586 ac_cpp_err
=$ac_c_preproc_warn_flag
11587 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11594 if test -z "$ac_cpp_err"; then
11595 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
11597 echo "$as_me: failed program was:" >&5
11598 sed 's/^/| /' conftest.
$ac_ext >&5
11600 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
11602 rm -f conftest.err conftest.
$ac_ext
11604 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11605 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11606 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11607 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11608 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11609 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11610 echo $ECHO_N "(cached) $ECHO_C" >&6
11612 ac_check_lib_save_LIBS
=$LIBS
11613 LIBS
="-lXaw3d $LIBS"
11614 cat >conftest.
$ac_ext <<_ACEOF
11617 cat confdefs.h
>>conftest.
$ac_ext
11618 cat >>conftest.
$ac_ext <<_ACEOF
11619 /* end confdefs.h. */
11621 /* Override any gcc2 internal prototype to avoid an error. */
11625 /* We use char because int might match the return type of a gcc2
11626 builtin and then its argument prototype would still apply. */
11627 char XawScrollbarSetThumb ();
11631 XawScrollbarSetThumb ();
11636 rm -f conftest.
$ac_objext conftest
$ac_exeext
11637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11638 (eval $ac_link) 2>conftest.er1
11640 grep -v '^ *+' conftest.er1
>conftest.err
11642 cat conftest.err
>&5
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); } &&
11645 { ac_try
='test -z "$ac_c_werror_flag"
11646 || test ! -s conftest.err'
11647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11648 (eval $ac_try) 2>&5
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); }; } &&
11652 { ac_try
='test -s conftest$ac_exeext'
11653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11654 (eval $ac_try) 2>&5
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); }; }; then
11658 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11660 echo "$as_me: failed program was:" >&5
11661 sed 's/^/| /' conftest.
$ac_ext >&5
11663 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11665 rm -f conftest.err conftest.
$ac_objext \
11666 conftest
$ac_exeext conftest.
$ac_ext
11667 LIBS
=$ac_check_lib_save_LIBS
11669 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11670 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11671 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11678 if test "${HAVE_XAW3D}" = "yes"; then
11680 cat >>confdefs.h
<<\_ACEOF
11681 #define HAVE_XAW3D 1
11690 USE_TOOLKIT_SCROLL_BARS
=no
11691 if test "${with_toolkit_scroll_bars}" != "no"; then
11692 if test "${USE_X_TOOLKIT}" != "none"; then
11693 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11694 cat >>confdefs.h
<<\_ACEOF
11695 #define USE_TOOLKIT_SCROLL_BARS 1
11699 USE_TOOLKIT_SCROLL_BARS
=yes
11700 elif test "${HAVE_XAW3D}" = "yes"; then
11701 cat >>confdefs.h
<<\_ACEOF
11702 #define USE_TOOLKIT_SCROLL_BARS 1
11705 USE_TOOLKIT_SCROLL_BARS
=yes
11707 elif test "${HAVE_GTK}" = "yes"; then
11708 cat >>confdefs.h
<<\_ACEOF
11709 #define USE_TOOLKIT_SCROLL_BARS 1
11712 USE_TOOLKIT_SCROLL_BARS
=yes
11713 elif test "${HAVE_CARBON}" = "yes"; then
11714 cat >>confdefs.h
<<\_ACEOF
11715 #define USE_TOOLKIT_SCROLL_BARS 1
11718 USE_TOOLKIT_SCROLL_BARS
=yes
11722 cat >conftest.
$ac_ext <<_ACEOF
11725 cat confdefs.h
>>conftest.
$ac_ext
11726 cat >>conftest.
$ac_ext <<_ACEOF
11727 /* end confdefs.h. */
11729 #include <X11/Xlib.h>
11730 #include <X11/Xresource.h>
11739 rm -f conftest.
$ac_objext
11740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11741 (eval $ac_compile) 2>conftest.er1
11743 grep -v '^ *+' conftest.er1
>conftest.err
11745 cat conftest.err
>&5
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); } &&
11748 { ac_try
='test -z "$ac_c_werror_flag"
11749 || test ! -s conftest.err'
11750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11751 (eval $ac_try) 2>&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); }; } &&
11755 { ac_try
='test -s conftest.$ac_objext'
11756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11757 (eval $ac_try) 2>&5
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); }; }; then
11763 cat >>confdefs.h
<<\_ACEOF
11768 echo "$as_me: failed program was:" >&5
11769 sed 's/^/| /' conftest.
$ac_ext >&5
11773 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11776 if test "${with_xim}" != "no"; then
11778 cat >>confdefs.h
<<\_ACEOF
11785 if test "${HAVE_XIM}" != "no"; then
11786 late_CFLAGS
=$CFLAGS
11787 if test "$GCC" = yes; then
11788 CFLAGS
="$CFLAGS --pedantic-errors"
11790 cat >conftest.
$ac_ext <<_ACEOF
11793 cat confdefs.h
>>conftest.
$ac_ext
11794 cat >>conftest.
$ac_ext <<_ACEOF
11795 /* end confdefs.h. */
11797 #include <X11/Xlib.h>
11798 #include <X11/Xresource.h>
11807 XPointer *client_data;
11809 /* If we're not using GCC, it's probably not XFree86, and this is
11810 probably right, but we can't use something like --pedantic-errors. */
11811 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11812 char*, XIMProc, XPointer*);
11814 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11820 rm -f conftest.
$ac_objext
11821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11822 (eval $ac_compile) 2>conftest.er1
11824 grep -v '^ *+' conftest.er1
>conftest.err
11826 cat conftest.err
>&5
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); } &&
11829 { ac_try
='test -z "$ac_c_werror_flag"
11830 || test ! -s conftest.err'
11831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11832 (eval $ac_try) 2>&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); }; } &&
11836 { ac_try
='test -s conftest.$ac_objext'
11837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838 (eval $ac_try) 2>&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; }; then
11842 emacs_cv_arg6_star
=yes
11844 echo "$as_me: failed program was:" >&5
11845 sed 's/^/| /' conftest.
$ac_ext >&5
11848 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11850 if test "$emacs_cv_arg6_star" = yes; then
11851 cat >>confdefs.h
<<\_ACEOF
11852 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11856 cat >>confdefs.h
<<\_ACEOF
11857 #define XRegisterIMInstantiateCallback_arg6 XPointer
11861 CFLAGS
=$late_CFLAGS
11864 ### Use -lXpm if available, unless `--with-xpm=no'.
11866 if test "${HAVE_X11}" = "yes"; then
11867 if test "${with_xpm}" != "no"; then
11868 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11869 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11870 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11871 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11872 echo $ECHO_N "(cached) $ECHO_C" >&6
11874 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11875 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11877 # Is the header compilable?
11878 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11879 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11880 cat >conftest.
$ac_ext <<_ACEOF
11883 cat confdefs.h
>>conftest.
$ac_ext
11884 cat >>conftest.
$ac_ext <<_ACEOF
11885 /* end confdefs.h. */
11886 $ac_includes_default
11887 #include <X11/xpm.h>
11889 rm -f conftest.
$ac_objext
11890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11891 (eval $ac_compile) 2>conftest.er1
11893 grep -v '^ *+' conftest.er1
>conftest.err
11895 cat conftest.err
>&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); } &&
11898 { ac_try
='test -z "$ac_c_werror_flag"
11899 || test ! -s conftest.err'
11900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901 (eval $ac_try) 2>&5
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); }; } &&
11905 { ac_try
='test -s conftest.$ac_objext'
11906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11907 (eval $ac_try) 2>&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); }; }; then
11911 ac_header_compiler
=yes
11913 echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.
$ac_ext >&5
11916 ac_header_compiler
=no
11918 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11919 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11920 echo "${ECHO_T}$ac_header_compiler" >&6
11922 # Is the header present?
11923 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11924 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11925 cat >conftest.
$ac_ext <<_ACEOF
11928 cat confdefs.h
>>conftest.
$ac_ext
11929 cat >>conftest.
$ac_ext <<_ACEOF
11930 /* end confdefs.h. */
11931 #include <X11/xpm.h>
11933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11934 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11936 grep -v '^ *+' conftest.er1
>conftest.err
11938 cat conftest.err
>&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } >/dev
/null
; then
11941 if test -s conftest.err
; then
11942 ac_cpp_err
=$ac_c_preproc_warn_flag
11943 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11950 if test -z "$ac_cpp_err"; then
11951 ac_header_preproc
=yes
11953 echo "$as_me: failed program was:" >&5
11954 sed 's/^/| /' conftest.
$ac_ext >&5
11956 ac_header_preproc
=no
11958 rm -f conftest.err conftest.
$ac_ext
11959 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11960 echo "${ECHO_T}$ac_header_preproc" >&6
11962 # So? What about this header?
11963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11965 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11966 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11967 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11968 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11969 ac_header_preproc
=yes
11972 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11973 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11974 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11975 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11976 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11977 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11978 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11979 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11980 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11981 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11982 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11983 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11986 ## ------------------------------------------ ##
11987 ## Report this to the AC_PACKAGE_NAME lists. ##
11988 ## ------------------------------------------ ##
11991 sed "s/^/$as_me: WARNING: /" >&2
11994 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11995 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11996 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11997 echo $ECHO_N "(cached) $ECHO_C" >&6
11999 ac_cv_header_X11_xpm_h
=$ac_header_preproc
12001 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12002 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
12005 if test $ac_cv_header_X11_xpm_h = yes; then
12006 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12007 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
12008 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12009 echo $ECHO_N "(cached) $ECHO_C" >&6
12011 ac_check_lib_save_LIBS
=$LIBS
12012 LIBS
="-lXpm -lX11 $LIBS"
12013 cat >conftest.
$ac_ext <<_ACEOF
12016 cat confdefs.h
>>conftest.
$ac_ext
12017 cat >>conftest.
$ac_ext <<_ACEOF
12018 /* end confdefs.h. */
12020 /* Override any gcc2 internal prototype to avoid an error. */
12024 /* We use char because int might match the return type of a gcc2
12025 builtin and then its argument prototype would still apply. */
12026 char XpmReadFileToPixmap ();
12030 XpmReadFileToPixmap ();
12035 rm -f conftest.
$ac_objext conftest
$ac_exeext
12036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12037 (eval $ac_link) 2>conftest.er1
12039 grep -v '^ *+' conftest.er1
>conftest.err
12041 cat conftest.err
>&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); } &&
12044 { ac_try
='test -z "$ac_c_werror_flag"
12045 || test ! -s conftest.err'
12046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12047 (eval $ac_try) 2>&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); }; } &&
12051 { ac_try
='test -s conftest$ac_exeext'
12052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12053 (eval $ac_try) 2>&5
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); }; }; then
12057 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12059 echo "$as_me: failed program was:" >&5
12060 sed 's/^/| /' conftest.
$ac_ext >&5
12062 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12064 rm -f conftest.err conftest.
$ac_objext \
12065 conftest
$ac_exeext conftest.
$ac_ext
12066 LIBS
=$ac_check_lib_save_LIBS
12068 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12069 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
12070 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12077 if test "${HAVE_XPM}" = "yes"; then
12078 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12079 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
12080 cat >conftest.
$ac_ext <<_ACEOF
12083 cat confdefs.h
>>conftest.
$ac_ext
12084 cat >>conftest.
$ac_ext <<_ACEOF
12085 /* end confdefs.h. */
12086 #include "X11/xpm.h"
12087 #ifndef XpmReturnAllocPixels
12088 no_return_alloc_pixels
12092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12093 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
12101 if test "${HAVE_XPM}" = "yes"; then
12102 echo "$as_me:$LINENO: result: yes" >&5
12103 echo "${ECHO_T}yes" >&6
12105 echo "$as_me:$LINENO: result: no" >&5
12106 echo "${ECHO_T}no" >&6
12111 if test "${HAVE_XPM}" = "yes"; then
12113 cat >>confdefs.h
<<\_ACEOF
12120 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12122 if test "${HAVE_X11}" = "yes"; then
12123 if test "${with_jpeg}" != "no"; then
12124 if test "${ac_cv_header_jerror_h+set}" = set; then
12125 echo "$as_me:$LINENO: checking for jerror.h" >&5
12126 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12127 if test "${ac_cv_header_jerror_h+set}" = set; then
12128 echo $ECHO_N "(cached) $ECHO_C" >&6
12130 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12131 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12133 # Is the header compilable?
12134 echo "$as_me:$LINENO: checking jerror.h usability" >&5
12135 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
12136 cat >conftest.
$ac_ext <<_ACEOF
12139 cat confdefs.h
>>conftest.
$ac_ext
12140 cat >>conftest.
$ac_ext <<_ACEOF
12141 /* end confdefs.h. */
12142 $ac_includes_default
12143 #include <jerror.h>
12145 rm -f conftest.
$ac_objext
12146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12147 (eval $ac_compile) 2>conftest.er1
12149 grep -v '^ *+' conftest.er1
>conftest.err
12151 cat conftest.err
>&5
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); } &&
12154 { ac_try
='test -z "$ac_c_werror_flag"
12155 || test ! -s conftest.err'
12156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12157 (eval $ac_try) 2>&5
12159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 (exit $ac_status); }; } &&
12161 { ac_try
='test -s conftest.$ac_objext'
12162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12163 (eval $ac_try) 2>&5
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); }; }; then
12167 ac_header_compiler
=yes
12169 echo "$as_me: failed program was:" >&5
12170 sed 's/^/| /' conftest.
$ac_ext >&5
12172 ac_header_compiler
=no
12174 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12175 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12176 echo "${ECHO_T}$ac_header_compiler" >&6
12178 # Is the header present?
12179 echo "$as_me:$LINENO: checking jerror.h presence" >&5
12180 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
12181 cat >conftest.
$ac_ext <<_ACEOF
12184 cat confdefs.h
>>conftest.
$ac_ext
12185 cat >>conftest.
$ac_ext <<_ACEOF
12186 /* end confdefs.h. */
12187 #include <jerror.h>
12189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12190 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12192 grep -v '^ *+' conftest.er1
>conftest.err
12194 cat conftest.err
>&5
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); } >/dev
/null
; then
12197 if test -s conftest.err
; then
12198 ac_cpp_err
=$ac_c_preproc_warn_flag
12199 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12206 if test -z "$ac_cpp_err"; then
12207 ac_header_preproc
=yes
12209 echo "$as_me: failed program was:" >&5
12210 sed 's/^/| /' conftest.
$ac_ext >&5
12212 ac_header_preproc
=no
12214 rm -f conftest.err conftest.
$ac_ext
12215 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12216 echo "${ECHO_T}$ac_header_preproc" >&6
12218 # So? What about this header?
12219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12221 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12222 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12223 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12224 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12225 ac_header_preproc
=yes
12228 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12229 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12230 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12231 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12232 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12233 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12234 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12235 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12236 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12237 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12238 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12239 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12242 ## ------------------------------------------ ##
12243 ## Report this to the AC_PACKAGE_NAME lists. ##
12244 ## ------------------------------------------ ##
12247 sed "s/^/$as_me: WARNING: /" >&2
12250 echo "$as_me:$LINENO: checking for jerror.h" >&5
12251 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12252 if test "${ac_cv_header_jerror_h+set}" = set; then
12253 echo $ECHO_N "(cached) $ECHO_C" >&6
12255 ac_cv_header_jerror_h
=$ac_header_preproc
12257 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12258 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12261 if test $ac_cv_header_jerror_h = yes; then
12262 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12263 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
12264 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12265 echo $ECHO_N "(cached) $ECHO_C" >&6
12267 ac_check_lib_save_LIBS
=$LIBS
12268 LIBS
="-ljpeg $LIBS"
12269 cat >conftest.
$ac_ext <<_ACEOF
12272 cat confdefs.h
>>conftest.
$ac_ext
12273 cat >>conftest.
$ac_ext <<_ACEOF
12274 /* end confdefs.h. */
12276 /* Override any gcc2 internal prototype to avoid an error. */
12280 /* We use char because int might match the return type of a gcc2
12281 builtin and then its argument prototype would still apply. */
12282 char jpeg_destroy_compress ();
12286 jpeg_destroy_compress ();
12291 rm -f conftest.
$ac_objext conftest
$ac_exeext
12292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12293 (eval $ac_link) 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"
12301 || test ! -s conftest.err'
12302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12303 (eval $ac_try) 2>&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); }; } &&
12307 { ac_try
='test -s conftest$ac_exeext'
12308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12309 (eval $ac_try) 2>&5
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; }; then
12313 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12315 echo "$as_me: failed program was:" >&5
12316 sed 's/^/| /' conftest.
$ac_ext >&5
12318 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12320 rm -f conftest.err conftest.
$ac_objext \
12321 conftest
$ac_exeext conftest.
$ac_ext
12322 LIBS
=$ac_check_lib_save_LIBS
12324 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12325 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
12326 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12336 if test "${HAVE_JPEG}" = "yes"; then
12337 cat >>confdefs.h
<<\_ACEOF
12338 #define HAVE_JPEG 1
12341 cat >conftest.
$ac_ext <<_ACEOF
12344 cat confdefs.h
>>conftest.
$ac_ext
12345 cat >>conftest.
$ac_ext <<_ACEOF
12346 /* end confdefs.h. */
12347 #include <jpeglib.h>
12348 version=JPEG_LIB_VERSION
12351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12352 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
12353 cat >>confdefs.h
<<\_ACEOF
12354 #define HAVE_JPEG 1
12358 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12359 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12367 ### Use -lpng if available, unless `--with-png=no'.
12369 if test "${HAVE_X11}" = "yes"; then
12370 if test "${with_png}" != "no"; then
12371 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12372 # in /usr/include/libpng.
12375 for ac_header
in png.h libpng
/png.h
12377 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12379 echo "$as_me:$LINENO: checking for $ac_header" >&5
12380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12382 echo $ECHO_N "(cached) $ECHO_C" >&6
12384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12387 # Is the header compilable?
12388 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12390 cat >conftest.
$ac_ext <<_ACEOF
12393 cat confdefs.h
>>conftest.
$ac_ext
12394 cat >>conftest.
$ac_ext <<_ACEOF
12395 /* end confdefs.h. */
12396 $ac_includes_default
12397 #include <$ac_header>
12399 rm -f conftest.
$ac_objext
12400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12401 (eval $ac_compile) 2>conftest.er1
12403 grep -v '^ *+' conftest.er1
>conftest.err
12405 cat conftest.err
>&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } &&
12408 { ac_try
='test -z "$ac_c_werror_flag"
12409 || test ! -s conftest.err'
12410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12411 (eval $ac_try) 2>&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; } &&
12415 { ac_try
='test -s conftest.$ac_objext'
12416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12417 (eval $ac_try) 2>&5
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); }; }; then
12421 ac_header_compiler
=yes
12423 echo "$as_me: failed program was:" >&5
12424 sed 's/^/| /' conftest.
$ac_ext >&5
12426 ac_header_compiler
=no
12428 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12429 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12430 echo "${ECHO_T}$ac_header_compiler" >&6
12432 # Is the header present?
12433 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12435 cat >conftest.
$ac_ext <<_ACEOF
12438 cat confdefs.h
>>conftest.
$ac_ext
12439 cat >>conftest.
$ac_ext <<_ACEOF
12440 /* end confdefs.h. */
12441 #include <$ac_header>
12443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12444 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12446 grep -v '^ *+' conftest.er1
>conftest.err
12448 cat conftest.err
>&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); } >/dev
/null
; then
12451 if test -s conftest.err
; then
12452 ac_cpp_err
=$ac_c_preproc_warn_flag
12453 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12460 if test -z "$ac_cpp_err"; then
12461 ac_header_preproc
=yes
12463 echo "$as_me: failed program was:" >&5
12464 sed 's/^/| /' conftest.
$ac_ext >&5
12466 ac_header_preproc
=no
12468 rm -f conftest.err conftest.
$ac_ext
12469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12470 echo "${ECHO_T}$ac_header_preproc" >&6
12472 # So? What about this header?
12473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12478 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12479 ac_header_preproc
=yes
12482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12485 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12486 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12487 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12488 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12489 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12492 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12493 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12496 ## ------------------------------------------ ##
12497 ## Report this to the AC_PACKAGE_NAME lists. ##
12498 ## ------------------------------------------ ##
12501 sed "s/^/$as_me: WARNING: /" >&2
12504 echo "$as_me:$LINENO: checking for $ac_header" >&5
12505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12507 echo $ECHO_N "(cached) $ECHO_C" >&6
12509 eval "$as_ac_Header=\$ac_header_preproc"
12511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12516 cat >>confdefs.h
<<_ACEOF
12517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12524 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12525 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12526 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12527 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12528 echo $ECHO_N "(cached) $ECHO_C" >&6
12530 ac_check_lib_save_LIBS
=$LIBS
12531 LIBS
="-lpng -lz -lm $LIBS"
12532 cat >conftest.
$ac_ext <<_ACEOF
12535 cat confdefs.h
>>conftest.
$ac_ext
12536 cat >>conftest.
$ac_ext <<_ACEOF
12537 /* end confdefs.h. */
12539 /* Override any gcc2 internal prototype to avoid an error. */
12543 /* We use char because int might match the return type of a gcc2
12544 builtin and then its argument prototype would still apply. */
12545 char png_get_channels ();
12549 png_get_channels ();
12554 rm -f conftest.
$ac_objext conftest
$ac_exeext
12555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12556 (eval $ac_link) 2>conftest.er1
12558 grep -v '^ *+' conftest.er1
>conftest.err
12560 cat conftest.err
>&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } &&
12563 { ac_try
='test -z "$ac_c_werror_flag"
12564 || test ! -s conftest.err'
12565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12566 (eval $ac_try) 2>&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); }; } &&
12570 { ac_try
='test -s conftest$ac_exeext'
12571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12572 (eval $ac_try) 2>&5
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); }; }; then
12576 ac_cv_lib_png_png_get_channels
=yes
12578 echo "$as_me: failed program was:" >&5
12579 sed 's/^/| /' conftest.
$ac_ext >&5
12581 ac_cv_lib_png_png_get_channels
=no
12583 rm -f conftest.err conftest.
$ac_objext \
12584 conftest
$ac_exeext conftest.
$ac_ext
12585 LIBS
=$ac_check_lib_save_LIBS
12587 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12588 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12589 if test $ac_cv_lib_png_png_get_channels = yes; then
12596 if test "${HAVE_PNG}" = "yes"; then
12598 cat >>confdefs.h
<<\_ACEOF
12605 ### Use -ltiff if available, unless `--with-tiff=no'.
12607 if test "${HAVE_X11}" = "yes"; then
12608 if test "${with_tiff}" != "no"; then
12609 if test "${ac_cv_header_tiffio_h+set}" = set; then
12610 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12611 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12612 if test "${ac_cv_header_tiffio_h+set}" = set; then
12613 echo $ECHO_N "(cached) $ECHO_C" >&6
12615 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12616 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12618 # Is the header compilable?
12619 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12620 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12621 cat >conftest.
$ac_ext <<_ACEOF
12624 cat confdefs.h
>>conftest.
$ac_ext
12625 cat >>conftest.
$ac_ext <<_ACEOF
12626 /* end confdefs.h. */
12627 $ac_includes_default
12628 #include <tiffio.h>
12630 rm -f conftest.
$ac_objext
12631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12632 (eval $ac_compile) 2>conftest.er1
12634 grep -v '^ *+' conftest.er1
>conftest.err
12636 cat conftest.err
>&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); } &&
12639 { ac_try
='test -z "$ac_c_werror_flag"
12640 || test ! -s conftest.err'
12641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642 (eval $ac_try) 2>&5
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; } &&
12646 { ac_try
='test -s conftest.$ac_objext'
12647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648 (eval $ac_try) 2>&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; }; then
12652 ac_header_compiler
=yes
12654 echo "$as_me: failed program was:" >&5
12655 sed 's/^/| /' conftest.
$ac_ext >&5
12657 ac_header_compiler
=no
12659 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12660 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12661 echo "${ECHO_T}$ac_header_compiler" >&6
12663 # Is the header present?
12664 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12665 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12666 cat >conftest.
$ac_ext <<_ACEOF
12669 cat confdefs.h
>>conftest.
$ac_ext
12670 cat >>conftest.
$ac_ext <<_ACEOF
12671 /* end confdefs.h. */
12672 #include <tiffio.h>
12674 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12675 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12677 grep -v '^ *+' conftest.er1
>conftest.err
12679 cat conftest.err
>&5
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); } >/dev
/null
; then
12682 if test -s conftest.err
; then
12683 ac_cpp_err
=$ac_c_preproc_warn_flag
12684 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12691 if test -z "$ac_cpp_err"; then
12692 ac_header_preproc
=yes
12694 echo "$as_me: failed program was:" >&5
12695 sed 's/^/| /' conftest.
$ac_ext >&5
12697 ac_header_preproc
=no
12699 rm -f conftest.err conftest.
$ac_ext
12700 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12701 echo "${ECHO_T}$ac_header_preproc" >&6
12703 # So? What about this header?
12704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12706 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12707 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12708 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12709 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12710 ac_header_preproc
=yes
12713 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12714 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12715 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12716 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12717 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12718 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12719 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12720 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12721 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12722 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12723 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12724 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12727 ## ------------------------------------------ ##
12728 ## Report this to the AC_PACKAGE_NAME lists. ##
12729 ## ------------------------------------------ ##
12732 sed "s/^/$as_me: WARNING: /" >&2
12735 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12736 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12737 if test "${ac_cv_header_tiffio_h+set}" = set; then
12738 echo $ECHO_N "(cached) $ECHO_C" >&6
12740 ac_cv_header_tiffio_h
=$ac_header_preproc
12742 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12743 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12746 if test $ac_cv_header_tiffio_h = yes; then
12748 # At least one tiff package requires the jpeg library.
12749 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12750 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12751 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12752 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12753 echo $ECHO_N "(cached) $ECHO_C" >&6
12755 ac_check_lib_save_LIBS
=$LIBS
12756 LIBS
="-ltiff $tifflibs $LIBS"
12757 cat >conftest.
$ac_ext <<_ACEOF
12760 cat confdefs.h
>>conftest.
$ac_ext
12761 cat >>conftest.
$ac_ext <<_ACEOF
12762 /* end confdefs.h. */
12764 /* Override any gcc2 internal prototype to avoid an error. */
12768 /* We use char because int might match the return type of a gcc2
12769 builtin and then its argument prototype would still apply. */
12770 char TIFFGetVersion ();
12779 rm -f conftest.
$ac_objext conftest
$ac_exeext
12780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12781 (eval $ac_link) 2>conftest.er1
12783 grep -v '^ *+' conftest.er1
>conftest.err
12785 cat conftest.err
>&5
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); } &&
12788 { ac_try
='test -z "$ac_c_werror_flag"
12789 || test ! -s conftest.err'
12790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12791 (eval $ac_try) 2>&5
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); }; } &&
12795 { ac_try
='test -s conftest$ac_exeext'
12796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797 (eval $ac_try) 2>&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; }; then
12801 ac_cv_lib_tiff_TIFFGetVersion
=yes
12803 echo "$as_me: failed program was:" >&5
12804 sed 's/^/| /' conftest.
$ac_ext >&5
12806 ac_cv_lib_tiff_TIFFGetVersion
=no
12808 rm -f conftest.err conftest.
$ac_objext \
12809 conftest
$ac_exeext conftest.
$ac_ext
12810 LIBS
=$ac_check_lib_save_LIBS
12812 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12813 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12814 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12823 if test "${HAVE_TIFF}" = "yes"; then
12825 cat >>confdefs.h
<<\_ACEOF
12826 #define HAVE_TIFF 1
12832 ### Use -lgif if available, unless `--with-gif=no'.
12834 if test "${HAVE_X11}" = "yes"; then
12835 if test "${with_gif}" != "no"; then
12836 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12837 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12838 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12839 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12840 echo $ECHO_N "(cached) $ECHO_C" >&6
12842 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12843 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12845 # Is the header compilable?
12846 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12847 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12848 cat >conftest.
$ac_ext <<_ACEOF
12851 cat confdefs.h
>>conftest.
$ac_ext
12852 cat >>conftest.
$ac_ext <<_ACEOF
12853 /* end confdefs.h. */
12854 $ac_includes_default
12855 #include <gif_lib.h>
12857 rm -f conftest.
$ac_objext
12858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12859 (eval $ac_compile) 2>conftest.er1
12861 grep -v '^ *+' conftest.er1
>conftest.err
12863 cat conftest.err
>&5
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); } &&
12866 { ac_try
='test -z "$ac_c_werror_flag"
12867 || test ! -s conftest.err'
12868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12869 (eval $ac_try) 2>&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); }; } &&
12873 { ac_try
='test -s conftest.$ac_objext'
12874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12875 (eval $ac_try) 2>&5
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); }; }; then
12879 ac_header_compiler
=yes
12881 echo "$as_me: failed program was:" >&5
12882 sed 's/^/| /' conftest.
$ac_ext >&5
12884 ac_header_compiler
=no
12886 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12887 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12888 echo "${ECHO_T}$ac_header_compiler" >&6
12890 # Is the header present?
12891 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12892 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12893 cat >conftest.
$ac_ext <<_ACEOF
12896 cat confdefs.h
>>conftest.
$ac_ext
12897 cat >>conftest.
$ac_ext <<_ACEOF
12898 /* end confdefs.h. */
12899 #include <gif_lib.h>
12901 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12902 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12904 grep -v '^ *+' conftest.er1
>conftest.err
12906 cat conftest.err
>&5
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); } >/dev
/null
; then
12909 if test -s conftest.err
; then
12910 ac_cpp_err
=$ac_c_preproc_warn_flag
12911 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12918 if test -z "$ac_cpp_err"; then
12919 ac_header_preproc
=yes
12921 echo "$as_me: failed program was:" >&5
12922 sed 's/^/| /' conftest.
$ac_ext >&5
12924 ac_header_preproc
=no
12926 rm -f conftest.err conftest.
$ac_ext
12927 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12928 echo "${ECHO_T}$ac_header_preproc" >&6
12930 # So? What about this header?
12931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12933 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12934 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12935 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12936 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12937 ac_header_preproc
=yes
12940 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12941 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12942 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12943 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12944 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12945 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12946 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12947 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12948 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12949 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12950 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12951 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12954 ## ------------------------------------------ ##
12955 ## Report this to the AC_PACKAGE_NAME lists. ##
12956 ## ------------------------------------------ ##
12959 sed "s/^/$as_me: WARNING: /" >&2
12962 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12963 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12964 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12965 echo $ECHO_N "(cached) $ECHO_C" >&6
12967 ac_cv_header_gif_lib_h
=$ac_header_preproc
12969 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12970 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12973 if test $ac_cv_header_gif_lib_h = yes; then
12974 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12975 # Earlier versions can crash Emacs.
12976 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12977 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12978 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12979 echo $ECHO_N "(cached) $ECHO_C" >&6
12981 ac_check_lib_save_LIBS
=$LIBS
12982 LIBS
="-lungif $LIBS"
12983 cat >conftest.
$ac_ext <<_ACEOF
12986 cat confdefs.h
>>conftest.
$ac_ext
12987 cat >>conftest.
$ac_ext <<_ACEOF
12988 /* end confdefs.h. */
12990 /* Override any gcc2 internal prototype to avoid an error. */
12994 /* We use char because int might match the return type of a gcc2
12995 builtin and then its argument prototype would still apply. */
12996 char EGifPutExtensionLast ();
13000 EGifPutExtensionLast ();
13005 rm -f conftest.
$ac_objext conftest
$ac_exeext
13006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13007 (eval $ac_link) 2>conftest.er1
13009 grep -v '^ *+' conftest.er1
>conftest.err
13011 cat conftest.err
>&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); } &&
13014 { ac_try
='test -z "$ac_c_werror_flag"
13015 || test ! -s conftest.err'
13016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13017 (eval $ac_try) 2>&5
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); }; } &&
13021 { ac_try
='test -s conftest$ac_exeext'
13022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13023 (eval $ac_try) 2>&5
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); }; }; then
13027 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
13029 echo "$as_me: failed program was:" >&5
13030 sed 's/^/| /' conftest.
$ac_ext >&5
13032 ac_cv_lib_ungif_EGifPutExtensionLast
=no
13034 rm -f conftest.err conftest.
$ac_objext \
13035 conftest
$ac_exeext conftest.
$ac_ext
13036 LIBS
=$ac_check_lib_save_LIBS
13038 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13039 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
13040 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13049 if test "${HAVE_GIF}" = "yes"; then
13051 cat >>confdefs.h
<<\_ACEOF
13058 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13059 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13060 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13061 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13062 echo $ECHO_N "(cached) $ECHO_C" >&6
13064 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13065 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13067 # Is the header compilable?
13068 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13069 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
13070 cat >conftest.
$ac_ext <<_ACEOF
13073 cat confdefs.h
>>conftest.
$ac_ext
13074 cat >>conftest.
$ac_ext <<_ACEOF
13075 /* end confdefs.h. */
13076 $ac_includes_default
13077 #include <malloc/malloc.h>
13079 rm -f conftest.
$ac_objext
13080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13081 (eval $ac_compile) 2>conftest.er1
13083 grep -v '^ *+' conftest.er1
>conftest.err
13085 cat conftest.err
>&5
13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); } &&
13088 { ac_try
='test -z "$ac_c_werror_flag"
13089 || test ! -s conftest.err'
13090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13091 (eval $ac_try) 2>&5
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); }; } &&
13095 { ac_try
='test -s conftest.$ac_objext'
13096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13097 (eval $ac_try) 2>&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); }; }; then
13101 ac_header_compiler
=yes
13103 echo "$as_me: failed program was:" >&5
13104 sed 's/^/| /' conftest.
$ac_ext >&5
13106 ac_header_compiler
=no
13108 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13109 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13110 echo "${ECHO_T}$ac_header_compiler" >&6
13112 # Is the header present?
13113 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13114 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
13115 cat >conftest.
$ac_ext <<_ACEOF
13118 cat confdefs.h
>>conftest.
$ac_ext
13119 cat >>conftest.
$ac_ext <<_ACEOF
13120 /* end confdefs.h. */
13121 #include <malloc/malloc.h>
13123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13124 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13126 grep -v '^ *+' conftest.er1
>conftest.err
13128 cat conftest.err
>&5
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); } >/dev
/null
; then
13131 if test -s conftest.err
; then
13132 ac_cpp_err
=$ac_c_preproc_warn_flag
13133 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13140 if test -z "$ac_cpp_err"; then
13141 ac_header_preproc
=yes
13143 echo "$as_me: failed program was:" >&5
13144 sed 's/^/| /' conftest.
$ac_ext >&5
13146 ac_header_preproc
=no
13148 rm -f conftest.err conftest.
$ac_ext
13149 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13150 echo "${ECHO_T}$ac_header_preproc" >&6
13152 # So? What about this header?
13153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13155 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13156 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13157 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13158 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13159 ac_header_preproc
=yes
13162 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13163 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13164 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13165 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13166 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13167 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13168 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13169 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13170 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13171 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13172 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13173 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13176 ## ------------------------------------------ ##
13177 ## Report this to the AC_PACKAGE_NAME lists. ##
13178 ## ------------------------------------------ ##
13181 sed "s/^/$as_me: WARNING: /" >&2
13184 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13185 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13186 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
13189 ac_cv_header_malloc_malloc_h
=$ac_header_preproc
13191 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13192 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13195 if test $ac_cv_header_malloc_malloc_h = yes; then
13197 cat >>confdefs.h
<<\_ACEOF
13198 #define HAVE_MALLOC_MALLOC_H 1
13205 ### Use Mac OS X Carbon API to implement GUI.
13206 if test "${HAVE_CARBON}" = "yes"; then
13208 cat >>confdefs.h
<<\_ACEOF
13209 #define HAVE_CARBON 1
13212 ## Specify the install directory
13214 if test "${carbon_appdir_x}" != ""; then
13215 case ${carbon_appdir_x} in
13216 y | ye |
yes) carbon_appdir
=/Applications
;;
13217 * ) carbon_appdir
=${carbon_appdir_x} ;;
13220 # We also have mouse menus.
13224 ### Use session management (-lSM -lICE) if available
13226 if test "${HAVE_X11}" = "yes"; then
13227 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13228 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13229 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13230 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13231 echo $ECHO_N "(cached) $ECHO_C" >&6
13233 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13234 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13236 # Is the header compilable?
13237 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13238 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13239 cat >conftest.
$ac_ext <<_ACEOF
13242 cat confdefs.h
>>conftest.
$ac_ext
13243 cat >>conftest.
$ac_ext <<_ACEOF
13244 /* end confdefs.h. */
13245 $ac_includes_default
13246 #include <X11/SM/SMlib.h>
13248 rm -f conftest.
$ac_objext
13249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13250 (eval $ac_compile) 2>conftest.er1
13252 grep -v '^ *+' conftest.er1
>conftest.err
13254 cat conftest.err
>&5
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); } &&
13257 { ac_try
='test -z "$ac_c_werror_flag"
13258 || test ! -s conftest.err'
13259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13260 (eval $ac_try) 2>&5
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); }; } &&
13264 { ac_try
='test -s conftest.$ac_objext'
13265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13266 (eval $ac_try) 2>&5
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); }; }; then
13270 ac_header_compiler
=yes
13272 echo "$as_me: failed program was:" >&5
13273 sed 's/^/| /' conftest.
$ac_ext >&5
13275 ac_header_compiler
=no
13277 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13278 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13279 echo "${ECHO_T}$ac_header_compiler" >&6
13281 # Is the header present?
13282 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13283 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13284 cat >conftest.
$ac_ext <<_ACEOF
13287 cat confdefs.h
>>conftest.
$ac_ext
13288 cat >>conftest.
$ac_ext <<_ACEOF
13289 /* end confdefs.h. */
13290 #include <X11/SM/SMlib.h>
13292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13293 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13295 grep -v '^ *+' conftest.er1
>conftest.err
13297 cat conftest.err
>&5
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); } >/dev
/null
; then
13300 if test -s conftest.err
; then
13301 ac_cpp_err
=$ac_c_preproc_warn_flag
13302 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13309 if test -z "$ac_cpp_err"; then
13310 ac_header_preproc
=yes
13312 echo "$as_me: failed program was:" >&5
13313 sed 's/^/| /' conftest.
$ac_ext >&5
13315 ac_header_preproc
=no
13317 rm -f conftest.err conftest.
$ac_ext
13318 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13319 echo "${ECHO_T}$ac_header_preproc" >&6
13321 # So? What about this header?
13322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13324 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13325 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13326 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13327 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13328 ac_header_preproc
=yes
13331 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13332 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13333 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13334 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13335 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13336 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13337 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13338 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13339 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13340 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13341 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13342 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13345 ## ------------------------------------------ ##
13346 ## Report this to the AC_PACKAGE_NAME lists. ##
13347 ## ------------------------------------------ ##
13350 sed "s/^/$as_me: WARNING: /" >&2
13353 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13354 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13355 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13356 echo $ECHO_N "(cached) $ECHO_C" >&6
13358 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
13360 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13361 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13364 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13365 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13366 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
13367 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13368 echo $ECHO_N "(cached) $ECHO_C" >&6
13370 ac_check_lib_save_LIBS
=$LIBS
13371 LIBS
="-lSM -lICE $LIBS"
13372 cat >conftest.
$ac_ext <<_ACEOF
13375 cat confdefs.h
>>conftest.
$ac_ext
13376 cat >>conftest.
$ac_ext <<_ACEOF
13377 /* end confdefs.h. */
13379 /* Override any gcc2 internal prototype to avoid an error. */
13383 /* We use char because int might match the return type of a gcc2
13384 builtin and then its argument prototype would still apply. */
13385 char SmcOpenConnection ();
13389 SmcOpenConnection ();
13394 rm -f conftest.
$ac_objext conftest
$ac_exeext
13395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13396 (eval $ac_link) 2>conftest.er1
13398 grep -v '^ *+' conftest.er1
>conftest.err
13400 cat conftest.err
>&5
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); } &&
13403 { ac_try
='test -z "$ac_c_werror_flag"
13404 || test ! -s conftest.err'
13405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13406 (eval $ac_try) 2>&5
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); }; } &&
13410 { ac_try
='test -s conftest$ac_exeext'
13411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13412 (eval $ac_try) 2>&5
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); }; }; then
13416 ac_cv_lib_SM_SmcOpenConnection
=yes
13418 echo "$as_me: failed program was:" >&5
13419 sed 's/^/| /' conftest.
$ac_ext >&5
13421 ac_cv_lib_SM_SmcOpenConnection
=no
13423 rm -f conftest.err conftest.
$ac_objext \
13424 conftest
$ac_exeext conftest.
$ac_ext
13425 LIBS
=$ac_check_lib_save_LIBS
13427 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13428 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13429 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13437 if test "${HAVE_X_SM}" = "yes"; then
13439 cat >>confdefs.h
<<\_ACEOF
13440 #define HAVE_X_SM 1
13445 *) LIBS
="-lSM -lICE $LIBS" ;;
13450 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13451 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13452 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13453 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13454 echo $ECHO_N "(cached) $ECHO_C" >&6
13456 cat >conftest.
$ac_ext <<_ACEOF
13459 cat confdefs.h
>>conftest.
$ac_ext
13460 cat >>conftest.
$ac_ext <<_ACEOF
13461 /* end confdefs.h. */
13471 rm -f conftest.
$ac_objext conftest
$ac_exeext
13472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13473 (eval $ac_link) 2>conftest.er1
13475 grep -v '^ *+' conftest.er1
>conftest.err
13477 cat conftest.err
>&5
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); } &&
13480 { ac_try
='test -z "$ac_c_werror_flag"
13481 || test ! -s conftest.err'
13482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13483 (eval $ac_try) 2>&5
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); }; } &&
13487 { ac_try
='test -s conftest$ac_exeext'
13488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13489 (eval $ac_try) 2>&5
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; }; then
13493 emacs_cv_netdb_declares_h_errno
=yes
13495 echo "$as_me: failed program was:" >&5
13496 sed 's/^/| /' conftest.
$ac_ext >&5
13498 emacs_cv_netdb_declares_h_errno
=no
13500 rm -f conftest.err conftest.
$ac_objext \
13501 conftest
$ac_exeext conftest.
$ac_ext
13503 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13504 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13505 if test $emacs_cv_netdb_declares_h_errno = yes; then
13507 cat >>confdefs.h
<<\_ACEOF
13508 #define HAVE_H_ERRNO 1
13513 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13514 # for constant arguments. Useless!
13515 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13516 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13517 if test "${ac_cv_working_alloca_h+set}" = set; then
13518 echo $ECHO_N "(cached) $ECHO_C" >&6
13520 cat >conftest.
$ac_ext <<_ACEOF
13523 cat confdefs.h
>>conftest.
$ac_ext
13524 cat >>conftest.
$ac_ext <<_ACEOF
13525 /* end confdefs.h. */
13526 #include <alloca.h>
13530 char *p = (char *) alloca (2 * sizeof (int));
13535 rm -f conftest.
$ac_objext conftest
$ac_exeext
13536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13537 (eval $ac_link) 2>conftest.er1
13539 grep -v '^ *+' conftest.er1
>conftest.err
13541 cat conftest.err
>&5
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); } &&
13544 { ac_try
='test -z "$ac_c_werror_flag"
13545 || test ! -s conftest.err'
13546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13547 (eval $ac_try) 2>&5
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); }; } &&
13551 { ac_try
='test -s conftest$ac_exeext'
13552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553 (eval $ac_try) 2>&5
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); }; }; then
13557 ac_cv_working_alloca_h
=yes
13559 echo "$as_me: failed program was:" >&5
13560 sed 's/^/| /' conftest.
$ac_ext >&5
13562 ac_cv_working_alloca_h
=no
13564 rm -f conftest.err conftest.
$ac_objext \
13565 conftest
$ac_exeext conftest.
$ac_ext
13567 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13568 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13569 if test $ac_cv_working_alloca_h = yes; then
13571 cat >>confdefs.h
<<\_ACEOF
13572 #define HAVE_ALLOCA_H 1
13577 echo "$as_me:$LINENO: checking for alloca" >&5
13578 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13579 if test "${ac_cv_func_alloca_works+set}" = set; then
13580 echo $ECHO_N "(cached) $ECHO_C" >&6
13582 cat >conftest.
$ac_ext <<_ACEOF
13585 cat confdefs.h
>>conftest.
$ac_ext
13586 cat >>conftest.
$ac_ext <<_ACEOF
13587 /* end confdefs.h. */
13589 # define alloca __builtin_alloca
13592 # include <malloc.h>
13593 # define alloca _alloca
13596 # include <alloca.h>
13601 # ifndef alloca /* predefined by HP cc +Olibcalls */
13612 char *p = (char *) alloca (1);
13617 rm -f conftest.
$ac_objext conftest
$ac_exeext
13618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13619 (eval $ac_link) 2>conftest.er1
13621 grep -v '^ *+' conftest.er1
>conftest.err
13623 cat conftest.err
>&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); } &&
13626 { ac_try
='test -z "$ac_c_werror_flag"
13627 || test ! -s conftest.err'
13628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629 (eval $ac_try) 2>&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }; } &&
13633 { ac_try
='test -s conftest$ac_exeext'
13634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13635 (eval $ac_try) 2>&5
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); }; }; then
13639 ac_cv_func_alloca_works
=yes
13641 echo "$as_me: failed program was:" >&5
13642 sed 's/^/| /' conftest.
$ac_ext >&5
13644 ac_cv_func_alloca_works
=no
13646 rm -f conftest.err conftest.
$ac_objext \
13647 conftest
$ac_exeext conftest.
$ac_ext
13649 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13650 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13652 if test $ac_cv_func_alloca_works = yes; then
13654 cat >>confdefs.h
<<\_ACEOF
13655 #define HAVE_ALLOCA 1
13659 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13660 # that cause trouble. Some versions do not even contain alloca or
13661 # contain a buggy version. If you still want to use their alloca,
13662 # use ar to extract alloca.o from them instead of compiling alloca.c.
13664 ALLOCA
=alloca.
$ac_objext
13666 cat >>confdefs.h
<<\_ACEOF
13671 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13672 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13673 if test "${ac_cv_os_cray+set}" = set; then
13674 echo $ECHO_N "(cached) $ECHO_C" >&6
13676 cat >conftest.
$ac_ext <<_ACEOF
13679 cat confdefs.h
>>conftest.
$ac_ext
13680 cat >>conftest.
$ac_ext <<_ACEOF
13681 /* end confdefs.h. */
13682 #if defined(CRAY) && ! defined(CRAY2)
13689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13690 $EGREP "webecray" >/dev
/null
2>&1; then
13698 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13699 echo "${ECHO_T}$ac_cv_os_cray" >&6
13700 if test $ac_cv_os_cray = yes; then
13701 for ac_func
in _getb67 GETB67 getb67
; do
13702 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13703 echo "$as_me:$LINENO: checking for $ac_func" >&5
13704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13705 if eval "test \"\${$as_ac_var+set}\" = set"; then
13706 echo $ECHO_N "(cached) $ECHO_C" >&6
13708 cat >conftest.
$ac_ext <<_ACEOF
13711 cat confdefs.h
>>conftest.
$ac_ext
13712 cat >>conftest.
$ac_ext <<_ACEOF
13713 /* end confdefs.h. */
13714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13716 #define $ac_func innocuous_$ac_func
13718 /* System header to define __stub macros and hopefully few prototypes,
13719 which can conflict with char $ac_func (); below.
13720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13721 <limits.h> exists even on freestanding compilers. */
13724 # include <limits.h>
13726 # include <assert.h>
13731 /* Override any gcc2 internal prototype to avoid an error. */
13736 /* We use char because int might match the return type of a gcc2
13737 builtin and then its argument prototype would still apply. */
13739 /* The GNU C library defines this for functions which it implements
13740 to always fail with ENOSYS. Some functions are actually named
13741 something starting with __ and the normal name is an alias. */
13742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13745 char (*f) () = $ac_func;
13754 return f != $ac_func;
13759 rm -f conftest.
$ac_objext conftest
$ac_exeext
13760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13761 (eval $ac_link) 2>conftest.er1
13763 grep -v '^ *+' conftest.er1
>conftest.err
13765 cat conftest.err
>&5
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); } &&
13768 { ac_try
='test -z "$ac_c_werror_flag"
13769 || test ! -s conftest.err'
13770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13771 (eval $ac_try) 2>&5
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); }; } &&
13775 { ac_try
='test -s conftest$ac_exeext'
13776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13777 (eval $ac_try) 2>&5
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); }; }; then
13781 eval "$as_ac_var=yes"
13783 echo "$as_me: failed program was:" >&5
13784 sed 's/^/| /' conftest.
$ac_ext >&5
13786 eval "$as_ac_var=no"
13788 rm -f conftest.err conftest.
$ac_objext \
13789 conftest
$ac_exeext conftest.
$ac_ext
13791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13792 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13793 if test `eval echo '${'$as_ac_var'}'` = yes; then
13795 cat >>confdefs.h
<<_ACEOF
13796 #define CRAY_STACKSEG_END $ac_func
13805 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13806 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13807 if test "${ac_cv_c_stack_direction+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
13810 if test "$cross_compiling" = yes; then
13811 ac_cv_c_stack_direction
=0
13813 cat >conftest.
$ac_ext <<_ACEOF
13816 cat confdefs.h
>>conftest.
$ac_ext
13817 cat >>conftest.
$ac_ext <<_ACEOF
13818 /* end confdefs.h. */
13820 find_stack_direction ()
13822 static char *addr = 0;
13827 return find_stack_direction ();
13830 return (&dummy > addr) ? 1 : -1;
13836 exit (find_stack_direction () < 0);
13839 rm -f conftest
$ac_exeext
13840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13841 (eval $ac_link) 2>&5
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13846 (eval $ac_try) 2>&5
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); }; }; then
13850 ac_cv_c_stack_direction
=1
13852 echo "$as_me: program exited with status $ac_status" >&5
13853 echo "$as_me: failed program was:" >&5
13854 sed 's/^/| /' conftest.
$ac_ext >&5
13856 ( exit $ac_status )
13857 ac_cv_c_stack_direction
=-1
13859 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13862 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13863 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13865 cat >>confdefs.h
<<_ACEOF
13866 #define STACK_DIRECTION $ac_cv_c_stack_direction
13873 # fmod, logb, and frexp are found in -lm on most systems.
13874 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13876 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13877 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13878 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13879 echo $ECHO_N "(cached) $ECHO_C" >&6
13881 ac_check_lib_save_LIBS
=$LIBS
13883 cat >conftest.
$ac_ext <<_ACEOF
13886 cat confdefs.h
>>conftest.
$ac_ext
13887 cat >>conftest.
$ac_ext <<_ACEOF
13888 /* end confdefs.h. */
13890 /* Override any gcc2 internal prototype to avoid an error. */
13894 /* We use char because int might match the return type of a gcc2
13895 builtin and then its argument prototype would still apply. */
13905 rm -f conftest.
$ac_objext conftest
$ac_exeext
13906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13907 (eval $ac_link) 2>conftest.er1
13909 grep -v '^ *+' conftest.er1
>conftest.err
13911 cat conftest.err
>&5
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); } &&
13914 { ac_try
='test -z "$ac_c_werror_flag"
13915 || test ! -s conftest.err'
13916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13917 (eval $ac_try) 2>&5
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); }; } &&
13921 { ac_try
='test -s conftest$ac_exeext'
13922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13923 (eval $ac_try) 2>&5
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); }; }; then
13927 ac_cv_lib_m_sqrt
=yes
13929 echo "$as_me: failed program was:" >&5
13930 sed 's/^/| /' conftest.
$ac_ext >&5
13932 ac_cv_lib_m_sqrt
=no
13934 rm -f conftest.err conftest.
$ac_objext \
13935 conftest
$ac_exeext conftest.
$ac_ext
13936 LIBS
=$ac_check_lib_save_LIBS
13938 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13939 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13940 if test $ac_cv_lib_m_sqrt = yes; then
13941 cat >>confdefs.h
<<_ACEOF
13942 #define HAVE_LIBM 1
13950 # Check for mail-locking functions in a "mail" library. Probably this should
13951 # have the same check as for liblockfile below.
13953 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13954 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13955 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13956 echo $ECHO_N "(cached) $ECHO_C" >&6
13958 ac_check_lib_save_LIBS
=$LIBS
13959 LIBS
="-lmail $LIBS"
13960 cat >conftest.
$ac_ext <<_ACEOF
13963 cat confdefs.h
>>conftest.
$ac_ext
13964 cat >>conftest.
$ac_ext <<_ACEOF
13965 /* end confdefs.h. */
13967 /* Override any gcc2 internal prototype to avoid an error. */
13971 /* We use char because int might match the return type of a gcc2
13972 builtin and then its argument prototype would still apply. */
13982 rm -f conftest.
$ac_objext conftest
$ac_exeext
13983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13984 (eval $ac_link) 2>conftest.er1
13986 grep -v '^ *+' conftest.er1
>conftest.err
13988 cat conftest.err
>&5
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); } &&
13991 { ac_try
='test -z "$ac_c_werror_flag"
13992 || test ! -s conftest.err'
13993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13994 (eval $ac_try) 2>&5
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); }; } &&
13998 { ac_try
='test -s conftest$ac_exeext'
13999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14000 (eval $ac_try) 2>&5
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); }; }; then
14004 ac_cv_lib_mail_maillock
=yes
14006 echo "$as_me: failed program was:" >&5
14007 sed 's/^/| /' conftest.
$ac_ext >&5
14009 ac_cv_lib_mail_maillock
=no
14011 rm -f conftest.err conftest.
$ac_objext \
14012 conftest
$ac_exeext conftest.
$ac_ext
14013 LIBS
=$ac_check_lib_save_LIBS
14015 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14016 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
14017 if test $ac_cv_lib_mail_maillock = yes; then
14018 cat >>confdefs.h
<<_ACEOF
14019 #define HAVE_LIBMAIL 1
14022 LIBS
="-lmail $LIBS"
14027 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14028 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
14029 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14030 echo $ECHO_N "(cached) $ECHO_C" >&6
14032 ac_check_lib_save_LIBS
=$LIBS
14033 LIBS
="-llockfile $LIBS"
14034 cat >conftest.
$ac_ext <<_ACEOF
14037 cat confdefs.h
>>conftest.
$ac_ext
14038 cat >>conftest.
$ac_ext <<_ACEOF
14039 /* end confdefs.h. */
14041 /* Override any gcc2 internal prototype to avoid an error. */
14045 /* We use char because int might match the return type of a gcc2
14046 builtin and then its argument prototype would still apply. */
14056 rm -f conftest.
$ac_objext conftest
$ac_exeext
14057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14058 (eval $ac_link) 2>conftest.er1
14060 grep -v '^ *+' conftest.er1
>conftest.err
14062 cat conftest.err
>&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); } &&
14065 { ac_try
='test -z "$ac_c_werror_flag"
14066 || test ! -s conftest.err'
14067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068 (eval $ac_try) 2>&5
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; } &&
14072 { ac_try
='test -s conftest$ac_exeext'
14073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14074 (eval $ac_try) 2>&5
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); }; }; then
14078 ac_cv_lib_lockfile_maillock
=yes
14080 echo "$as_me: failed program was:" >&5
14081 sed 's/^/| /' conftest.
$ac_ext >&5
14083 ac_cv_lib_lockfile_maillock
=no
14085 rm -f conftest.err conftest.
$ac_objext \
14086 conftest
$ac_exeext conftest.
$ac_ext
14087 LIBS
=$ac_check_lib_save_LIBS
14089 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14090 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
14091 if test $ac_cv_lib_lockfile_maillock = yes; then
14092 cat >>confdefs.h
<<_ACEOF
14093 #define HAVE_LIBLOCKFILE 1
14096 LIBS
="-llockfile $LIBS"
14100 # If we have the shared liblockfile, assume we must use it for mail
14101 # locking (e.g. Debian). If we couldn't link against liblockfile
14102 # (no liblockfile.a installed), ensure that we don't need to.
14103 if test "$ac_cv_lib_lockfile_maillock" = no
; then
14104 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14105 set dummy liblockfile.so
; ac_word
=$2
14106 echo "$as_me:$LINENO: checking for $ac_word" >&5
14107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14108 if test "${ac_cv_prog_liblockfile+set}" = set; then
14109 echo $ECHO_N "(cached) $ECHO_C" >&6
14111 if test -n "$liblockfile"; then
14112 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
14114 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14115 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14116 for as_dir
in $as_dummy
14119 test -z "$as_dir" && as_dir
=.
14120 for ac_exec_ext
in '' $ac_executable_extensions; do
14121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14122 ac_cv_prog_liblockfile
="yes"
14123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14129 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
14132 liblockfile
=$ac_cv_prog_liblockfile
14133 if test -n "$liblockfile"; then
14134 echo "$as_me:$LINENO: result: $liblockfile" >&5
14135 echo "${ECHO_T}$liblockfile" >&6
14137 echo "$as_me:$LINENO: result: no" >&5
14138 echo "${ECHO_T}no" >&6
14141 if test $ac_cv_prog_liblockfile = yes; then
14142 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14143 This probably means that movemail could lose mail.
14144 There may be a \`development' package to install containing liblockfile." >&5
14145 echo "$as_me: error: Shared liblockfile found but can't link against it.
14146 This probably means that movemail could lose mail.
14147 There may be a \`development' package to install containing liblockfile." >&2;}
14148 { (exit 1); exit 1; }; }
14153 for ac_func
in touchlock
14155 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14156 echo "$as_me:$LINENO: checking for $ac_func" >&5
14157 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14158 if eval "test \"\${$as_ac_var+set}\" = set"; then
14159 echo $ECHO_N "(cached) $ECHO_C" >&6
14161 cat >conftest.
$ac_ext <<_ACEOF
14164 cat confdefs.h
>>conftest.
$ac_ext
14165 cat >>conftest.
$ac_ext <<_ACEOF
14166 /* end confdefs.h. */
14167 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14169 #define $ac_func innocuous_$ac_func
14171 /* System header to define __stub macros and hopefully few prototypes,
14172 which can conflict with char $ac_func (); below.
14173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14174 <limits.h> exists even on freestanding compilers. */
14177 # include <limits.h>
14179 # include <assert.h>
14184 /* Override any gcc2 internal prototype to avoid an error. */
14189 /* We use char because int might match the return type of a gcc2
14190 builtin and then its argument prototype would still apply. */
14192 /* The GNU C library defines this for functions which it implements
14193 to always fail with ENOSYS. Some functions are actually named
14194 something starting with __ and the normal name is an alias. */
14195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14198 char (*f) () = $ac_func;
14207 return f != $ac_func;
14212 rm -f conftest.
$ac_objext conftest
$ac_exeext
14213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14214 (eval $ac_link) 2>conftest.er1
14216 grep -v '^ *+' conftest.er1
>conftest.err
14218 cat conftest.err
>&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); } &&
14221 { ac_try
='test -z "$ac_c_werror_flag"
14222 || test ! -s conftest.err'
14223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14224 (eval $ac_try) 2>&5
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); }; } &&
14228 { ac_try
='test -s conftest$ac_exeext'
14229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14230 (eval $ac_try) 2>&5
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); }; }; then
14234 eval "$as_ac_var=yes"
14236 echo "$as_me: failed program was:" >&5
14237 sed 's/^/| /' conftest.
$ac_ext >&5
14239 eval "$as_ac_var=no"
14241 rm -f conftest.err conftest.
$ac_objext \
14242 conftest
$ac_exeext conftest.
$ac_ext
14244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14245 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14246 if test `eval echo '${'$as_ac_var'}'` = yes; then
14247 cat >>confdefs.h
<<_ACEOF
14248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14255 for ac_header
in maillock.h
14257 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14259 echo "$as_me:$LINENO: checking for $ac_header" >&5
14260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14262 echo $ECHO_N "(cached) $ECHO_C" >&6
14264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14265 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14267 # Is the header compilable?
14268 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14270 cat >conftest.
$ac_ext <<_ACEOF
14273 cat confdefs.h
>>conftest.
$ac_ext
14274 cat >>conftest.
$ac_ext <<_ACEOF
14275 /* end confdefs.h. */
14276 $ac_includes_default
14277 #include <$ac_header>
14279 rm -f conftest.
$ac_objext
14280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14281 (eval $ac_compile) 2>conftest.er1
14283 grep -v '^ *+' conftest.er1
>conftest.err
14285 cat conftest.err
>&5
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); } &&
14288 { ac_try
='test -z "$ac_c_werror_flag"
14289 || test ! -s conftest.err'
14290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14291 (eval $ac_try) 2>&5
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); }; } &&
14295 { ac_try
='test -s conftest.$ac_objext'
14296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14297 (eval $ac_try) 2>&5
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); }; }; then
14301 ac_header_compiler
=yes
14303 echo "$as_me: failed program was:" >&5
14304 sed 's/^/| /' conftest.
$ac_ext >&5
14306 ac_header_compiler
=no
14308 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14309 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14310 echo "${ECHO_T}$ac_header_compiler" >&6
14312 # Is the header present?
14313 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14314 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14315 cat >conftest.
$ac_ext <<_ACEOF
14318 cat confdefs.h
>>conftest.
$ac_ext
14319 cat >>conftest.
$ac_ext <<_ACEOF
14320 /* end confdefs.h. */
14321 #include <$ac_header>
14323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14324 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14326 grep -v '^ *+' conftest.er1
>conftest.err
14328 cat conftest.err
>&5
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); } >/dev
/null
; then
14331 if test -s conftest.err
; then
14332 ac_cpp_err
=$ac_c_preproc_warn_flag
14333 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14340 if test -z "$ac_cpp_err"; then
14341 ac_header_preproc
=yes
14343 echo "$as_me: failed program was:" >&5
14344 sed 's/^/| /' conftest.
$ac_ext >&5
14346 ac_header_preproc
=no
14348 rm -f conftest.err conftest.
$ac_ext
14349 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14350 echo "${ECHO_T}$ac_header_preproc" >&6
14352 # So? What about this header?
14353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14355 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14356 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14359 ac_header_preproc
=yes
14362 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14363 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14364 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14365 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14366 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14367 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14368 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14369 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14372 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14373 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14376 ## ------------------------------------------ ##
14377 ## Report this to the AC_PACKAGE_NAME lists. ##
14378 ## ------------------------------------------ ##
14381 sed "s/^/$as_me: WARNING: /" >&2
14384 echo "$as_me:$LINENO: checking for $ac_header" >&5
14385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14387 echo $ECHO_N "(cached) $ECHO_C" >&6
14389 eval "$as_ac_Header=\$ac_header_preproc"
14391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14396 cat >>confdefs.h
<<_ACEOF
14397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14474 for ac_func
in gethostname getdomainname dup2 \
14475 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
14476 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14477 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
14478 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14479 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14480 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14481 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
14482 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14484 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14485 echo "$as_me:$LINENO: checking for $ac_func" >&5
14486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14487 if eval "test \"\${$as_ac_var+set}\" = set"; then
14488 echo $ECHO_N "(cached) $ECHO_C" >&6
14490 cat >conftest.
$ac_ext <<_ACEOF
14493 cat confdefs.h
>>conftest.
$ac_ext
14494 cat >>conftest.
$ac_ext <<_ACEOF
14495 /* end confdefs.h. */
14496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14498 #define $ac_func innocuous_$ac_func
14500 /* System header to define __stub macros and hopefully few prototypes,
14501 which can conflict with char $ac_func (); below.
14502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14503 <limits.h> exists even on freestanding compilers. */
14506 # include <limits.h>
14508 # include <assert.h>
14513 /* Override any gcc2 internal prototype to avoid an error. */
14518 /* We use char because int might match the return type of a gcc2
14519 builtin and then its argument prototype would still apply. */
14521 /* The GNU C library defines this for functions which it implements
14522 to always fail with ENOSYS. Some functions are actually named
14523 something starting with __ and the normal name is an alias. */
14524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14527 char (*f) () = $ac_func;
14536 return f != $ac_func;
14541 rm -f conftest.
$ac_objext conftest
$ac_exeext
14542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14543 (eval $ac_link) 2>conftest.er1
14545 grep -v '^ *+' conftest.er1
>conftest.err
14547 cat conftest.err
>&5
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); } &&
14550 { ac_try
='test -z "$ac_c_werror_flag"
14551 || test ! -s conftest.err'
14552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14553 (eval $ac_try) 2>&5
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); }; } &&
14557 { ac_try
='test -s conftest$ac_exeext'
14558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14559 (eval $ac_try) 2>&5
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); }; }; then
14563 eval "$as_ac_var=yes"
14565 echo "$as_me: failed program was:" >&5
14566 sed 's/^/| /' conftest.
$ac_ext >&5
14568 eval "$as_ac_var=no"
14570 rm -f conftest.err conftest.
$ac_objext \
14571 conftest
$ac_exeext conftest.
$ac_ext
14573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14575 if test `eval echo '${'$as_ac_var'}'` = yes; then
14576 cat >>confdefs.h
<<_ACEOF
14577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14585 for ac_header
in sys
/un.h
14587 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14589 echo "$as_me:$LINENO: checking for $ac_header" >&5
14590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14592 echo $ECHO_N "(cached) $ECHO_C" >&6
14594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14597 # Is the header compilable?
14598 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14599 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14600 cat >conftest.
$ac_ext <<_ACEOF
14603 cat confdefs.h
>>conftest.
$ac_ext
14604 cat >>conftest.
$ac_ext <<_ACEOF
14605 /* end confdefs.h. */
14606 $ac_includes_default
14607 #include <$ac_header>
14609 rm -f conftest.
$ac_objext
14610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14611 (eval $ac_compile) 2>conftest.er1
14613 grep -v '^ *+' conftest.er1
>conftest.err
14615 cat conftest.err
>&5
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); } &&
14618 { ac_try
='test -z "$ac_c_werror_flag"
14619 || test ! -s conftest.err'
14620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14621 (eval $ac_try) 2>&5
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); }; } &&
14625 { ac_try
='test -s conftest.$ac_objext'
14626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14627 (eval $ac_try) 2>&5
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); }; }; then
14631 ac_header_compiler
=yes
14633 echo "$as_me: failed program was:" >&5
14634 sed 's/^/| /' conftest.
$ac_ext >&5
14636 ac_header_compiler
=no
14638 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14639 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14640 echo "${ECHO_T}$ac_header_compiler" >&6
14642 # Is the header present?
14643 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14644 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14645 cat >conftest.
$ac_ext <<_ACEOF
14648 cat confdefs.h
>>conftest.
$ac_ext
14649 cat >>conftest.
$ac_ext <<_ACEOF
14650 /* end confdefs.h. */
14651 #include <$ac_header>
14653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14654 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14656 grep -v '^ *+' conftest.er1
>conftest.err
14658 cat conftest.err
>&5
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); } >/dev
/null
; then
14661 if test -s conftest.err
; then
14662 ac_cpp_err
=$ac_c_preproc_warn_flag
14663 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14670 if test -z "$ac_cpp_err"; then
14671 ac_header_preproc
=yes
14673 echo "$as_me: failed program was:" >&5
14674 sed 's/^/| /' conftest.
$ac_ext >&5
14676 ac_header_preproc
=no
14678 rm -f conftest.err conftest.
$ac_ext
14679 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14680 echo "${ECHO_T}$ac_header_preproc" >&6
14682 # So? What about this header?
14683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14689 ac_header_preproc
=yes
14692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14695 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14699 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14706 ## ------------------------------------------ ##
14707 ## Report this to the AC_PACKAGE_NAME lists. ##
14708 ## ------------------------------------------ ##
14711 sed "s/^/$as_me: WARNING: /" >&2
14714 echo "$as_me:$LINENO: checking for $ac_header" >&5
14715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14717 echo $ECHO_N "(cached) $ECHO_C" >&6
14719 eval "$as_ac_Header=\$ac_header_preproc"
14721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14726 cat >>confdefs.h
<<_ACEOF
14727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14738 for ac_header
in stdlib.h sys
/time.h unistd.h
14740 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14742 echo "$as_me:$LINENO: checking for $ac_header" >&5
14743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14745 echo $ECHO_N "(cached) $ECHO_C" >&6
14747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14750 # Is the header compilable?
14751 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14752 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14753 cat >conftest.
$ac_ext <<_ACEOF
14756 cat confdefs.h
>>conftest.
$ac_ext
14757 cat >>conftest.
$ac_ext <<_ACEOF
14758 /* end confdefs.h. */
14759 $ac_includes_default
14760 #include <$ac_header>
14762 rm -f conftest.
$ac_objext
14763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14764 (eval $ac_compile) 2>conftest.er1
14766 grep -v '^ *+' conftest.er1
>conftest.err
14768 cat conftest.err
>&5
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); } &&
14771 { ac_try
='test -z "$ac_c_werror_flag"
14772 || test ! -s conftest.err'
14773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14774 (eval $ac_try) 2>&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); }; } &&
14778 { ac_try
='test -s conftest.$ac_objext'
14779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14780 (eval $ac_try) 2>&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); }; }; then
14784 ac_header_compiler
=yes
14786 echo "$as_me: failed program was:" >&5
14787 sed 's/^/| /' conftest.
$ac_ext >&5
14789 ac_header_compiler
=no
14791 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14792 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14793 echo "${ECHO_T}$ac_header_compiler" >&6
14795 # Is the header present?
14796 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14797 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14798 cat >conftest.
$ac_ext <<_ACEOF
14801 cat confdefs.h
>>conftest.
$ac_ext
14802 cat >>conftest.
$ac_ext <<_ACEOF
14803 /* end confdefs.h. */
14804 #include <$ac_header>
14806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14807 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14809 grep -v '^ *+' conftest.er1
>conftest.err
14811 cat conftest.err
>&5
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); } >/dev
/null
; then
14814 if test -s conftest.err
; then
14815 ac_cpp_err
=$ac_c_preproc_warn_flag
14816 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14823 if test -z "$ac_cpp_err"; then
14824 ac_header_preproc
=yes
14826 echo "$as_me: failed program was:" >&5
14827 sed 's/^/| /' conftest.
$ac_ext >&5
14829 ac_header_preproc
=no
14831 rm -f conftest.err conftest.
$ac_ext
14832 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14833 echo "${ECHO_T}$ac_header_preproc" >&6
14835 # So? What about this header?
14836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14838 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14839 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14841 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14842 ac_header_preproc
=yes
14845 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14846 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14847 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14848 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14849 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14850 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14851 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14852 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14854 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14855 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14856 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14859 ## ------------------------------------------ ##
14860 ## Report this to the AC_PACKAGE_NAME lists. ##
14861 ## ------------------------------------------ ##
14864 sed "s/^/$as_me: WARNING: /" >&2
14867 echo "$as_me:$LINENO: checking for $ac_header" >&5
14868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14869 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14870 echo $ECHO_N "(cached) $ECHO_C" >&6
14872 eval "$as_ac_Header=\$ac_header_preproc"
14874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14879 cat >>confdefs.h
<<_ACEOF
14880 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14888 for ac_func
in alarm
14890 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14891 echo "$as_me:$LINENO: checking for $ac_func" >&5
14892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14893 if eval "test \"\${$as_ac_var+set}\" = set"; then
14894 echo $ECHO_N "(cached) $ECHO_C" >&6
14896 cat >conftest.
$ac_ext <<_ACEOF
14899 cat confdefs.h
>>conftest.
$ac_ext
14900 cat >>conftest.
$ac_ext <<_ACEOF
14901 /* end confdefs.h. */
14902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14904 #define $ac_func innocuous_$ac_func
14906 /* System header to define __stub macros and hopefully few prototypes,
14907 which can conflict with char $ac_func (); below.
14908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14909 <limits.h> exists even on freestanding compilers. */
14912 # include <limits.h>
14914 # include <assert.h>
14919 /* Override any gcc2 internal prototype to avoid an error. */
14924 /* We use char because int might match the return type of a gcc2
14925 builtin and then its argument prototype would still apply. */
14927 /* The GNU C library defines this for functions which it implements
14928 to always fail with ENOSYS. Some functions are actually named
14929 something starting with __ and the normal name is an alias. */
14930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14933 char (*f) () = $ac_func;
14942 return f != $ac_func;
14947 rm -f conftest.
$ac_objext conftest
$ac_exeext
14948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14949 (eval $ac_link) 2>conftest.er1
14951 grep -v '^ *+' conftest.er1
>conftest.err
14953 cat conftest.err
>&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); } &&
14956 { ac_try
='test -z "$ac_c_werror_flag"
14957 || test ! -s conftest.err'
14958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14959 (eval $ac_try) 2>&5
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); }; } &&
14963 { ac_try
='test -s conftest$ac_exeext'
14964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14965 (eval $ac_try) 2>&5
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); }; }; then
14969 eval "$as_ac_var=yes"
14971 echo "$as_me: failed program was:" >&5
14972 sed 's/^/| /' conftest.
$ac_ext >&5
14974 eval "$as_ac_var=no"
14976 rm -f conftest.err conftest.
$ac_objext \
14977 conftest
$ac_exeext conftest.
$ac_ext
14979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14980 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14981 if test `eval echo '${'$as_ac_var'}'` = yes; then
14982 cat >>confdefs.h
<<_ACEOF
14983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14989 echo "$as_me:$LINENO: checking for working mktime" >&5
14990 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14991 if test "${ac_cv_func_working_mktime+set}" = set; then
14992 echo $ECHO_N "(cached) $ECHO_C" >&6
14994 if test "$cross_compiling" = yes; then
14995 ac_cv_func_working_mktime
=no
14997 cat >conftest.
$ac_ext <<_ACEOF
15000 cat confdefs.h
>>conftest.
$ac_ext
15001 cat >>conftest.
$ac_ext <<_ACEOF
15002 /* end confdefs.h. */
15003 /* Test program from Paul Eggert and Tony Leneis. */
15004 #if TIME_WITH_SYS_TIME
15005 # include <sys/time.h>
15008 # if HAVE_SYS_TIME_H
15009 # include <sys/time.h>
15016 # include <stdlib.h>
15020 # include <unistd.h>
15024 # define alarm(X) /* empty */
15027 /* Work around redefinition to rpl_putenv by other config tests. */
15030 static time_t time_t_max;
15031 static time_t time_t_min;
15033 /* Values we'll use to set the TZ environment variable. */
15034 static char *tz_strings[] = {
15035 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15036 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15038 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15040 /* Fail if mktime fails to convert a date in the spring-forward gap.
15041 Based on a problem report from Andreas Jaeger. */
15043 spring_forward_gap ()
15045 /* glibc (up to about 1998-10-07) failed this test. */
15048 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15049 instead of "TZ=America/Vancouver" in order to detect the bug even
15050 on systems that don't support the Olson extension, or don't have the
15051 full zoneinfo tables installed. */
15052 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15061 if (mktime (&tm) == (time_t)-1)
15070 if ((lt = localtime (&now)) && mktime (lt) != now)
15078 mktime_test1 (now);
15079 mktime_test1 ((time_t) (time_t_max - now));
15080 mktime_test1 ((time_t) (time_t_min + now));
15086 /* Based on code from Ariel Faigon. */
15096 if (tm.tm_mon != 2 || tm.tm_mday != 31)
15106 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15107 now = mktime (&tm);
15108 if (now != (time_t) -1)
15110 struct tm *lt = localtime (&now);
15112 && lt->tm_year == tm.tm_year
15113 && lt->tm_mon == tm.tm_mon
15114 && lt->tm_mday == tm.tm_mday
15115 && lt->tm_hour == tm.tm_hour
15116 && lt->tm_min == tm.tm_min
15117 && lt->tm_sec == tm.tm_sec
15118 && lt->tm_yday == tm.tm_yday
15119 && lt->tm_wday == tm.tm_wday
15120 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15121 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15132 /* This test makes some buggy mktime implementations loop.
15133 Give up after 60 seconds; a mktime slower than that
15134 isn't worth using anyway. */
15137 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15140 if ((time_t) -1 < 0)
15141 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15143 delta = time_t_max / 997; /* a suitable prime number */
15144 for (i = 0; i < N_STRINGS; i++)
15147 putenv (tz_strings[i]);
15149 for (t = 0; t <= time_t_max - delta; t += delta)
15151 mktime_test ((time_t) 1);
15152 mktime_test ((time_t) (60 * 60));
15153 mktime_test ((time_t) (60 * 60 * 24));
15155 for (j = 1; 0 < j; j *= 2)
15157 bigtime_test (j - 1);
15160 spring_forward_gap ();
15164 rm -f conftest
$ac_exeext
15165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15166 (eval $ac_link) 2>&5
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15171 (eval $ac_try) 2>&5
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); }; }; then
15175 ac_cv_func_working_mktime
=yes
15177 echo "$as_me: program exited with status $ac_status" >&5
15178 echo "$as_me: failed program was:" >&5
15179 sed 's/^/| /' conftest.
$ac_ext >&5
15181 ( exit $ac_status )
15182 ac_cv_func_working_mktime
=no
15184 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15187 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15188 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
15189 if test $ac_cv_func_working_mktime = no
; then
15191 "mktime.$ac_objext" | \
15192 *" mktime.$ac_objext" | \
15193 "mktime.$ac_objext "* | \
15194 *" mktime.$ac_objext "* ) ;;
15195 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
15200 if test "$ac_cv_func_working_mktime" = no
; then
15202 cat >>confdefs.h
<<\_ACEOF
15203 #define BROKEN_MKTIME 1
15208 ac_have_func
=no
# yes means we've found a way to get the load average.
15210 # Make sure getloadavg.c is where it belongs, at configure-time.
15211 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15212 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15213 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15214 { (exit 1); exit 1; }; }
15218 # Check for getloadavg, but be sure not to touch the cache variable.
15219 (echo "$as_me:$LINENO: checking for getloadavg" >&5
15220 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
15221 if test "${ac_cv_func_getloadavg+set}" = set; then
15222 echo $ECHO_N "(cached) $ECHO_C" >&6
15224 cat >conftest.
$ac_ext <<_ACEOF
15227 cat confdefs.h
>>conftest.
$ac_ext
15228 cat >>conftest.
$ac_ext <<_ACEOF
15229 /* end confdefs.h. */
15230 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15232 #define getloadavg innocuous_getloadavg
15234 /* System header to define __stub macros and hopefully few prototypes,
15235 which can conflict with char getloadavg (); below.
15236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15237 <limits.h> exists even on freestanding compilers. */
15240 # include <limits.h>
15242 # include <assert.h>
15247 /* Override any gcc2 internal prototype to avoid an error. */
15252 /* We use char because int might match the return type of a gcc2
15253 builtin and then its argument prototype would still apply. */
15254 char getloadavg ();
15255 /* The GNU C library defines this for functions which it implements
15256 to always fail with ENOSYS. Some functions are actually named
15257 something starting with __ and the normal name is an alias. */
15258 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15261 char (*f) () = getloadavg;
15270 return f != getloadavg;
15275 rm -f conftest.
$ac_objext conftest
$ac_exeext
15276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15277 (eval $ac_link) 2>conftest.er1
15279 grep -v '^ *+' conftest.er1
>conftest.err
15281 cat conftest.err
>&5
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); } &&
15284 { ac_try
='test -z "$ac_c_werror_flag"
15285 || test ! -s conftest.err'
15286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15287 (eval $ac_try) 2>&5
15289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290 (exit $ac_status); }; } &&
15291 { ac_try
='test -s conftest$ac_exeext'
15292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15293 (eval $ac_try) 2>&5
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); }; }; then
15297 ac_cv_func_getloadavg
=yes
15299 echo "$as_me: failed program was:" >&5
15300 sed 's/^/| /' conftest.
$ac_ext >&5
15302 ac_cv_func_getloadavg
=no
15304 rm -f conftest.err conftest.
$ac_objext \
15305 conftest
$ac_exeext conftest.
$ac_ext
15307 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15308 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15309 if test $ac_cv_func_getloadavg = yes; then
15314 ) && ac_have_func
=yes
15316 # On HPUX9, an unprivileged user can get load averages through this function.
15318 for ac_func
in pstat_getdynamic
15320 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15321 echo "$as_me:$LINENO: checking for $ac_func" >&5
15322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15323 if eval "test \"\${$as_ac_var+set}\" = set"; then
15324 echo $ECHO_N "(cached) $ECHO_C" >&6
15326 cat >conftest.
$ac_ext <<_ACEOF
15329 cat confdefs.h
>>conftest.
$ac_ext
15330 cat >>conftest.
$ac_ext <<_ACEOF
15331 /* end confdefs.h. */
15332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15334 #define $ac_func innocuous_$ac_func
15336 /* System header to define __stub macros and hopefully few prototypes,
15337 which can conflict with char $ac_func (); below.
15338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15339 <limits.h> exists even on freestanding compilers. */
15342 # include <limits.h>
15344 # include <assert.h>
15349 /* Override any gcc2 internal prototype to avoid an error. */
15354 /* We use char because int might match the return type of a gcc2
15355 builtin and then its argument prototype would still apply. */
15357 /* The GNU C library defines this for functions which it implements
15358 to always fail with ENOSYS. Some functions are actually named
15359 something starting with __ and the normal name is an alias. */
15360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15363 char (*f) () = $ac_func;
15372 return f != $ac_func;
15377 rm -f conftest.
$ac_objext conftest
$ac_exeext
15378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15379 (eval $ac_link) 2>conftest.er1
15381 grep -v '^ *+' conftest.er1
>conftest.err
15383 cat conftest.err
>&5
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); } &&
15386 { ac_try
='test -z "$ac_c_werror_flag"
15387 || test ! -s conftest.err'
15388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15389 (eval $ac_try) 2>&5
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); }; } &&
15393 { ac_try
='test -s conftest$ac_exeext'
15394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15395 (eval $ac_try) 2>&5
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); }; }; then
15399 eval "$as_ac_var=yes"
15401 echo "$as_me: failed program was:" >&5
15402 sed 's/^/| /' conftest.
$ac_ext >&5
15404 eval "$as_ac_var=no"
15406 rm -f conftest.err conftest.
$ac_objext \
15407 conftest
$ac_exeext conftest.
$ac_ext
15409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15410 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15411 if test `eval echo '${'$as_ac_var'}'` = yes; then
15412 cat >>confdefs.h
<<_ACEOF
15413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15420 # Solaris has libkstat which does not require root.
15422 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15423 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15424 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15425 echo $ECHO_N "(cached) $ECHO_C" >&6
15427 ac_check_lib_save_LIBS
=$LIBS
15428 LIBS
="-lkstat $LIBS"
15429 cat >conftest.
$ac_ext <<_ACEOF
15432 cat confdefs.h
>>conftest.
$ac_ext
15433 cat >>conftest.
$ac_ext <<_ACEOF
15434 /* end confdefs.h. */
15436 /* Override any gcc2 internal prototype to avoid an error. */
15440 /* We use char because int might match the return type of a gcc2
15441 builtin and then its argument prototype would still apply. */
15442 char kstat_open ();
15451 rm -f conftest.
$ac_objext conftest
$ac_exeext
15452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15453 (eval $ac_link) 2>conftest.er1
15455 grep -v '^ *+' conftest.er1
>conftest.err
15457 cat conftest.err
>&5
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); } &&
15460 { ac_try
='test -z "$ac_c_werror_flag"
15461 || test ! -s conftest.err'
15462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15463 (eval $ac_try) 2>&5
15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466 (exit $ac_status); }; } &&
15467 { ac_try
='test -s conftest$ac_exeext'
15468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15469 (eval $ac_try) 2>&5
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); }; }; then
15473 ac_cv_lib_kstat_kstat_open
=yes
15475 echo "$as_me: failed program was:" >&5
15476 sed 's/^/| /' conftest.
$ac_ext >&5
15478 ac_cv_lib_kstat_kstat_open
=no
15480 rm -f conftest.err conftest.
$ac_objext \
15481 conftest
$ac_exeext conftest.
$ac_ext
15482 LIBS
=$ac_check_lib_save_LIBS
15484 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15485 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15486 if test $ac_cv_lib_kstat_kstat_open = yes; then
15487 cat >>confdefs.h
<<_ACEOF
15488 #define HAVE_LIBKSTAT 1
15491 LIBS
="-lkstat $LIBS"
15495 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
15497 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15498 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15499 # to get the right answer into the cache.
15500 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15501 if test $ac_have_func = no
; then
15502 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15503 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15504 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15505 echo $ECHO_N "(cached) $ECHO_C" >&6
15507 ac_check_lib_save_LIBS
=$LIBS
15509 cat >conftest.
$ac_ext <<_ACEOF
15512 cat confdefs.h
>>conftest.
$ac_ext
15513 cat >>conftest.
$ac_ext <<_ACEOF
15514 /* end confdefs.h. */
15516 /* Override any gcc2 internal prototype to avoid an error. */
15520 /* We use char because int might match the return type of a gcc2
15521 builtin and then its argument prototype would still apply. */
15531 rm -f conftest.
$ac_objext conftest
$ac_exeext
15532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15533 (eval $ac_link) 2>conftest.er1
15535 grep -v '^ *+' conftest.er1
>conftest.err
15537 cat conftest.err
>&5
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); } &&
15540 { ac_try
='test -z "$ac_c_werror_flag"
15541 || test ! -s conftest.err'
15542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15543 (eval $ac_try) 2>&5
15545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546 (exit $ac_status); }; } &&
15547 { ac_try
='test -s conftest$ac_exeext'
15548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15549 (eval $ac_try) 2>&5
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); }; }; then
15553 ac_cv_lib_elf_elf_begin
=yes
15555 echo "$as_me: failed program was:" >&5
15556 sed 's/^/| /' conftest.
$ac_ext >&5
15558 ac_cv_lib_elf_elf_begin
=no
15560 rm -f conftest.err conftest.
$ac_objext \
15561 conftest
$ac_exeext conftest.
$ac_ext
15562 LIBS
=$ac_check_lib_save_LIBS
15564 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15565 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15566 if test $ac_cv_lib_elf_elf_begin = yes; then
15571 if test $ac_have_func = no
; then
15572 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15573 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15574 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15575 echo $ECHO_N "(cached) $ECHO_C" >&6
15577 ac_check_lib_save_LIBS
=$LIBS
15579 cat >conftest.
$ac_ext <<_ACEOF
15582 cat confdefs.h
>>conftest.
$ac_ext
15583 cat >>conftest.
$ac_ext <<_ACEOF
15584 /* end confdefs.h. */
15586 /* Override any gcc2 internal prototype to avoid an error. */
15590 /* We use char because int might match the return type of a gcc2
15591 builtin and then its argument prototype would still apply. */
15601 rm -f conftest.
$ac_objext conftest
$ac_exeext
15602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15603 (eval $ac_link) 2>conftest.er1
15605 grep -v '^ *+' conftest.er1
>conftest.err
15607 cat conftest.err
>&5
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); } &&
15610 { ac_try
='test -z "$ac_c_werror_flag"
15611 || test ! -s conftest.err'
15612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15613 (eval $ac_try) 2>&5
15615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616 (exit $ac_status); }; } &&
15617 { ac_try
='test -s conftest$ac_exeext'
15618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15619 (eval $ac_try) 2>&5
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); }; }; then
15623 ac_cv_lib_kvm_kvm_open
=yes
15625 echo "$as_me: failed program was:" >&5
15626 sed 's/^/| /' conftest.
$ac_ext >&5
15628 ac_cv_lib_kvm_kvm_open
=no
15630 rm -f conftest.err conftest.
$ac_objext \
15631 conftest
$ac_exeext conftest.
$ac_ext
15632 LIBS
=$ac_check_lib_save_LIBS
15634 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15635 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15636 if test $ac_cv_lib_kvm_kvm_open = yes; then
15640 # Check for the 4.4BSD definition of getloadavg.
15641 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15642 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15643 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15644 echo $ECHO_N "(cached) $ECHO_C" >&6
15646 ac_check_lib_save_LIBS
=$LIBS
15647 LIBS
="-lutil $LIBS"
15648 cat >conftest.
$ac_ext <<_ACEOF
15651 cat confdefs.h
>>conftest.
$ac_ext
15652 cat >>conftest.
$ac_ext <<_ACEOF
15653 /* end confdefs.h. */
15655 /* Override any gcc2 internal prototype to avoid an error. */
15659 /* We use char because int might match the return type of a gcc2
15660 builtin and then its argument prototype would still apply. */
15661 char getloadavg ();
15670 rm -f conftest.
$ac_objext conftest
$ac_exeext
15671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15672 (eval $ac_link) 2>conftest.er1
15674 grep -v '^ *+' conftest.er1
>conftest.err
15676 cat conftest.err
>&5
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); } &&
15679 { ac_try
='test -z "$ac_c_werror_flag"
15680 || test ! -s conftest.err'
15681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15682 (eval $ac_try) 2>&5
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); }; } &&
15686 { ac_try
='test -s conftest$ac_exeext'
15687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15688 (eval $ac_try) 2>&5
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); }; }; then
15692 ac_cv_lib_util_getloadavg
=yes
15694 echo "$as_me: failed program was:" >&5
15695 sed 's/^/| /' conftest.
$ac_ext >&5
15697 ac_cv_lib_util_getloadavg
=no
15699 rm -f conftest.err conftest.
$ac_objext \
15700 conftest
$ac_exeext conftest.
$ac_ext
15701 LIBS
=$ac_check_lib_save_LIBS
15703 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15704 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15705 if test $ac_cv_lib_util_getloadavg = yes; then
15706 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
15711 if test $ac_have_func = no
; then
15712 # There is a commonly available library for RS/6000 AIX.
15713 # Since it is not a standard part of AIX, it might be installed locally.
15714 ac_getloadavg_LIBS
=$LIBS
15715 LIBS
="-L/usr/local/lib $LIBS"
15716 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15717 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15718 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15719 echo $ECHO_N "(cached) $ECHO_C" >&6
15721 ac_check_lib_save_LIBS
=$LIBS
15722 LIBS
="-lgetloadavg $LIBS"
15723 cat >conftest.
$ac_ext <<_ACEOF
15726 cat confdefs.h
>>conftest.
$ac_ext
15727 cat >>conftest.
$ac_ext <<_ACEOF
15728 /* end confdefs.h. */
15730 /* Override any gcc2 internal prototype to avoid an error. */
15734 /* We use char because int might match the return type of a gcc2
15735 builtin and then its argument prototype would still apply. */
15736 char getloadavg ();
15745 rm -f conftest.
$ac_objext conftest
$ac_exeext
15746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15747 (eval $ac_link) 2>conftest.er1
15749 grep -v '^ *+' conftest.er1
>conftest.err
15751 cat conftest.err
>&5
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); } &&
15754 { ac_try
='test -z "$ac_c_werror_flag"
15755 || test ! -s conftest.err'
15756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15757 (eval $ac_try) 2>&5
15759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760 (exit $ac_status); }; } &&
15761 { ac_try
='test -s conftest$ac_exeext'
15762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15763 (eval $ac_try) 2>&5
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); }; }; then
15767 ac_cv_lib_getloadavg_getloadavg
=yes
15769 echo "$as_me: failed program was:" >&5
15770 sed 's/^/| /' conftest.
$ac_ext >&5
15772 ac_cv_lib_getloadavg_getloadavg
=no
15774 rm -f conftest.err conftest.
$ac_objext \
15775 conftest
$ac_exeext conftest.
$ac_ext
15776 LIBS
=$ac_check_lib_save_LIBS
15778 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15779 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15780 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15781 LIBS
="-lgetloadavg $LIBS"
15783 LIBS
=$ac_getloadavg_LIBS
15788 # Make sure it is really in the library, if we think we found it,
15789 # otherwise set up the replacement function.
15791 for ac_func
in getloadavg
15793 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15794 echo "$as_me:$LINENO: checking for $ac_func" >&5
15795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15796 if eval "test \"\${$as_ac_var+set}\" = set"; then
15797 echo $ECHO_N "(cached) $ECHO_C" >&6
15799 cat >conftest.
$ac_ext <<_ACEOF
15802 cat confdefs.h
>>conftest.
$ac_ext
15803 cat >>conftest.
$ac_ext <<_ACEOF
15804 /* end confdefs.h. */
15805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15807 #define $ac_func innocuous_$ac_func
15809 /* System header to define __stub macros and hopefully few prototypes,
15810 which can conflict with char $ac_func (); below.
15811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15812 <limits.h> exists even on freestanding compilers. */
15815 # include <limits.h>
15817 # include <assert.h>
15822 /* Override any gcc2 internal prototype to avoid an error. */
15827 /* We use char because int might match the return type of a gcc2
15828 builtin and then its argument prototype would still apply. */
15830 /* The GNU C library defines this for functions which it implements
15831 to always fail with ENOSYS. Some functions are actually named
15832 something starting with __ and the normal name is an alias. */
15833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15836 char (*f) () = $ac_func;
15845 return f != $ac_func;
15850 rm -f conftest.
$ac_objext conftest
$ac_exeext
15851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15852 (eval $ac_link) 2>conftest.er1
15854 grep -v '^ *+' conftest.er1
>conftest.err
15856 cat conftest.err
>&5
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); } &&
15859 { ac_try
='test -z "$ac_c_werror_flag"
15860 || test ! -s conftest.err'
15861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862 (eval $ac_try) 2>&5
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); }; } &&
15866 { ac_try
='test -s conftest$ac_exeext'
15867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15868 (eval $ac_try) 2>&5
15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); }; }; then
15872 eval "$as_ac_var=yes"
15874 echo "$as_me: failed program was:" >&5
15875 sed 's/^/| /' conftest.
$ac_ext >&5
15877 eval "$as_ac_var=no"
15879 rm -f conftest.err conftest.
$ac_objext \
15880 conftest
$ac_exeext conftest.
$ac_ext
15882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15883 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15884 if test `eval echo '${'$as_ac_var'}'` = yes; then
15885 cat >>confdefs.h
<<_ACEOF
15886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15891 "getloadavg.$ac_objext" | \
15892 *" getloadavg.$ac_objext" | \
15893 "getloadavg.$ac_objext "* | \
15894 *" getloadavg.$ac_objext "* ) ;;
15895 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
15899 cat >>confdefs.h
<<\_ACEOF
15900 #define C_GETLOADAVG 1
15903 # Figure out what our getloadavg.c needs.
15905 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15906 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15907 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15908 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15909 echo $ECHO_N "(cached) $ECHO_C" >&6
15911 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15912 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15914 # Is the header compilable?
15915 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15916 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15917 cat >conftest.
$ac_ext <<_ACEOF
15920 cat confdefs.h
>>conftest.
$ac_ext
15921 cat >>conftest.
$ac_ext <<_ACEOF
15922 /* end confdefs.h. */
15923 $ac_includes_default
15924 #include <sys/dg_sys_info.h>
15926 rm -f conftest.
$ac_objext
15927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15928 (eval $ac_compile) 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); } &&
15935 { ac_try
='test -z "$ac_c_werror_flag"
15936 || test ! -s conftest.err'
15937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15938 (eval $ac_try) 2>&5
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); }; } &&
15942 { ac_try
='test -s conftest.$ac_objext'
15943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944 (eval $ac_try) 2>&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; }; then
15948 ac_header_compiler
=yes
15950 echo "$as_me: failed program was:" >&5
15951 sed 's/^/| /' conftest.
$ac_ext >&5
15953 ac_header_compiler
=no
15955 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15957 echo "${ECHO_T}$ac_header_compiler" >&6
15959 # Is the header present?
15960 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15961 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15962 cat >conftest.
$ac_ext <<_ACEOF
15965 cat confdefs.h
>>conftest.
$ac_ext
15966 cat >>conftest.
$ac_ext <<_ACEOF
15967 /* end confdefs.h. */
15968 #include <sys/dg_sys_info.h>
15970 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15971 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15973 grep -v '^ *+' conftest.er1
>conftest.err
15975 cat conftest.err
>&5
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); } >/dev
/null
; then
15978 if test -s conftest.err
; then
15979 ac_cpp_err
=$ac_c_preproc_warn_flag
15980 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15987 if test -z "$ac_cpp_err"; then
15988 ac_header_preproc
=yes
15990 echo "$as_me: failed program was:" >&5
15991 sed 's/^/| /' conftest.
$ac_ext >&5
15993 ac_header_preproc
=no
15995 rm -f conftest.err conftest.
$ac_ext
15996 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15997 echo "${ECHO_T}$ac_header_preproc" >&6
15999 # So? What about this header?
16000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16002 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16003 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16004 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16005 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16006 ac_header_preproc
=yes
16009 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16010 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16011 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16012 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16013 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16014 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16015 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16016 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16017 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16018 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16019 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16020 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16023 ## ------------------------------------------ ##
16024 ## Report this to the AC_PACKAGE_NAME lists. ##
16025 ## ------------------------------------------ ##
16028 sed "s/^/$as_me: WARNING: /" >&2
16031 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16032 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16033 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16034 echo $ECHO_N "(cached) $ECHO_C" >&6
16036 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
16038 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16039 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16042 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16045 cat >>confdefs.h
<<\_ACEOF
16050 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16051 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
16052 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16053 echo $ECHO_N "(cached) $ECHO_C" >&6
16055 ac_check_lib_save_LIBS
=$LIBS
16057 cat >conftest.
$ac_ext <<_ACEOF
16060 cat confdefs.h
>>conftest.
$ac_ext
16061 cat >>conftest.
$ac_ext <<_ACEOF
16062 /* end confdefs.h. */
16064 /* Override any gcc2 internal prototype to avoid an error. */
16068 /* We use char because int might match the return type of a gcc2
16069 builtin and then its argument prototype would still apply. */
16070 char dg_sys_info ();
16079 rm -f conftest.
$ac_objext conftest
$ac_exeext
16080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16081 (eval $ac_link) 2>conftest.er1
16083 grep -v '^ *+' conftest.er1
>conftest.err
16085 cat conftest.err
>&5
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); } &&
16088 { ac_try
='test -z "$ac_c_werror_flag"
16089 || test ! -s conftest.err'
16090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16091 (eval $ac_try) 2>&5
16093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094 (exit $ac_status); }; } &&
16095 { ac_try
='test -s conftest$ac_exeext'
16096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16097 (eval $ac_try) 2>&5
16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); }; }; then
16101 ac_cv_lib_dgc_dg_sys_info
=yes
16103 echo "$as_me: failed program was:" >&5
16104 sed 's/^/| /' conftest.
$ac_ext >&5
16106 ac_cv_lib_dgc_dg_sys_info
=no
16108 rm -f conftest.err conftest.
$ac_objext \
16109 conftest
$ac_exeext conftest.
$ac_ext
16110 LIBS
=$ac_check_lib_save_LIBS
16112 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16113 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
16114 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16115 cat >>confdefs.h
<<_ACEOF
16116 #define HAVE_LIBDGC 1
16127 if test "${ac_cv_header_locale_h+set}" = set; then
16128 echo "$as_me:$LINENO: checking for locale.h" >&5
16129 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16130 if test "${ac_cv_header_locale_h+set}" = set; then
16131 echo $ECHO_N "(cached) $ECHO_C" >&6
16133 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16134 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16136 # Is the header compilable?
16137 echo "$as_me:$LINENO: checking locale.h usability" >&5
16138 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
16139 cat >conftest.
$ac_ext <<_ACEOF
16142 cat confdefs.h
>>conftest.
$ac_ext
16143 cat >>conftest.
$ac_ext <<_ACEOF
16144 /* end confdefs.h. */
16145 $ac_includes_default
16146 #include <locale.h>
16148 rm -f conftest.
$ac_objext
16149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16150 (eval $ac_compile) 2>conftest.er1
16152 grep -v '^ *+' conftest.er1
>conftest.err
16154 cat conftest.err
>&5
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); } &&
16157 { ac_try
='test -z "$ac_c_werror_flag"
16158 || test ! -s conftest.err'
16159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16160 (eval $ac_try) 2>&5
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); }; } &&
16164 { ac_try
='test -s conftest.$ac_objext'
16165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16166 (eval $ac_try) 2>&5
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); }; }; then
16170 ac_header_compiler
=yes
16172 echo "$as_me: failed program was:" >&5
16173 sed 's/^/| /' conftest.
$ac_ext >&5
16175 ac_header_compiler
=no
16177 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16178 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16179 echo "${ECHO_T}$ac_header_compiler" >&6
16181 # Is the header present?
16182 echo "$as_me:$LINENO: checking locale.h presence" >&5
16183 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
16184 cat >conftest.
$ac_ext <<_ACEOF
16187 cat confdefs.h
>>conftest.
$ac_ext
16188 cat >>conftest.
$ac_ext <<_ACEOF
16189 /* end confdefs.h. */
16190 #include <locale.h>
16192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16193 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16195 grep -v '^ *+' conftest.er1
>conftest.err
16197 cat conftest.err
>&5
16198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); } >/dev
/null
; then
16200 if test -s conftest.err
; then
16201 ac_cpp_err
=$ac_c_preproc_warn_flag
16202 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16209 if test -z "$ac_cpp_err"; then
16210 ac_header_preproc
=yes
16212 echo "$as_me: failed program was:" >&5
16213 sed 's/^/| /' conftest.
$ac_ext >&5
16215 ac_header_preproc
=no
16217 rm -f conftest.err conftest.
$ac_ext
16218 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16219 echo "${ECHO_T}$ac_header_preproc" >&6
16221 # So? What about this header?
16222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16224 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16225 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16226 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16227 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16228 ac_header_preproc
=yes
16231 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16232 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16233 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16234 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16235 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16236 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16237 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16238 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16239 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16240 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16241 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16242 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16245 ## ------------------------------------------ ##
16246 ## Report this to the AC_PACKAGE_NAME lists. ##
16247 ## ------------------------------------------ ##
16250 sed "s/^/$as_me: WARNING: /" >&2
16253 echo "$as_me:$LINENO: checking for locale.h" >&5
16254 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16255 if test "${ac_cv_header_locale_h+set}" = set; then
16256 echo $ECHO_N "(cached) $ECHO_C" >&6
16258 ac_cv_header_locale_h
=$ac_header_preproc
16260 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16261 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16267 for ac_func
in setlocale
16269 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16270 echo "$as_me:$LINENO: checking for $ac_func" >&5
16271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16272 if eval "test \"\${$as_ac_var+set}\" = set"; then
16273 echo $ECHO_N "(cached) $ECHO_C" >&6
16275 cat >conftest.
$ac_ext <<_ACEOF
16278 cat confdefs.h
>>conftest.
$ac_ext
16279 cat >>conftest.
$ac_ext <<_ACEOF
16280 /* end confdefs.h. */
16281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16283 #define $ac_func innocuous_$ac_func
16285 /* System header to define __stub macros and hopefully few prototypes,
16286 which can conflict with char $ac_func (); below.
16287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16288 <limits.h> exists even on freestanding compilers. */
16291 # include <limits.h>
16293 # include <assert.h>
16298 /* Override any gcc2 internal prototype to avoid an error. */
16303 /* We use char because int might match the return type of a gcc2
16304 builtin and then its argument prototype would still apply. */
16306 /* The GNU C library defines this for functions which it implements
16307 to always fail with ENOSYS. Some functions are actually named
16308 something starting with __ and the normal name is an alias. */
16309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16312 char (*f) () = $ac_func;
16321 return f != $ac_func;
16326 rm -f conftest.
$ac_objext conftest
$ac_exeext
16327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16328 (eval $ac_link) 2>conftest.er1
16330 grep -v '^ *+' conftest.er1
>conftest.err
16332 cat conftest.err
>&5
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); } &&
16335 { ac_try
='test -z "$ac_c_werror_flag"
16336 || test ! -s conftest.err'
16337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16338 (eval $ac_try) 2>&5
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); }; } &&
16342 { ac_try
='test -s conftest$ac_exeext'
16343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16344 (eval $ac_try) 2>&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); }; }; then
16348 eval "$as_ac_var=yes"
16350 echo "$as_me: failed program was:" >&5
16351 sed 's/^/| /' conftest.
$ac_ext >&5
16353 eval "$as_ac_var=no"
16355 rm -f conftest.err conftest.
$ac_objext \
16356 conftest
$ac_exeext conftest.
$ac_ext
16358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16359 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16360 if test `eval echo '${'$as_ac_var'}'` = yes; then
16361 cat >>confdefs.h
<<_ACEOF
16362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16369 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16370 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16371 # Irix 4.0.5F has the header but not the library.
16372 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
16375 cat >>confdefs.h
<<\_ACEOF
16381 if test $ac_have_func = no
; then
16382 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16383 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16384 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16385 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16386 echo $ECHO_N "(cached) $ECHO_C" >&6
16388 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16389 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16391 # Is the header compilable?
16392 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16393 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16394 cat >conftest.
$ac_ext <<_ACEOF
16397 cat confdefs.h
>>conftest.
$ac_ext
16398 cat >>conftest.
$ac_ext <<_ACEOF
16399 /* end confdefs.h. */
16400 $ac_includes_default
16401 #include <inq_stats/cpustats.h>
16403 rm -f conftest.
$ac_objext
16404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16405 (eval $ac_compile) 2>conftest.er1
16407 grep -v '^ *+' conftest.er1
>conftest.err
16409 cat conftest.err
>&5
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); } &&
16412 { ac_try
='test -z "$ac_c_werror_flag"
16413 || test ! -s conftest.err'
16414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16415 (eval $ac_try) 2>&5
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); }; } &&
16419 { ac_try
='test -s conftest.$ac_objext'
16420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16421 (eval $ac_try) 2>&5
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); }; }; then
16425 ac_header_compiler
=yes
16427 echo "$as_me: failed program was:" >&5
16428 sed 's/^/| /' conftest.
$ac_ext >&5
16430 ac_header_compiler
=no
16432 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16433 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16434 echo "${ECHO_T}$ac_header_compiler" >&6
16436 # Is the header present?
16437 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16438 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16439 cat >conftest.
$ac_ext <<_ACEOF
16442 cat confdefs.h
>>conftest.
$ac_ext
16443 cat >>conftest.
$ac_ext <<_ACEOF
16444 /* end confdefs.h. */
16445 #include <inq_stats/cpustats.h>
16447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16448 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16450 grep -v '^ *+' conftest.er1
>conftest.err
16452 cat conftest.err
>&5
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); } >/dev
/null
; then
16455 if test -s conftest.err
; then
16456 ac_cpp_err
=$ac_c_preproc_warn_flag
16457 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16464 if test -z "$ac_cpp_err"; then
16465 ac_header_preproc
=yes
16467 echo "$as_me: failed program was:" >&5
16468 sed 's/^/| /' conftest.
$ac_ext >&5
16470 ac_header_preproc
=no
16472 rm -f conftest.err conftest.
$ac_ext
16473 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16474 echo "${ECHO_T}$ac_header_preproc" >&6
16476 # So? What about this header?
16477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16479 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16480 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16481 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16482 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16483 ac_header_preproc
=yes
16486 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16487 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16488 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16489 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16490 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16491 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16492 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16493 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16494 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16495 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16496 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16497 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16500 ## ------------------------------------------ ##
16501 ## Report this to the AC_PACKAGE_NAME lists. ##
16502 ## ------------------------------------------ ##
16505 sed "s/^/$as_me: WARNING: /" >&2
16508 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16509 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16510 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16511 echo $ECHO_N "(cached) $ECHO_C" >&6
16513 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
16515 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16516 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16519 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16522 cat >>confdefs.h
<<\_ACEOF
16527 cat >>confdefs.h
<<\_ACEOF
16536 if test $ac_have_func = no
; then
16537 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16538 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16539 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16540 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16541 echo $ECHO_N "(cached) $ECHO_C" >&6
16543 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16544 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16546 # Is the header compilable?
16547 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16548 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16549 cat >conftest.
$ac_ext <<_ACEOF
16552 cat confdefs.h
>>conftest.
$ac_ext
16553 cat >>conftest.
$ac_ext <<_ACEOF
16554 /* end confdefs.h. */
16555 $ac_includes_default
16556 #include <sys/cpustats.h>
16558 rm -f conftest.
$ac_objext
16559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16560 (eval $ac_compile) 2>conftest.er1
16562 grep -v '^ *+' conftest.er1
>conftest.err
16564 cat conftest.err
>&5
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); } &&
16567 { ac_try
='test -z "$ac_c_werror_flag"
16568 || test ! -s conftest.err'
16569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16570 (eval $ac_try) 2>&5
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); }; } &&
16574 { ac_try
='test -s conftest.$ac_objext'
16575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16576 (eval $ac_try) 2>&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); }; }; then
16580 ac_header_compiler
=yes
16582 echo "$as_me: failed program was:" >&5
16583 sed 's/^/| /' conftest.
$ac_ext >&5
16585 ac_header_compiler
=no
16587 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16589 echo "${ECHO_T}$ac_header_compiler" >&6
16591 # Is the header present?
16592 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16593 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16594 cat >conftest.
$ac_ext <<_ACEOF
16597 cat confdefs.h
>>conftest.
$ac_ext
16598 cat >>conftest.
$ac_ext <<_ACEOF
16599 /* end confdefs.h. */
16600 #include <sys/cpustats.h>
16602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16603 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16605 grep -v '^ *+' conftest.er1
>conftest.err
16607 cat conftest.err
>&5
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); } >/dev
/null
; then
16610 if test -s conftest.err
; then
16611 ac_cpp_err
=$ac_c_preproc_warn_flag
16612 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16619 if test -z "$ac_cpp_err"; then
16620 ac_header_preproc
=yes
16622 echo "$as_me: failed program was:" >&5
16623 sed 's/^/| /' conftest.
$ac_ext >&5
16625 ac_header_preproc
=no
16627 rm -f conftest.err conftest.
$ac_ext
16628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16629 echo "${ECHO_T}$ac_header_preproc" >&6
16631 # So? What about this header?
16632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16634 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16635 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16636 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16637 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16638 ac_header_preproc
=yes
16641 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16642 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16643 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16644 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16645 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16646 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16647 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16648 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16649 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16650 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16651 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16652 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16655 ## ------------------------------------------ ##
16656 ## Report this to the AC_PACKAGE_NAME lists. ##
16657 ## ------------------------------------------ ##
16660 sed "s/^/$as_me: WARNING: /" >&2
16663 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16664 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16665 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16666 echo $ECHO_N "(cached) $ECHO_C" >&6
16668 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
16670 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16671 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16674 if test $ac_cv_header_sys_cpustats_h = yes; then
16675 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
16684 if test $ac_have_func = no
; then
16686 for ac_header
in mach
/mach.h
16688 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16690 echo "$as_me:$LINENO: checking for $ac_header" >&5
16691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16693 echo $ECHO_N "(cached) $ECHO_C" >&6
16695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16698 # Is the header compilable?
16699 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16701 cat >conftest.
$ac_ext <<_ACEOF
16704 cat confdefs.h
>>conftest.
$ac_ext
16705 cat >>conftest.
$ac_ext <<_ACEOF
16706 /* end confdefs.h. */
16707 $ac_includes_default
16708 #include <$ac_header>
16710 rm -f conftest.
$ac_objext
16711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16712 (eval $ac_compile) 2>conftest.er1
16714 grep -v '^ *+' conftest.er1
>conftest.err
16716 cat conftest.err
>&5
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); } &&
16719 { ac_try
='test -z "$ac_c_werror_flag"
16720 || test ! -s conftest.err'
16721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722 (eval $ac_try) 2>&5
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; } &&
16726 { ac_try
='test -s conftest.$ac_objext'
16727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728 (eval $ac_try) 2>&5
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }; }; then
16732 ac_header_compiler
=yes
16734 echo "$as_me: failed program was:" >&5
16735 sed 's/^/| /' conftest.
$ac_ext >&5
16737 ac_header_compiler
=no
16739 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16740 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16741 echo "${ECHO_T}$ac_header_compiler" >&6
16743 # Is the header present?
16744 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16746 cat >conftest.
$ac_ext <<_ACEOF
16749 cat confdefs.h
>>conftest.
$ac_ext
16750 cat >>conftest.
$ac_ext <<_ACEOF
16751 /* end confdefs.h. */
16752 #include <$ac_header>
16754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16755 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16757 grep -v '^ *+' conftest.er1
>conftest.err
16759 cat conftest.err
>&5
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); } >/dev
/null
; then
16762 if test -s conftest.err
; then
16763 ac_cpp_err
=$ac_c_preproc_warn_flag
16764 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16771 if test -z "$ac_cpp_err"; then
16772 ac_header_preproc
=yes
16774 echo "$as_me: failed program was:" >&5
16775 sed 's/^/| /' conftest.
$ac_ext >&5
16777 ac_header_preproc
=no
16779 rm -f conftest.err conftest.
$ac_ext
16780 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16781 echo "${ECHO_T}$ac_header_preproc" >&6
16783 # So? What about this header?
16784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16790 ac_header_preproc
=yes
16793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16797 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16799 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16800 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16803 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16807 ## ------------------------------------------ ##
16808 ## Report this to the AC_PACKAGE_NAME lists. ##
16809 ## ------------------------------------------ ##
16812 sed "s/^/$as_me: WARNING: /" >&2
16815 echo "$as_me:$LINENO: checking for $ac_header" >&5
16816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16818 echo $ECHO_N "(cached) $ECHO_C" >&6
16820 eval "$as_ac_Header=\$ac_header_preproc"
16822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16827 cat >>confdefs.h
<<_ACEOF
16828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16838 for ac_header
in nlist.h
16840 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16842 echo "$as_me:$LINENO: checking for $ac_header" >&5
16843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16845 echo $ECHO_N "(cached) $ECHO_C" >&6
16847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16850 # Is the header compilable?
16851 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16853 cat >conftest.
$ac_ext <<_ACEOF
16856 cat confdefs.h
>>conftest.
$ac_ext
16857 cat >>conftest.
$ac_ext <<_ACEOF
16858 /* end confdefs.h. */
16859 $ac_includes_default
16860 #include <$ac_header>
16862 rm -f conftest.
$ac_objext
16863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16864 (eval $ac_compile) 2>conftest.er1
16866 grep -v '^ *+' conftest.er1
>conftest.err
16868 cat conftest.err
>&5
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); } &&
16871 { ac_try
='test -z "$ac_c_werror_flag"
16872 || test ! -s conftest.err'
16873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16874 (eval $ac_try) 2>&5
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); }; } &&
16878 { ac_try
='test -s conftest.$ac_objext'
16879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16880 (eval $ac_try) 2>&5
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); }; }; then
16884 ac_header_compiler
=yes
16886 echo "$as_me: failed program was:" >&5
16887 sed 's/^/| /' conftest.
$ac_ext >&5
16889 ac_header_compiler
=no
16891 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16892 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16893 echo "${ECHO_T}$ac_header_compiler" >&6
16895 # Is the header present?
16896 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16898 cat >conftest.
$ac_ext <<_ACEOF
16901 cat confdefs.h
>>conftest.
$ac_ext
16902 cat >>conftest.
$ac_ext <<_ACEOF
16903 /* end confdefs.h. */
16904 #include <$ac_header>
16906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16907 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16909 grep -v '^ *+' conftest.er1
>conftest.err
16911 cat conftest.err
>&5
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); } >/dev
/null
; then
16914 if test -s conftest.err
; then
16915 ac_cpp_err
=$ac_c_preproc_warn_flag
16916 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16923 if test -z "$ac_cpp_err"; then
16924 ac_header_preproc
=yes
16926 echo "$as_me: failed program was:" >&5
16927 sed 's/^/| /' conftest.
$ac_ext >&5
16929 ac_header_preproc
=no
16931 rm -f conftest.err conftest.
$ac_ext
16932 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16933 echo "${ECHO_T}$ac_header_preproc" >&6
16935 # So? What about this header?
16936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16938 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16939 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16941 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16942 ac_header_preproc
=yes
16945 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16946 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16947 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16948 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16949 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16950 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16951 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16952 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16955 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16956 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16959 ## ------------------------------------------ ##
16960 ## Report this to the AC_PACKAGE_NAME lists. ##
16961 ## ------------------------------------------ ##
16964 sed "s/^/$as_me: WARNING: /" >&2
16967 echo "$as_me:$LINENO: checking for $ac_header" >&5
16968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16970 echo $ECHO_N "(cached) $ECHO_C" >&6
16972 eval "$as_ac_Header=\$ac_header_preproc"
16974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16979 cat >>confdefs.h
<<_ACEOF
16980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16982 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16983 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16984 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16985 echo $ECHO_N "(cached) $ECHO_C" >&6
16987 cat >conftest.
$ac_ext <<_ACEOF
16990 cat confdefs.h
>>conftest.
$ac_ext
16991 cat >>conftest.
$ac_ext <<_ACEOF
16992 /* end confdefs.h. */
16998 static struct nlist ac_aggr;
16999 if (ac_aggr.n_un.n_name)
17005 rm -f conftest.
$ac_objext
17006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17007 (eval $ac_compile) 2>conftest.er1
17009 grep -v '^ *+' conftest.er1
>conftest.err
17011 cat conftest.err
>&5
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); } &&
17014 { ac_try
='test -z "$ac_c_werror_flag"
17015 || test ! -s conftest.err'
17016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17017 (eval $ac_try) 2>&5
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); }; } &&
17021 { ac_try
='test -s conftest.$ac_objext'
17022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17023 (eval $ac_try) 2>&5
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); }; }; then
17027 ac_cv_member_struct_nlist_n_un_n_name
=yes
17029 echo "$as_me: failed program was:" >&5
17030 sed 's/^/| /' conftest.
$ac_ext >&5
17032 cat >conftest.
$ac_ext <<_ACEOF
17035 cat confdefs.h
>>conftest.
$ac_ext
17036 cat >>conftest.
$ac_ext <<_ACEOF
17037 /* end confdefs.h. */
17043 static struct nlist ac_aggr;
17044 if (sizeof ac_aggr.n_un.n_name)
17050 rm -f conftest.
$ac_objext
17051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17052 (eval $ac_compile) 2>conftest.er1
17054 grep -v '^ *+' conftest.er1
>conftest.err
17056 cat conftest.err
>&5
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); } &&
17059 { ac_try
='test -z "$ac_c_werror_flag"
17060 || test ! -s conftest.err'
17061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17062 (eval $ac_try) 2>&5
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); }; } &&
17066 { ac_try
='test -s conftest.$ac_objext'
17067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17068 (eval $ac_try) 2>&5
17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071 (exit $ac_status); }; }; then
17072 ac_cv_member_struct_nlist_n_un_n_name
=yes
17074 echo "$as_me: failed program was:" >&5
17075 sed 's/^/| /' conftest.
$ac_ext >&5
17077 ac_cv_member_struct_nlist_n_un_n_name
=no
17079 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17081 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17083 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17084 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
17085 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17087 cat >>confdefs.h
<<_ACEOF
17088 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17092 cat >>confdefs.h
<<\_ACEOF
17093 #define NLIST_NAME_UNION 1
17107 # Some definitions of getloadavg require that the program be installed setgid.
17108 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17109 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
17110 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17111 echo $ECHO_N "(cached) $ECHO_C" >&6
17113 cat >conftest.
$ac_ext <<_ACEOF
17116 cat confdefs.h
>>conftest.
$ac_ext
17117 cat >>conftest.
$ac_ext <<_ACEOF
17118 /* end confdefs.h. */
17119 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17120 #ifdef LDAV_PRIVILEGED
17121 Yowza Am I SETGID yet
17124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17125 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
17126 ac_cv_func_getloadavg_setgid
=yes
17128 ac_cv_func_getloadavg_setgid
=no
17133 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17134 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
17135 if test $ac_cv_func_getloadavg_setgid = yes; then
17138 cat >>confdefs.h
<<\_ACEOF
17139 #define GETLOADAVG_PRIVILEGED 1
17146 if test $ac_cv_func_getloadavg_setgid = yes; then
17147 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17148 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
17149 if test "${ac_cv_group_kmem+set}" = set; then
17150 echo $ECHO_N "(cached) $ECHO_C" >&6
17152 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17153 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
17154 # If we got an error (system does not support symlinks), try without -L.
17155 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
17156 ac_cv_group_kmem
=`echo $ac_ls_output \
17157 | sed -ne 's/[ ][ ]*/ /g;
17158 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17162 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17163 echo "${ECHO_T}$ac_cv_group_kmem" >&6
17164 KMEM_GROUP
=$ac_cv_group_kmem
17166 if test "x$ac_save_LIBS" = x
; then
17167 GETLOADAVG_LIBS
=$LIBS
17169 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17175 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17176 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17177 if test "${ac_cv_sys_largefile_source+set}" = set; then
17178 echo $ECHO_N "(cached) $ECHO_C" >&6
17181 ac_cv_sys_largefile_source
=no
17182 cat >conftest.
$ac_ext <<_ACEOF
17185 cat confdefs.h
>>conftest.
$ac_ext
17186 cat >>conftest.
$ac_ext <<_ACEOF
17187 /* end confdefs.h. */
17197 rm -f conftest.
$ac_objext
17198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17199 (eval $ac_compile) 2>conftest.er1
17201 grep -v '^ *+' conftest.er1
>conftest.err
17203 cat conftest.err
>&5
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); } &&
17206 { ac_try
='test -z "$ac_c_werror_flag"
17207 || test ! -s conftest.err'
17208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17209 (eval $ac_try) 2>&5
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); }; } &&
17213 { ac_try
='test -s conftest.$ac_objext'
17214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17215 (eval $ac_try) 2>&5
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); }; }; then
17221 echo "$as_me: failed program was:" >&5
17222 sed 's/^/| /' conftest.
$ac_ext >&5
17225 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17226 cat >conftest.
$ac_ext <<_ACEOF
17229 cat confdefs.h
>>conftest.
$ac_ext
17230 cat >>conftest.
$ac_ext <<_ACEOF
17231 /* end confdefs.h. */
17232 #define _LARGEFILE_SOURCE 1
17242 rm -f conftest.
$ac_objext
17243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17244 (eval $ac_compile) 2>conftest.er1
17246 grep -v '^ *+' conftest.er1
>conftest.err
17248 cat conftest.err
>&5
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); } &&
17251 { ac_try
='test -z "$ac_c_werror_flag"
17252 || test ! -s conftest.err'
17253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17254 (eval $ac_try) 2>&5
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; } &&
17258 { ac_try
='test -s conftest.$ac_objext'
17259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17260 (eval $ac_try) 2>&5
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); }; }; then
17264 ac_cv_sys_largefile_source
=1; break
17266 echo "$as_me: failed program was:" >&5
17267 sed 's/^/| /' conftest.
$ac_ext >&5
17270 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17274 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17275 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17276 if test "$ac_cv_sys_largefile_source" != no
; then
17278 cat >>confdefs.h
<<_ACEOF
17279 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17285 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17286 # in glibc 2.1.3, but that breaks too many other things.
17287 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17288 echo "$as_me:$LINENO: checking for fseeko" >&5
17289 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17290 if test "${ac_cv_func_fseeko+set}" = set; then
17291 echo $ECHO_N "(cached) $ECHO_C" >&6
17293 cat >conftest.
$ac_ext <<_ACEOF
17296 cat confdefs.h
>>conftest.
$ac_ext
17297 cat >>conftest.
$ac_ext <<_ACEOF
17298 /* end confdefs.h. */
17303 return fseeko && fseeko (stdin, 0, 0);
17308 rm -f conftest.
$ac_objext conftest
$ac_exeext
17309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17310 (eval $ac_link) 2>conftest.er1
17312 grep -v '^ *+' conftest.er1
>conftest.err
17314 cat conftest.err
>&5
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); } &&
17317 { ac_try
='test -z "$ac_c_werror_flag"
17318 || test ! -s conftest.err'
17319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17320 (eval $ac_try) 2>&5
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); }; } &&
17324 { ac_try
='test -s conftest$ac_exeext'
17325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17326 (eval $ac_try) 2>&5
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); }; }; then
17330 ac_cv_func_fseeko
=yes
17332 echo "$as_me: failed program was:" >&5
17333 sed 's/^/| /' conftest.
$ac_ext >&5
17335 ac_cv_func_fseeko
=no
17337 rm -f conftest.err conftest.
$ac_objext \
17338 conftest
$ac_exeext conftest.
$ac_ext
17340 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17341 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17342 if test $ac_cv_func_fseeko = yes; then
17344 cat >>confdefs.h
<<\_ACEOF
17345 #define HAVE_FSEEKO 1
17351 # Configure getopt.
17352 # getopt.m4 serial 10
17354 # The getopt module assume you want GNU getopt, with getopt_long etc,
17355 # rather than vanilla POSIX getopt. This means your your code should
17356 # always include <getopt.h> for the getopt prototypes.
17368 # Prerequisites of lib/getopt*.
17375 for ac_header
in getopt.h
17377 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17379 echo "$as_me:$LINENO: checking for $ac_header" >&5
17380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17382 echo $ECHO_N "(cached) $ECHO_C" >&6
17384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17387 # Is the header compilable?
17388 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17390 cat >conftest.
$ac_ext <<_ACEOF
17393 cat confdefs.h
>>conftest.
$ac_ext
17394 cat >>conftest.
$ac_ext <<_ACEOF
17395 /* end confdefs.h. */
17396 $ac_includes_default
17397 #include <$ac_header>
17399 rm -f conftest.
$ac_objext
17400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17401 (eval $ac_compile) 2>conftest.er1
17403 grep -v '^ *+' conftest.er1
>conftest.err
17405 cat conftest.err
>&5
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); } &&
17408 { ac_try
='test -z "$ac_c_werror_flag"
17409 || test ! -s conftest.err'
17410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17411 (eval $ac_try) 2>&5
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); }; } &&
17415 { ac_try
='test -s conftest.$ac_objext'
17416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17417 (eval $ac_try) 2>&5
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); }; }; then
17421 ac_header_compiler
=yes
17423 echo "$as_me: failed program was:" >&5
17424 sed 's/^/| /' conftest.
$ac_ext >&5
17426 ac_header_compiler
=no
17428 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17429 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17430 echo "${ECHO_T}$ac_header_compiler" >&6
17432 # Is the header present?
17433 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17435 cat >conftest.
$ac_ext <<_ACEOF
17438 cat confdefs.h
>>conftest.
$ac_ext
17439 cat >>conftest.
$ac_ext <<_ACEOF
17440 /* end confdefs.h. */
17441 #include <$ac_header>
17443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17444 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17446 grep -v '^ *+' conftest.er1
>conftest.err
17448 cat conftest.err
>&5
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); } >/dev
/null
; then
17451 if test -s conftest.err
; then
17452 ac_cpp_err
=$ac_c_preproc_warn_flag
17453 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17460 if test -z "$ac_cpp_err"; then
17461 ac_header_preproc
=yes
17463 echo "$as_me: failed program was:" >&5
17464 sed 's/^/| /' conftest.
$ac_ext >&5
17466 ac_header_preproc
=no
17468 rm -f conftest.err conftest.
$ac_ext
17469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17470 echo "${ECHO_T}$ac_header_preproc" >&6
17472 # So? What about this header?
17473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17478 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17479 ac_header_preproc
=yes
17482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17485 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17486 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17487 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17488 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17489 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17492 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17493 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17496 ## ------------------------------------------ ##
17497 ## Report this to the AC_PACKAGE_NAME lists. ##
17498 ## ------------------------------------------ ##
17501 sed "s/^/$as_me: WARNING: /" >&2
17504 echo "$as_me:$LINENO: checking for $ac_header" >&5
17505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17507 echo $ECHO_N "(cached) $ECHO_C" >&6
17509 eval "$as_ac_Header=\$ac_header_preproc"
17511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17516 cat >>confdefs.h
<<_ACEOF
17517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17526 if test -z "$GETOPT_H"; then
17528 for ac_func
in getopt_long_only
17530 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17531 echo "$as_me:$LINENO: checking for $ac_func" >&5
17532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17533 if eval "test \"\${$as_ac_var+set}\" = set"; then
17534 echo $ECHO_N "(cached) $ECHO_C" >&6
17536 cat >conftest.
$ac_ext <<_ACEOF
17539 cat confdefs.h
>>conftest.
$ac_ext
17540 cat >>conftest.
$ac_ext <<_ACEOF
17541 /* end confdefs.h. */
17542 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17544 #define $ac_func innocuous_$ac_func
17546 /* System header to define __stub macros and hopefully few prototypes,
17547 which can conflict with char $ac_func (); below.
17548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17549 <limits.h> exists even on freestanding compilers. */
17552 # include <limits.h>
17554 # include <assert.h>
17559 /* Override any gcc2 internal prototype to avoid an error. */
17564 /* We use char because int might match the return type of a gcc2
17565 builtin and then its argument prototype would still apply. */
17567 /* The GNU C library defines this for functions which it implements
17568 to always fail with ENOSYS. Some functions are actually named
17569 something starting with __ and the normal name is an alias. */
17570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17573 char (*f) () = $ac_func;
17582 return f != $ac_func;
17587 rm -f conftest.
$ac_objext conftest
$ac_exeext
17588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17589 (eval $ac_link) 2>conftest.er1
17591 grep -v '^ *+' conftest.er1
>conftest.err
17593 cat conftest.err
>&5
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); } &&
17596 { ac_try
='test -z "$ac_c_werror_flag"
17597 || test ! -s conftest.err'
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); }; } &&
17603 { ac_try
='test -s conftest$ac_exeext'
17604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17605 (eval $ac_try) 2>&5
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); }; }; then
17609 eval "$as_ac_var=yes"
17611 echo "$as_me: failed program was:" >&5
17612 sed 's/^/| /' conftest.
$ac_ext >&5
17614 eval "$as_ac_var=no"
17616 rm -f conftest.err conftest.
$ac_objext \
17617 conftest
$ac_exeext conftest.
$ac_ext
17619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17620 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17621 if test `eval echo '${'$as_ac_var'}'` = yes; then
17622 cat >>confdefs.h
<<_ACEOF
17623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17633 if test -z "$GETOPT_H"; then
17634 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17635 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17636 if test "${ac_cv_have_decl_optreset+set}" = set; then
17637 echo $ECHO_N "(cached) $ECHO_C" >&6
17639 cat >conftest.
$ac_ext <<_ACEOF
17642 cat confdefs.h
>>conftest.
$ac_ext
17643 cat >>conftest.
$ac_ext <<_ACEOF
17644 /* end confdefs.h. */
17645 #include <getopt.h>
17651 char *p = (char *) optreset;
17658 rm -f conftest.
$ac_objext
17659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17660 (eval $ac_compile) 2>conftest.er1
17662 grep -v '^ *+' conftest.er1
>conftest.err
17664 cat conftest.err
>&5
17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); } &&
17667 { ac_try
='test -z "$ac_c_werror_flag"
17668 || test ! -s conftest.err'
17669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17670 (eval $ac_try) 2>&5
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); }; } &&
17674 { ac_try
='test -s conftest.$ac_objext'
17675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17676 (eval $ac_try) 2>&5
17678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679 (exit $ac_status); }; }; then
17680 ac_cv_have_decl_optreset
=yes
17682 echo "$as_me: failed program was:" >&5
17683 sed 's/^/| /' conftest.
$ac_ext >&5
17685 ac_cv_have_decl_optreset
=no
17687 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17689 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17690 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17691 if test $ac_cv_have_decl_optreset = yes; then
17697 if test -z "$GETOPT_H"; then
17698 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17699 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17700 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17701 echo $ECHO_N "(cached) $ECHO_C" >&6
17703 if test "$cross_compiling" = yes; then
17704 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17705 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17706 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17707 echo $ECHO_N "(cached) $ECHO_C" >&6
17709 cat >conftest.
$ac_ext <<_ACEOF
17712 cat confdefs.h
>>conftest.
$ac_ext
17713 cat >>conftest.
$ac_ext <<_ACEOF
17714 /* end confdefs.h. */
17715 #include <getopt.h>
17720 #ifndef getopt_clip
17721 char *p = (char *) getopt_clip;
17728 rm -f conftest.
$ac_objext
17729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17730 (eval $ac_compile) 2>conftest.er1
17732 grep -v '^ *+' conftest.er1
>conftest.err
17734 cat conftest.err
>&5
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); } &&
17737 { ac_try
='test -z "$ac_c_werror_flag"
17738 || test ! -s conftest.err'
17739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17740 (eval $ac_try) 2>&5
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); }; } &&
17744 { ac_try
='test -s conftest.$ac_objext'
17745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17746 (eval $ac_try) 2>&5
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); }; }; then
17750 ac_cv_have_decl_getopt_clip
=yes
17752 echo "$as_me: failed program was:" >&5
17753 sed 's/^/| /' conftest.
$ac_ext >&5
17755 ac_cv_have_decl_getopt_clip
=no
17757 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17759 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17760 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17761 if test $ac_cv_have_decl_getopt_clip = yes; then
17762 gl_cv_func_gnu_getopt
=no
17764 gl_cv_func_gnu_getopt
=yes
17768 cat >conftest.
$ac_ext <<_ACEOF
17771 cat confdefs.h
>>conftest.
$ac_ext
17772 cat >>conftest.
$ac_ext <<_ACEOF
17773 /* end confdefs.h. */
17774 #include <getopt.h>
17780 myargv[0] = "conftest";
17783 return getopt (2, myargv, "+a") != '?';
17789 rm -f conftest
$ac_exeext
17790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17791 (eval $ac_link) 2>&5
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796 (eval $ac_try) 2>&5
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); }; }; then
17800 gl_cv_func_gnu_getopt
=yes
17802 echo "$as_me: program exited with status $ac_status" >&5
17803 echo "$as_me: failed program was:" >&5
17804 sed 's/^/| /' conftest.
$ac_ext >&5
17806 ( exit $ac_status )
17807 gl_cv_func_gnu_getopt
=no
17809 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17812 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17813 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17814 if test "$gl_cv_func_gnu_getopt" = "no"; then
17821 if test -n "$GETOPT_H"; then
17826 cat >>confdefs.h
<<\_ACEOF
17827 #define __GETOPT_PREFIX rpl_
17833 GETOPTOBJS
='getopt.o getopt1.o'
17840 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17841 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17842 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17843 echo $ECHO_N "(cached) $ECHO_C" >&6
17845 # Use it with a single arg.
17846 cat >conftest.
$ac_ext <<_ACEOF
17849 cat confdefs.h
>>conftest.
$ac_ext
17850 cat >>conftest.
$ac_ext <<_ACEOF
17851 /* end confdefs.h. */
17852 $ac_includes_default
17861 rm -f conftest.
$ac_objext
17862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17863 (eval $ac_compile) 2>conftest.er1
17865 grep -v '^ *+' conftest.er1
>conftest.err
17867 cat conftest.err
>&5
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); } &&
17870 { ac_try
='test -z "$ac_c_werror_flag"
17871 || test ! -s conftest.err'
17872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17873 (eval $ac_try) 2>&5
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); }; } &&
17877 { ac_try
='test -s conftest.$ac_objext'
17878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17879 (eval $ac_try) 2>&5
17881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); }; }; then
17883 ac_cv_func_getpgrp_void
=no
17885 echo "$as_me: failed program was:" >&5
17886 sed 's/^/| /' conftest.
$ac_ext >&5
17888 ac_cv_func_getpgrp_void
=yes
17890 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17893 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17894 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17895 if test $ac_cv_func_getpgrp_void = yes; then
17897 cat >>confdefs.h
<<\_ACEOF
17898 #define GETPGRP_VOID 1
17905 for ac_func
in strftime
17907 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17908 echo "$as_me:$LINENO: checking for $ac_func" >&5
17909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17910 if eval "test \"\${$as_ac_var+set}\" = set"; then
17911 echo $ECHO_N "(cached) $ECHO_C" >&6
17913 cat >conftest.
$ac_ext <<_ACEOF
17916 cat confdefs.h
>>conftest.
$ac_ext
17917 cat >>conftest.
$ac_ext <<_ACEOF
17918 /* end confdefs.h. */
17919 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17921 #define $ac_func innocuous_$ac_func
17923 /* System header to define __stub macros and hopefully few prototypes,
17924 which can conflict with char $ac_func (); below.
17925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17926 <limits.h> exists even on freestanding compilers. */
17929 # include <limits.h>
17931 # include <assert.h>
17936 /* Override any gcc2 internal prototype to avoid an error. */
17941 /* We use char because int might match the return type of a gcc2
17942 builtin and then its argument prototype would still apply. */
17944 /* The GNU C library defines this for functions which it implements
17945 to always fail with ENOSYS. Some functions are actually named
17946 something starting with __ and the normal name is an alias. */
17947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17950 char (*f) () = $ac_func;
17959 return f != $ac_func;
17964 rm -f conftest.
$ac_objext conftest
$ac_exeext
17965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17966 (eval $ac_link) 2>conftest.er1
17968 grep -v '^ *+' conftest.er1
>conftest.err
17970 cat conftest.err
>&5
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); } &&
17973 { ac_try
='test -z "$ac_c_werror_flag"
17974 || test ! -s conftest.err'
17975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17976 (eval $ac_try) 2>&5
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); }; } &&
17980 { ac_try
='test -s conftest$ac_exeext'
17981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17982 (eval $ac_try) 2>&5
17984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985 (exit $ac_status); }; }; then
17986 eval "$as_ac_var=yes"
17988 echo "$as_me: failed program was:" >&5
17989 sed 's/^/| /' conftest.
$ac_ext >&5
17991 eval "$as_ac_var=no"
17993 rm -f conftest.err conftest.
$ac_objext \
17994 conftest
$ac_exeext conftest.
$ac_ext
17996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17997 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17998 if test `eval echo '${'$as_ac_var'}'` = yes; then
17999 cat >>confdefs.h
<<_ACEOF
18000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18004 # strftime is in -lintl on SCO UNIX.
18005 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18006 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
18007 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18008 echo $ECHO_N "(cached) $ECHO_C" >&6
18010 ac_check_lib_save_LIBS
=$LIBS
18011 LIBS
="-lintl $LIBS"
18012 cat >conftest.
$ac_ext <<_ACEOF
18015 cat confdefs.h
>>conftest.
$ac_ext
18016 cat >>conftest.
$ac_ext <<_ACEOF
18017 /* end confdefs.h. */
18019 /* Override any gcc2 internal prototype to avoid an error. */
18023 /* We use char because int might match the return type of a gcc2
18024 builtin and then its argument prototype would still apply. */
18034 rm -f conftest.
$ac_objext conftest
$ac_exeext
18035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18036 (eval $ac_link) 2>conftest.er1
18038 grep -v '^ *+' conftest.er1
>conftest.err
18040 cat conftest.err
>&5
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); } &&
18043 { ac_try
='test -z "$ac_c_werror_flag"
18044 || test ! -s conftest.err'
18045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18046 (eval $ac_try) 2>&5
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); }; } &&
18050 { ac_try
='test -s conftest$ac_exeext'
18051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18052 (eval $ac_try) 2>&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); }; }; then
18056 ac_cv_lib_intl_strftime
=yes
18058 echo "$as_me: failed program was:" >&5
18059 sed 's/^/| /' conftest.
$ac_ext >&5
18061 ac_cv_lib_intl_strftime
=no
18063 rm -f conftest.err conftest.
$ac_objext \
18064 conftest
$ac_exeext conftest.
$ac_ext
18065 LIBS
=$ac_check_lib_save_LIBS
18067 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18068 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18069 if test $ac_cv_lib_intl_strftime = yes; then
18070 cat >>confdefs.h
<<\_ACEOF
18071 #define HAVE_STRFTIME 1
18074 LIBS
="-lintl $LIBS"
18083 for ac_func
in grantpt
18085 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18086 echo "$as_me:$LINENO: checking for $ac_func" >&5
18087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18088 if eval "test \"\${$as_ac_var+set}\" = set"; then
18089 echo $ECHO_N "(cached) $ECHO_C" >&6
18091 cat >conftest.
$ac_ext <<_ACEOF
18094 cat confdefs.h
>>conftest.
$ac_ext
18095 cat >>conftest.
$ac_ext <<_ACEOF
18096 /* end confdefs.h. */
18097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18099 #define $ac_func innocuous_$ac_func
18101 /* System header to define __stub macros and hopefully few prototypes,
18102 which can conflict with char $ac_func (); below.
18103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18104 <limits.h> exists even on freestanding compilers. */
18107 # include <limits.h>
18109 # include <assert.h>
18114 /* Override any gcc2 internal prototype to avoid an error. */
18119 /* We use char because int might match the return type of a gcc2
18120 builtin and then its argument prototype would still apply. */
18122 /* The GNU C library defines this for functions which it implements
18123 to always fail with ENOSYS. Some functions are actually named
18124 something starting with __ and the normal name is an alias. */
18125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18128 char (*f) () = $ac_func;
18137 return f != $ac_func;
18142 rm -f conftest.
$ac_objext conftest
$ac_exeext
18143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18144 (eval $ac_link) 2>conftest.er1
18146 grep -v '^ *+' conftest.er1
>conftest.err
18148 cat conftest.err
>&5
18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); } &&
18151 { ac_try
='test -z "$ac_c_werror_flag"
18152 || 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 eval "$as_ac_var=yes"
18166 echo "$as_me: failed program was:" >&5
18167 sed 's/^/| /' conftest.
$ac_ext >&5
18169 eval "$as_ac_var=no"
18171 rm -f conftest.err conftest.
$ac_objext \
18172 conftest
$ac_exeext conftest.
$ac_ext
18174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18175 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18176 if test `eval echo '${'$as_ac_var'}'` = yes; then
18177 cat >>confdefs.h
<<_ACEOF
18178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18185 # PTY-related GNU extensions.
18187 for ac_func
in getpt
18189 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18190 echo "$as_me:$LINENO: checking for $ac_func" >&5
18191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18192 if eval "test \"\${$as_ac_var+set}\" = set"; then
18193 echo $ECHO_N "(cached) $ECHO_C" >&6
18195 cat >conftest.
$ac_ext <<_ACEOF
18198 cat confdefs.h
>>conftest.
$ac_ext
18199 cat >>conftest.
$ac_ext <<_ACEOF
18200 /* end confdefs.h. */
18201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18203 #define $ac_func innocuous_$ac_func
18205 /* System header to define __stub macros and hopefully few prototypes,
18206 which can conflict with char $ac_func (); below.
18207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18208 <limits.h> exists even on freestanding compilers. */
18211 # include <limits.h>
18213 # include <assert.h>
18218 /* Override any gcc2 internal prototype to avoid an error. */
18223 /* We use char because int might match the return type of a gcc2
18224 builtin and then its argument prototype would still apply. */
18226 /* The GNU C library defines this for functions which it implements
18227 to always fail with ENOSYS. Some functions are actually named
18228 something starting with __ and the normal name is an alias. */
18229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18232 char (*f) () = $ac_func;
18241 return f != $ac_func;
18246 rm -f conftest.
$ac_objext conftest
$ac_exeext
18247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18248 (eval $ac_link) 2>conftest.er1
18250 grep -v '^ *+' conftest.er1
>conftest.err
18252 cat conftest.err
>&5
18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); } &&
18255 { ac_try
='test -z "$ac_c_werror_flag"
18256 || test ! -s conftest.err'
18257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18258 (eval $ac_try) 2>&5
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); }; } &&
18262 { ac_try
='test -s conftest$ac_exeext'
18263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18264 (eval $ac_try) 2>&5
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); }; }; then
18268 eval "$as_ac_var=yes"
18270 echo "$as_me: failed program was:" >&5
18271 sed 's/^/| /' conftest.
$ac_ext >&5
18273 eval "$as_ac_var=no"
18275 rm -f conftest.err conftest.
$ac_objext \
18276 conftest
$ac_exeext conftest.
$ac_ext
18278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18279 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18280 if test `eval echo '${'$as_ac_var'}'` = yes; then
18281 cat >>confdefs.h
<<_ACEOF
18282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18289 # Check this now, so that we will NOT find the above functions in ncurses.
18290 # That is because we have not set up to link ncurses in lib-src.
18291 # It's better to believe a function is not available
18292 # than to expect to find it in ncurses.
18294 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18295 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18296 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18297 echo $ECHO_N "(cached) $ECHO_C" >&6
18299 ac_check_lib_save_LIBS
=$LIBS
18300 LIBS
="-lncurses $LIBS"
18301 cat >conftest.
$ac_ext <<_ACEOF
18304 cat confdefs.h
>>conftest.
$ac_ext
18305 cat >>conftest.
$ac_ext <<_ACEOF
18306 /* end confdefs.h. */
18308 /* Override any gcc2 internal prototype to avoid an error. */
18312 /* We use char because int might match the return type of a gcc2
18313 builtin and then its argument prototype would still apply. */
18323 rm -f conftest.
$ac_objext conftest
$ac_exeext
18324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18325 (eval $ac_link) 2>conftest.er1
18327 grep -v '^ *+' conftest.er1
>conftest.err
18329 cat conftest.err
>&5
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); } &&
18332 { ac_try
='test -z "$ac_c_werror_flag"
18333 || test ! -s conftest.err'
18334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18335 (eval $ac_try) 2>&5
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); }; } &&
18339 { ac_try
='test -s conftest$ac_exeext'
18340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18341 (eval $ac_try) 2>&5
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; }; then
18345 ac_cv_lib_ncurses_tparm
=yes
18347 echo "$as_me: failed program was:" >&5
18348 sed 's/^/| /' conftest.
$ac_ext >&5
18350 ac_cv_lib_ncurses_tparm
=no
18352 rm -f conftest.err conftest.
$ac_objext \
18353 conftest
$ac_exeext conftest.
$ac_ext
18354 LIBS
=$ac_check_lib_save_LIBS
18356 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18357 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18358 if test $ac_cv_lib_ncurses_tparm = yes; then
18359 cat >>confdefs.h
<<_ACEOF
18360 #define HAVE_LIBNCURSES 1
18363 LIBS
="-lncurses $LIBS"
18368 # Do we need the Hesiod library to provide the support routines?
18369 if test "$with_hesiod" = yes ; then
18370 # Don't set $LIBS here -- see comments above.
18372 echo "$as_me:$LINENO: checking for res_send" >&5
18373 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
18374 if test "${ac_cv_func_res_send+set}" = set; then
18375 echo $ECHO_N "(cached) $ECHO_C" >&6
18377 cat >conftest.
$ac_ext <<_ACEOF
18380 cat confdefs.h
>>conftest.
$ac_ext
18381 cat >>conftest.
$ac_ext <<_ACEOF
18382 /* end confdefs.h. */
18383 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18385 #define res_send innocuous_res_send
18387 /* System header to define __stub macros and hopefully few prototypes,
18388 which can conflict with char res_send (); below.
18389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18390 <limits.h> exists even on freestanding compilers. */
18393 # include <limits.h>
18395 # include <assert.h>
18400 /* Override any gcc2 internal prototype to avoid an error. */
18405 /* We use char because int might match the return type of a gcc2
18406 builtin and then its argument prototype would still apply. */
18408 /* The GNU C library defines this for functions which it implements
18409 to always fail with ENOSYS. Some functions are actually named
18410 something starting with __ and the normal name is an alias. */
18411 #if defined (__stub_res_send) || defined (__stub___res_send)
18414 char (*f) () = res_send;
18423 return f != res_send;
18428 rm -f conftest.
$ac_objext conftest
$ac_exeext
18429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18430 (eval $ac_link) 2>conftest.er1
18432 grep -v '^ *+' conftest.er1
>conftest.err
18434 cat conftest.err
>&5
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); } &&
18437 { ac_try
='test -z "$ac_c_werror_flag"
18438 || test ! -s conftest.err'
18439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18440 (eval $ac_try) 2>&5
18442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); }; } &&
18444 { ac_try
='test -s conftest$ac_exeext'
18445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18446 (eval $ac_try) 2>&5
18448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449 (exit $ac_status); }; }; then
18450 ac_cv_func_res_send
=yes
18452 echo "$as_me: failed program was:" >&5
18453 sed 's/^/| /' conftest.
$ac_ext >&5
18455 ac_cv_func_res_send
=no
18457 rm -f conftest.err conftest.
$ac_objext \
18458 conftest
$ac_exeext conftest.
$ac_ext
18460 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18461 echo "${ECHO_T}$ac_cv_func_res_send" >&6
18462 if test $ac_cv_func_res_send = yes; then
18465 echo "$as_me:$LINENO: checking for __res_send" >&5
18466 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18467 if test "${ac_cv_func___res_send+set}" = set; then
18468 echo $ECHO_N "(cached) $ECHO_C" >&6
18470 cat >conftest.
$ac_ext <<_ACEOF
18473 cat confdefs.h
>>conftest.
$ac_ext
18474 cat >>conftest.
$ac_ext <<_ACEOF
18475 /* end confdefs.h. */
18476 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18478 #define __res_send innocuous___res_send
18480 /* System header to define __stub macros and hopefully few prototypes,
18481 which can conflict with char __res_send (); below.
18482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18483 <limits.h> exists even on freestanding compilers. */
18486 # include <limits.h>
18488 # include <assert.h>
18493 /* Override any gcc2 internal prototype to avoid an error. */
18498 /* We use char because int might match the return type of a gcc2
18499 builtin and then its argument prototype would still apply. */
18500 char __res_send ();
18501 /* The GNU C library defines this for functions which it implements
18502 to always fail with ENOSYS. Some functions are actually named
18503 something starting with __ and the normal name is an alias. */
18504 #if defined (__stub___res_send) || defined (__stub_____res_send)
18507 char (*f) () = __res_send;
18516 return f != __res_send;
18521 rm -f conftest.
$ac_objext conftest
$ac_exeext
18522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18523 (eval $ac_link) 2>conftest.er1
18525 grep -v '^ *+' conftest.er1
>conftest.err
18527 cat conftest.err
>&5
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); } &&
18530 { ac_try
='test -z "$ac_c_werror_flag"
18531 || test ! -s conftest.err'
18532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18533 (eval $ac_try) 2>&5
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }; } &&
18537 { ac_try
='test -s conftest$ac_exeext'
18538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18539 (eval $ac_try) 2>&5
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); }; }; then
18543 ac_cv_func___res_send
=yes
18545 echo "$as_me: failed program was:" >&5
18546 sed 's/^/| /' conftest.
$ac_ext >&5
18548 ac_cv_func___res_send
=no
18550 rm -f conftest.err conftest.
$ac_objext \
18551 conftest
$ac_exeext conftest.
$ac_ext
18553 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18554 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18555 if test $ac_cv_func___res_send = yes; then
18558 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18559 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18560 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18561 echo $ECHO_N "(cached) $ECHO_C" >&6
18563 ac_check_lib_save_LIBS
=$LIBS
18564 LIBS
="-lresolv $LIBS"
18565 cat >conftest.
$ac_ext <<_ACEOF
18568 cat confdefs.h
>>conftest.
$ac_ext
18569 cat >>conftest.
$ac_ext <<_ACEOF
18570 /* end confdefs.h. */
18572 /* Override any gcc2 internal prototype to avoid an error. */
18576 /* We use char because int might match the return type of a gcc2
18577 builtin and then its argument prototype would still apply. */
18587 rm -f conftest.
$ac_objext conftest
$ac_exeext
18588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18589 (eval $ac_link) 2>conftest.er1
18591 grep -v '^ *+' conftest.er1
>conftest.err
18593 cat conftest.err
>&5
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); } &&
18596 { ac_try
='test -z "$ac_c_werror_flag"
18597 || test ! -s conftest.err'
18598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18599 (eval $ac_try) 2>&5
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); }; } &&
18603 { ac_try
='test -s conftest$ac_exeext'
18604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18605 (eval $ac_try) 2>&5
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); }; }; then
18609 ac_cv_lib_resolv_res_send
=yes
18611 echo "$as_me: failed program was:" >&5
18612 sed 's/^/| /' conftest.
$ac_ext >&5
18614 ac_cv_lib_resolv_res_send
=no
18616 rm -f conftest.err conftest.
$ac_objext \
18617 conftest
$ac_exeext conftest.
$ac_ext
18618 LIBS
=$ac_check_lib_save_LIBS
18620 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18621 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18622 if test $ac_cv_lib_resolv_res_send = yes; then
18625 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18626 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18627 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18628 echo $ECHO_N "(cached) $ECHO_C" >&6
18630 ac_check_lib_save_LIBS
=$LIBS
18631 LIBS
="-lresolv $LIBS"
18632 cat >conftest.
$ac_ext <<_ACEOF
18635 cat confdefs.h
>>conftest.
$ac_ext
18636 cat >>conftest.
$ac_ext <<_ACEOF
18637 /* end confdefs.h. */
18639 /* Override any gcc2 internal prototype to avoid an error. */
18643 /* We use char because int might match the return type of a gcc2
18644 builtin and then its argument prototype would still apply. */
18645 char __res_send ();
18654 rm -f conftest.
$ac_objext conftest
$ac_exeext
18655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18656 (eval $ac_link) 2>conftest.er1
18658 grep -v '^ *+' conftest.er1
>conftest.err
18660 cat conftest.err
>&5
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); } &&
18663 { ac_try
='test -z "$ac_c_werror_flag"
18664 || test ! -s conftest.err'
18665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18666 (eval $ac_try) 2>&5
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); }; } &&
18670 { ac_try
='test -s conftest$ac_exeext'
18671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18672 (eval $ac_try) 2>&5
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); }; }; then
18676 ac_cv_lib_resolv___res_send
=yes
18678 echo "$as_me: failed program was:" >&5
18679 sed 's/^/| /' conftest.
$ac_ext >&5
18681 ac_cv_lib_resolv___res_send
=no
18683 rm -f conftest.err conftest.
$ac_objext \
18684 conftest
$ac_exeext conftest.
$ac_ext
18685 LIBS
=$ac_check_lib_save_LIBS
18687 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18688 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18689 if test $ac_cv_lib_resolv___res_send = yes; then
18699 if test "$resolv" = yes ; then
18702 cat >>confdefs.h
<<\_ACEOF
18703 #define HAVE_LIBRESOLV 1
18709 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18710 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18711 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18712 echo $ECHO_N "(cached) $ECHO_C" >&6
18714 cat >conftest.
$ac_ext <<_ACEOF
18717 cat confdefs.h
>>conftest.
$ac_ext
18718 cat >>conftest.
$ac_ext <<_ACEOF
18719 /* end confdefs.h. */
18720 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18722 #define hes_getmailhost innocuous_hes_getmailhost
18724 /* System header to define __stub macros and hopefully few prototypes,
18725 which can conflict with char hes_getmailhost (); below.
18726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18727 <limits.h> exists even on freestanding compilers. */
18730 # include <limits.h>
18732 # include <assert.h>
18735 #undef hes_getmailhost
18737 /* Override any gcc2 internal prototype to avoid an error. */
18742 /* We use char because int might match the return type of a gcc2
18743 builtin and then its argument prototype would still apply. */
18744 char hes_getmailhost ();
18745 /* The GNU C library defines this for functions which it implements
18746 to always fail with ENOSYS. Some functions are actually named
18747 something starting with __ and the normal name is an alias. */
18748 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18751 char (*f) () = hes_getmailhost;
18760 return f != hes_getmailhost;
18765 rm -f conftest.
$ac_objext conftest
$ac_exeext
18766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18767 (eval $ac_link) 2>conftest.er1
18769 grep -v '^ *+' conftest.er1
>conftest.err
18771 cat conftest.err
>&5
18772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773 (exit $ac_status); } &&
18774 { ac_try
='test -z "$ac_c_werror_flag"
18775 || test ! -s conftest.err'
18776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18777 (eval $ac_try) 2>&5
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); }; } &&
18781 { ac_try
='test -s conftest$ac_exeext'
18782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18783 (eval $ac_try) 2>&5
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); }; }; then
18787 ac_cv_func_hes_getmailhost
=yes
18789 echo "$as_me: failed program was:" >&5
18790 sed 's/^/| /' conftest.
$ac_ext >&5
18792 ac_cv_func_hes_getmailhost
=no
18794 rm -f conftest.err conftest.
$ac_objext \
18795 conftest
$ac_exeext conftest.
$ac_ext
18797 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18798 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18799 if test $ac_cv_func_hes_getmailhost = yes; then
18802 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18803 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18804 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18805 echo $ECHO_N "(cached) $ECHO_C" >&6
18807 ac_check_lib_save_LIBS
=$LIBS
18808 LIBS
="-lhesiod $RESOLVLIB $LIBS"
18809 cat >conftest.
$ac_ext <<_ACEOF
18812 cat confdefs.h
>>conftest.
$ac_ext
18813 cat >>conftest.
$ac_ext <<_ACEOF
18814 /* end confdefs.h. */
18816 /* Override any gcc2 internal prototype to avoid an error. */
18820 /* We use char because int might match the return type of a gcc2
18821 builtin and then its argument prototype would still apply. */
18822 char hes_getmailhost ();
18826 hes_getmailhost ();
18831 rm -f conftest.
$ac_objext conftest
$ac_exeext
18832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18833 (eval $ac_link) 2>conftest.er1
18835 grep -v '^ *+' conftest.er1
>conftest.err
18837 cat conftest.err
>&5
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); } &&
18840 { ac_try
='test -z "$ac_c_werror_flag"
18841 || test ! -s conftest.err'
18842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18843 (eval $ac_try) 2>&5
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); }; } &&
18847 { ac_try
='test -s conftest$ac_exeext'
18848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18849 (eval $ac_try) 2>&5
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); }; }; then
18853 ac_cv_lib_hesiod_hes_getmailhost
=yes
18855 echo "$as_me: failed program was:" >&5
18856 sed 's/^/| /' conftest.
$ac_ext >&5
18858 ac_cv_lib_hesiod_hes_getmailhost
=no
18860 rm -f conftest.err conftest.
$ac_objext \
18861 conftest
$ac_exeext conftest.
$ac_ext
18862 LIBS
=$ac_check_lib_save_LIBS
18864 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18865 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18866 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18868 cat >>confdefs.h
<<\_ACEOF
18869 #define HAVE_LIBHESIOD 1
18880 # These tell us which Kerberos-related libraries to use.
18881 if test "${with_kerberos+set}" = set; then
18883 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18884 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18885 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18886 echo $ECHO_N "(cached) $ECHO_C" >&6
18888 ac_check_lib_save_LIBS
=$LIBS
18889 LIBS
="-lcom_err $LIBS"
18890 cat >conftest.
$ac_ext <<_ACEOF
18893 cat confdefs.h
>>conftest.
$ac_ext
18894 cat >>conftest.
$ac_ext <<_ACEOF
18895 /* end confdefs.h. */
18897 /* Override any gcc2 internal prototype to avoid an error. */
18901 /* We use char because int might match the return type of a gcc2
18902 builtin and then its argument prototype would still apply. */
18912 rm -f conftest.
$ac_objext conftest
$ac_exeext
18913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18914 (eval $ac_link) 2>conftest.er1
18916 grep -v '^ *+' conftest.er1
>conftest.err
18918 cat conftest.err
>&5
18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); } &&
18921 { ac_try
='test -z "$ac_c_werror_flag"
18922 || test ! -s conftest.err'
18923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18924 (eval $ac_try) 2>&5
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); }; } &&
18928 { ac_try
='test -s conftest$ac_exeext'
18929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18930 (eval $ac_try) 2>&5
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); }; }; then
18934 ac_cv_lib_com_err_com_err
=yes
18936 echo "$as_me: failed program was:" >&5
18937 sed 's/^/| /' conftest.
$ac_ext >&5
18939 ac_cv_lib_com_err_com_err
=no
18941 rm -f conftest.err conftest.
$ac_objext \
18942 conftest
$ac_exeext conftest.
$ac_ext
18943 LIBS
=$ac_check_lib_save_LIBS
18945 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18946 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18947 if test $ac_cv_lib_com_err_com_err = yes; then
18948 cat >>confdefs.h
<<_ACEOF
18949 #define HAVE_LIBCOM_ERR 1
18952 LIBS
="-lcom_err $LIBS"
18957 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18958 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18959 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18960 echo $ECHO_N "(cached) $ECHO_C" >&6
18962 ac_check_lib_save_LIBS
=$LIBS
18963 LIBS
="-lk5crypto $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 mit_des_cbc_encrypt ();
18981 mit_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"
18996 || test ! -s conftest.err'
18997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18998 (eval $ac_try) 2>&5
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }; } &&
19002 { ac_try
='test -s conftest$ac_exeext'
19003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19004 (eval $ac_try) 2>&5
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); }; }; then
19008 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
19010 echo "$as_me: failed program was:" >&5
19011 sed 's/^/| /' conftest.
$ac_ext >&5
19013 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
19015 rm -f conftest.err conftest.
$ac_objext \
19016 conftest
$ac_exeext conftest.
$ac_ext
19017 LIBS
=$ac_check_lib_save_LIBS
19019 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19020 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
19021 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19022 cat >>confdefs.h
<<_ACEOF
19023 #define HAVE_LIBK5CRYPTO 1
19026 LIBS
="-lk5crypto $LIBS"
19031 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19032 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
19033 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19034 echo $ECHO_N "(cached) $ECHO_C" >&6
19036 ac_check_lib_save_LIBS
=$LIBS
19037 LIBS
="-lcrypto $LIBS"
19038 cat >conftest.
$ac_ext <<_ACEOF
19041 cat confdefs.h
>>conftest.
$ac_ext
19042 cat >>conftest.
$ac_ext <<_ACEOF
19043 /* end confdefs.h. */
19045 /* Override any gcc2 internal prototype to avoid an error. */
19049 /* We use char because int might match the return type of a gcc2
19050 builtin and then its argument prototype would still apply. */
19051 char mit_des_cbc_encrypt ();
19055 mit_des_cbc_encrypt ();
19060 rm -f conftest.
$ac_objext conftest
$ac_exeext
19061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19062 (eval $ac_link) 2>conftest.er1
19064 grep -v '^ *+' conftest.er1
>conftest.err
19066 cat conftest.err
>&5
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); } &&
19069 { ac_try
='test -z "$ac_c_werror_flag"
19070 || 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_crypto_mit_des_cbc_encrypt
=yes
19084 echo "$as_me: failed program was:" >&5
19085 sed 's/^/| /' conftest.
$ac_ext >&5
19087 ac_cv_lib_crypto_mit_des_cbc_encrypt
=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_crypto_mit_des_cbc_encrypt" >&5
19094 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
19095 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19096 cat >>confdefs.h
<<_ACEOF
19097 #define HAVE_LIBCRYPTO 1
19100 LIBS
="-lcrypto $LIBS"
19105 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19106 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
19107 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19108 echo $ECHO_N "(cached) $ECHO_C" >&6
19110 ac_check_lib_save_LIBS
=$LIBS
19111 LIBS
="-lkrb5 $LIBS"
19112 cat >conftest.
$ac_ext <<_ACEOF
19115 cat confdefs.h
>>conftest.
$ac_ext
19116 cat >>conftest.
$ac_ext <<_ACEOF
19117 /* end confdefs.h. */
19119 /* Override any gcc2 internal prototype to avoid an error. */
19123 /* We use char because int might match the return type of a gcc2
19124 builtin and then its argument prototype would still apply. */
19125 char krb5_init_context ();
19129 krb5_init_context ();
19134 rm -f conftest.
$ac_objext conftest
$ac_exeext
19135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19136 (eval $ac_link) 2>conftest.er1
19138 grep -v '^ *+' conftest.er1
>conftest.err
19140 cat conftest.err
>&5
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); } &&
19143 { ac_try
='test -z "$ac_c_werror_flag"
19144 || test ! -s conftest.err'
19145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19146 (eval $ac_try) 2>&5
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); }; } &&
19150 { ac_try
='test -s conftest$ac_exeext'
19151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19152 (eval $ac_try) 2>&5
19154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155 (exit $ac_status); }; }; then
19156 ac_cv_lib_krb5_krb5_init_context
=yes
19158 echo "$as_me: failed program was:" >&5
19159 sed 's/^/| /' conftest.
$ac_ext >&5
19161 ac_cv_lib_krb5_krb5_init_context
=no
19163 rm -f conftest.err conftest.
$ac_objext \
19164 conftest
$ac_exeext conftest.
$ac_ext
19165 LIBS
=$ac_check_lib_save_LIBS
19167 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19168 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
19169 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19170 cat >>confdefs.h
<<_ACEOF
19171 #define HAVE_LIBKRB5 1
19174 LIBS
="-lkrb5 $LIBS"
19178 if test "${with_kerberos5+set}" != set; then
19180 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19181 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
19182 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19183 echo $ECHO_N "(cached) $ECHO_C" >&6
19185 ac_check_lib_save_LIBS
=$LIBS
19186 LIBS
="-ldes425 $LIBS"
19187 cat >conftest.
$ac_ext <<_ACEOF
19190 cat confdefs.h
>>conftest.
$ac_ext
19191 cat >>conftest.
$ac_ext <<_ACEOF
19192 /* end confdefs.h. */
19194 /* Override any gcc2 internal prototype to avoid an error. */
19198 /* We use char because int might match the return type of a gcc2
19199 builtin and then its argument prototype would still apply. */
19200 char des_cbc_encrypt ();
19204 des_cbc_encrypt ();
19209 rm -f conftest.
$ac_objext conftest
$ac_exeext
19210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19211 (eval $ac_link) 2>conftest.er1
19213 grep -v '^ *+' conftest.er1
>conftest.err
19215 cat conftest.err
>&5
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); } &&
19218 { ac_try
='test -z "$ac_c_werror_flag"
19219 || test ! -s conftest.err'
19220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19221 (eval $ac_try) 2>&5
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); }; } &&
19225 { ac_try
='test -s conftest$ac_exeext'
19226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19227 (eval $ac_try) 2>&5
19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); }; }; then
19231 ac_cv_lib_des425_des_cbc_encrypt
=yes
19233 echo "$as_me: failed program was:" >&5
19234 sed 's/^/| /' conftest.
$ac_ext >&5
19236 ac_cv_lib_des425_des_cbc_encrypt
=no
19238 rm -f conftest.err conftest.
$ac_objext \
19239 conftest
$ac_exeext conftest.
$ac_ext
19240 LIBS
=$ac_check_lib_save_LIBS
19242 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19243 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
19244 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19245 cat >>confdefs.h
<<_ACEOF
19246 #define HAVE_LIBDES425 1
19249 LIBS
="-ldes425 $LIBS"
19253 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19254 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
19255 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19256 echo $ECHO_N "(cached) $ECHO_C" >&6
19258 ac_check_lib_save_LIBS
=$LIBS
19260 cat >conftest.
$ac_ext <<_ACEOF
19263 cat confdefs.h
>>conftest.
$ac_ext
19264 cat >>conftest.
$ac_ext <<_ACEOF
19265 /* end confdefs.h. */
19267 /* Override any gcc2 internal prototype to avoid an error. */
19271 /* We use char because int might match the return type of a gcc2
19272 builtin and then its argument prototype would still apply. */
19273 char des_cbc_encrypt ();
19277 des_cbc_encrypt ();
19282 rm -f conftest.
$ac_objext conftest
$ac_exeext
19283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19284 (eval $ac_link) 2>conftest.er1
19286 grep -v '^ *+' conftest.er1
>conftest.err
19288 cat conftest.err
>&5
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); } &&
19291 { ac_try
='test -z "$ac_c_werror_flag"
19292 || test ! -s conftest.err'
19293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19294 (eval $ac_try) 2>&5
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); }; } &&
19298 { ac_try
='test -s conftest$ac_exeext'
19299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19300 (eval $ac_try) 2>&5
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); }; }; then
19304 ac_cv_lib_des_des_cbc_encrypt
=yes
19306 echo "$as_me: failed program was:" >&5
19307 sed 's/^/| /' conftest.
$ac_ext >&5
19309 ac_cv_lib_des_des_cbc_encrypt
=no
19311 rm -f conftest.err conftest.
$ac_objext \
19312 conftest
$ac_exeext conftest.
$ac_ext
19313 LIBS
=$ac_check_lib_save_LIBS
19315 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19316 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19317 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19318 cat >>confdefs.h
<<_ACEOF
19319 #define HAVE_LIBDES 1
19329 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19330 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19331 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19332 echo $ECHO_N "(cached) $ECHO_C" >&6
19334 ac_check_lib_save_LIBS
=$LIBS
19335 LIBS
="-lkrb4 $LIBS"
19336 cat >conftest.
$ac_ext <<_ACEOF
19339 cat confdefs.h
>>conftest.
$ac_ext
19340 cat >>conftest.
$ac_ext <<_ACEOF
19341 /* end confdefs.h. */
19343 /* Override any gcc2 internal prototype to avoid an error. */
19347 /* We use char because int might match the return type of a gcc2
19348 builtin and then its argument prototype would still apply. */
19349 char krb_get_cred ();
19358 rm -f conftest.
$ac_objext conftest
$ac_exeext
19359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19360 (eval $ac_link) 2>conftest.er1
19362 grep -v '^ *+' conftest.er1
>conftest.err
19364 cat conftest.err
>&5
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); } &&
19367 { ac_try
='test -z "$ac_c_werror_flag"
19368 || test ! -s conftest.err'
19369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19370 (eval $ac_try) 2>&5
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); }; } &&
19374 { ac_try
='test -s conftest$ac_exeext'
19375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19376 (eval $ac_try) 2>&5
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); }; }; then
19380 ac_cv_lib_krb4_krb_get_cred
=yes
19382 echo "$as_me: failed program was:" >&5
19383 sed 's/^/| /' conftest.
$ac_ext >&5
19385 ac_cv_lib_krb4_krb_get_cred
=no
19387 rm -f conftest.err conftest.
$ac_objext \
19388 conftest
$ac_exeext conftest.
$ac_ext
19389 LIBS
=$ac_check_lib_save_LIBS
19391 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19392 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19393 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19394 cat >>confdefs.h
<<_ACEOF
19395 #define HAVE_LIBKRB4 1
19398 LIBS
="-lkrb4 $LIBS"
19402 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19403 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19404 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19405 echo $ECHO_N "(cached) $ECHO_C" >&6
19407 ac_check_lib_save_LIBS
=$LIBS
19409 cat >conftest.
$ac_ext <<_ACEOF
19412 cat confdefs.h
>>conftest.
$ac_ext
19413 cat >>conftest.
$ac_ext <<_ACEOF
19414 /* end confdefs.h. */
19416 /* Override any gcc2 internal prototype to avoid an error. */
19420 /* We use char because int might match the return type of a gcc2
19421 builtin and then its argument prototype would still apply. */
19422 char krb_get_cred ();
19431 rm -f conftest.
$ac_objext conftest
$ac_exeext
19432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19433 (eval $ac_link) 2>conftest.er1
19435 grep -v '^ *+' conftest.er1
>conftest.err
19437 cat conftest.err
>&5
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); } &&
19440 { ac_try
='test -z "$ac_c_werror_flag"
19441 || test ! -s conftest.err'
19442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19443 (eval $ac_try) 2>&5
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); }; } &&
19447 { ac_try
='test -s conftest$ac_exeext'
19448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19449 (eval $ac_try) 2>&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); }; }; then
19453 ac_cv_lib_krb_krb_get_cred
=yes
19455 echo "$as_me: failed program was:" >&5
19456 sed 's/^/| /' conftest.
$ac_ext >&5
19458 ac_cv_lib_krb_krb_get_cred
=no
19460 rm -f conftest.err conftest.
$ac_objext \
19461 conftest
$ac_exeext conftest.
$ac_ext
19462 LIBS
=$ac_check_lib_save_LIBS
19464 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19465 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19466 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19467 cat >>confdefs.h
<<_ACEOF
19468 #define HAVE_LIBKRB 1
19479 if test "${with_kerberos5+set}" = set; then
19481 for ac_header
in krb5.h
19483 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19485 echo "$as_me:$LINENO: checking for $ac_header" >&5
19486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19488 echo $ECHO_N "(cached) $ECHO_C" >&6
19490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19493 # Is the header compilable?
19494 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19495 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19496 cat >conftest.
$ac_ext <<_ACEOF
19499 cat confdefs.h
>>conftest.
$ac_ext
19500 cat >>conftest.
$ac_ext <<_ACEOF
19501 /* end confdefs.h. */
19502 $ac_includes_default
19503 #include <$ac_header>
19505 rm -f conftest.
$ac_objext
19506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19507 (eval $ac_compile) 2>conftest.er1
19509 grep -v '^ *+' conftest.er1
>conftest.err
19511 cat conftest.err
>&5
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); } &&
19514 { ac_try
='test -z "$ac_c_werror_flag"
19515 || test ! -s conftest.err'
19516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19517 (eval $ac_try) 2>&5
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); }; } &&
19521 { ac_try
='test -s conftest.$ac_objext'
19522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19523 (eval $ac_try) 2>&5
19525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526 (exit $ac_status); }; }; then
19527 ac_header_compiler
=yes
19529 echo "$as_me: failed program was:" >&5
19530 sed 's/^/| /' conftest.
$ac_ext >&5
19532 ac_header_compiler
=no
19534 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19535 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19536 echo "${ECHO_T}$ac_header_compiler" >&6
19538 # Is the header present?
19539 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19541 cat >conftest.
$ac_ext <<_ACEOF
19544 cat confdefs.h
>>conftest.
$ac_ext
19545 cat >>conftest.
$ac_ext <<_ACEOF
19546 /* end confdefs.h. */
19547 #include <$ac_header>
19549 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19550 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19552 grep -v '^ *+' conftest.er1
>conftest.err
19554 cat conftest.err
>&5
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); } >/dev
/null
; then
19557 if test -s conftest.err
; then
19558 ac_cpp_err
=$ac_c_preproc_warn_flag
19559 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19566 if test -z "$ac_cpp_err"; then
19567 ac_header_preproc
=yes
19569 echo "$as_me: failed program was:" >&5
19570 sed 's/^/| /' conftest.
$ac_ext >&5
19572 ac_header_preproc
=no
19574 rm -f conftest.err conftest.
$ac_ext
19575 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19576 echo "${ECHO_T}$ac_header_preproc" >&6
19578 # So? What about this header?
19579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19584 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19585 ac_header_preproc
=yes
19588 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19589 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19590 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19591 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19592 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19593 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19594 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19595 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19598 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19599 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19602 ## ------------------------------------------ ##
19603 ## Report this to the AC_PACKAGE_NAME lists. ##
19604 ## ------------------------------------------ ##
19607 sed "s/^/$as_me: WARNING: /" >&2
19610 echo "$as_me:$LINENO: checking for $ac_header" >&5
19611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19613 echo $ECHO_N "(cached) $ECHO_C" >&6
19615 eval "$as_ac_Header=\$ac_header_preproc"
19617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19618 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19622 cat >>confdefs.h
<<_ACEOF
19623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19632 for ac_header
in des.h
19634 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19636 echo "$as_me:$LINENO: checking for $ac_header" >&5
19637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19639 echo $ECHO_N "(cached) $ECHO_C" >&6
19641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19644 # Is the header compilable?
19645 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19646 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19647 cat >conftest.
$ac_ext <<_ACEOF
19650 cat confdefs.h
>>conftest.
$ac_ext
19651 cat >>conftest.
$ac_ext <<_ACEOF
19652 /* end confdefs.h. */
19653 $ac_includes_default
19654 #include <$ac_header>
19656 rm -f conftest.
$ac_objext
19657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19658 (eval $ac_compile) 2>conftest.er1
19660 grep -v '^ *+' conftest.er1
>conftest.err
19662 cat conftest.err
>&5
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); } &&
19665 { ac_try
='test -z "$ac_c_werror_flag"
19666 || test ! -s conftest.err'
19667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19668 (eval $ac_try) 2>&5
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); }; } &&
19672 { ac_try
='test -s conftest.$ac_objext'
19673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19674 (eval $ac_try) 2>&5
19676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677 (exit $ac_status); }; }; then
19678 ac_header_compiler
=yes
19680 echo "$as_me: failed program was:" >&5
19681 sed 's/^/| /' conftest.
$ac_ext >&5
19683 ac_header_compiler
=no
19685 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19686 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19687 echo "${ECHO_T}$ac_header_compiler" >&6
19689 # Is the header present?
19690 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19691 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19692 cat >conftest.
$ac_ext <<_ACEOF
19695 cat confdefs.h
>>conftest.
$ac_ext
19696 cat >>conftest.
$ac_ext <<_ACEOF
19697 /* end confdefs.h. */
19698 #include <$ac_header>
19700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19701 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19703 grep -v '^ *+' conftest.er1
>conftest.err
19705 cat conftest.err
>&5
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); } >/dev
/null
; then
19708 if test -s conftest.err
; then
19709 ac_cpp_err
=$ac_c_preproc_warn_flag
19710 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19717 if test -z "$ac_cpp_err"; then
19718 ac_header_preproc
=yes
19720 echo "$as_me: failed program was:" >&5
19721 sed 's/^/| /' conftest.
$ac_ext >&5
19723 ac_header_preproc
=no
19725 rm -f conftest.err conftest.
$ac_ext
19726 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19727 echo "${ECHO_T}$ac_header_preproc" >&6
19729 # So? What about this header?
19730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19732 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19733 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19735 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19736 ac_header_preproc
=yes
19739 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19740 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19741 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19742 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19743 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19744 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19745 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19746 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19748 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19749 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19750 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19753 ## ------------------------------------------ ##
19754 ## Report this to the AC_PACKAGE_NAME lists. ##
19755 ## ------------------------------------------ ##
19758 sed "s/^/$as_me: WARNING: /" >&2
19761 echo "$as_me:$LINENO: checking for $ac_header" >&5
19762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19764 echo $ECHO_N "(cached) $ECHO_C" >&6
19766 eval "$as_ac_Header=\$ac_header_preproc"
19768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19769 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19773 cat >>confdefs.h
<<_ACEOF
19774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19779 for ac_header
in kerberosIV
/des.h
19781 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19783 echo "$as_me:$LINENO: checking for $ac_header" >&5
19784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19786 echo $ECHO_N "(cached) $ECHO_C" >&6
19788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19791 # Is the header compilable?
19792 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19794 cat >conftest.
$ac_ext <<_ACEOF
19797 cat confdefs.h
>>conftest.
$ac_ext
19798 cat >>conftest.
$ac_ext <<_ACEOF
19799 /* end confdefs.h. */
19800 $ac_includes_default
19801 #include <$ac_header>
19803 rm -f conftest.
$ac_objext
19804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19805 (eval $ac_compile) 2>conftest.er1
19807 grep -v '^ *+' conftest.er1
>conftest.err
19809 cat conftest.err
>&5
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); } &&
19812 { ac_try
='test -z "$ac_c_werror_flag"
19813 || test ! -s conftest.err'
19814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19815 (eval $ac_try) 2>&5
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); }; } &&
19819 { ac_try
='test -s conftest.$ac_objext'
19820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19821 (eval $ac_try) 2>&5
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); }; }; then
19825 ac_header_compiler
=yes
19827 echo "$as_me: failed program was:" >&5
19828 sed 's/^/| /' conftest.
$ac_ext >&5
19830 ac_header_compiler
=no
19832 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19833 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19834 echo "${ECHO_T}$ac_header_compiler" >&6
19836 # Is the header present?
19837 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19839 cat >conftest.
$ac_ext <<_ACEOF
19842 cat confdefs.h
>>conftest.
$ac_ext
19843 cat >>conftest.
$ac_ext <<_ACEOF
19844 /* end confdefs.h. */
19845 #include <$ac_header>
19847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19848 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19850 grep -v '^ *+' conftest.er1
>conftest.err
19852 cat conftest.err
>&5
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); } >/dev
/null
; then
19855 if test -s conftest.err
; then
19856 ac_cpp_err
=$ac_c_preproc_warn_flag
19857 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19864 if test -z "$ac_cpp_err"; then
19865 ac_header_preproc
=yes
19867 echo "$as_me: failed program was:" >&5
19868 sed 's/^/| /' conftest.
$ac_ext >&5
19870 ac_header_preproc
=no
19872 rm -f conftest.err conftest.
$ac_ext
19873 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19874 echo "${ECHO_T}$ac_header_preproc" >&6
19876 # So? What about this header?
19877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19879 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19880 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19882 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19883 ac_header_preproc
=yes
19886 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19887 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19888 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19889 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19890 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19891 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19892 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19893 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19896 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19897 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19900 ## ------------------------------------------ ##
19901 ## Report this to the AC_PACKAGE_NAME lists. ##
19902 ## ------------------------------------------ ##
19905 sed "s/^/$as_me: WARNING: /" >&2
19908 echo "$as_me:$LINENO: checking for $ac_header" >&5
19909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19911 echo $ECHO_N "(cached) $ECHO_C" >&6
19913 eval "$as_ac_Header=\$ac_header_preproc"
19915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19920 cat >>confdefs.h
<<_ACEOF
19921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19926 for ac_header
in kerberos
/des.h
19928 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19930 echo "$as_me:$LINENO: checking for $ac_header" >&5
19931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19933 echo $ECHO_N "(cached) $ECHO_C" >&6
19935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19938 # Is the header compilable?
19939 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19940 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19941 cat >conftest.
$ac_ext <<_ACEOF
19944 cat confdefs.h
>>conftest.
$ac_ext
19945 cat >>conftest.
$ac_ext <<_ACEOF
19946 /* end confdefs.h. */
19947 $ac_includes_default
19948 #include <$ac_header>
19950 rm -f conftest.
$ac_objext
19951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19952 (eval $ac_compile) 2>conftest.er1
19954 grep -v '^ *+' conftest.er1
>conftest.err
19956 cat conftest.err
>&5
19957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); } &&
19959 { ac_try
='test -z "$ac_c_werror_flag"
19960 || 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
20084 for ac_header
in krb.h
20086 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20088 echo "$as_me:$LINENO: checking for $ac_header" >&5
20089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20091 echo $ECHO_N "(cached) $ECHO_C" >&6
20093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20096 # Is the header compilable?
20097 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20099 cat >conftest.
$ac_ext <<_ACEOF
20102 cat confdefs.h
>>conftest.
$ac_ext
20103 cat >>conftest.
$ac_ext <<_ACEOF
20104 /* end confdefs.h. */
20105 $ac_includes_default
20106 #include <$ac_header>
20108 rm -f conftest.
$ac_objext
20109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20110 (eval $ac_compile) 2>conftest.er1
20112 grep -v '^ *+' conftest.er1
>conftest.err
20114 cat conftest.err
>&5
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); } &&
20117 { ac_try
='test -z "$ac_c_werror_flag"
20118 || test ! -s conftest.err'
20119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20120 (eval $ac_try) 2>&5
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); }; } &&
20124 { ac_try
='test -s conftest.$ac_objext'
20125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20126 (eval $ac_try) 2>&5
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); }; }; then
20130 ac_header_compiler
=yes
20132 echo "$as_me: failed program was:" >&5
20133 sed 's/^/| /' conftest.
$ac_ext >&5
20135 ac_header_compiler
=no
20137 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20138 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20139 echo "${ECHO_T}$ac_header_compiler" >&6
20141 # Is the header present?
20142 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20143 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20144 cat >conftest.
$ac_ext <<_ACEOF
20147 cat confdefs.h
>>conftest.
$ac_ext
20148 cat >>conftest.
$ac_ext <<_ACEOF
20149 /* end confdefs.h. */
20150 #include <$ac_header>
20152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20153 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20155 grep -v '^ *+' conftest.er1
>conftest.err
20157 cat conftest.err
>&5
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); } >/dev
/null
; then
20160 if test -s conftest.err
; then
20161 ac_cpp_err
=$ac_c_preproc_warn_flag
20162 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20169 if test -z "$ac_cpp_err"; then
20170 ac_header_preproc
=yes
20172 echo "$as_me: failed program was:" >&5
20173 sed 's/^/| /' conftest.
$ac_ext >&5
20175 ac_header_preproc
=no
20177 rm -f conftest.err conftest.
$ac_ext
20178 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20179 echo "${ECHO_T}$ac_header_preproc" >&6
20181 # So? What about this header?
20182 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20184 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20185 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20187 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20188 ac_header_preproc
=yes
20191 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20192 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20193 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20194 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20195 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20196 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20197 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20198 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20201 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20202 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20205 ## ------------------------------------------ ##
20206 ## Report this to the AC_PACKAGE_NAME lists. ##
20207 ## ------------------------------------------ ##
20210 sed "s/^/$as_me: WARNING: /" >&2
20213 echo "$as_me:$LINENO: checking for $ac_header" >&5
20214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20216 echo $ECHO_N "(cached) $ECHO_C" >&6
20218 eval "$as_ac_Header=\$ac_header_preproc"
20220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20221 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20225 cat >>confdefs.h
<<_ACEOF
20226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20231 for ac_header
in kerberosIV
/krb.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"
20265 || test ! -s conftest.err'
20266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20267 (eval $ac_try) 2>&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); }; } &&
20271 { ac_try
='test -s conftest.$ac_objext'
20272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20273 (eval $ac_try) 2>&5
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); }; }; then
20277 ac_header_compiler
=yes
20279 echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.
$ac_ext >&5
20282 ac_header_compiler
=no
20284 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20285 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20286 echo "${ECHO_T}$ac_header_compiler" >&6
20288 # Is the header present?
20289 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20291 cat >conftest.
$ac_ext <<_ACEOF
20294 cat confdefs.h
>>conftest.
$ac_ext
20295 cat >>conftest.
$ac_ext <<_ACEOF
20296 /* end confdefs.h. */
20297 #include <$ac_header>
20299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20300 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20302 grep -v '^ *+' conftest.er1
>conftest.err
20304 cat conftest.err
>&5
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); } >/dev
/null
; then
20307 if test -s conftest.err
; then
20308 ac_cpp_err
=$ac_c_preproc_warn_flag
20309 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20316 if test -z "$ac_cpp_err"; then
20317 ac_header_preproc
=yes
20319 echo "$as_me: failed program was:" >&5
20320 sed 's/^/| /' conftest.
$ac_ext >&5
20322 ac_header_preproc
=no
20324 rm -f conftest.err conftest.
$ac_ext
20325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20326 echo "${ECHO_T}$ac_header_preproc" >&6
20328 # So? What about this header?
20329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20334 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20335 ac_header_preproc
=yes
20338 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20339 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20340 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20341 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20342 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20343 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20344 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20345 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20347 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20348 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20349 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20352 ## ------------------------------------------ ##
20353 ## Report this to the AC_PACKAGE_NAME lists. ##
20354 ## ------------------------------------------ ##
20357 sed "s/^/$as_me: WARNING: /" >&2
20360 echo "$as_me:$LINENO: checking for $ac_header" >&5
20361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20363 echo $ECHO_N "(cached) $ECHO_C" >&6
20365 eval "$as_ac_Header=\$ac_header_preproc"
20367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20372 cat >>confdefs.h
<<_ACEOF
20373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20378 for ac_header
in kerberos
/krb.h
20380 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20382 echo "$as_me:$LINENO: checking for $ac_header" >&5
20383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20385 echo $ECHO_N "(cached) $ECHO_C" >&6
20387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20390 # Is the header compilable?
20391 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20393 cat >conftest.
$ac_ext <<_ACEOF
20396 cat confdefs.h
>>conftest.
$ac_ext
20397 cat >>conftest.
$ac_ext <<_ACEOF
20398 /* end confdefs.h. */
20399 $ac_includes_default
20400 #include <$ac_header>
20402 rm -f conftest.
$ac_objext
20403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20404 (eval $ac_compile) 2>conftest.er1
20406 grep -v '^ *+' conftest.er1
>conftest.err
20408 cat conftest.err
>&5
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); } &&
20411 { ac_try
='test -z "$ac_c_werror_flag"
20412 || test ! -s conftest.err'
20413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20414 (eval $ac_try) 2>&5
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); }; } &&
20418 { ac_try
='test -s conftest.$ac_objext'
20419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20420 (eval $ac_try) 2>&5
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); }; }; then
20424 ac_header_compiler
=yes
20426 echo "$as_me: failed program was:" >&5
20427 sed 's/^/| /' conftest.
$ac_ext >&5
20429 ac_header_compiler
=no
20431 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20432 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20433 echo "${ECHO_T}$ac_header_compiler" >&6
20435 # Is the header present?
20436 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20438 cat >conftest.
$ac_ext <<_ACEOF
20441 cat confdefs.h
>>conftest.
$ac_ext
20442 cat >>conftest.
$ac_ext <<_ACEOF
20443 /* end confdefs.h. */
20444 #include <$ac_header>
20446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20447 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20449 grep -v '^ *+' conftest.er1
>conftest.err
20451 cat conftest.err
>&5
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); } >/dev
/null
; then
20454 if test -s conftest.err
; then
20455 ac_cpp_err
=$ac_c_preproc_warn_flag
20456 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20463 if test -z "$ac_cpp_err"; then
20464 ac_header_preproc
=yes
20466 echo "$as_me: failed program was:" >&5
20467 sed 's/^/| /' conftest.
$ac_ext >&5
20469 ac_header_preproc
=no
20471 rm -f conftest.err conftest.
$ac_ext
20472 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20473 echo "${ECHO_T}$ac_header_preproc" >&6
20475 # So? What about this header?
20476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20482 ac_header_preproc
=yes
20485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20488 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20489 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20491 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20492 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20495 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20499 ## ------------------------------------------ ##
20500 ## Report this to the AC_PACKAGE_NAME lists. ##
20501 ## ------------------------------------------ ##
20504 sed "s/^/$as_me: WARNING: /" >&2
20507 echo "$as_me:$LINENO: checking for $ac_header" >&5
20508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20510 echo $ECHO_N "(cached) $ECHO_C" >&6
20512 eval "$as_ac_Header=\$ac_header_preproc"
20514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20519 cat >>confdefs.h
<<_ACEOF
20520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20537 for ac_header
in com_err.h
20539 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20541 echo "$as_me:$LINENO: checking for $ac_header" >&5
20542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20544 echo $ECHO_N "(cached) $ECHO_C" >&6
20546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20549 # Is the header compilable?
20550 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20551 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20552 cat >conftest.
$ac_ext <<_ACEOF
20555 cat confdefs.h
>>conftest.
$ac_ext
20556 cat >>conftest.
$ac_ext <<_ACEOF
20557 /* end confdefs.h. */
20558 $ac_includes_default
20559 #include <$ac_header>
20561 rm -f conftest.
$ac_objext
20562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20563 (eval $ac_compile) 2>conftest.er1
20565 grep -v '^ *+' conftest.er1
>conftest.err
20567 cat conftest.err
>&5
20568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); } &&
20570 { ac_try
='test -z "$ac_c_werror_flag"
20571 || test ! -s conftest.err'
20572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20573 (eval $ac_try) 2>&5
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); }; } &&
20577 { ac_try
='test -s conftest.$ac_objext'
20578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20579 (eval $ac_try) 2>&5
20581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582 (exit $ac_status); }; }; then
20583 ac_header_compiler
=yes
20585 echo "$as_me: failed program was:" >&5
20586 sed 's/^/| /' conftest.
$ac_ext >&5
20588 ac_header_compiler
=no
20590 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20591 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20592 echo "${ECHO_T}$ac_header_compiler" >&6
20594 # Is the header present?
20595 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20596 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20597 cat >conftest.
$ac_ext <<_ACEOF
20600 cat confdefs.h
>>conftest.
$ac_ext
20601 cat >>conftest.
$ac_ext <<_ACEOF
20602 /* end confdefs.h. */
20603 #include <$ac_header>
20605 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20606 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20608 grep -v '^ *+' conftest.er1
>conftest.err
20610 cat conftest.err
>&5
20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); } >/dev
/null
; then
20613 if test -s conftest.err
; then
20614 ac_cpp_err
=$ac_c_preproc_warn_flag
20615 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20622 if test -z "$ac_cpp_err"; then
20623 ac_header_preproc
=yes
20625 echo "$as_me: failed program was:" >&5
20626 sed 's/^/| /' conftest.
$ac_ext >&5
20628 ac_header_preproc
=no
20630 rm -f conftest.err conftest.
$ac_ext
20631 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20632 echo "${ECHO_T}$ac_header_preproc" >&6
20634 # So? What about this header?
20635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20637 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20640 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20641 ac_header_preproc
=yes
20644 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20646 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20647 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20648 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20649 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20650 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20651 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20654 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20655 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20658 ## ------------------------------------------ ##
20659 ## Report this to the AC_PACKAGE_NAME lists. ##
20660 ## ------------------------------------------ ##
20663 sed "s/^/$as_me: WARNING: /" >&2
20666 echo "$as_me:$LINENO: checking for $ac_header" >&5
20667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20669 echo $ECHO_N "(cached) $ECHO_C" >&6
20671 eval "$as_ac_Header=\$ac_header_preproc"
20673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20674 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20678 cat >>confdefs.h
<<_ACEOF
20679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20688 # Solaris requires -lintl if you want strerror (which calls dgettext)
20689 # to return localized messages.
20691 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20692 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20693 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20694 echo $ECHO_N "(cached) $ECHO_C" >&6
20696 ac_check_lib_save_LIBS
=$LIBS
20697 LIBS
="-lintl $LIBS"
20698 cat >conftest.
$ac_ext <<_ACEOF
20701 cat confdefs.h
>>conftest.
$ac_ext
20702 cat >>conftest.
$ac_ext <<_ACEOF
20703 /* end confdefs.h. */
20705 /* Override any gcc2 internal prototype to avoid an error. */
20709 /* We use char because int might match the return type of a gcc2
20710 builtin and then its argument prototype would still apply. */
20720 rm -f conftest.
$ac_objext conftest
$ac_exeext
20721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20722 (eval $ac_link) 2>conftest.er1
20724 grep -v '^ *+' conftest.er1
>conftest.err
20726 cat conftest.err
>&5
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); } &&
20729 { ac_try
='test -z "$ac_c_werror_flag"
20730 || test ! -s conftest.err'
20731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20732 (eval $ac_try) 2>&5
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); }; } &&
20736 { ac_try
='test -s conftest$ac_exeext'
20737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20738 (eval $ac_try) 2>&5
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); }; }; then
20742 ac_cv_lib_intl_dgettext
=yes
20744 echo "$as_me: failed program was:" >&5
20745 sed 's/^/| /' conftest.
$ac_ext >&5
20747 ac_cv_lib_intl_dgettext
=no
20749 rm -f conftest.err conftest.
$ac_objext \
20750 conftest
$ac_exeext conftest.
$ac_ext
20751 LIBS
=$ac_check_lib_save_LIBS
20753 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20754 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20755 if test $ac_cv_lib_intl_dgettext = yes; then
20756 cat >>confdefs.h
<<_ACEOF
20757 #define HAVE_LIBINTL 1
20760 LIBS
="-lintl $LIBS"
20765 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20766 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20767 if test "${emacs_cv_localtime_cache+set}" = set; then
20768 echo $ECHO_N "(cached) $ECHO_C" >&6
20770 if test x
$ac_cv_func_tzset = xyes
; then
20771 if test "$cross_compiling" = yes; then
20772 # If we have tzset, assume the worst when cross-compiling.
20773 emacs_cv_localtime_cache
=yes
20775 cat >conftest.
$ac_ext <<_ACEOF
20778 cat confdefs.h
>>conftest.
$ac_ext
20779 cat >>conftest.
$ac_ext <<_ACEOF
20780 /* end confdefs.h. */
20782 extern char **environ;
20786 for (to = from = environ; (*to = *from); from++)
20787 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20790 char TZ_GMT0[] = "TZ=GMT0";
20791 char TZ_PST8[] = "TZ=PST8";
20794 time_t now = time ((time_t *) 0);
20795 int hour_GMT0, hour_unset;
20796 if (putenv (TZ_GMT0) != 0)
20798 hour_GMT0 = localtime (&now)->tm_hour;
20800 hour_unset = localtime (&now)->tm_hour;
20801 if (putenv (TZ_PST8) != 0)
20803 if (localtime (&now)->tm_hour == hour_GMT0)
20806 if (localtime (&now)->tm_hour != hour_unset)
20811 rm -f conftest
$ac_exeext
20812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20813 (eval $ac_link) 2>&5
20815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20818 (eval $ac_try) 2>&5
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); }; }; then
20822 emacs_cv_localtime_cache
=no
20824 echo "$as_me: program exited with status $ac_status" >&5
20825 echo "$as_me: failed program was:" >&5
20826 sed 's/^/| /' conftest.
$ac_ext >&5
20828 ( exit $ac_status )
20829 emacs_cv_localtime_cache
=yes
20831 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20834 # If we lack tzset, report that localtime does not cache TZ,
20835 # since we can't invalidate the cache if we don't have tzset.
20836 emacs_cv_localtime_cache
=no
20839 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20840 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20841 if test $emacs_cv_localtime_cache = yes; then
20843 cat >>confdefs.h
<<\_ACEOF
20844 #define LOCALTIME_CACHE 1
20849 if test "x$HAVE_TIMEVAL" = xyes
; then
20851 for ac_func
in gettimeofday
20853 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20854 echo "$as_me:$LINENO: checking for $ac_func" >&5
20855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20856 if eval "test \"\${$as_ac_var+set}\" = set"; then
20857 echo $ECHO_N "(cached) $ECHO_C" >&6
20859 cat >conftest.
$ac_ext <<_ACEOF
20862 cat confdefs.h
>>conftest.
$ac_ext
20863 cat >>conftest.
$ac_ext <<_ACEOF
20864 /* end confdefs.h. */
20865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20867 #define $ac_func innocuous_$ac_func
20869 /* System header to define __stub macros and hopefully few prototypes,
20870 which can conflict with char $ac_func (); below.
20871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20872 <limits.h> exists even on freestanding compilers. */
20875 # include <limits.h>
20877 # include <assert.h>
20882 /* Override any gcc2 internal prototype to avoid an error. */
20887 /* We use char because int might match the return type of a gcc2
20888 builtin and then its argument prototype would still apply. */
20890 /* The GNU C library defines this for functions which it implements
20891 to always fail with ENOSYS. Some functions are actually named
20892 something starting with __ and the normal name is an alias. */
20893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20896 char (*f) () = $ac_func;
20905 return f != $ac_func;
20910 rm -f conftest.
$ac_objext conftest
$ac_exeext
20911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20912 (eval $ac_link) 2>conftest.er1
20914 grep -v '^ *+' conftest.er1
>conftest.err
20916 cat conftest.err
>&5
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 (exit $ac_status); } &&
20919 { ac_try
='test -z "$ac_c_werror_flag"
20920 || test ! -s conftest.err'
20921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20922 (eval $ac_try) 2>&5
20924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925 (exit $ac_status); }; } &&
20926 { ac_try
='test -s conftest$ac_exeext'
20927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20928 (eval $ac_try) 2>&5
20930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931 (exit $ac_status); }; }; then
20932 eval "$as_ac_var=yes"
20934 echo "$as_me: failed program was:" >&5
20935 sed 's/^/| /' conftest.
$ac_ext >&5
20937 eval "$as_ac_var=no"
20939 rm -f conftest.err conftest.
$ac_objext \
20940 conftest
$ac_exeext conftest.
$ac_ext
20942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20943 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20944 if test `eval echo '${'$as_ac_var'}'` = yes; then
20945 cat >>confdefs.h
<<_ACEOF
20946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20952 if test $ac_cv_func_gettimeofday = yes; then
20953 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20954 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20955 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20956 echo $ECHO_N "(cached) $ECHO_C" >&6
20958 cat >conftest.
$ac_ext <<_ACEOF
20961 cat confdefs.h
>>conftest.
$ac_ext
20962 cat >>conftest.
$ac_ext <<_ACEOF
20963 /* end confdefs.h. */
20965 #ifdef TIME_WITH_SYS_TIME
20966 #include <sys/time.h>
20969 #ifdef HAVE_SYS_TIME_H
20970 #include <sys/time.h>
20978 struct timeval time;
20979 gettimeofday (&time, 0);
20984 rm -f conftest.
$ac_objext
20985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20986 (eval $ac_compile) 2>conftest.er1
20988 grep -v '^ *+' conftest.er1
>conftest.err
20990 cat conftest.err
>&5
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); } &&
20993 { ac_try
='test -z "$ac_c_werror_flag"
20994 || test ! -s conftest.err'
20995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20996 (eval $ac_try) 2>&5
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); }; } &&
21000 { ac_try
='test -s conftest.$ac_objext'
21001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21002 (eval $ac_try) 2>&5
21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005 (exit $ac_status); }; }; then
21006 emacs_cv_gettimeofday_two_arguments
=yes
21008 echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.
$ac_ext >&5
21011 emacs_cv_gettimeofday_two_arguments
=no
21013 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21015 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21016 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
21017 if test $emacs_cv_gettimeofday_two_arguments = no
; then
21019 cat >>confdefs.h
<<\_ACEOF
21020 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21028 echo "$as_me:$LINENO: checking for socket" >&5
21029 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21030 if test "${ac_cv_func_socket+set}" = set; then
21031 echo $ECHO_N "(cached) $ECHO_C" >&6
21033 cat >conftest.
$ac_ext <<_ACEOF
21036 cat confdefs.h
>>conftest.
$ac_ext
21037 cat >>conftest.
$ac_ext <<_ACEOF
21038 /* end confdefs.h. */
21039 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21040 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21041 #define socket innocuous_socket
21043 /* System header to define __stub macros and hopefully few prototypes,
21044 which can conflict with char socket (); below.
21045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21046 <limits.h> exists even on freestanding compilers. */
21049 # include <limits.h>
21051 # include <assert.h>
21056 /* Override any gcc2 internal prototype to avoid an error. */
21061 /* We use char because int might match the return type of a gcc2
21062 builtin and then its argument prototype would still apply. */
21064 /* The GNU C library defines this for functions which it implements
21065 to always fail with ENOSYS. Some functions are actually named
21066 something starting with __ and the normal name is an alias. */
21067 #if defined (__stub_socket) || defined (__stub___socket)
21070 char (*f) () = socket;
21079 return f != socket;
21084 rm -f conftest.
$ac_objext conftest
$ac_exeext
21085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21086 (eval $ac_link) 2>conftest.er1
21088 grep -v '^ *+' conftest.er1
>conftest.err
21090 cat conftest.err
>&5
21091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092 (exit $ac_status); } &&
21093 { ac_try
='test -z "$ac_c_werror_flag"
21094 || test ! -s conftest.err'
21095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21096 (eval $ac_try) 2>&5
21098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099 (exit $ac_status); }; } &&
21100 { ac_try
='test -s conftest$ac_exeext'
21101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21102 (eval $ac_try) 2>&5
21104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105 (exit $ac_status); }; }; then
21106 ac_cv_func_socket
=yes
21108 echo "$as_me: failed program was:" >&5
21109 sed 's/^/| /' conftest.
$ac_ext >&5
21111 ac_cv_func_socket
=no
21113 rm -f conftest.err conftest.
$ac_objext \
21114 conftest
$ac_exeext conftest.
$ac_ext
21116 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21117 echo "${ECHO_T}$ac_cv_func_socket" >&6
21118 if test $ac_cv_func_socket = yes; then
21124 if test $ok_so_far = yes; then
21125 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21126 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21127 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21128 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21129 echo $ECHO_N "(cached) $ECHO_C" >&6
21131 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21132 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21134 # Is the header compilable?
21135 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21136 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21137 cat >conftest.
$ac_ext <<_ACEOF
21140 cat confdefs.h
>>conftest.
$ac_ext
21141 cat >>conftest.
$ac_ext <<_ACEOF
21142 /* end confdefs.h. */
21143 $ac_includes_default
21144 #include <netinet/in.h>
21146 rm -f conftest.
$ac_objext
21147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21148 (eval $ac_compile) 2>conftest.er1
21150 grep -v '^ *+' conftest.er1
>conftest.err
21152 cat conftest.err
>&5
21153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); } &&
21155 { ac_try
='test -z "$ac_c_werror_flag"
21156 || test ! -s conftest.err'
21157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21158 (eval $ac_try) 2>&5
21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161 (exit $ac_status); }; } &&
21162 { ac_try
='test -s conftest.$ac_objext'
21163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21164 (eval $ac_try) 2>&5
21166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167 (exit $ac_status); }; }; then
21168 ac_header_compiler
=yes
21170 echo "$as_me: failed program was:" >&5
21171 sed 's/^/| /' conftest.
$ac_ext >&5
21173 ac_header_compiler
=no
21175 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21176 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21177 echo "${ECHO_T}$ac_header_compiler" >&6
21179 # Is the header present?
21180 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21181 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21182 cat >conftest.
$ac_ext <<_ACEOF
21185 cat confdefs.h
>>conftest.
$ac_ext
21186 cat >>conftest.
$ac_ext <<_ACEOF
21187 /* end confdefs.h. */
21188 #include <netinet/in.h>
21190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21191 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21193 grep -v '^ *+' conftest.er1
>conftest.err
21195 cat conftest.err
>&5
21196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197 (exit $ac_status); } >/dev
/null
; then
21198 if test -s conftest.err
; then
21199 ac_cpp_err
=$ac_c_preproc_warn_flag
21200 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21207 if test -z "$ac_cpp_err"; then
21208 ac_header_preproc
=yes
21210 echo "$as_me: failed program was:" >&5
21211 sed 's/^/| /' conftest.
$ac_ext >&5
21213 ac_header_preproc
=no
21215 rm -f conftest.err conftest.
$ac_ext
21216 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21217 echo "${ECHO_T}$ac_header_preproc" >&6
21219 # So? What about this header?
21220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21222 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21223 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21224 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21225 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21226 ac_header_preproc
=yes
21229 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21230 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21231 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21232 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21233 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21234 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21235 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21236 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21237 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21238 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21239 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21240 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21243 ## ------------------------------------------ ##
21244 ## Report this to the AC_PACKAGE_NAME lists. ##
21245 ## ------------------------------------------ ##
21248 sed "s/^/$as_me: WARNING: /" >&2
21251 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21252 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21253 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21254 echo $ECHO_N "(cached) $ECHO_C" >&6
21256 ac_cv_header_netinet_in_h
=$ac_header_preproc
21258 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21259 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21262 if test $ac_cv_header_netinet_in_h = yes; then
21270 if test $ok_so_far = yes; then
21271 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21272 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21273 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21274 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21275 echo $ECHO_N "(cached) $ECHO_C" >&6
21277 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21278 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21280 # Is the header compilable?
21281 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21282 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21283 cat >conftest.
$ac_ext <<_ACEOF
21286 cat confdefs.h
>>conftest.
$ac_ext
21287 cat >>conftest.
$ac_ext <<_ACEOF
21288 /* end confdefs.h. */
21289 $ac_includes_default
21290 #include <arpa/inet.h>
21292 rm -f conftest.
$ac_objext
21293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21294 (eval $ac_compile) 2>conftest.er1
21296 grep -v '^ *+' conftest.er1
>conftest.err
21298 cat conftest.err
>&5
21299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300 (exit $ac_status); } &&
21301 { ac_try
='test -z "$ac_c_werror_flag"
21302 || test ! -s conftest.err'
21303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21304 (eval $ac_try) 2>&5
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); }; } &&
21308 { ac_try
='test -s conftest.$ac_objext'
21309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21310 (eval $ac_try) 2>&5
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); }; }; then
21314 ac_header_compiler
=yes
21316 echo "$as_me: failed program was:" >&5
21317 sed 's/^/| /' conftest.
$ac_ext >&5
21319 ac_header_compiler
=no
21321 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21322 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21323 echo "${ECHO_T}$ac_header_compiler" >&6
21325 # Is the header present?
21326 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21327 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21328 cat >conftest.
$ac_ext <<_ACEOF
21331 cat confdefs.h
>>conftest.
$ac_ext
21332 cat >>conftest.
$ac_ext <<_ACEOF
21333 /* end confdefs.h. */
21334 #include <arpa/inet.h>
21336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21337 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21339 grep -v '^ *+' conftest.er1
>conftest.err
21341 cat conftest.err
>&5
21342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343 (exit $ac_status); } >/dev
/null
; then
21344 if test -s conftest.err
; then
21345 ac_cpp_err
=$ac_c_preproc_warn_flag
21346 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21353 if test -z "$ac_cpp_err"; then
21354 ac_header_preproc
=yes
21356 echo "$as_me: failed program was:" >&5
21357 sed 's/^/| /' conftest.
$ac_ext >&5
21359 ac_header_preproc
=no
21361 rm -f conftest.err conftest.
$ac_ext
21362 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21363 echo "${ECHO_T}$ac_header_preproc" >&6
21365 # So? What about this header?
21366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21368 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21369 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21370 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21371 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21372 ac_header_preproc
=yes
21375 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21376 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21377 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21378 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21379 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21380 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21381 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21382 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21383 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21384 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21385 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21386 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21389 ## ------------------------------------------ ##
21390 ## Report this to the AC_PACKAGE_NAME lists. ##
21391 ## ------------------------------------------ ##
21394 sed "s/^/$as_me: WARNING: /" >&2
21397 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21398 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21399 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21400 echo $ECHO_N "(cached) $ECHO_C" >&6
21402 ac_cv_header_arpa_inet_h
=$ac_header_preproc
21404 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21405 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21408 if test $ac_cv_header_arpa_inet_h = yes; then
21416 if test $ok_so_far = yes; then
21418 cat >>confdefs.h
<<\_ACEOF
21419 #define HAVE_INET_SOCKETS 1
21425 for ac_header
in sys
/ioctl.h
21427 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21429 echo "$as_me:$LINENO: checking for $ac_header" >&5
21430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21432 echo $ECHO_N "(cached) $ECHO_C" >&6
21434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21437 # Is the header compilable?
21438 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21440 cat >conftest.
$ac_ext <<_ACEOF
21443 cat confdefs.h
>>conftest.
$ac_ext
21444 cat >>conftest.
$ac_ext <<_ACEOF
21445 /* end confdefs.h. */
21446 $ac_includes_default
21447 #include <$ac_header>
21449 rm -f conftest.
$ac_objext
21450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21451 (eval $ac_compile) 2>conftest.er1
21453 grep -v '^ *+' conftest.er1
>conftest.err
21455 cat conftest.err
>&5
21456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457 (exit $ac_status); } &&
21458 { ac_try
='test -z "$ac_c_werror_flag"
21459 || test ! -s conftest.err'
21460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21461 (eval $ac_try) 2>&5
21463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464 (exit $ac_status); }; } &&
21465 { ac_try
='test -s conftest.$ac_objext'
21466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21467 (eval $ac_try) 2>&5
21469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470 (exit $ac_status); }; }; then
21471 ac_header_compiler
=yes
21473 echo "$as_me: failed program was:" >&5
21474 sed 's/^/| /' conftest.
$ac_ext >&5
21476 ac_header_compiler
=no
21478 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21479 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21480 echo "${ECHO_T}$ac_header_compiler" >&6
21482 # Is the header present?
21483 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21485 cat >conftest.
$ac_ext <<_ACEOF
21488 cat confdefs.h
>>conftest.
$ac_ext
21489 cat >>conftest.
$ac_ext <<_ACEOF
21490 /* end confdefs.h. */
21491 #include <$ac_header>
21493 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21494 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21496 grep -v '^ *+' conftest.er1
>conftest.err
21498 cat conftest.err
>&5
21499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500 (exit $ac_status); } >/dev
/null
; then
21501 if test -s conftest.err
; then
21502 ac_cpp_err
=$ac_c_preproc_warn_flag
21503 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21510 if test -z "$ac_cpp_err"; then
21511 ac_header_preproc
=yes
21513 echo "$as_me: failed program was:" >&5
21514 sed 's/^/| /' conftest.
$ac_ext >&5
21516 ac_header_preproc
=no
21518 rm -f conftest.err conftest.
$ac_ext
21519 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21520 echo "${ECHO_T}$ac_header_preproc" >&6
21522 # So? What about this header?
21523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21528 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21529 ac_header_preproc
=yes
21532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21535 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21536 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21537 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21538 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21539 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21542 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21543 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21546 ## ------------------------------------------ ##
21547 ## Report this to the AC_PACKAGE_NAME lists. ##
21548 ## ------------------------------------------ ##
21551 sed "s/^/$as_me: WARNING: /" >&2
21554 echo "$as_me:$LINENO: checking for $ac_header" >&5
21555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21557 echo $ECHO_N "(cached) $ECHO_C" >&6
21559 eval "$as_ac_Header=\$ac_header_preproc"
21561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21566 cat >>confdefs.h
<<_ACEOF
21567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21575 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
21577 cat >>confdefs.h
<<\_ACEOF
21578 #define HAVE_AIX_SMT_EXP 1
21583 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21584 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21585 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
21586 echo "$as_me:$LINENO: result: yes" >&5
21587 echo "${ECHO_T}yes" >&6
21589 cat >>confdefs.h
<<\_ACEOF
21590 #define HAVE_DEV_PTMX 1
21594 echo "$as_me:$LINENO: result: no" >&5
21595 echo "${ECHO_T}no" >&6
21598 echo "$as_me:$LINENO: checking for pid_t" >&5
21599 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21600 if test "${ac_cv_type_pid_t+set}" = set; then
21601 echo $ECHO_N "(cached) $ECHO_C" >&6
21603 cat >conftest.
$ac_ext <<_ACEOF
21606 cat confdefs.h
>>conftest.
$ac_ext
21607 cat >>conftest.
$ac_ext <<_ACEOF
21608 /* end confdefs.h. */
21609 $ac_includes_default
21615 if (sizeof (pid_t))
21621 rm -f conftest.
$ac_objext
21622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21623 (eval $ac_compile) 2>conftest.er1
21625 grep -v '^ *+' conftest.er1
>conftest.err
21627 cat conftest.err
>&5
21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629 (exit $ac_status); } &&
21630 { ac_try
='test -z "$ac_c_werror_flag"
21631 || test ! -s conftest.err'
21632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21633 (eval $ac_try) 2>&5
21635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636 (exit $ac_status); }; } &&
21637 { ac_try
='test -s conftest.$ac_objext'
21638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21639 (eval $ac_try) 2>&5
21641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); }; }; then
21643 ac_cv_type_pid_t
=yes
21645 echo "$as_me: failed program was:" >&5
21646 sed 's/^/| /' conftest.
$ac_ext >&5
21648 ac_cv_type_pid_t
=no
21650 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21652 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21653 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21654 if test $ac_cv_type_pid_t = yes; then
21658 cat >>confdefs.h
<<_ACEOF
21666 for ac_header
in unistd.h vfork.h
21668 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21670 echo "$as_me:$LINENO: checking for $ac_header" >&5
21671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21673 echo $ECHO_N "(cached) $ECHO_C" >&6
21675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21678 # Is the header compilable?
21679 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21681 cat >conftest.
$ac_ext <<_ACEOF
21684 cat confdefs.h
>>conftest.
$ac_ext
21685 cat >>conftest.
$ac_ext <<_ACEOF
21686 /* end confdefs.h. */
21687 $ac_includes_default
21688 #include <$ac_header>
21690 rm -f conftest.
$ac_objext
21691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21692 (eval $ac_compile) 2>conftest.er1
21694 grep -v '^ *+' conftest.er1
>conftest.err
21696 cat conftest.err
>&5
21697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698 (exit $ac_status); } &&
21699 { ac_try
='test -z "$ac_c_werror_flag"
21700 || test ! -s conftest.err'
21701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21702 (eval $ac_try) 2>&5
21704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705 (exit $ac_status); }; } &&
21706 { ac_try
='test -s conftest.$ac_objext'
21707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21708 (eval $ac_try) 2>&5
21710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711 (exit $ac_status); }; }; then
21712 ac_header_compiler
=yes
21714 echo "$as_me: failed program was:" >&5
21715 sed 's/^/| /' conftest.
$ac_ext >&5
21717 ac_header_compiler
=no
21719 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21720 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21721 echo "${ECHO_T}$ac_header_compiler" >&6
21723 # Is the header present?
21724 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21725 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21726 cat >conftest.
$ac_ext <<_ACEOF
21729 cat confdefs.h
>>conftest.
$ac_ext
21730 cat >>conftest.
$ac_ext <<_ACEOF
21731 /* end confdefs.h. */
21732 #include <$ac_header>
21734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21735 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21737 grep -v '^ *+' conftest.er1
>conftest.err
21739 cat conftest.err
>&5
21740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741 (exit $ac_status); } >/dev
/null
; then
21742 if test -s conftest.err
; then
21743 ac_cpp_err
=$ac_c_preproc_warn_flag
21744 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21751 if test -z "$ac_cpp_err"; then
21752 ac_header_preproc
=yes
21754 echo "$as_me: failed program was:" >&5
21755 sed 's/^/| /' conftest.
$ac_ext >&5
21757 ac_header_preproc
=no
21759 rm -f conftest.err conftest.
$ac_ext
21760 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21761 echo "${ECHO_T}$ac_header_preproc" >&6
21763 # So? What about this header?
21764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21766 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21767 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21769 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21770 ac_header_preproc
=yes
21773 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21774 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21775 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21776 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21777 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21778 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21779 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21780 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21783 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21784 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21787 ## ------------------------------------------ ##
21788 ## Report this to the AC_PACKAGE_NAME lists. ##
21789 ## ------------------------------------------ ##
21792 sed "s/^/$as_me: WARNING: /" >&2
21795 echo "$as_me:$LINENO: checking for $ac_header" >&5
21796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21798 echo $ECHO_N "(cached) $ECHO_C" >&6
21800 eval "$as_ac_Header=\$ac_header_preproc"
21802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21806 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21807 cat >>confdefs.h
<<_ACEOF
21808 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21817 for ac_func
in fork vfork
21819 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21820 echo "$as_me:$LINENO: checking for $ac_func" >&5
21821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21822 if eval "test \"\${$as_ac_var+set}\" = set"; then
21823 echo $ECHO_N "(cached) $ECHO_C" >&6
21825 cat >conftest.
$ac_ext <<_ACEOF
21828 cat confdefs.h
>>conftest.
$ac_ext
21829 cat >>conftest.
$ac_ext <<_ACEOF
21830 /* end confdefs.h. */
21831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21833 #define $ac_func innocuous_$ac_func
21835 /* System header to define __stub macros and hopefully few prototypes,
21836 which can conflict with char $ac_func (); below.
21837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21838 <limits.h> exists even on freestanding compilers. */
21841 # include <limits.h>
21843 # include <assert.h>
21848 /* Override any gcc2 internal prototype to avoid an error. */
21853 /* We use char because int might match the return type of a gcc2
21854 builtin and then its argument prototype would still apply. */
21856 /* The GNU C library defines this for functions which it implements
21857 to always fail with ENOSYS. Some functions are actually named
21858 something starting with __ and the normal name is an alias. */
21859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21862 char (*f) () = $ac_func;
21871 return f != $ac_func;
21876 rm -f conftest.
$ac_objext conftest
$ac_exeext
21877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21878 (eval $ac_link) 2>conftest.er1
21880 grep -v '^ *+' conftest.er1
>conftest.err
21882 cat conftest.err
>&5
21883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884 (exit $ac_status); } &&
21885 { ac_try
='test -z "$ac_c_werror_flag"
21886 || test ! -s conftest.err'
21887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21888 (eval $ac_try) 2>&5
21890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891 (exit $ac_status); }; } &&
21892 { ac_try
='test -s conftest$ac_exeext'
21893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21894 (eval $ac_try) 2>&5
21896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897 (exit $ac_status); }; }; then
21898 eval "$as_ac_var=yes"
21900 echo "$as_me: failed program was:" >&5
21901 sed 's/^/| /' conftest.
$ac_ext >&5
21903 eval "$as_ac_var=no"
21905 rm -f conftest.err conftest.
$ac_objext \
21906 conftest
$ac_exeext conftest.
$ac_ext
21908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21909 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21910 if test `eval echo '${'$as_ac_var'}'` = yes; then
21911 cat >>confdefs.h
<<_ACEOF
21912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21918 if test "x$ac_cv_func_fork" = xyes
; then
21919 echo "$as_me:$LINENO: checking for working fork" >&5
21920 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21921 if test "${ac_cv_func_fork_works+set}" = set; then
21922 echo $ECHO_N "(cached) $ECHO_C" >&6
21924 if test "$cross_compiling" = yes; then
21925 ac_cv_func_fork_works
=cross
21927 cat >conftest.
$ac_ext <<_ACEOF
21928 /* By Ruediger Kuhlmann. */
21929 #include <sys/types.h>
21931 # include <unistd.h>
21933 /* Some systems only have a dummy stub for fork() */
21941 rm -f conftest
$ac_exeext
21942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21943 (eval $ac_link) 2>&5
21945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21948 (eval $ac_try) 2>&5
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); }; }; then
21952 ac_cv_func_fork_works
=yes
21954 echo "$as_me: program exited with status $ac_status" >&5
21955 echo "$as_me: failed program was:" >&5
21956 sed 's/^/| /' conftest.
$ac_ext >&5
21958 ( exit $ac_status )
21959 ac_cv_func_fork_works
=no
21961 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21964 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21965 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21968 ac_cv_func_fork_works
=$ac_cv_func_fork
21970 if test "x$ac_cv_func_fork_works" = xcross
; then
21972 *-*-amigaos* |
*-*-msdosdjgpp*)
21973 # Override, as these systems have only a dummy fork() stub
21974 ac_cv_func_fork_works
=no
21977 ac_cv_func_fork_works
=yes
21980 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21981 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21983 ac_cv_func_vfork_works
=$ac_cv_func_vfork
21984 if test "x$ac_cv_func_vfork" = xyes
; then
21985 echo "$as_me:$LINENO: checking for working vfork" >&5
21986 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21987 if test "${ac_cv_func_vfork_works+set}" = set; then
21988 echo $ECHO_N "(cached) $ECHO_C" >&6
21990 if test "$cross_compiling" = yes; then
21991 ac_cv_func_vfork_works
=cross
21993 cat >conftest.
$ac_ext <<_ACEOF
21996 cat confdefs.h
>>conftest.
$ac_ext
21997 cat >>conftest.
$ac_ext <<_ACEOF
21998 /* end confdefs.h. */
21999 /* Thanks to Paul Eggert for this test. */
22001 #include <stdlib.h>
22002 #include <sys/types.h>
22003 #include <sys/stat.h>
22004 #include <sys/wait.h>
22006 # include <unistd.h>
22009 # include <vfork.h>
22011 /* On some sparc systems, changes by the child to local and incoming
22012 argument registers are propagated back to the parent. The compiler
22013 is told about this with #include <vfork.h>, but some compilers
22014 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22015 static variable whose address is put into a register that is
22016 clobbered by the vfork. */
22019 sparc_address_test (int arg)
22021 sparc_address_test (arg) int arg;
22024 static pid_t child;
22042 pid_t parent = getpid ();
22045 sparc_address_test (0);
22050 /* Here is another test for sparc vfork register problems. This
22051 test uses lots of local variables, at least as many local
22052 variables as main has allocated so far including compiler
22053 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22054 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22055 reuse the register of parent for one of the local variables,
22056 since it will think that parent can't possibly be used any more
22057 in this routine. Assigning to the local variable will thus
22058 munge parent in the parent process. */
22060 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22061 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22062 /* Convince the compiler that p..p7 are live; otherwise, it might
22063 use the same hardware register for all 8 local variables. */
22064 if (p != p1 || p != p2 || p != p3 || p != p4
22065 || p != p5 || p != p6 || p != p7)
22068 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22069 from child file descriptors. If the child closes a descriptor
22070 before it execs or exits, this munges the parent's descriptor
22071 as well. Test for this by closing stdout in the child. */
22072 _exit(close(fileno(stdout)) != 0);
22077 while (wait(&status) != child)
22080 /* Was there some problem with vforking? */
22083 /* Did the child fail? (This shouldn't happen.) */
22086 /* Did the vfork/compiler bug occur? */
22087 || parent != getpid()
22089 /* Did the file descriptor bug occur? */
22090 || fstat(fileno(stdout), &st) != 0
22095 rm -f conftest
$ac_exeext
22096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22097 (eval $ac_link) 2>&5
22099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22102 (eval $ac_try) 2>&5
22104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105 (exit $ac_status); }; }; then
22106 ac_cv_func_vfork_works
=yes
22108 echo "$as_me: program exited with status $ac_status" >&5
22109 echo "$as_me: failed program was:" >&5
22110 sed 's/^/| /' conftest.
$ac_ext >&5
22112 ( exit $ac_status )
22113 ac_cv_func_vfork_works
=no
22115 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22118 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22119 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22122 if test "x$ac_cv_func_fork_works" = xcross
; then
22123 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22124 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22125 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22128 if test "x$ac_cv_func_vfork_works" = xyes
; then
22130 cat >>confdefs.h
<<\_ACEOF
22131 #define HAVE_WORKING_VFORK 1
22136 cat >>confdefs.h
<<\_ACEOF
22141 if test "x$ac_cv_func_fork_works" = xyes
; then
22143 cat >>confdefs.h
<<\_ACEOF
22144 #define HAVE_WORKING_FORK 1
22150 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22151 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
22152 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22153 echo $ECHO_N "(cached) $ECHO_C" >&6
22155 cat >conftest.
$ac_ext <<_ACEOF
22158 cat confdefs.h
>>conftest.
$ac_ext
22159 cat >>conftest.
$ac_ext <<_ACEOF
22160 /* end confdefs.h. */
22161 #include <langinfo.h>
22165 char* cs = nl_langinfo(CODESET);
22170 rm -f conftest.
$ac_objext conftest
$ac_exeext
22171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22172 (eval $ac_link) 2>conftest.er1
22174 grep -v '^ *+' conftest.er1
>conftest.err
22176 cat conftest.err
>&5
22177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178 (exit $ac_status); } &&
22179 { ac_try
='test -z "$ac_c_werror_flag"
22180 || test ! -s conftest.err'
22181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22182 (eval $ac_try) 2>&5
22184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22185 (exit $ac_status); }; } &&
22186 { ac_try
='test -s conftest$ac_exeext'
22187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22188 (eval $ac_try) 2>&5
22190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191 (exit $ac_status); }; }; then
22192 emacs_cv_langinfo_codeset
=yes
22194 echo "$as_me: failed program was:" >&5
22195 sed 's/^/| /' conftest.
$ac_ext >&5
22197 emacs_cv_langinfo_codeset
=no
22199 rm -f conftest.err conftest.
$ac_objext \
22200 conftest
$ac_exeext conftest.
$ac_ext
22203 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22204 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22205 if test $emacs_cv_langinfo_codeset = yes; then
22207 cat >>confdefs.h
<<\_ACEOF
22208 #define HAVE_LANGINFO_CODESET 1
22213 echo "$as_me:$LINENO: checking for size_t" >&5
22214 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22215 if test "${ac_cv_type_size_t+set}" = set; then
22216 echo $ECHO_N "(cached) $ECHO_C" >&6
22218 cat >conftest.
$ac_ext <<_ACEOF
22221 cat confdefs.h
>>conftest.
$ac_ext
22222 cat >>conftest.
$ac_ext <<_ACEOF
22223 /* end confdefs.h. */
22224 $ac_includes_default
22230 if (sizeof (size_t))
22236 rm -f conftest.
$ac_objext
22237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22238 (eval $ac_compile) 2>conftest.er1
22240 grep -v '^ *+' conftest.er1
>conftest.err
22242 cat conftest.err
>&5
22243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244 (exit $ac_status); } &&
22245 { ac_try
='test -z "$ac_c_werror_flag"
22246 || test ! -s conftest.err'
22247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22248 (eval $ac_try) 2>&5
22250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251 (exit $ac_status); }; } &&
22252 { ac_try
='test -s conftest.$ac_objext'
22253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22254 (eval $ac_try) 2>&5
22256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257 (exit $ac_status); }; }; then
22258 ac_cv_type_size_t
=yes
22260 echo "$as_me: failed program was:" >&5
22261 sed 's/^/| /' conftest.
$ac_ext >&5
22263 ac_cv_type_size_t
=no
22265 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22267 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22268 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22269 if test $ac_cv_type_size_t = yes; then
22271 cat >>confdefs.h
<<_ACEOF
22272 #define HAVE_SIZE_T 1
22279 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22280 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22281 if test "${ac_cv_type_mbstate_t+set}" = set; then
22282 echo $ECHO_N "(cached) $ECHO_C" >&6
22284 cat >conftest.
$ac_ext <<_ACEOF
22287 cat confdefs.h
>>conftest.
$ac_ext
22288 cat >>conftest.
$ac_ext <<_ACEOF
22289 /* end confdefs.h. */
22290 $ac_includes_default
22291 # include <wchar.h>
22295 mbstate_t x; return sizeof x;
22300 rm -f conftest.
$ac_objext
22301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22302 (eval $ac_compile) 2>conftest.er1
22304 grep -v '^ *+' conftest.er1
>conftest.err
22306 cat conftest.err
>&5
22307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308 (exit $ac_status); } &&
22309 { ac_try
='test -z "$ac_c_werror_flag"
22310 || test ! -s conftest.err'
22311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22312 (eval $ac_try) 2>&5
22314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315 (exit $ac_status); }; } &&
22316 { ac_try
='test -s conftest.$ac_objext'
22317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22318 (eval $ac_try) 2>&5
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); }; }; then
22322 ac_cv_type_mbstate_t
=yes
22324 echo "$as_me: failed program was:" >&5
22325 sed 's/^/| /' conftest.
$ac_ext >&5
22327 ac_cv_type_mbstate_t
=no
22329 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22331 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22332 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22333 if test $ac_cv_type_mbstate_t = yes; then
22335 cat >>confdefs.h
<<\_ACEOF
22336 #define HAVE_MBSTATE_T 1
22341 cat >>confdefs.h
<<\_ACEOF
22342 #define mbstate_t int
22347 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22348 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22349 if test "${emacs_cv_c_restrict+set}" = set; then
22350 echo $ECHO_N "(cached) $ECHO_C" >&6
22352 cat >conftest.
$ac_ext <<_ACEOF
22355 cat confdefs.h
>>conftest.
$ac_ext
22356 cat >>conftest.
$ac_ext <<_ACEOF
22357 /* end confdefs.h. */
22358 void fred (int *restrict x);
22367 rm -f conftest.
$ac_objext
22368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22369 (eval $ac_compile) 2>conftest.er1
22371 grep -v '^ *+' conftest.er1
>conftest.err
22373 cat conftest.err
>&5
22374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22375 (exit $ac_status); } &&
22376 { ac_try
='test -z "$ac_c_werror_flag"
22377 || test ! -s conftest.err'
22378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22379 (eval $ac_try) 2>&5
22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); }; } &&
22383 { ac_try
='test -s conftest.$ac_objext'
22384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22385 (eval $ac_try) 2>&5
22387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388 (exit $ac_status); }; }; then
22389 emacs_cv_c_restrict
=yes
22391 echo "$as_me: failed program was:" >&5
22392 sed 's/^/| /' conftest.
$ac_ext >&5
22394 cat >conftest.
$ac_ext <<_ACEOF
22397 cat confdefs.h
>>conftest.
$ac_ext
22398 cat >>conftest.
$ac_ext <<_ACEOF
22399 /* end confdefs.h. */
22400 void fred (int *__restrict x);
22409 rm -f conftest.
$ac_objext
22410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22411 (eval $ac_compile) 2>conftest.er1
22413 grep -v '^ *+' conftest.er1
>conftest.err
22415 cat conftest.err
>&5
22416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); } &&
22418 { ac_try
='test -z "$ac_c_werror_flag"
22419 || test ! -s conftest.err'
22420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22421 (eval $ac_try) 2>&5
22423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424 (exit $ac_status); }; } &&
22425 { ac_try
='test -s conftest.$ac_objext'
22426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22427 (eval $ac_try) 2>&5
22429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430 (exit $ac_status); }; }; then
22431 emacs_cv_c_restrict
=__restrict
22433 echo "$as_me: failed program was:" >&5
22434 sed 's/^/| /' conftest.
$ac_ext >&5
22436 emacs_cv_c_restrict
=no
22438 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22440 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22442 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22443 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22444 case "$emacs_cv_c_restrict" in
22445 yes) emacs_restrict
=restrict
;;
22446 no
) emacs_restrict
="";;
22447 *) emacs_restrict
="$emacs_cv_c_restrict";;
22449 if test "$emacs_restrict" != __restrict
; then
22451 cat >>confdefs.h
<<_ACEOF
22452 #define __restrict $emacs_restrict
22457 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22458 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22459 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22460 echo $ECHO_N "(cached) $ECHO_C" >&6
22462 cat >conftest.
$ac_ext <<_ACEOF
22465 cat confdefs.h
>>conftest.
$ac_ext
22466 cat >>conftest.
$ac_ext <<_ACEOF
22467 /* end confdefs.h. */
22468 void fred (int x[__restrict]);
22477 rm -f conftest.
$ac_objext
22478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22479 (eval $ac_compile) 2>conftest.er1
22481 grep -v '^ *+' conftest.er1
>conftest.err
22483 cat conftest.err
>&5
22484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485 (exit $ac_status); } &&
22486 { ac_try
='test -z "$ac_c_werror_flag"
22487 || test ! -s conftest.err'
22488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22489 (eval $ac_try) 2>&5
22491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492 (exit $ac_status); }; } &&
22493 { ac_try
='test -s conftest.$ac_objext'
22494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22495 (eval $ac_try) 2>&5
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); }; }; then
22499 emacs_cv_c_restrict_arr
=yes
22501 echo "$as_me: failed program was:" >&5
22502 sed 's/^/| /' conftest.
$ac_ext >&5
22504 emacs_cv_c_restrict_arr
=no
22506 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22508 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22509 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22510 if test "$emacs_cv_c_restrict_arr" = yes; then
22512 cat >>confdefs.h
<<\_ACEOF
22513 #define __restrict_arr __restrict
22520 # Set up the CFLAGS for real compilation, so we can substitute it.
22521 CFLAGS
="$REAL_CFLAGS"
22522 CPPFLAGS
="$REAL_CPPFLAGS"
22524 #### Find out which version of Emacs this is.
22525 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22526 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22527 if test x
"${version}" = x
; then
22528 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22529 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22530 { (exit 1); exit 1; }; }
22533 ### Specify what sort of things we'll be editing into Makefile and config.h.
22534 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22570 cat >>confdefs.h
<<_ACEOF
22571 #define EMACS_CONFIGURATION "${canonical}"
22575 cat >>confdefs.h
<<_ACEOF
22576 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22580 cat >>confdefs.h
<<_ACEOF
22581 #define config_machfile "${machfile}"
22585 cat >>confdefs.h
<<_ACEOF
22586 #define config_opsysfile "${opsysfile}"
22590 cat >>confdefs.h
<<_ACEOF
22591 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22595 cat >>confdefs.h
<<_ACEOF
22596 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22600 cat >>confdefs.h
<<_ACEOF
22601 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22605 cat >>confdefs.h
<<_ACEOF
22606 #define UNEXEC_SRC ${UNEXEC_SRC}
22610 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22612 cat >>confdefs.h
<<\_ACEOF
22613 #define HAVE_X_WINDOWS 1
22617 if test "${USE_X_TOOLKIT}" != "none" ; then
22619 cat >>confdefs.h
<<\_ACEOF
22620 #define USE_X_TOOLKIT 1
22624 if test "${HAVE_X11}" = "yes" ; then
22626 cat >>confdefs.h
<<\_ACEOF
22631 if test "${HAVE_XFREE386}" = "yes" ; then
22633 cat >>confdefs.h
<<\_ACEOF
22634 #define HAVE_XFREE386 1
22638 if test "${HAVE_MENUS}" = "yes" ; then
22640 cat >>confdefs.h
<<\_ACEOF
22641 #define HAVE_MENUS 1
22645 if test "${GNU_MALLOC}" = "yes" ; then
22647 cat >>confdefs.h
<<\_ACEOF
22648 #define GNU_MALLOC 1
22652 if test "${REL_ALLOC}" = "yes" ; then
22654 cat >>confdefs.h
<<\_ACEOF
22655 #define REL_ALLOC 1
22664 #### Report on what we decided to do.
22665 #### Report GTK as a toolkit, even if it doesn't use Xt.
22666 #### It makes printing result more understandable as using GTK sets
22667 #### toolkit_scroll_bars to yes by default.
22668 if test "${HAVE_GTK}" = "yes"; then
22673 Configured for \`${canonical}'.
22675 Where should the build process find the source code? ${srcdir}
22676 What operating system and machine description files should Emacs use?
22677 \`${opsysfile}' and \`${machfile}'
22678 What compiler should emacs be built with? ${CC} ${CFLAGS}
22679 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22680 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22681 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22682 What window system should Emacs use? ${window_system}
22683 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22685 if test -n "${x_includes}"; then
22686 echo " Where do we find X Windows header files? ${x_includes}"
22688 echo " Where do we find X Windows header files? Standard dirs"
22690 if test -n "${x_libraries}"; then
22691 echo " Where do we find X Windows libraries? ${x_libraries}"
22693 echo " Where do we find X Windows libraries? Standard dirs"
22696 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22697 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22698 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22699 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22700 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22701 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22702 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22705 if test $USE_XASSERTS = yes; then
22706 echo " Compiling with asserts turned on."
22707 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
22713 # Remove any trailing slashes in these variables.
22714 test "${prefix}" != NONE
&&
22715 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22716 test "${exec_prefix}" != NONE
&&
22717 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22719 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22720 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22721 ## from Makefile.c can correctly provide the arg `-traditional' to the
22724 cat >conftest.
$ac_ext <<_ACEOF
22727 cat confdefs.h
>>conftest.
$ac_ext
22728 cat >>conftest.
$ac_ext <<_ACEOF
22729 /* end confdefs.h. */
22732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22733 $EGREP "yes..yes" >/dev
/null
2>&1; then
22734 CPP_NEED_TRADITIONAL
=no
22736 CPP_NEED_TRADITIONAL
=yes
22741 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"
22742 ac_config_commands
="$ac_config_commands default"
22743 cat >confcache
<<\_ACEOF
22744 # This file is a shell script that caches the results of configure
22745 # tests run on this system so they can be shared between configure
22746 # scripts and configure runs, see configure's option --config-cache.
22747 # It is not useful on other systems. If it contains results you don't
22748 # want to keep, you may remove or edit it.
22750 # config.status only pays attention to the cache file if you give it
22751 # the --recheck option to rerun configure.
22753 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22754 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22755 # following values.
22759 # The following way of writing the cache mishandles newlines in values,
22760 # but we know of no workaround that is simple, portable, and efficient.
22761 # So, don't put newlines in cache variables' values.
22762 # Ultrix sh set writes to stderr and can't be redirected directly,
22763 # and sets the high bit in the cache file unless we assign to the vars.
22766 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22768 # `set' does not quote correctly, so add quotes (double-quote
22769 # substitution turns \\\\ into \\, and sed turns \\ into \).
22772 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22775 # `set' quotes correctly as required by POSIX, so do not add quotes.
22777 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22784 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22786 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22788 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
22789 if test -w $cache_file; then
22790 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22791 cat confcache
>$cache_file
22793 echo "not updating unwritable cache $cache_file"
22798 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22799 # Let make expand exec_prefix.
22800 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22802 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22803 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22804 # trailing colons and then remove the whole line if VPATH becomes empty
22805 # (actually we leave an empty line to preserve line numbers).
22806 if test "x$srcdir" = x.
; then
22807 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
22808 s/:*\$(srcdir):*/:/;
22809 s/:*\${srcdir}:*/:/;
22811 s/^\([^=]*=[ ]*\):*/\1/;
22817 DEFS
=-DHAVE_CONFIG_H
22821 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22822 # 1. Remove the extension, and $U if already installed.
22823 ac_i
=`echo "$ac_i" |
22824 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22826 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
22827 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
22829 LIBOBJS
=$ac_libobjs
22831 LTLIBOBJS
=$ac_ltlibobjs
22835 : ${CONFIG_STATUS=./config.status}
22836 ac_clean_files_save
=$ac_clean_files
22837 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22838 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22839 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22840 cat >$CONFIG_STATUS <<_ACEOF
22842 # Generated by $as_me.
22843 # Run this file to recreate the current configuration.
22844 # Compiler output produced by configure, useful for debugging
22845 # configure, is in config.log if it exists.
22848 ac_cs_recheck=false
22850 SHELL=\${CONFIG_SHELL-$SHELL}
22853 cat >>$CONFIG_STATUS <<\_ACEOF
22854 ## --------------------- ##
22855 ## M4sh Initialization. ##
22856 ## --------------------- ##
22858 # Be Bourne compatible
22859 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22862 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22863 # is contrary to our usage. Disable this feature.
22864 alias -g '${1+"$@"}'='"$@"'
22865 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22868 DUALCASE
=1; export DUALCASE
# for MKS sh
22870 # Support unset when possible.
22871 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
22878 # Work around bugs in pre-3.0 UWIN ksh.
22879 $as_unset ENV MAIL MAILPATH
22886 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22887 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22888 LC_TELEPHONE LC_TIME
22890 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22891 eval $as_var=C
; export $as_var
22897 # Required to use basename.
22898 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22904 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
22905 as_basename
=basename
22911 # Name of the executable.
22912 as_me
=`$as_basename "$0" ||
22913 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22914 X"$0" : 'X\(//\)$' \| \
22915 X"$0" : 'X\(/\)$' \| \
22916 . : '\(.\)' 2>/dev/null ||
22918 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22919 /^X\/\(\/\/\)$/{ s//\1/; q; }
22920 /^X\/\(\/\).*/{ s//\1/; q; }
22924 # PATH needs CR, and LINENO needs CR and PATH.
22925 # Avoid depending upon Character Ranges.
22926 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22927 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22928 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22929 as_cr_digits
='0123456789'
22930 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22932 # The user is always right.
22933 if test "${PATH_SEPARATOR+set}" != set; then
22934 echo "#! /bin/sh" >conf$$.sh
22935 echo "exit 0" >>conf$$.sh
22937 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22946 as_lineno_1
=$LINENO
22947 as_lineno_2
=$LINENO
22948 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
22949 test "x$as_lineno_1" != "x$as_lineno_2" &&
22950 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
22951 # Find who we are. Look in the path if we contain no path at all
22954 *[\\/]* ) as_myself
=$0 ;;
22955 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22956 for as_dir
in $PATH
22959 test -z "$as_dir" && as_dir
=.
22960 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
22965 # We did not find ourselves, most probably we were run as `sh COMMAND'
22966 # in which case we are not to be found in the path.
22967 if test "x$as_myself" = x
; then
22970 if test ! -f "$as_myself"; then
22971 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22972 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22973 { (exit 1); exit 1; }; }
22975 case $CONFIG_SHELL in
22977 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22978 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
22981 test -z "$as_dir" && as_dir
=.
22982 for as_base
in sh bash ksh sh5
; do
22985 if ("$as_dir/$as_base" -c '
22986 as_lineno_1=$LINENO
22987 as_lineno_2=$LINENO
22988 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22989 test "x$as_lineno_1" != "x$as_lineno_2" &&
22990 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
22991 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
22992 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
22993 CONFIG_SHELL
=$as_dir/$as_base
22994 export CONFIG_SHELL
22995 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23003 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23004 # uniformly replaced by the line number. The first 'sed' inserts a
23005 # line-number line before each line; the second 'sed' does the real
23006 # work. The second script uses 'N' to pair each line-number line
23007 # with the numbered line, and appends trailing '-' during
23008 # substitution so that $LINENO is not a special case at line end.
23009 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23010 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23011 sed '=' <$as_myself |
23016 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23019 s,^['$as_cr_digits']*\n,,
23020 ' >$as_me.lineno
&&
23021 chmod +x
$as_me.lineno ||
23022 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23023 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23024 { (exit 1); exit 1; }; }
23026 # Don't try to exec as it changes $[0], causing all sort of problems
23027 # (the dirname of $[0] is not the place where we might find the
23028 # original and so on. Autoconf is especially sensible to this).
23030 # Exit status is that of the last command.
23035 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23036 *c
*,-n*) ECHO_N
= ECHO_C
='
23038 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
23039 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
23042 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23048 rm -f conf$$ conf$$.exe conf$$.
file
23050 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23051 # We could just check for DJGPP; but this test a) works b) is more generic
23052 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23053 if test -f conf$$.exe
; then
23054 # Don't use ln at all; we don't have any links
23059 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23064 rm -f conf$$ conf$$.exe conf$$.
file
23066 if mkdir
-p .
2>/dev
/null
; then
23069 test -d .
/-p && rmdir .
/-p
23073 as_executable_p
="test -f"
23075 # Sed expression to map a string onto a valid CPP name.
23076 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23078 # Sed expression to map a string onto a valid variable name.
23079 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23083 # We need space, tab and new line, in precisely that order.
23093 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23094 # report actual input values of CONFIG_FILES etc. instead of their
23095 # values after options handling. Logging --version etc. is OK.
23099 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23100 ## Running $as_me. ##
23105 This file was extended by $as_me, which was
23106 generated by GNU Autoconf 2.59. Invocation command line was
23108 CONFIG_FILES = $CONFIG_FILES
23109 CONFIG_HEADERS = $CONFIG_HEADERS
23110 CONFIG_LINKS = $CONFIG_LINKS
23111 CONFIG_COMMANDS = $CONFIG_COMMANDS
23115 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23119 # Files that config.status was made for.
23120 if test -n "$ac_config_files"; then
23121 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23124 if test -n "$ac_config_headers"; then
23125 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23128 if test -n "$ac_config_links"; then
23129 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23132 if test -n "$ac_config_commands"; then
23133 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23136 cat >>$CONFIG_STATUS <<\_ACEOF
23139 \`$as_me' instantiates files from templates according to the
23140 current configuration.
23142 Usage: $0 [OPTIONS] [FILE]...
23144 -h, --help print this help, then exit
23145 -V, --version print version number, then exit
23146 -q, --quiet do not print progress messages
23147 -d, --debug don't remove temporary files
23148 --recheck update $as_me by reconfiguring in the same conditions
23149 --file=FILE[:TEMPLATE]
23150 instantiate the configuration file FILE
23151 --header=FILE[:TEMPLATE]
23152 instantiate the configuration header FILE
23154 Configuration files:
23157 Configuration headers:
23160 Configuration commands:
23163 Report bugs to <bug-autoconf@gnu.org>."
23166 cat >>$CONFIG_STATUS <<_ACEOF
23169 configured by $0, generated by GNU Autoconf 2.59,
23170 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23172 Copyright (C) 2003 Free Software Foundation, Inc.
23173 This config.status script is free software; the Free Software Foundation
23174 gives unlimited permission to copy, distribute and modify it."
23179 cat >>$CONFIG_STATUS <<\_ACEOF
23180 # If no file are specified by the user, then we need to provide default
23181 # value. By we need to know if files were specified by the user.
23187 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
23188 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
23196 *) # This is not an option, so the user has probably given explicit
23199 ac_need_defaults
=false
;;
23203 # Handling of the options.
23205 cat >>$CONFIG_STATUS <<\_ACEOF
23206 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23208 --version |
--vers* |
-V )
23209 echo "$ac_cs_version"; exit 0 ;;
23211 # Conflict between --help and --header
23212 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23213 Try \`$0 --help' for more information." >&5
23214 echo "$as_me: error: ambiguous option: $1
23215 Try \`$0 --help' for more information." >&2;}
23216 { (exit 1); exit 1; }; };;
23217 --help |
--hel |
-h )
23218 echo "$ac_cs_usage"; exit 0 ;;
23219 --debug |
--d* |
-d )
23221 --file |
--fil |
--fi |
--f )
23223 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23224 ac_need_defaults
=false
;;
23225 --header |
--heade |
--head |
--hea )
23227 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23228 ac_need_defaults
=false
;;
23229 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23230 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23233 # This is an error.
23234 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23235 Try \`$0 --help' for more information." >&5
23236 echo "$as_me: error: unrecognized option: $1
23237 Try \`$0 --help' for more information." >&2;}
23238 { (exit 1); exit 1; }; } ;;
23240 *) ac_config_targets
="$ac_config_targets $1" ;;
23246 ac_configure_extra_args
=
23248 if $ac_cs_silent; then
23250 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23254 cat >>$CONFIG_STATUS <<_ACEOF
23255 if \$ac_cs_recheck; then
23256 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23257 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23262 cat >>$CONFIG_STATUS <<_ACEOF
23264 # INIT-COMMANDS section.
23267 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23273 cat >>$CONFIG_STATUS <<\_ACEOF
23274 for ac_config_target
in $ac_config_targets
23276 case "$ac_config_target" in
23277 # Handling of arguments.
23278 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23279 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23280 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23281 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23282 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23283 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23284 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23285 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23286 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23287 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23288 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23289 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23290 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23291 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23292 { (exit 1); exit 1; }; };;
23296 # If the user did not use the arguments to specify the items to instantiate,
23297 # then the envvar interface is used. Set only those that are not.
23298 # We use the long form for the default assignment because of an extremely
23299 # bizarre bug on SunOS 4.1.3.
23300 if $ac_need_defaults; then
23301 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23302 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23303 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23306 # Have a temporary directory for convenience. Make it in the build tree
23307 # simply because there is no reason to put it here, and in addition,
23308 # creating and moving files from /tmp can sometimes cause problems.
23309 # Create a temporary directory, and hook for its removal unless debugging.
23312 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23313 trap '{ (exit 1); exit 1; }' 1 2 13 15
23316 # Create a (secure) tmp directory for tmp files.
23319 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23320 test -n "$tmp" && test -d "$tmp"
23323 tmp
=.
/confstat$$
-$RANDOM
23324 (umask 077 && mkdir
$tmp)
23327 echo "$me: cannot create a temporary directory in ." >&2
23328 { (exit 1); exit 1; }
23333 cat >>$CONFIG_STATUS <<_ACEOF
23336 # CONFIG_FILES section.
23339 # No need to generate the scripts if there are no CONFIG_FILES.
23340 # This happens for instance when ./config.status config.h
23341 if test -n "\$CONFIG_FILES"; then
23342 # Protect against being on the right side of a sed subst in config.status.
23343 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23344 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23345 s,@SHELL@,$SHELL,;t t
23346 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23347 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23348 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23349 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23350 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23351 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23352 s,@exec_prefix@,$exec_prefix,;t t
23353 s,@prefix@,$prefix,;t t
23354 s,@program_transform_name@,$program_transform_name,;t t
23355 s,@bindir@,$bindir,;t t
23356 s,@sbindir@,$sbindir,;t t
23357 s,@libexecdir@,$libexecdir,;t t
23358 s,@datadir@,$datadir,;t t
23359 s,@sysconfdir@,$sysconfdir,;t t
23360 s,@sharedstatedir@,$sharedstatedir,;t t
23361 s,@localstatedir@,$localstatedir,;t t
23362 s,@libdir@,$libdir,;t t
23363 s,@includedir@,$includedir,;t t
23364 s,@oldincludedir@,$oldincludedir,;t t
23365 s,@infodir@,$infodir,;t t
23366 s,@mandir@,$mandir,;t t
23367 s,@build_alias@,$build_alias,;t t
23368 s,@host_alias@,$host_alias,;t t
23369 s,@target_alias@,$target_alias,;t t
23370 s,@DEFS@,$DEFS,;t t
23371 s,@ECHO_C@,$ECHO_C,;t t
23372 s,@ECHO_N@,$ECHO_N,;t t
23373 s,@ECHO_T@,$ECHO_T,;t t
23374 s,@LIBS@,$LIBS,;t t
23375 s,@MAINT@,$MAINT,;t t
23376 s,@build@,$build,;t t
23377 s,@build_cpu@,$build_cpu,;t t
23378 s,@build_vendor@,$build_vendor,;t t
23379 s,@build_os@,$build_os,;t t
23380 s,@host@,$host,;t t
23381 s,@host_cpu@,$host_cpu,;t t
23382 s,@host_vendor@,$host_vendor,;t t
23383 s,@host_os@,$host_os,;t t
23385 s,@CFLAGS@,$CFLAGS,;t t
23386 s,@LDFLAGS@,$LDFLAGS,;t t
23387 s,@CPPFLAGS@,$CPPFLAGS,;t t
23388 s,@ac_ct_CC@,$ac_ct_CC,;t t
23389 s,@EXEEXT@,$EXEEXT,;t t
23390 s,@OBJEXT@,$OBJEXT,;t t
23392 s,@EGREP@,$EGREP,;t t
23393 s,@LN_S@,$LN_S,;t t
23394 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23395 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23396 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23397 s,@RANLIB@,$RANLIB,;t t
23398 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23399 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23400 s,@GZIP_PROG@,$GZIP_PROG,;t t
23401 s,@LIBSOUND@,$LIBSOUND,;t t
23402 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23403 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
23404 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
23405 s,@CFLAGS_SOUND@,$CFLAGS_SOUND,;t t
23406 s,@SET_MAKE@,$SET_MAKE,;t t
23407 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23408 s,@GTK_LIBS@,$GTK_LIBS,;t t
23409 s,@ALLOCA@,$ALLOCA,;t t
23410 s,@liblockfile@,$liblockfile,;t t
23411 s,@LIBOBJS@,$LIBOBJS,;t t
23412 s,@NEED_SETGID@,$NEED_SETGID,;t t
23413 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23414 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23415 s,@GETOPT_H@,$GETOPT_H,;t t
23416 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23417 s,@version@,$version,;t t
23418 s,@configuration@,$configuration,;t t
23419 s,@canonical@,$canonical,;t t
23420 s,@srcdir@,$srcdir,;t t
23421 s,@lispdir@,$lispdir,;t t
23422 s,@locallisppath@,$locallisppath,;t t
23423 s,@lisppath@,$lisppath,;t t
23424 s,@x_default_search_path@,$x_default_search_path,;t t
23425 s,@etcdir@,$etcdir,;t t
23426 s,@archlibdir@,$archlibdir,;t t
23427 s,@docdir@,$docdir,;t t
23428 s,@bitmapdir@,$bitmapdir,;t t
23429 s,@gamedir@,$gamedir,;t t
23430 s,@gameuser@,$gameuser,;t t
23431 s,@c_switch_system@,$c_switch_system,;t t
23432 s,@c_switch_machine@,$c_switch_machine,;t t
23433 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23434 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23435 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23436 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23437 s,@machfile@,$machfile,;t t
23438 s,@opsysfile@,$opsysfile,;t t
23439 s,@carbon_appdir@,$carbon_appdir,;t t
23440 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23445 cat >>$CONFIG_STATUS <<\_ACEOF
23446 # Split the substitutions into bite-sized pieces for seds with
23447 # small command number limits, like on Digital OSF/1 and HP-UX.
23448 ac_max_sed_lines
=48
23449 ac_sed_frag
=1 # Number of current file.
23450 ac_beg
=1 # First line for current file.
23451 ac_end
=$ac_max_sed_lines # Line after last line for current file.
23454 while $ac_more_lines; do
23455 if test $ac_beg -gt 1; then
23456 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23458 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23460 if test ! -s $tmp/subs.frag
; then
23461 ac_more_lines
=false
23463 # The purpose of the label and of the branching condition is to
23464 # speed up the sed processing (if there are no `@' at all, there
23465 # is no need to browse any of the substitutions).
23466 # These are the two extra sed commands mentioned above.
23468 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
23469 if test -z "$ac_sed_cmds"; then
23470 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
23472 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23474 ac_sed_frag
=`expr $ac_sed_frag + 1`
23476 ac_end
=`expr $ac_end + $ac_max_sed_lines`
23479 if test -z "$ac_sed_cmds"; then
23482 fi # test -n "$CONFIG_FILES"
23485 cat >>$CONFIG_STATUS <<\_ACEOF
23486 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
23487 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23489 - |
*:- |
*:-:* ) # input from stdin
23491 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23492 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23493 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23494 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23495 * ) ac_file_in
=$ac_file.
in ;;
23498 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23499 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23500 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23501 X"$ac_file" : 'X\(//\)[^/]' \| \
23502 X"$ac_file" : 'X\(//\)$' \| \
23503 X"$ac_file" : 'X\(/\)' \| \
23504 . : '\(.\)' 2>/dev/null ||
23506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23507 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23508 /^X\(\/\/\)$/{ s//\1/; q; }
23509 /^X\(\/\).*/{ s//\1/; q; }
23511 { if $as_mkdir_p; then
23516 while test ! -d "$as_dir"; do
23517 as_dirs
="$as_dir $as_dirs"
23518 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23519 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23520 X"$as_dir" : 'X\(//\)[^/]' \| \
23521 X"$as_dir" : 'X\(//\)$' \| \
23522 X"$as_dir" : 'X\(/\)' \| \
23523 . : '\(.\)' 2>/dev/null ||
23525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23526 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23527 /^X\(\/\/\)$/{ s//\1/; q; }
23528 /^X\(\/\).*/{ s//\1/; q; }
23531 test ! -n "$as_dirs" || mkdir
$as_dirs
23532 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23533 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23534 { (exit 1); exit 1; }; }; }
23538 if test "$ac_dir" != .
; then
23539 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23540 # A "../" for each directory in $ac_dir_suffix.
23541 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23543 ac_dir_suffix
= ac_top_builddir
=
23547 .
) # No --srcdir option. We are building in place.
23549 if test -z "$ac_top_builddir"; then
23552 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23554 [\\/]* | ?
:[\\/]* ) # Absolute path.
23555 ac_srcdir
=$srcdir$ac_dir_suffix;
23556 ac_top_srcdir
=$srcdir ;;
23557 *) # Relative path.
23558 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23559 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23562 # Do not use `cd foo && pwd` to compute absolute paths, because
23563 # the directories may not exist.
23565 .
) ac_abs_builddir
="$ac_dir";;
23568 .
) ac_abs_builddir
=`pwd`;;
23569 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23570 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23573 case $ac_abs_builddir in
23574 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23576 case ${ac_top_builddir}.
in
23577 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23578 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23579 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23582 case $ac_abs_builddir in
23583 .
) ac_abs_srcdir
=$ac_srcdir;;
23586 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23587 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23588 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23591 case $ac_abs_builddir in
23592 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23594 case $ac_top_srcdir in
23595 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23596 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23597 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23603 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23604 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
23607 if test x
"$ac_file" != x-
; then
23608 { echo "$as_me:$LINENO: creating $ac_file" >&5
23609 echo "$as_me: creating $ac_file" >&6;}
23612 # Let's still pretend it is `configure' which instantiates (i.e., don't
23613 # use $as_me), people would be surprised to read:
23614 # /* config.h. Generated by config.status. */
23615 if test x
"$ac_file" = x-
; then
23618 configure_input
="$ac_file. "
23620 configure_input
=$configure_input"Generated from `echo $ac_file_in |
23621 sed 's,.*/,,'` by configure."
23623 # First look for the input files in the build tree, otherwise in the
23625 ac_file_inputs
=`IFS=:
23626 for f in $ac_file_in; do
23628 -) echo $tmp/stdin ;;
23630 # Absolute (can't be DOS-style, as IFS=:)
23631 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23632 echo "$as_me: error: cannot find input file: $f" >&2;}
23633 { (exit 1); exit 1; }; }
23636 if test -f "$f"; then
23639 elif test -f "$srcdir/$f"; then
23644 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23645 echo "$as_me: error: cannot find input file: $f" >&2;}
23646 { (exit 1); exit 1; }; }
23649 done` ||
{ (exit 1); exit 1; }
23651 cat >>$CONFIG_STATUS <<_ACEOF
23655 cat >>$CONFIG_STATUS <<\_ACEOF
23657 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23658 s
,@configure_input@
,$configure_input,;t t
23659 s
,@srcdir@
,$ac_srcdir,;t t
23660 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
23661 s
,@top_srcdir@
,$ac_top_srcdir,;t t
23662 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
23663 s
,@builddir@
,$ac_builddir,;t t
23664 s
,@abs_builddir@
,$ac_abs_builddir,;t t
23665 s
,@top_builddir@
,$ac_top_builddir,;t t
23666 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
23667 s
,@INSTALL@
,$ac_INSTALL,;t t
23668 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23670 if test x"$ac_file" != x-; then
23671 mv $tmp/out $ac_file
23679 cat >>$CONFIG_STATUS <<\_ACEOF
23682 # CONFIG_HEADER section.
23685 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
23686 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23688 # ac_d sets the value in "#define NAME VALUE" lines.
23689 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23690 ac_dB
='[ ].*$,\1#\2'
23693 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23694 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23695 ac_uB
='$,\1#\2define\3'
23699 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
23700 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23702 - |
*:- |
*:-:* ) # input from stdin
23704 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23705 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23706 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23707 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23708 * ) ac_file_in
=$ac_file.
in ;;
23711 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
23712 echo "$as_me: creating $ac_file" >&6;}
23714 # First look for the input files in the build tree, otherwise in the
23716 ac_file_inputs
=`IFS=:
23717 for f in $ac_file_in; do
23719 -) echo $tmp/stdin ;;
23721 # Absolute (can't be DOS-style, as IFS=:)
23722 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23723 echo "$as_me: error: cannot find input file: $f" >&2;}
23724 { (exit 1); exit 1; }; }
23725 # Do quote $f, to prevent DOS paths from being IFS'd.
23728 if test -f "$f"; then
23731 elif test -f "$srcdir/$f"; then
23736 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23737 echo "$as_me: error: cannot find input file: $f" >&2;}
23738 { (exit 1); exit 1; }; }
23741 done` ||
{ (exit 1); exit 1; }
23742 # Remove the trailing spaces.
23743 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23747 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23748 # `conftest.undefs', that substitutes the proper values into
23749 # config.h.in to produce config.h. The first handles `#define'
23750 # templates, and the second `#undef' templates.
23751 # And first: Protect against being on the right side of a sed subst in
23752 # config.status. Protect against being in an unquoted here document
23753 # in config.status.
23754 rm -f conftest.defines conftest.undefs
23755 # Using a here document instead of a string reduces the quoting nightmare.
23756 # Putting comments in sed scripts is not portable.
23758 # `end' is used to avoid that the second main sed command (meant for
23759 # 0-ary CPP macros) applies to n-ary macro definitions.
23760 # See the Autoconf documentation for `clear'.
23761 cat >confdef2sed.
sed <<\_ACEOF
23766 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23768 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23771 # If some macros were called several times there might be several times
23772 # the same #defines, which is useless. Nevertheless, we may not want to
23773 # sort them, since we want the *last* AC-DEFINE to be honored.
23774 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23775 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23776 rm -f confdef2sed.sed
23778 # This sed command replaces #undef with comments. This is necessary, for
23779 # example, in the case of _POSIX_SOURCE, which is predefined and required
23780 # on some systems where configure will not decide to define it.
23781 cat >>conftest.undefs <<\_ACEOF
23782 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23785 # Break up conftest.defines because some shells have a limit on the size
23786 # of here documents, and old seds have small limits too (100 cmds).
23787 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23788 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23789 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23790 echo ' :' >>$CONFIG_STATUS
23791 rm -f conftest.tail
23792 while grep . conftest.defines >/dev/null
23794 # Write a limited-size here document to $tmp/defines.sed.
23795 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23796 # Speed up: don't consider the non `#define' lines.
23797 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23798 # Work around the forget-to-reset-the-flag bug.
23799 echo 't clr' >>$CONFIG_STATUS
23800 echo ': clr' >>$CONFIG_STATUS
23801 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
23803 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23805 mv $tmp/out $tmp/in
23807 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
23808 rm -f conftest.defines
23809 mv conftest.
tail conftest.defines
23811 rm -f conftest.defines
23812 echo ' fi # grep' >>$CONFIG_STATUS
23813 echo >>$CONFIG_STATUS
23815 # Break up conftest.undefs because some shells have a limit on the size
23816 # of here documents, and old seds have small limits too (100 cmds).
23817 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23818 rm -f conftest.
tail
23819 while grep . conftest.undefs
>/dev
/null
23821 # Write a limited-size here document to $tmp/undefs.sed.
23822 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23823 # Speed up: don't consider the non
`#undef'
23824 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23825 # Work around the forget-to-reset-the-flag bug.
23826 echo 't clr' >>$CONFIG_STATUS
23827 echo ': clr' >>$CONFIG_STATUS
23828 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23830 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23832 mv $tmp/out $tmp/in
23834 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23835 rm -f conftest.undefs
23836 mv conftest.tail conftest.undefs
23838 rm -f conftest.undefs
23840 cat >>$CONFIG_STATUS <<\_ACEOF
23841 # Let's still pretend it is `configure
' which instantiates (i.e., don't
23842 # use $as_me), people would be surprised to read:
23843 # /* config.h. Generated by config.status. */
23844 if test x
"$ac_file" = x-
; then
23845 echo "/* Generated by configure. */" >$tmp/config.h
23847 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23849 cat $tmp/in >>$tmp/config.h
23851 if test x
"$ac_file" != x-
; then
23852 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
23853 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23854 echo "$as_me: $ac_file is unchanged" >&6;}
23856 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23857 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23858 X"$ac_file" : 'X\(//\)[^/]' \| \
23859 X"$ac_file" : 'X\(//\)$' \| \
23860 X"$ac_file" : 'X\(/\)' \| \
23861 . : '\(.\)' 2>/dev/null ||
23863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23864 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23865 /^X\(\/\/\)$/{ s//\1/; q; }
23866 /^X\(\/\).*/{ s//\1/; q; }
23868 { if $as_mkdir_p; then
23873 while test ! -d "$as_dir"; do
23874 as_dirs
="$as_dir $as_dirs"
23875 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23876 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23877 X"$as_dir" : 'X\(//\)[^/]' \| \
23878 X"$as_dir" : 'X\(//\)$' \| \
23879 X"$as_dir" : 'X\(/\)' \| \
23880 . : '\(.\)' 2>/dev/null ||
23882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23883 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23884 /^X\(\/\/\)$/{ s//\1/; q; }
23885 /^X\(\/\).*/{ s//\1/; q; }
23888 test ! -n "$as_dirs" || mkdir
$as_dirs
23889 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23890 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23891 { (exit 1); exit 1; }; }; }
23894 mv $tmp/config.h
$ac_file
23898 rm -f $tmp/config.h
23902 cat >>$CONFIG_STATUS <<\_ACEOF
23905 # CONFIG_COMMANDS section.
23907 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
23908 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
23909 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23910 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
23911 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23912 X"$ac_dest" : 'X\(//\)[^/]' \| \
23913 X"$ac_dest" : 'X\(//\)$' \| \
23914 X"$ac_dest" : 'X\(/\)' \| \
23915 . : '\(.\)' 2>/dev/null ||
23917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23918 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23919 /^X\(\/\/\)$/{ s//\1/; q; }
23920 /^X\(\/\).*/{ s//\1/; q; }
23922 { if $as_mkdir_p; then
23927 while test ! -d "$as_dir"; do
23928 as_dirs
="$as_dir $as_dirs"
23929 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23930 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23931 X"$as_dir" : 'X\(//\)[^/]' \| \
23932 X"$as_dir" : 'X\(//\)$' \| \
23933 X"$as_dir" : 'X\(/\)' \| \
23934 . : '\(.\)' 2>/dev/null ||
23936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23937 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23938 /^X\(\/\/\)$/{ s//\1/; q; }
23939 /^X\(\/\).*/{ s//\1/; q; }
23942 test ! -n "$as_dirs" || mkdir
$as_dirs
23943 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23944 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23945 { (exit 1); exit 1; }; }; }
23949 if test "$ac_dir" != .
; then
23950 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23951 # A "../" for each directory in $ac_dir_suffix.
23952 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23954 ac_dir_suffix
= ac_top_builddir
=
23958 .
) # No --srcdir option. We are building in place.
23960 if test -z "$ac_top_builddir"; then
23963 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23965 [\\/]* | ?
:[\\/]* ) # Absolute path.
23966 ac_srcdir
=$srcdir$ac_dir_suffix;
23967 ac_top_srcdir
=$srcdir ;;
23968 *) # Relative path.
23969 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23970 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23973 # Do not use `cd foo && pwd` to compute absolute paths, because
23974 # the directories may not exist.
23976 .
) ac_abs_builddir
="$ac_dir";;
23979 .
) ac_abs_builddir
=`pwd`;;
23980 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23981 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23984 case $ac_abs_builddir in
23985 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23987 case ${ac_top_builddir}.
in
23988 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23989 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23990 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23993 case $ac_abs_builddir in
23994 .
) ac_abs_srcdir
=$ac_srcdir;;
23997 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23998 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23999 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
24002 case $ac_abs_builddir in
24003 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
24005 case $ac_top_srcdir in
24006 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
24007 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
24008 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
24013 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24014 echo "$as_me: executing $ac_dest commands" >&6;}
24018 ### Make the necessary directories, if they don't exist.
24019 for dir
in etc lisp
; do
24020 test -d ${dir} || mkdir
${dir}
24023 # Build src/Makefile from ${srcdir}/src/Makefile.c
24024 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24025 # This must be done after src/config.h is built, since we rely on that file.
24027 # Now get this: Some word that is part of the ${srcdir} directory name
24028 # or the ${configuration} value might, just might, happen to be an
24029 # identifier like `sun4' or `i386' or something, and be predefined by
24030 # the C preprocessor to some helpful value like 1, or maybe the empty
24031 # string. Needless to say consequent macro substitutions are less
24032 # than conducive to the makefile finding the correct directory.
24033 undefs
="`echo $top_srcdir $configuration $canonical |
24034 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24035 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24038 echo creating src
/epaths.h
24039 ${MAKE-make} epaths-force
24041 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24042 # `..' to `. .' unless invoked with -traditional
24044 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24045 CPPFLAGS
="$CPPFLAGS -traditional"
24048 echo creating lib-src
/Makefile
24050 rm -f junk.c junk1.c junk2.c
24051 sed -e '/start of cpp stuff/q' \
24052 < Makefile.c
> junk1.c
24053 sed -e '1,/start of cpp stuff/d'\
24054 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24055 < Makefile.c
> junk.c
24056 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24057 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24058 cat junk1.c junk2.c
> Makefile.new
24059 rm -f junk.c junk1.c junk2.c
24060 chmod 444 Makefile.new
24061 mv -f Makefile.new Makefile
24064 echo creating src
/Makefile
24066 rm -f junk.c junk1.c junk2.c
24067 sed -e '/start of cpp stuff/q' \
24068 < Makefile.c
> junk1.c
24069 sed -e '1,/start of cpp stuff/d'\
24070 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24071 < Makefile.c
> junk.c
24072 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24073 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24074 cat junk1.c junk2.c
> Makefile.new
24075 rm -f junk.c junk1.c junk2.c
24076 chmod 444 Makefile.new
24077 mv -f Makefile.new Makefile
24080 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24081 echo creating src
/.gdbinit
24082 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24085 # This is how we know whether to re-run configure in certain cases.
24086 touch src
/config.stamp
24093 cat >>$CONFIG_STATUS <<\_ACEOF
24095 { (exit 0); exit 0; }
24097 chmod +x
$CONFIG_STATUS
24098 ac_clean_files
=$ac_clean_files_save
24101 # configure is writing to config.log, and then calls config.status.
24102 # config.status does its own redirection, appending to config.log.
24103 # Unfortunately, on DOS this fails, as config.log is still kept open
24104 # by configure, so config.status won't be able to write to it; its
24105 # output is simply discarded. So we exec the FD to /dev/null,
24106 # effectively closing config.log, so it can be properly (re)opened and
24107 # appended to by config.status. When coming back to configure, we
24108 # need to make the FD available again.
24109 if test "$no_create" != yes; then
24111 ac_config_status_args
=
24112 test "$silent" = yes &&
24113 ac_config_status_args
="$ac_config_status_args --quiet"
24115 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24117 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24118 # would make configure fail if this is the last instruction.
24119 $ac_cs_success ||
{ (exit 1); exit 1; }