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 i
[3456]86-*-freebsd*) machine
=intel386
;;
1721 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
1728 if test -f /usr
/lib
/crti.o
; then
1730 cat >>confdefs.h
<<\_ACEOF
1736 case "${canonical}" in
1737 alpha
*-*-netbsd*) machine
=alpha
;;
1738 i
[3456]86-*-netbsd*) machine
=intel386
;;
1740 # This is somewhat bogus.
1741 machine
=hp9000s300
;;
1742 powerpc-apple-netbsd
*) machine
=macppc
;;
1743 mips-
*-netbsd*) machine
=pmax
;;
1744 mipsel-
*-netbsd*) machine
=pmax
;;
1745 mipseb-
*-netbsd*) machine
=pmax
;;
1746 ns32k-
*-netbsd*) machine
=ns32000
;;
1747 powerpc-
*-netbsd*) machine
=macppc
;;
1748 sparc
*-*-netbsd*) machine
=sparc
;;
1749 vax-
*-netbsd*) machine
=vax
;;
1750 arm-
*-netbsd*) machine
=arm
;;
1757 case "${canonical}" in
1758 alpha
*-*-openbsd*) machine
=alpha
;;
1759 i386-
*-openbsd*) machine
=intel386
;;
1760 x86_64-
*-openbsd*) machine
=amdx86-64
;;
1761 m68k-
*-openbsd*) machine
=hp9000s300
;;
1762 mipsel-
*-openbsd*) machine
=pmax
;;
1763 ns32k-
*-openbsd*) machine
=ns32000
;;
1764 sparc-
*-openbsd*) machine
=sparc
;;
1765 vax-
*-openbsd*) machine
=vax
;;
1772 case "${canonical}" in
1773 i
[3456]86-*-lynxos*) machine
=intel386
;;
1774 powerpc-
*-lynxos*) machine
=powerpc
;;
1779 arm-acorn-riscix1.1
* )
1780 machine
=acorn opsys
=riscix1-1
1782 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1783 ## This name is riscix12 instead of riscix1.2
1784 ## to avoid a file name conflict on MSDOS.
1785 machine
=acorn opsys
=riscix12
1791 case "${canonical}" in
1792 i
[345]86-*-bsdi*) machine
=intel386
;;
1793 sparc-
*-bsdi*) machine
=sparc
;;
1794 powerpc-
*-bsdi*) machine
=macppc
;;
1796 case "${canonical}" in
1797 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1798 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1799 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1800 *-*-bsdi3* ) opsys
=bsdos3
;;
1801 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1806 ## Strictly speaking, we need the version of the alliant operating
1807 ## system to choose the right machine file, but currently the
1808 ## configuration name doesn't tell us enough to choose the right
1809 ## one; we need to give alliants their own operating system name to
1810 ## do this right. When someone cares, they can help us.
1812 machine
=alliant4 opsys
=bsd4-2
1815 machine
=alliant-2800 opsys
=bsd4-3
1818 ## Alpha (DEC) machines.
1820 machine
=alpha opsys
=osf1
1821 # This is needed to find X11R6.1 libraries for certain tests.
1822 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1823 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1824 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1825 # due to non-traditional preprocessing with the current compiler
1826 # defaults. OSF 4 can also have that compiler version, and there
1827 # seems always to have been a usable /usr/bin/cpp.
1828 NON_GNU_CPP
=/usr
/bin
/cpp
1829 case "${canonical}" in
1830 alpha
*-dec-osf[5-9]*)
1835 alpha
*-*-linux-gnu* )
1836 machine
=alpha opsys
=gnu-linux
1840 machine
=arm opsys
=gnu-linux
1845 machine
=altos opsys
=usg5-2
1850 machine
=amdahl opsys
=usg5-2-2
1853 ## Apollo, Domain/OS
1855 machine
=apollo opsys
=bsd4-3
1858 ## AT&T 3b2, 3b5, 3b15, 3b20
1860 machine
=att3b opsys
=usg5-2-2
1863 ## AT&T 3b1 - The Mighty Unix PC!
1865 machine
=7300 opsys
=usg5-2-2
1870 machine
=ibmrs6000 opsys
=aix3-2
1875 machine
=dpx2 opsys
=usg5-3
1880 machine
=sps7 opsys
=usg5-2
1883 ## CCI 5/32, 6/32 -- see "Tahoe".
1886 ## I don't know what configuration name to use for this; config.sub
1887 ## doesn't seem to know anything about it. Hey, Celerity users, get
1888 ## in touch with us!
1889 celerity-celerity-bsd
* )
1890 machine
=celerity opsys
=bsd4-2
1894 ## What operating systems does this chip run that Emacs has been
1898 ## We'll use the catch-all code at the bottom to guess the
1899 ## operating system.
1903 mips-compaq-nonstopux
* )
1904 machine
=nonstopux opsys
=nonstopux
1908 *-convex-bsd* |
*-convex-convexos* )
1909 machine
=convex opsys
=bsd4-3
1910 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1911 NON_GNU_CPP
="cc -E -P"
1915 i
[3456]86-cubix-sysv* )
1916 machine
=intel386 opsys
=usg5-3
1920 cydra
*-cydrome-sysv* )
1921 machine
=cydra5 opsys
=usg5-3
1924 ## Data General AViiON Machines
1925 ## DG changed naming conventions with the release of 5.4.4.10, they
1926 ## dropped the initial 5.4 but left the intervening R. Because of the
1927 ## R this shouldn't conflict with older versions of the OS (which I
1928 ## think were named like dgux4.*). In addition, DG new AViiONs series
1929 ## uses either Motorola M88k or Intel Pentium CPUs.
1930 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1931 machine
=aviion opsys
=dgux4
1933 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1934 ## This name is dgux5-4-3 instead of dgux5-4r3
1935 ## to avoid a file name conflict on MSDOS.
1936 machine
=aviion opsys
=dgux5-4-3
1938 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1939 machine
=aviion opsys
=dgux5-4r2
1942 machine
=aviion opsys
=dgux
1945 ## Data General AViiON Intel (x86) Machines
1946 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1947 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1948 i
[345]86-dg-dguxR4* )
1949 machine
=aviion-intel opsys
=dgux4
1953 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1954 machine
=pmax opsys
=bsd4-2
1956 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1957 machine
=pmax opsys
=bsd4-3
1960 machine
=pmax opsys
=ultrix4-3
1963 machine
=pmax opsys
=osf1
1965 mips-dec-mach_bsd4.3
* )
1966 machine
=pmax opsys
=mach-bsd4-3
1969 ## Motorola Delta machines
1970 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1971 machine
=delta opsys
=usg5-3
1972 if test -z "`type gnucc | grep 'not found'`"
1974 if test -s /etc
/167config
1975 then CC
="gnucc -m68040"
1976 else CC
="gnucc -m68881"
1979 if test -z "`type gcc | grep 'not found'`"
1985 m88k-motorola-sysv4
* )
1986 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1987 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1988 # I hope there are not other 4.0 versions for this machine
1989 # which really need usg5-4 instead.
1990 machine
=delta88k opsys
=usg5-4-2
1992 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1993 machine
=delta88k opsys
=usg5-3
1998 machine
=dual opsys
=usg5-2
2000 m68
*-dual-uniplus* )
2001 machine
=dual opsys
=unipl5-2
2006 machine
=elxsi opsys
=usg5-2
2011 machine
=ns16000 opsys
=umax
2014 ## The GEC 63 - apparently, this port isn't really finished yet.
2015 # I'm sure we finished off the last of the machines, though. -- fx
2017 ## Gould Power Node and NP1
2019 machine
=gould opsys
=bsd4-2
2022 machine
=gould opsys
=bsd4-3
2025 machine
=gould-np1 opsys
=bsd4-3
2028 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2029 ## as far as Emacs is concerned).
2031 # Build needs to be different on 7.0 and later releases
2032 case "`uname -r`" in
2033 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2034 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2036 NON_GNU_CPP
="/lib/cpp"
2038 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2040 machine
=nh3000 opsys
=cxux
2042 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2043 powerpc-harris-powerunix
)
2044 machine
=nh6000 opsys
=powerunix
2045 NON_GNU_CPP
="cc -Xo -E -P"
2047 ## SR2001/SR2201 running HI-UX/MPP
2048 hppa1.1
-hitachi-hiuxmpp* )
2049 machine
=sr2k opsys
=hiuxmpp
2051 hppa1.1
-hitachi-hiuxwe2* )
2052 machine
=sr2k opsys
=hiuxwe2
2055 xps
*-honeywell-sysv* )
2056 machine
=xps100 opsys
=usg5-2
2059 ## HP 9000 series 200 or 300
2061 machine
=hp9000s300 opsys
=bsd4-3
2063 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2065 case "`uname -r`" in
2066 ## Someone's system reports A.B8.05 for this.
2067 ## I wonder what other possibilities there are.
2068 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2069 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2070 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2071 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2072 *) machine
=hp9000s300 opsys
=hpux
;;
2076 ## HP 9000 series 700 and 800, running HP/UX
2078 machine
=hp800 opsys
=hpux
2081 machine
=hp800 opsys
=hpux8
2083 hppa
*-hp-hpux9shr* )
2084 machine
=hp800 opsys
=hpux9shr
2087 machine
=hp800 opsys
=hpux9
2089 hppa
*-hp-hpux10.2
* )
2090 machine
=hp800 opsys
=hpux10-20
2093 machine
=hp800 opsys
=hpux10
2095 hppa
*-hp-hpux1[1-9]* )
2096 machine
=hp800 opsys
=hpux11
2097 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2100 hppa
*-*-linux-gnu* )
2101 machine
=hp800 opsys
=gnu-linux
2104 ## HP 9000 series 700 and 800, running HP/UX
2106 ## Cross-compilation? Nah!
2107 case "`uname -r`" in
2108 ## Someone's system reports A.B8.05 for this.
2109 ## I wonder what other possibilities there are.
2110 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2111 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2112 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2113 *) machine
=hp800 opsys
=hpux10
;;
2117 machine
=hp800 opsys
=nextstep
2122 machine
=orion opsys
=bsd4-2
2124 clipper-orion-bsd
* )
2125 machine
=orion105 opsys
=bsd4-2
2129 i
[3456]86-ibm-aix1.1
* )
2130 machine
=ibmps2-aix opsys
=usg5-2-2
2132 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2133 machine
=ibmps2-aix opsys
=usg5-3
2136 machine
=ibm370aix opsys
=usg5-3
2139 machine
=ibms390 opsys
=gnu-linux
2141 s390x-
*-linux-gnu* )
2142 machine
=ibms390x opsys
=gnu-linux
2144 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2145 machine
=ibmrs6000 opsys
=aix3-1
2147 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2148 machine
=ibmrs6000 opsys
=aix3-2-5
2150 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2151 machine
=ibmrs6000 opsys
=aix4-1
2153 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2154 machine
=ibmrs6000 opsys
=aix4-2
2156 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2157 machine
=ibmrs6000 opsys
=aix4-2
2159 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2160 machine
=ibmrs6000 opsys
=aix4
2162 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2163 machine
=ibmrs6000 opsys
=aix4-1
2165 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2166 machine
=ibmrs6000 opsys
=aix3-2
2169 machine
=ibmrt opsys
=bsd4-3
2172 machine
=ibmrt opsys
=bsd4-2
2175 machine
=ibmrt opsys
=bsd4-3
2178 machine
=ibmrt opsys
=bsd4-2
2181 machine
=ibmrt opsys
=bsd4-3
2184 machine
=ibmrt opsys
=bsd4-3
2187 machine
=ibmrt-aix opsys
=usg5-2-2
2190 ## Integrated Solutions `Optimum V'
2192 machine
=isi-ov opsys
=bsd4-2
2195 machine
=isi-ov opsys
=bsd4-3
2198 ## Intel 386 machines where we do care about the manufacturer
2199 i
[3456]86-intsys-sysv* )
2200 machine
=is386 opsys
=usg5-2-2
2204 i
[3456]86-prime-sysv* )
2205 machine
=i386 opsys
=usg5-3
2208 ## Sequent Symmetry running Dynix
2209 i
[3456]86-sequent-bsd* )
2210 machine
=symmetry opsys
=bsd4-3
2213 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2214 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2215 machine
=sequent-ptx opsys
=ptx4
2216 NON_GNU_CPP
=/lib
/cpp
2219 ## Sequent Symmetry running DYNIX/ptx
2220 ## Use the old cpp rather than the newer ANSI one.
2221 i
[3456]86-sequent-ptx* )
2222 machine
=sequent-ptx opsys
=ptx
2223 NON_GNU_CPP
="/lib/cpp"
2226 ## ncr machine running svr4.3.
2227 i
[3456]86-ncr-sysv4.3
)
2228 machine
=ncr386 opsys
=usg5-4-3
2231 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2232 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2233 i
[3456]86-ncr-sysv* )
2234 machine
=ncr386 opsys
=usg5-4-2
2237 ## Intel Paragon OSF/1
2239 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2244 machine
=i860 opsys
=usg5-4
2245 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2246 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2249 ## Macintosh PowerPC
2250 powerpc
*-*-linux-gnu* )
2251 machine
=macppc opsys
=gnu-linux
2254 ## Masscomp machines
2255 m68
*-masscomp-rtu* )
2256 machine
=masscomp opsys
=rtu
2259 ## Megatest machines
2260 m68
*-megatest-bsd* )
2261 machine
=mega68 opsys
=bsd4-2
2264 ## Workstations sold by MIPS
2265 ## This is not necessarily all workstations using the MIPS processor -
2266 ## Irises are produced by SGI, and DECstations by DEC.
2268 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2269 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2270 ## it gives for choosing between the alternatives seems to be "Use
2271 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2272 ## the BSD world." I'll assume that these are instructions for
2273 ## handling two odd situations, and that every other situation
2274 ## should use mips.h and usg5-2-2, they being listed first.
2277 ## Fall through to the general code at the bottom to decide on the OS.
2279 mips-mips-riscos4
* )
2280 machine
=mips4 opsys
=bsd4-3
2281 NON_GNU_CC
="cc -systype bsd43"
2282 NON_GNU_CPP
="cc -systype bsd43 -E"
2284 mips-mips-riscos5
* )
2285 machine
=mips4 opsys
=riscos5
2286 NON_GNU_CC
="cc -systype bsd43"
2287 NON_GNU_CPP
="cc -systype bsd43 -E"
2290 machine
=mips opsys
=bsd4-3
2293 machine
=mips opsys
=usg5-2-2
2297 m68
*-next-* | m68k-
*-nextstep* )
2298 machine
=m68k opsys
=nextstep
2301 ## The complete machine from National Semiconductor
2303 machine
=ns32000 opsys
=usg5-2
2307 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2308 machine
=tower32 opsys
=usg5-2-2
2310 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2311 machine
=tower32v3 opsys
=usg5-3
2316 machine
=ews4800 opsys
=ux4800
2319 ## Nixdorf Targon 31
2320 m68
*-nixdorf-sysv* )
2321 machine
=targon31 opsys
=usg5-2-2
2326 machine
=nu opsys
=usg5-2
2331 machine
=plexus opsys
=usg5-2
2335 ## I don't really have any idea what sort of processor the Pyramid has,
2336 ## so I'm assuming it is its own architecture.
2337 pyramid-pyramid-bsd
* )
2338 machine
=pyramid opsys
=bsd4-2
2342 ns32k-sequent-bsd4.2
* )
2343 machine
=sequent opsys
=bsd4-2
2345 ns32k-sequent-bsd4.3
* )
2346 machine
=sequent opsys
=bsd4-3
2350 mips-siemens-sysv
* | mips-sni-sysv
*)
2351 machine
=mips-siemens opsys
=usg5-4
2352 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2353 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2356 ## Silicon Graphics machines
2357 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2359 machine
=irist opsys
=iris3-5
2361 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2362 machine
=irist opsys
=iris3-6
2366 machine
=iris4d opsys
=irix3-3
2369 machine
=iris4d opsys
=irix4-0
2372 machine
=iris4d opsys
=irix6-5
2373 # Without defining _LANGUAGE_C, things get masked out in the headers
2374 # so that, for instance, grepping for `free' in stdlib.h fails and
2375 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2376 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2377 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2380 machine
=iris4d opsys
=irix6-0
2381 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2382 # but presumably it does no harm.
2383 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2384 # -32 probably isn't necessary in later v.6s -- anyone know which?
2385 NON_GCC_TEST_OPTIONS
=-32
2387 mips-sgi-irix5.
[01]* )
2388 machine
=iris4d opsys
=irix5-0
2390 mips-sgi-irix5
* | mips-sgi-irix
* )
2391 machine
=iris4d opsys
=irix5-2
2396 machine
=news opsys
=bsd4-2
2399 machine
=news opsys
=bsd4-3
2401 m68
*-sony-newsos3* | m68
*-sony-news3*)
2402 machine
=news opsys
=bsd4-3
2404 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2405 machine
=news-risc opsys
=bsd4-3
2407 mips-sony-newsos6
* )
2408 machine
=news-r6 opsys
=newsos6
2411 machine
=news-risc opsys
=newsos5
2416 machine
=stride opsys
=usg5-2
2420 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2421 machine
=sparc opsys
=gnu-linux
2424 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2425 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2426 | rs6000-
*-solaris2*)
2427 case "${canonical}" in
2428 m68
*-sunos1* ) machine
=sun1
;;
2429 m68
*-sunos2* ) machine
=sun2
;;
2430 m68
* ) machine
=sun3
;;
2431 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2432 i
[3456]86-*-* ) machine
=intel386
;;
2433 powerpcle
* ) machine
=powerpcle
;;
2434 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2435 sparc
* ) machine
=sparc
;;
2438 case "${canonical}" in
2439 ## The Sun386 didn't get past 4.0.
2440 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2441 *-sunos4.0
* ) opsys
=sunos4-0
;;
2442 *-sunos4.1.
[3-9]*noshare
)
2443 ## This name is sunos413 instead of sunos4-1-3
2444 ## to avoid a file name conflict on MSDOS.
2446 NON_GNU_CPP
=/usr
/lib
/cpp
2447 NON_GCC_TEST_OPTIONS
=-Bstatic
2448 GCC_TEST_OPTIONS
=-static
2450 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2452 NON_GNU_CPP
=/usr
/lib
/cpp
2454 *-sunos4* |
*-sunos )
2456 NON_GCC_TEST_OPTIONS
=-Bstatic
2457 GCC_TEST_OPTIONS
=-static
2459 *-sunos5.3
* |
*-solaris2.3
* )
2461 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2463 *-sunos5.4
* |
*-solaris2.4
* )
2465 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2468 *-sunos5.5
* |
*-solaris2.5
* )
2470 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2473 *-sunos5.6
* |
*-solaris2.6
* )
2475 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2478 *-sunos5* |
*-solaris* )
2480 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2484 ## Watch out for a compiler that we know will not work.
2485 case "${canonical}" in
2486 *-solaris* |
*-sunos5* )
2487 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2488 ## /usr/ucb/cc doesn't work;
2489 ## we should find some other compiler that does work.
2497 machine
=sparc opsys
=nextstep
2501 m68
*-tadpole-sysv* )
2502 machine
=tad68k opsys
=usg5-3
2506 tahoe-tahoe-bsd4.2
* )
2507 machine
=tahoe opsys
=bsd4-2
2509 tahoe-tahoe-bsd4.3
* )
2510 machine
=tahoe opsys
=bsd4-3
2513 ## Tandem Integrity S2
2515 machine
=tandem-s2 opsys
=usg5-3
2519 m88k-tektronix-sysv3
* )
2520 machine
=tekxd88 opsys
=usg5-3
2523 ## Tektronix 16000 box (6130?)
2524 ns16k-tektronix-bsd
* )
2525 machine
=ns16000 opsys
=bsd4-2
2528 ## src/m/tek4300.h hints that this is a m68k machine.
2529 m68
*-tektronix-bsd* )
2530 machine
=tek4300 opsys
=bsd4-3
2534 ## We seem to have lost the machine-description file titan.h!
2536 machine
=titan opsys
=usg5-3
2539 ## Ustation E30 (SS5E)
2540 m68
*-unisys-uniplus* )
2541 machine
=ustation opsystem
=unipl5-2
2547 case "${canonical}" in
2548 *-bsd4.1
* ) opsys
=bsd4-1
;;
2549 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2550 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2551 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2552 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2553 *-vms* ) opsys
=vms
;;
2559 ns16k-whitechapel-
* )
2561 ## We don't know what sort of OS runs on these; we'll let the
2562 ## operating system guessing code below try.
2567 machine
=wicat opsys
=usg5-2
2572 machine
=ia64 opsys
=gnu-linux
2575 ## Intel 386 machines where we don't care about the manufacturer
2578 case "${canonical}" in
2579 *-cygwin ) opsys
=cygwin
;;
2580 *-darwin* ) opsys
=darwin
2581 CPP
="${CC-cc} -E -no-cpp-precomp"
2583 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2584 *-isc2.2
* ) opsys
=isc2-2
;;
2585 *-isc4.0
* ) opsys
=isc4-0
;;
2586 *-isc4.
* ) opsys
=isc4-1
2587 GCC_TEST_OPTIONS
=-posix
2588 NON_GCC_TEST_OPTIONS
=-Xp
2590 *-isc* ) opsys
=isc3-0
;;
2591 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2592 *-esix* ) opsys
=esix
;;
2593 *-xenix* ) opsys
=xenix
;;
2594 *-linux-gnu* ) opsys
=gnu-linux
;;
2595 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2596 *-sco3.2v5
* ) opsys
=sco5
2597 NON_GNU_CPP
=/lib
/cpp
2598 # Prevent -belf from being passed to $CPP.
2599 # /lib/cpp does not accept it.
2600 OVERRIDE_CPPFLAGS
=" "
2602 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2603 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2604 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2605 *-386bsd* ) opsys
=386bsd
;;
2606 *-nextstep* ) opsys
=nextstep
;;
2607 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2611 ## m68k Linux-based GNU system
2613 machine
=m68k opsys
=gnu-linux
2616 ## Mips Linux-based GNU system
2617 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2618 machine
=mips opsys
=gnu-linux
2622 sparc-fujitsu-sysv4
* )
2623 machine
=sparc opsys
=uxpds
2624 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2629 f301-fujitsu-uxpv4.1
)
2630 machine
=f301 opsys
=uxpv
2633 ## Darwin / Mac OS X
2634 powerpc-apple-darwin
* )
2635 machine
=powermac opsys
=darwin
2636 # Define CPP as follows to make autoconf work correctly.
2637 CPP
="${CC-cc} -E -no-cpp-precomp"
2638 # Use fink packages if available.
2639 if test -d /sw
/include
&& test -d /sw
/lib
; then
2640 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2641 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2642 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2646 ## AMD x86-64 Linux-based GNU system
2647 x86_64-
*-linux-gnu* )
2648 machine
=amdx86-64 opsys
=gnu-linux
2656 ### If the code above didn't choose an operating system, just choose
2657 ### an operating system based on the configuration name. You really
2658 ### only want to use this when you have no idea what the right
2659 ### operating system is; if you know what operating systems a machine
2660 ### runs, it's cleaner to make it explicit in the case statement
2662 if test x
"${opsys}" = x
; then
2663 case "${canonical}" in
2664 *-gnu* ) opsys
=gnu
;;
2665 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2666 *-bsd4.2
) opsys
=bsd4-2
;;
2667 *-bsd4.3
) opsys
=bsd4-3
;;
2668 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2669 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2670 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2671 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2672 *-sysv4.2uw
* ) opsys
=unixware
;;
2673 *-sysv5uw* ) opsys
=unixware
;;
2674 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2675 *-sysv4.1
* |
*-sysvr4.1
* )
2676 NON_GNU_CPP
=/usr
/lib
/cpp
2678 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2679 if [ x
$NON_GNU_CPP = x
]; then
2680 if [ -f /usr
/ccs
/lib
/cpp
]; then
2681 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2683 NON_GNU_CPP
=/lib
/cpp
2687 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2696 if test $unported = yes; then
2697 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2698 Check \`etc/MACHINES' for recognized configuration names." >&5
2699 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2700 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2701 { (exit 1); exit 1; }; }
2704 machfile
="m/${machine}.h"
2705 opsysfile
="s/${opsys}.h"
2708 #### Choose a compiler.
2709 test -n "$CC" && cc_specified
=yes
2711 # Save the value of CFLAGS that the user specified.
2712 SPECIFIED_CFLAGS
="$CFLAGS"
2715 "yes" ) CC
="gcc" GCC
=yes ;;
2716 "no" ) : ${CC=cc} ;;
2720 ac_cpp
='$CPP $CPPFLAGS'
2721 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2722 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2723 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2724 if test -n "$ac_tool_prefix"; then
2725 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2726 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2727 echo "$as_me:$LINENO: checking for $ac_word" >&5
2728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2729 if test "${ac_cv_prog_CC+set}" = set; then
2730 echo $ECHO_N "(cached) $ECHO_C" >&6
2732 if test -n "$CC"; then
2733 ac_cv_prog_CC
="$CC" # Let the user override the test.
2735 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2739 test -z "$as_dir" && as_dir
=.
2740 for ac_exec_ext
in '' $ac_executable_extensions; do
2741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2742 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2752 if test -n "$CC"; then
2753 echo "$as_me:$LINENO: result: $CC" >&5
2754 echo "${ECHO_T}$CC" >&6
2756 echo "$as_me:$LINENO: result: no" >&5
2757 echo "${ECHO_T}no" >&6
2761 if test -z "$ac_cv_prog_CC"; then
2763 # Extract the first word of "gcc", so it can be a program name with args.
2764 set dummy gcc
; ac_word
=$2
2765 echo "$as_me:$LINENO: checking for $ac_word" >&5
2766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2767 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2768 echo $ECHO_N "(cached) $ECHO_C" >&6
2770 if test -n "$ac_ct_CC"; then
2771 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2773 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2777 test -z "$as_dir" && as_dir
=.
2778 for ac_exec_ext
in '' $ac_executable_extensions; do
2779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2780 ac_cv_prog_ac_ct_CC
="gcc"
2781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2790 if test -n "$ac_ct_CC"; then
2791 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2792 echo "${ECHO_T}$ac_ct_CC" >&6
2794 echo "$as_me:$LINENO: result: no" >&5
2795 echo "${ECHO_T}no" >&6
2803 if test -z "$CC"; then
2804 if test -n "$ac_tool_prefix"; then
2805 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2806 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2807 echo "$as_me:$LINENO: checking for $ac_word" >&5
2808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2809 if test "${ac_cv_prog_CC+set}" = set; then
2810 echo $ECHO_N "(cached) $ECHO_C" >&6
2812 if test -n "$CC"; then
2813 ac_cv_prog_CC
="$CC" # Let the user override the test.
2815 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2819 test -z "$as_dir" && as_dir
=.
2820 for ac_exec_ext
in '' $ac_executable_extensions; do
2821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2822 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2832 if test -n "$CC"; then
2833 echo "$as_me:$LINENO: result: $CC" >&5
2834 echo "${ECHO_T}$CC" >&6
2836 echo "$as_me:$LINENO: result: no" >&5
2837 echo "${ECHO_T}no" >&6
2841 if test -z "$ac_cv_prog_CC"; then
2843 # Extract the first word of "cc", so it can be a program name with args.
2844 set dummy cc
; ac_word
=$2
2845 echo "$as_me:$LINENO: checking for $ac_word" >&5
2846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2847 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2848 echo $ECHO_N "(cached) $ECHO_C" >&6
2850 if test -n "$ac_ct_CC"; then
2851 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2853 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2857 test -z "$as_dir" && as_dir
=.
2858 for ac_exec_ext
in '' $ac_executable_extensions; do
2859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2860 ac_cv_prog_ac_ct_CC
="cc"
2861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2869 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2870 if test -n "$ac_ct_CC"; then
2871 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2872 echo "${ECHO_T}$ac_ct_CC" >&6
2874 echo "$as_me:$LINENO: result: no" >&5
2875 echo "${ECHO_T}no" >&6
2884 if test -z "$CC"; then
2885 # Extract the first word of "cc", so it can be a program name with args.
2886 set dummy cc
; ac_word
=$2
2887 echo "$as_me:$LINENO: checking for $ac_word" >&5
2888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2889 if test "${ac_cv_prog_CC+set}" = set; then
2890 echo $ECHO_N "(cached) $ECHO_C" >&6
2892 if test -n "$CC"; then
2893 ac_cv_prog_CC
="$CC" # Let the user override the test.
2896 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2900 test -z "$as_dir" && as_dir
=.
2901 for ac_exec_ext
in '' $ac_executable_extensions; do
2902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2903 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2904 ac_prog_rejected
=yes
2908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 if test $ac_prog_rejected = yes; then
2915 # We found a bogon in the path, so make sure we never use it.
2916 set dummy
$ac_cv_prog_CC
2918 if test $# != 0; then
2919 # We chose a different compiler from the bogus one.
2920 # However, it has the same basename, so the bogon will be chosen
2921 # first if we set CC to just the basename; use the full file name.
2923 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2929 if test -n "$CC"; then
2930 echo "$as_me:$LINENO: result: $CC" >&5
2931 echo "${ECHO_T}$CC" >&6
2933 echo "$as_me:$LINENO: result: no" >&5
2934 echo "${ECHO_T}no" >&6
2938 if test -z "$CC"; then
2939 if test -n "$ac_tool_prefix"; then
2942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2943 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2944 echo "$as_me:$LINENO: checking for $ac_word" >&5
2945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2946 if test "${ac_cv_prog_CC+set}" = set; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2949 if test -n "$CC"; then
2950 ac_cv_prog_CC
="$CC" # Let the user override the test.
2952 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2956 test -z "$as_dir" && as_dir
=.
2957 for ac_exec_ext
in '' $ac_executable_extensions; do
2958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2959 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 if test -n "$CC"; then
2970 echo "$as_me:$LINENO: result: $CC" >&5
2971 echo "${ECHO_T}$CC" >&6
2973 echo "$as_me:$LINENO: result: no" >&5
2974 echo "${ECHO_T}no" >&6
2977 test -n "$CC" && break
2980 if test -z "$CC"; then
2984 # Extract the first word of "$ac_prog", so it can be a program name with args.
2985 set dummy
$ac_prog; ac_word
=$2
2986 echo "$as_me:$LINENO: checking for $ac_word" >&5
2987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2988 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2991 if test -n "$ac_ct_CC"; then
2992 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2994 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2998 test -z "$as_dir" && as_dir
=.
2999 for ac_exec_ext
in '' $ac_executable_extensions; do
3000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3001 ac_cv_prog_ac_ct_CC
="$ac_prog"
3002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3010 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3011 if test -n "$ac_ct_CC"; then
3012 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3013 echo "${ECHO_T}$ac_ct_CC" >&6
3015 echo "$as_me:$LINENO: result: no" >&5
3016 echo "${ECHO_T}no" >&6
3019 test -n "$ac_ct_CC" && break
3028 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3029 See \`config.log' for more details." >&5
3030 echo "$as_me: error: no acceptable C compiler found in \$PATH
3031 See \`config.log' for more details." >&2;}
3032 { (exit 1); exit 1; }; }
3034 # Provide some information about the compiler.
3035 echo "$as_me:$LINENO:" \
3036 "checking for C compiler version" >&5
3037 ac_compiler
=`set X $ac_compile; echo $2`
3038 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3039 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }
3043 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3044 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }
3048 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3049 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); }
3054 cat >conftest.
$ac_ext <<_ACEOF
3057 cat confdefs.h
>>conftest.
$ac_ext
3058 cat >>conftest.
$ac_ext <<_ACEOF
3059 /* end confdefs.h. */
3069 ac_clean_files_save
=$ac_clean_files
3070 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3071 # Try to create an executable without -o first, disregard a.out.
3072 # It will help us diagnose broken compilers, and finding out an intuition
3074 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3075 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3076 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3077 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3078 (eval $ac_link_default) 2>&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; then
3082 # Find the output, starting from the most likely. This scheme is
3083 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3086 # Be careful to initialize this variable, since it used to be cached.
3087 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3089 # b.out is created by i960 compilers.
3090 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3092 test -f "$ac_file" ||
continue
3094 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3097 # This is the source file.
3100 # We found the default executable, but exeext='' is most
3104 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3105 # FIXME: I believe we export ac_cv_exeext for Libtool,
3106 # but it would be cool to find out if it's true. Does anybody
3107 # maintain Libtool? --akim.
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.
$ac_ext >&5
3118 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3119 See \`config.log' for more details." >&5
3120 echo "$as_me: error: C compiler cannot create executables
3121 See \`config.log' for more details." >&2;}
3122 { (exit 77); exit 77; }; }
3125 ac_exeext
=$ac_cv_exeext
3126 echo "$as_me:$LINENO: result: $ac_file" >&5
3127 echo "${ECHO_T}$ac_file" >&6
3129 # Check the compiler produces executables we can run. If not, either
3130 # the compiler is broken, or we cross compile.
3131 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3132 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3133 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3134 # If not cross compiling, check that we can run a simple program.
3135 if test "$cross_compiling" != yes; then
3136 if { ac_try
='./$ac_file'
3137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; }; then
3144 if test "$cross_compiling" = maybe
; then
3147 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3148 If you meant to cross compile, use \`--host'.
3149 See \`config.log' for more details." >&5
3150 echo "$as_me: error: cannot run C compiled programs.
3151 If you meant to cross compile, use \`--host'.
3152 See \`config.log' for more details." >&2;}
3153 { (exit 1); exit 1; }; }
3157 echo "$as_me:$LINENO: result: yes" >&5
3158 echo "${ECHO_T}yes" >&6
3160 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3161 ac_clean_files
=$ac_clean_files_save
3162 # Check the compiler produces executables we can run. If not, either
3163 # the compiler is broken, or we cross compile.
3164 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3165 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3166 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3167 echo "${ECHO_T}$cross_compiling" >&6
3169 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3170 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3172 (eval $ac_link) 2>&5
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); }; then
3176 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3177 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3178 # work properly (i.e., refer to `conftest.exe'), while it won't with
3180 for ac_file
in conftest.exe conftest conftest.
*; do
3181 test -f "$ac_file" ||
continue
3183 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3184 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3191 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3192 See \`config.log' for more details." >&5
3193 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3194 See \`config.log' for more details." >&2;}
3195 { (exit 1); exit 1; }; }
3198 rm -f conftest
$ac_cv_exeext
3199 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3200 echo "${ECHO_T}$ac_cv_exeext" >&6
3202 rm -f conftest.
$ac_ext
3203 EXEEXT
=$ac_cv_exeext
3205 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3206 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3207 if test "${ac_cv_objext+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3210 cat >conftest.
$ac_ext <<_ACEOF
3213 cat confdefs.h
>>conftest.
$ac_ext
3214 cat >>conftest.
$ac_ext <<_ACEOF
3215 /* end confdefs.h. */
3225 rm -f conftest.o conftest.obj
3226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3227 (eval $ac_compile) 2>&5
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; then
3231 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3233 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3234 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3239 echo "$as_me: failed program was:" >&5
3240 sed 's/^/| /' conftest.
$ac_ext >&5
3242 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3243 See \`config.log' for more details." >&5
3244 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3245 See \`config.log' for more details." >&2;}
3246 { (exit 1); exit 1; }; }
3249 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3251 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3252 echo "${ECHO_T}$ac_cv_objext" >&6
3253 OBJEXT
=$ac_cv_objext
3255 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3256 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3257 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3258 echo $ECHO_N "(cached) $ECHO_C" >&6
3260 cat >conftest.
$ac_ext <<_ACEOF
3263 cat confdefs.h
>>conftest.
$ac_ext
3264 cat >>conftest.
$ac_ext <<_ACEOF
3265 /* end confdefs.h. */
3278 rm -f conftest.
$ac_objext
3279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3280 (eval $ac_compile) 2>conftest.er1
3282 grep -v '^ *+' conftest.er1
>conftest.err
3284 cat conftest.err
>&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } &&
3287 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; } &&
3293 { ac_try
='test -s conftest.$ac_objext'
3294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }; }; then
3301 echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.
$ac_ext >&5
3306 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3307 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3310 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3311 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3312 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3313 ac_test_CFLAGS
=${CFLAGS+set}
3314 ac_save_CFLAGS
=$CFLAGS
3316 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3317 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3318 if test "${ac_cv_prog_cc_g+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 cat >conftest.
$ac_ext <<_ACEOF
3324 cat confdefs.h
>>conftest.
$ac_ext
3325 cat >>conftest.
$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3336 rm -f conftest.
$ac_objext
3337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3338 (eval $ac_compile) 2>conftest.er1
3340 grep -v '^ *+' conftest.er1
>conftest.err
3342 cat conftest.err
>&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); } &&
3345 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; } &&
3351 { ac_try
='test -s conftest.$ac_objext'
3352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; }; then
3359 echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.
$ac_ext >&5
3364 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3366 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3367 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3368 if test "$ac_test_CFLAGS" = set; then
3369 CFLAGS
=$ac_save_CFLAGS
3370 elif test $ac_cv_prog_cc_g = yes; then
3371 if test "$GCC" = yes; then
3377 if test "$GCC" = yes; then
3383 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3384 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3385 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3388 ac_cv_prog_cc_stdc
=no
3390 cat >conftest.
$ac_ext <<_ACEOF
3393 cat confdefs.h
>>conftest.
$ac_ext
3394 cat >>conftest.
$ac_ext <<_ACEOF
3395 /* end confdefs.h. */
3398 #include <sys/types.h>
3399 #include <sys/stat.h>
3400 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3401 struct buf { int x; };
3402 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3403 static char *e (p, i)
3409 static char *f (char * (*g) (char **, int), char **p, ...)
3414 s = g (p, va_arg (v,int));
3419 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3420 function prototypes and stuff, but not '\xHH' hex character constants.
3421 These don't provoke an error unfortunately, instead are silently treated
3422 as 'x'. The following induces an error, until -std1 is added to get
3423 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3424 array size at least. It's necessary to write '\x00'==0 to get something
3425 that's true only with -std1. */
3426 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3428 int test (int i, double x);
3429 struct s1 {int (*f) (int a);};
3430 struct s2 {int (*f) (double a);};
3431 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3437 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3442 # Don't try gcc -ansi; that turns off useful extensions and
3443 # breaks some systems' header files.
3444 # AIX -qlanglvl=ansi
3445 # Ultrix and OSF/1 -std1
3446 # HP-UX 10.20 and later -Ae
3447 # HP-UX older versions -Aa -D_HPUX_SOURCE
3448 # SVR4 -Xc -D__EXTENSIONS__
3449 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3451 CC
="$ac_save_CC $ac_arg"
3452 rm -f conftest.
$ac_objext
3453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3454 (eval $ac_compile) 2>conftest.er1
3456 grep -v '^ *+' conftest.er1
>conftest.err
3458 cat conftest.err
>&5
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); } &&
3461 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); }; } &&
3467 { ac_try
='test -s conftest.$ac_objext'
3468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); }; }; then
3473 ac_cv_prog_cc_stdc
=$ac_arg
3476 echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.
$ac_ext >&5
3480 rm -f conftest.err conftest.
$ac_objext
3482 rm -f conftest.
$ac_ext conftest.
$ac_objext
3487 case "x$ac_cv_prog_cc_stdc" in
3489 echo "$as_me:$LINENO: result: none needed" >&5
3490 echo "${ECHO_T}none needed" >&6 ;;
3492 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3493 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3494 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3497 # Some people use a C++ compiler to compile C. Since we use `exit',
3498 # in C++ we need to declare it. In case someone uses the same compiler
3499 # for both compiling C and C++ we need to have the C++ compiler decide
3500 # the declaration of exit, since it's the most demanding environment.
3501 cat >conftest.
$ac_ext <<_ACEOF
3506 rm -f conftest.
$ac_objext
3507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3508 (eval $ac_compile) 2>conftest.er1
3510 grep -v '^ *+' conftest.er1
>conftest.err
3512 cat conftest.err
>&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } &&
3515 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; } &&
3521 { ac_try
='test -s conftest.$ac_objext'
3522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; }; then
3527 for ac_declaration
in \
3529 'extern "C" void std::exit (int) throw (); using std::exit;' \
3530 'extern "C" void std::exit (int); using std::exit;' \
3531 'extern "C" void exit (int) throw ();' \
3532 'extern "C" void exit (int);' \
3535 cat >conftest.
$ac_ext <<_ACEOF
3538 cat confdefs.h
>>conftest.
$ac_ext
3539 cat >>conftest.
$ac_ext <<_ACEOF
3540 /* end confdefs.h. */
3551 rm -f conftest.
$ac_objext
3552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3553 (eval $ac_compile) 2>conftest.er1
3555 grep -v '^ *+' conftest.er1
>conftest.err
3557 cat conftest.err
>&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } &&
3560 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; } &&
3566 { ac_try
='test -s conftest.$ac_objext'
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; }; then
3574 echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.
$ac_ext >&5
3579 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3580 cat >conftest.
$ac_ext <<_ACEOF
3583 cat confdefs.h
>>conftest.
$ac_ext
3584 cat >>conftest.
$ac_ext <<_ACEOF
3585 /* end confdefs.h. */
3595 rm -f conftest.
$ac_objext
3596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3597 (eval $ac_compile) 2>conftest.er1
3599 grep -v '^ *+' conftest.er1
>conftest.err
3601 cat conftest.err
>&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } &&
3604 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; } &&
3610 { ac_try
='test -s conftest.$ac_objext'
3611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); }; }; then
3618 echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.
$ac_ext >&5
3622 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3625 if test -n "$ac_declaration"; then
3626 echo '#ifdef __cplusplus' >>confdefs.h
3627 echo $ac_declaration >>confdefs.h
3628 echo '#endif' >>confdefs.h
3632 echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.
$ac_ext >&5
3636 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3638 ac_cpp
='$CPP $CPPFLAGS'
3639 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3640 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3641 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3644 # On Suns, sometimes $CPP names a directory.
3645 if test -n "$CPP" && test -d "$CPP"; then
3649 #### Some systems specify a CPP to use unless we are using GCC.
3650 #### Now that we know whether we are using GCC, we can decide whether
3651 #### to use that one.
3652 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3657 #### Some systems specify a CC to use unless we are using GCC.
3658 #### Now that we know whether we are using GCC, we can decide whether
3659 #### to use that one.
3660 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3661 test x
$cc_specified != xyes
3666 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3668 CC
="$CC $GCC_TEST_OPTIONS"
3671 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3673 CC
="$CC $NON_GCC_TEST_OPTIONS"
3678 ac_cpp
='$CPP $CPPFLAGS'
3679 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3680 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3681 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3682 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3683 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3684 # On Suns, sometimes $CPP names a directory.
3685 if test -n "$CPP" && test -d "$CPP"; then
3688 if test -z "$CPP"; then
3689 if test "${ac_cv_prog_CPP+set}" = set; then
3690 echo $ECHO_N "(cached) $ECHO_C" >&6
3692 # Double quotes because CPP needs to be expanded
3693 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3696 for ac_c_preproc_warn_flag
in '' yes
3698 # Use a header file that comes with gcc, so configuring glibc
3699 # with a fresh cross-compiler works.
3700 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3701 # <limits.h> exists even on freestanding compilers.
3702 # On the NeXT, cc -E runs the code through the compiler's parser,
3703 # not just through cpp. "Syntax error" is here to catch this case.
3704 cat >conftest.
$ac_ext <<_ACEOF
3707 cat confdefs.h
>>conftest.
$ac_ext
3708 cat >>conftest.
$ac_ext <<_ACEOF
3709 /* end confdefs.h. */
3711 # include <limits.h>
3713 # include <assert.h>
3717 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3718 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3720 grep -v '^ *+' conftest.er1
>conftest.err
3722 cat conftest.err
>&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); } >/dev
/null
; then
3725 if test -s conftest.err
; then
3726 ac_cpp_err
=$ac_c_preproc_warn_flag
3727 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3734 if test -z "$ac_cpp_err"; then
3737 echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.
$ac_ext >&5
3740 # Broken: fails on valid input.
3743 rm -f conftest.err conftest.
$ac_ext
3745 # OK, works on sane cases. Now check whether non-existent headers
3746 # can be detected and how.
3747 cat >conftest.
$ac_ext <<_ACEOF
3750 cat confdefs.h
>>conftest.
$ac_ext
3751 cat >>conftest.
$ac_ext <<_ACEOF
3752 /* end confdefs.h. */
3753 #include <ac_nonexistent.h>
3755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3756 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3758 grep -v '^ *+' conftest.er1
>conftest.err
3760 cat conftest.err
>&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); } >/dev
/null
; then
3763 if test -s conftest.err
; then
3764 ac_cpp_err
=$ac_c_preproc_warn_flag
3765 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3772 if test -z "$ac_cpp_err"; then
3773 # Broken: success on invalid input.
3776 echo "$as_me: failed program was:" >&5
3777 sed 's/^/| /' conftest.
$ac_ext >&5
3779 # Passes both tests.
3783 rm -f conftest.err conftest.
$ac_ext
3786 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3787 rm -f conftest.err conftest.
$ac_ext
3788 if $ac_preproc_ok; then
3800 echo "$as_me:$LINENO: result: $CPP" >&5
3801 echo "${ECHO_T}$CPP" >&6
3803 for ac_c_preproc_warn_flag
in '' yes
3805 # Use a header file that comes with gcc, so configuring glibc
3806 # with a fresh cross-compiler works.
3807 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3808 # <limits.h> exists even on freestanding compilers.
3809 # On the NeXT, cc -E runs the code through the compiler's parser,
3810 # not just through cpp. "Syntax error" is here to catch this case.
3811 cat >conftest.
$ac_ext <<_ACEOF
3814 cat confdefs.h
>>conftest.
$ac_ext
3815 cat >>conftest.
$ac_ext <<_ACEOF
3816 /* end confdefs.h. */
3818 # include <limits.h>
3820 # include <assert.h>
3824 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3825 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3827 grep -v '^ *+' conftest.er1
>conftest.err
3829 cat conftest.err
>&5
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); } >/dev
/null
; then
3832 if test -s conftest.err
; then
3833 ac_cpp_err
=$ac_c_preproc_warn_flag
3834 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3841 if test -z "$ac_cpp_err"; then
3844 echo "$as_me: failed program was:" >&5
3845 sed 's/^/| /' conftest.
$ac_ext >&5
3847 # Broken: fails on valid input.
3850 rm -f conftest.err conftest.
$ac_ext
3852 # OK, works on sane cases. Now check whether non-existent headers
3853 # can be detected and how.
3854 cat >conftest.
$ac_ext <<_ACEOF
3857 cat confdefs.h
>>conftest.
$ac_ext
3858 cat >>conftest.
$ac_ext <<_ACEOF
3859 /* end confdefs.h. */
3860 #include <ac_nonexistent.h>
3862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3863 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3865 grep -v '^ *+' conftest.er1
>conftest.err
3867 cat conftest.err
>&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } >/dev
/null
; then
3870 if test -s conftest.err
; then
3871 ac_cpp_err
=$ac_c_preproc_warn_flag
3872 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3879 if test -z "$ac_cpp_err"; then
3880 # Broken: success on invalid input.
3883 echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.
$ac_ext >&5
3886 # Passes both tests.
3890 rm -f conftest.err conftest.
$ac_ext
3893 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3894 rm -f conftest.err conftest.
$ac_ext
3895 if $ac_preproc_ok; then
3898 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3899 See \`config.log' for more details." >&5
3900 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3901 See \`config.log' for more details." >&2;}
3902 { (exit 1); exit 1; }; }
3906 ac_cpp
='$CPP $CPPFLAGS'
3907 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3908 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3909 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3912 echo "$as_me:$LINENO: checking for egrep" >&5
3913 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3914 if test "${ac_cv_prog_egrep+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3918 then ac_cv_prog_egrep
='grep -E'
3919 else ac_cv_prog_egrep
='egrep'
3922 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3923 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3924 EGREP
=$ac_cv_prog_egrep
3928 echo "$as_me:$LINENO: checking for AIX" >&5
3929 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3930 cat >conftest.
$ac_ext <<_ACEOF
3933 cat confdefs.h
>>conftest.
$ac_ext
3934 cat >>conftest.
$ac_ext <<_ACEOF
3935 /* end confdefs.h. */
3941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3942 $EGREP "yes" >/dev
/null
2>&1; then
3943 echo "$as_me:$LINENO: result: yes" >&5
3944 echo "${ECHO_T}yes" >&6
3945 cat >>confdefs.h
<<\_ACEOF
3946 #define _ALL_SOURCE 1
3950 echo "$as_me:$LINENO: result: no" >&5
3951 echo "${ECHO_T}no" >&6
3957 cat >>confdefs.h
<<\_ACEOF
3958 #define _GNU_SOURCE 1
3963 ### Use -Wno-pointer-sign if the compiler supports it
3964 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3965 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3966 SAVE_CFLAGS
="$CFLAGS"
3967 CFLAGS
="$CFLAGS -Wno-pointer-sign"
3968 cat >conftest.
$ac_ext <<_ACEOF
3971 cat confdefs.h
>>conftest.
$ac_ext
3972 cat >>conftest.
$ac_ext <<_ACEOF
3973 /* end confdefs.h. */
3983 rm -f conftest.
$ac_objext
3984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3985 (eval $ac_compile) 2>conftest.er1
3987 grep -v '^ *+' conftest.er1
>conftest.err
3989 cat conftest.err
>&5
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); } &&
3992 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); }; } &&
3998 { ac_try
='test -s conftest.$ac_objext'
3999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); }; }; then
4006 echo "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.
$ac_ext >&5
4011 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4012 if test $has_option = yes; then
4013 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4015 echo "$as_me:$LINENO: result: $has_option" >&5
4016 echo "${ECHO_T}$has_option" >&6
4017 CFLAGS
="$SAVE_CFLAGS"
4021 #### Some other nice autoconf tests.
4023 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4024 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4026 if test "$LN_S" = "ln -s"; then
4027 echo "$as_me:$LINENO: result: yes" >&5
4028 echo "${ECHO_T}yes" >&6
4030 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4031 echo "${ECHO_T}no, using $LN_S" >&6
4035 ac_cpp
='$CPP $CPPFLAGS'
4036 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4037 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4038 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4039 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4040 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4041 # On Suns, sometimes $CPP names a directory.
4042 if test -n "$CPP" && test -d "$CPP"; then
4045 if test -z "$CPP"; then
4046 if test "${ac_cv_prog_CPP+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 # Double quotes because CPP needs to be expanded
4050 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4053 for ac_c_preproc_warn_flag
in '' yes
4055 # Use a header file that comes with gcc, so configuring glibc
4056 # with a fresh cross-compiler works.
4057 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4058 # <limits.h> exists even on freestanding compilers.
4059 # On the NeXT, cc -E runs the code through the compiler's parser,
4060 # not just through cpp. "Syntax error" is here to catch this case.
4061 cat >conftest.
$ac_ext <<_ACEOF
4064 cat confdefs.h
>>conftest.
$ac_ext
4065 cat >>conftest.
$ac_ext <<_ACEOF
4066 /* end confdefs.h. */
4068 # include <limits.h>
4070 # include <assert.h>
4074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4075 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4077 grep -v '^ *+' conftest.er1
>conftest.err
4079 cat conftest.err
>&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); } >/dev
/null
; then
4082 if test -s conftest.err
; then
4083 ac_cpp_err
=$ac_c_preproc_warn_flag
4084 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4091 if test -z "$ac_cpp_err"; then
4094 echo "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.
$ac_ext >&5
4097 # Broken: fails on valid input.
4100 rm -f conftest.err conftest.
$ac_ext
4102 # OK, works on sane cases. Now check whether non-existent headers
4103 # can be detected and how.
4104 cat >conftest.
$ac_ext <<_ACEOF
4107 cat confdefs.h
>>conftest.
$ac_ext
4108 cat >>conftest.
$ac_ext <<_ACEOF
4109 /* end confdefs.h. */
4110 #include <ac_nonexistent.h>
4112 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4113 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4115 grep -v '^ *+' conftest.er1
>conftest.err
4117 cat conftest.err
>&5
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); } >/dev
/null
; then
4120 if test -s conftest.err
; then
4121 ac_cpp_err
=$ac_c_preproc_warn_flag
4122 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4129 if test -z "$ac_cpp_err"; then
4130 # Broken: success on invalid input.
4133 echo "$as_me: failed program was:" >&5
4134 sed 's/^/| /' conftest.
$ac_ext >&5
4136 # Passes both tests.
4140 rm -f conftest.err conftest.
$ac_ext
4143 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4144 rm -f conftest.err conftest.
$ac_ext
4145 if $ac_preproc_ok; then
4157 echo "$as_me:$LINENO: result: $CPP" >&5
4158 echo "${ECHO_T}$CPP" >&6
4160 for ac_c_preproc_warn_flag
in '' yes
4162 # Use a header file that comes with gcc, so configuring glibc
4163 # with a fresh cross-compiler works.
4164 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4165 # <limits.h> exists even on freestanding compilers.
4166 # On the NeXT, cc -E runs the code through the compiler's parser,
4167 # not just through cpp. "Syntax error" is here to catch this case.
4168 cat >conftest.
$ac_ext <<_ACEOF
4171 cat confdefs.h
>>conftest.
$ac_ext
4172 cat >>conftest.
$ac_ext <<_ACEOF
4173 /* end confdefs.h. */
4175 # include <limits.h>
4177 # include <assert.h>
4181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4182 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4184 grep -v '^ *+' conftest.er1
>conftest.err
4186 cat conftest.err
>&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); } >/dev
/null
; then
4189 if test -s conftest.err
; then
4190 ac_cpp_err
=$ac_c_preproc_warn_flag
4191 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4198 if test -z "$ac_cpp_err"; then
4201 echo "$as_me: failed program was:" >&5
4202 sed 's/^/| /' conftest.
$ac_ext >&5
4204 # Broken: fails on valid input.
4207 rm -f conftest.err conftest.
$ac_ext
4209 # OK, works on sane cases. Now check whether non-existent headers
4210 # can be detected and how.
4211 cat >conftest.
$ac_ext <<_ACEOF
4214 cat confdefs.h
>>conftest.
$ac_ext
4215 cat >>conftest.
$ac_ext <<_ACEOF
4216 /* end confdefs.h. */
4217 #include <ac_nonexistent.h>
4219 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4220 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4222 grep -v '^ *+' conftest.er1
>conftest.err
4224 cat conftest.err
>&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } >/dev
/null
; then
4227 if test -s conftest.err
; then
4228 ac_cpp_err
=$ac_c_preproc_warn_flag
4229 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4236 if test -z "$ac_cpp_err"; then
4237 # Broken: success on invalid input.
4240 echo "$as_me: failed program was:" >&5
4241 sed 's/^/| /' conftest.
$ac_ext >&5
4243 # Passes both tests.
4247 rm -f conftest.err conftest.
$ac_ext
4250 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4251 rm -f conftest.err conftest.
$ac_ext
4252 if $ac_preproc_ok; then
4255 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4256 See \`config.log' for more details." >&5
4257 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4258 See \`config.log' for more details." >&2;}
4259 { (exit 1); exit 1; }; }
4263 ac_cpp
='$CPP $CPPFLAGS'
4264 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4265 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4266 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4268 # Find a good install program. We prefer a C program (faster),
4269 # so one script is as good as another. But avoid the broken or
4270 # incompatible versions:
4271 # SysV /etc/install, /usr/sbin/install
4272 # SunOS /usr/etc/install
4273 # IRIX /sbin/install
4275 # AmigaOS /C/install, which installs bootblocks on floppy discs
4276 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4277 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4278 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4279 # OS/2's system install, which has a completely different semantic
4280 # ./install, which can be erroneously created by make from ./install.sh.
4281 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4282 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4283 if test -z "$INSTALL"; then
4284 if test "${ac_cv_path_install+set}" = set; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
4287 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4291 test -z "$as_dir" && as_dir
=.
4292 # Account for people who put trailing slashes in PATH elements.
4294 .
/ | .
// |
/cC
/* | \
4295 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4296 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4299 # OSF1 and SCO ODT 3.0 have their own names for install.
4300 # Don't use installbsd from OSF since it installs stuff as root
4302 for ac_prog
in ginstall scoinst
install; do
4303 for ac_exec_ext
in '' $ac_executable_extensions; do
4304 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4305 if test $ac_prog = install &&
4306 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4307 # AIX install. It has an incompatible calling convention.
4309 elif test $ac_prog = install &&
4310 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4311 # program-specific install script used by HP pwplus--don't use.
4314 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4326 if test "${ac_cv_path_install+set}" = set; then
4327 INSTALL
=$ac_cv_path_install
4329 # As a last resort, use the slow shell script. We don't cache a
4330 # path for INSTALL within a source directory, because that will
4331 # break other packages using the cache if that directory is
4332 # removed, or if the path is relative.
4333 INSTALL
=$ac_install_sh
4336 echo "$as_me:$LINENO: result: $INSTALL" >&5
4337 echo "${ECHO_T}$INSTALL" >&6
4339 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4340 # It thinks the first close brace ends the variable substitution.
4341 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4343 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4345 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4347 if test "x$RANLIB" = x
; then
4348 if test -n "$ac_tool_prefix"; then
4349 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4350 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4351 echo "$as_me:$LINENO: checking for $ac_word" >&5
4352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4353 if test "${ac_cv_prog_RANLIB+set}" = set; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 if test -n "$RANLIB"; then
4357 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4359 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4363 test -z "$as_dir" && as_dir
=.
4364 for ac_exec_ext
in '' $ac_executable_extensions; do
4365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4366 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4375 RANLIB
=$ac_cv_prog_RANLIB
4376 if test -n "$RANLIB"; then
4377 echo "$as_me:$LINENO: result: $RANLIB" >&5
4378 echo "${ECHO_T}$RANLIB" >&6
4380 echo "$as_me:$LINENO: result: no" >&5
4381 echo "${ECHO_T}no" >&6
4385 if test -z "$ac_cv_prog_RANLIB"; then
4386 ac_ct_RANLIB
=$RANLIB
4387 # Extract the first word of "ranlib", so it can be a program name with args.
4388 set dummy ranlib
; ac_word
=$2
4389 echo "$as_me:$LINENO: checking for $ac_word" >&5
4390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4391 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4394 if test -n "$ac_ct_RANLIB"; then
4395 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4397 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4401 test -z "$as_dir" && as_dir
=.
4402 for ac_exec_ext
in '' $ac_executable_extensions; do
4403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4404 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4411 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4414 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4415 if test -n "$ac_ct_RANLIB"; then
4416 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4417 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4419 echo "$as_me:$LINENO: result: no" >&5
4420 echo "${ECHO_T}no" >&6
4423 RANLIB
=$ac_ct_RANLIB
4425 RANLIB
="$ac_cv_prog_RANLIB"
4429 # Extract the first word of "install-info", so it can be a program name with args.
4430 set dummy install-info
; ac_word
=$2
4431 echo "$as_me:$LINENO: checking for $ac_word" >&5
4432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4433 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 case $INSTALL_INFO in
4438 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4441 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4445 test -z "$as_dir" && as_dir
=.
4446 for ac_exec_ext
in '' $ac_executable_extensions; do
4447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4448 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4458 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4460 if test -n "$INSTALL_INFO"; then
4461 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4462 echo "${ECHO_T}$INSTALL_INFO" >&6
4464 echo "$as_me:$LINENO: result: no" >&5
4465 echo "${ECHO_T}no" >&6
4468 # Extract the first word of "install-info", so it can be a program name with args.
4469 set dummy install-info
; ac_word
=$2
4470 echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4472 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 case $INSTALL_INFO in
4477 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4480 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4481 for as_dir
in /usr
/sbin
4484 test -z "$as_dir" && as_dir
=.
4485 for ac_exec_ext
in '' $ac_executable_extensions; do
4486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4487 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4497 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4499 if test -n "$INSTALL_INFO"; then
4500 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4501 echo "${ECHO_T}$INSTALL_INFO" >&6
4503 echo "$as_me:$LINENO: result: no" >&5
4504 echo "${ECHO_T}no" >&6
4507 # Extract the first word of "install-info", so it can be a program name with args.
4508 set dummy install-info
; ac_word
=$2
4509 echo "$as_me:$LINENO: checking for $ac_word" >&5
4510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4511 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
4514 case $INSTALL_INFO in
4516 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4519 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4523 test -z "$as_dir" && as_dir
=.
4524 for ac_exec_ext
in '' $ac_executable_extensions; do
4525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4526 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4533 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4537 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4539 if test -n "$INSTALL_INFO"; then
4540 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4541 echo "${ECHO_T}$INSTALL_INFO" >&6
4543 echo "$as_me:$LINENO: result: no" >&5
4544 echo "${ECHO_T}no" >&6
4547 # Extract the first word of "gzip", so it can be a program name with args.
4548 set dummy
gzip; ac_word
=$2
4549 echo "$as_me:$LINENO: checking for $ac_word" >&5
4550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4551 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4556 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
4559 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4563 test -z "$as_dir" && as_dir
=.
4564 for ac_exec_ext
in '' $ac_executable_extensions; do
4565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4566 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
4567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4576 GZIP_PROG
=$ac_cv_path_GZIP_PROG
4578 if test -n "$GZIP_PROG"; then
4579 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4580 echo "${ECHO_T}$GZIP_PROG" >&6
4582 echo "$as_me:$LINENO: result: no" >&5
4583 echo "${ECHO_T}no" >&6
4588 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4590 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4593 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4595 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4599 late_LDFLAGS
=$LDFLAGS
4600 if test "$GCC" = yes; then
4601 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
4603 LDFLAGS
="$LDFLAGS -znocombreloc"
4606 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4607 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4608 cat >conftest.
$ac_ext <<_ACEOF
4611 rm -f conftest.
$ac_objext conftest
$ac_exeext
4612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4613 (eval $ac_link) 2>conftest.er1
4615 grep -v '^ *+' conftest.er1
>conftest.err
4617 cat conftest.err
>&5
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); } &&
4620 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }; } &&
4626 { ac_try
='test -s conftest$ac_exeext'
4627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; }; then
4632 echo "$as_me:$LINENO: result: yes" >&5
4633 echo "${ECHO_T}yes" >&6
4635 echo "$as_me: failed program was:" >&5
4636 sed 's/^/| /' conftest.
$ac_ext >&5
4638 LDFLAGS
=$late_LDFLAGS
4639 echo "$as_me:$LINENO: result: no" >&5
4640 echo "${ECHO_T}no" >&6
4642 rm -f conftest.err conftest.
$ac_objext \
4643 conftest
$ac_exeext conftest.
$ac_ext
4645 #### Extract some information from the operating system and machine files.
4647 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4648 - which libraries the lib-src programs will want, and
4649 - whether the GNU malloc routines are usable..." >&5
4650 echo "$as_me: checking the machine- and system-dependent files to find out
4651 - which libraries the lib-src programs will want, and
4652 - whether the GNU malloc routines are usable..." >&6;}
4654 ### First figure out CFLAGS (which we use for running the compiler here)
4655 ### and REAL_CFLAGS (which we use for real compilation).
4656 ### The two are the same except on a few systems, where they are made
4657 ### different to work around various lossages. For example,
4658 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4659 ### as implying static linking.
4661 ### If the CFLAGS env var is specified, we use that value
4662 ### instead of the default.
4664 ### It's not important that this name contain the PID; you can't run
4665 ### two configures in the same directory and have anything work
4667 tempcname
="conftest.c"
4670 #include "'${srcdir}'/src/'${opsysfile}'"
4671 #include "'${srcdir}'/src/'${machfile}'"
4672 #ifndef LIBS_MACHINE
4673 #define LIBS_MACHINE
4678 #ifndef C_SWITCH_SYSTEM
4679 #define C_SWITCH_SYSTEM
4681 #ifndef C_SWITCH_MACHINE
4682 #define C_SWITCH_MACHINE
4684 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4685 configure___ c_switch_system=C_SWITCH_SYSTEM
4686 configure___ c_switch_machine=C_SWITCH_MACHINE
4689 #define LIB_X11_LIB -lX11
4692 #ifndef LIBX11_MACHINE
4693 #define LIBX11_MACHINE
4696 #ifndef LIBX11_SYSTEM
4697 #define LIBX11_SYSTEM
4699 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4702 configure___ unexec=UNEXEC
4704 configure___ unexec=unexec.o
4707 #ifdef SYSTEM_MALLOC
4708 configure___ system_malloc=yes
4710 configure___ system_malloc=no
4713 #ifdef USE_MMAP_FOR_BUFFERS
4714 configure___ use_mmap_for_buffers=yes
4716 configure___ use_mmap_for_buffers=no
4719 #ifndef C_DEBUG_SWITCH
4720 #define C_DEBUG_SWITCH -g
4723 #ifndef C_OPTIMIZE_SWITCH
4725 #define C_OPTIMIZE_SWITCH -O2
4727 #define C_OPTIMIZE_SWITCH -O
4731 #ifndef C_WARNINGS_SWITCH
4732 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4735 #ifndef LD_SWITCH_MACHINE
4736 #define LD_SWITCH_MACHINE
4739 #ifndef LD_SWITCH_SYSTEM
4740 #define LD_SWITCH_SYSTEM
4743 #ifndef LD_SWITCH_X_SITE_AUX
4744 #define LD_SWITCH_X_SITE_AUX
4747 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4748 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4750 #ifdef THIS_IS_CONFIGURE
4752 /* Get the CFLAGS for tests in configure. */
4754 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4756 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4759 #else /* not THIS_IS_CONFIGURE */
4761 /* Get the CFLAGS for real compilation. */
4763 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4765 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4768 #endif /* not THIS_IS_CONFIGURE */
4771 # The value of CPP is a quoted variable reference, so we need to do this
4772 # to get its actual value...
4773 CPP
=`eval "echo $CPP"`
4774 eval `${CPP} -Isrc ${tempcname} \
4775 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4776 if test "x$SPECIFIED_CFLAGS" = x
; then
4777 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4778 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4780 REAL_CFLAGS
="$CFLAGS"
4784 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4786 ### Make sure subsequent tests use flags consistent with the build flags.
4788 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4789 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4791 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4796 # Check whether --enable-largefile or --disable-largefile was given.
4797 if test "${enable_largefile+set}" = set; then
4798 enableval
="$enable_largefile"
4801 if test "$enable_largefile" != no
; then
4803 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4804 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4805 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4806 echo $ECHO_N "(cached) $ECHO_C" >&6
4808 ac_cv_sys_largefile_CC
=no
4809 if test "$GCC" != yes; then
4812 # IRIX 6.2 and later do not support large files by default,
4813 # so use the C compiler's -n32 option if that helps.
4814 cat >conftest.
$ac_ext <<_ACEOF
4817 cat confdefs.h
>>conftest.
$ac_ext
4818 cat >>conftest.
$ac_ext <<_ACEOF
4819 /* end confdefs.h. */
4820 #include <sys/types.h>
4821 /* Check that off_t can represent 2**63 - 1 correctly.
4822 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4823 since some C++ compilers masquerading as C compilers
4824 incorrectly reject 9223372036854775807. */
4825 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4826 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4827 && LARGE_OFF_T % 2147483647 == 1)
4837 rm -f conftest.
$ac_objext
4838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4839 (eval $ac_compile) 2>conftest.er1
4841 grep -v '^ *+' conftest.er1
>conftest.err
4843 cat conftest.err
>&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); } &&
4846 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); }; } &&
4852 { ac_try
='test -s conftest.$ac_objext'
4853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); }; }; then
4860 echo "$as_me: failed program was:" >&5
4861 sed 's/^/| /' conftest.
$ac_ext >&5
4864 rm -f conftest.err conftest.
$ac_objext
4866 rm -f conftest.
$ac_objext
4867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4868 (eval $ac_compile) 2>conftest.er1
4870 grep -v '^ *+' conftest.er1
>conftest.err
4872 cat conftest.err
>&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } &&
4875 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; } &&
4881 { ac_try
='test -s conftest.$ac_objext'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; }; then
4887 ac_cv_sys_largefile_CC
=' -n32'; break
4889 echo "$as_me: failed program was:" >&5
4890 sed 's/^/| /' conftest.
$ac_ext >&5
4893 rm -f conftest.err conftest.
$ac_objext
4897 rm -f conftest.
$ac_ext
4900 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4901 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4902 if test "$ac_cv_sys_largefile_CC" != no
; then
4903 CC
=$CC$ac_cv_sys_largefile_CC
4906 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4907 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4908 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4909 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 ac_cv_sys_file_offset_bits
=no
4913 cat >conftest.
$ac_ext <<_ACEOF
4916 cat confdefs.h
>>conftest.
$ac_ext
4917 cat >>conftest.
$ac_ext <<_ACEOF
4918 /* end confdefs.h. */
4919 #include <sys/types.h>
4920 /* Check that off_t can represent 2**63 - 1 correctly.
4921 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4922 since some C++ compilers masquerading as C compilers
4923 incorrectly reject 9223372036854775807. */
4924 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4925 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4926 && LARGE_OFF_T % 2147483647 == 1)
4936 rm -f conftest.
$ac_objext
4937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4938 (eval $ac_compile) 2>conftest.er1
4940 grep -v '^ *+' conftest.er1
>conftest.err
4942 cat conftest.err
>&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); } &&
4945 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); }; } &&
4951 { ac_try
='test -s conftest.$ac_objext'
4952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; }; then
4959 echo "$as_me: failed program was:" >&5
4960 sed 's/^/| /' conftest.
$ac_ext >&5
4963 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4964 cat >conftest.
$ac_ext <<_ACEOF
4967 cat confdefs.h
>>conftest.
$ac_ext
4968 cat >>conftest.
$ac_ext <<_ACEOF
4969 /* end confdefs.h. */
4970 #define _FILE_OFFSET_BITS 64
4971 #include <sys/types.h>
4972 /* Check that off_t can represent 2**63 - 1 correctly.
4973 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4974 since some C++ compilers masquerading as C compilers
4975 incorrectly reject 9223372036854775807. */
4976 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4977 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4978 && LARGE_OFF_T % 2147483647 == 1)
4988 rm -f conftest.
$ac_objext
4989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4990 (eval $ac_compile) 2>conftest.er1
4992 grep -v '^ *+' conftest.er1
>conftest.err
4994 cat conftest.err
>&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); } &&
4997 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); }; } &&
5003 { ac_try
='test -s conftest.$ac_objext'
5004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); }; }; then
5009 ac_cv_sys_file_offset_bits
=64; break
5011 echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.
$ac_ext >&5
5015 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5019 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5020 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5021 if test "$ac_cv_sys_file_offset_bits" != no
; then
5023 cat >>confdefs.h
<<_ACEOF
5024 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5029 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5030 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5031 if test "${ac_cv_sys_large_files+set}" = set; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 ac_cv_sys_large_files
=no
5036 cat >conftest.
$ac_ext <<_ACEOF
5039 cat confdefs.h
>>conftest.
$ac_ext
5040 cat >>conftest.
$ac_ext <<_ACEOF
5041 /* end confdefs.h. */
5042 #include <sys/types.h>
5043 /* Check that off_t can represent 2**63 - 1 correctly.
5044 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5045 since some C++ compilers masquerading as C compilers
5046 incorrectly reject 9223372036854775807. */
5047 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5048 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5049 && LARGE_OFF_T % 2147483647 == 1)
5059 rm -f conftest.
$ac_objext
5060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5061 (eval $ac_compile) 2>conftest.er1
5063 grep -v '^ *+' conftest.er1
>conftest.err
5065 cat conftest.err
>&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); } &&
5068 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); }; } &&
5074 { ac_try
='test -s conftest.$ac_objext'
5075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); }; }; then
5082 echo "$as_me: failed program was:" >&5
5083 sed 's/^/| /' conftest.
$ac_ext >&5
5086 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5087 cat >conftest.
$ac_ext <<_ACEOF
5090 cat confdefs.h
>>conftest.
$ac_ext
5091 cat >>conftest.
$ac_ext <<_ACEOF
5092 /* end confdefs.h. */
5093 #define _LARGE_FILES 1
5094 #include <sys/types.h>
5095 /* Check that off_t can represent 2**63 - 1 correctly.
5096 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5097 since some C++ compilers masquerading as C compilers
5098 incorrectly reject 9223372036854775807. */
5099 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5100 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5101 && LARGE_OFF_T % 2147483647 == 1)
5111 rm -f conftest.
$ac_objext
5112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5113 (eval $ac_compile) 2>conftest.er1
5115 grep -v '^ *+' conftest.er1
>conftest.err
5117 cat conftest.err
>&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } &&
5120 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); }; } &&
5126 { ac_try
='test -s conftest.$ac_objext'
5127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); }; }; then
5132 ac_cv_sys_large_files
=1; break
5134 echo "$as_me: failed program was:" >&5
5135 sed 's/^/| /' conftest.
$ac_ext >&5
5138 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5142 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5143 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5144 if test "$ac_cv_sys_large_files" != no
; then
5146 cat >>confdefs.h
<<_ACEOF
5147 #define _LARGE_FILES $ac_cv_sys_large_files
5159 if test "${with_sound}" != "no"; then
5160 # Sound support for GNU/Linux and the free BSDs.
5161 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5162 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5163 if test "${ac_cv_header_stdc+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5166 cat >conftest.
$ac_ext <<_ACEOF
5169 cat confdefs.h
>>conftest.
$ac_ext
5170 cat >>conftest.
$ac_ext <<_ACEOF
5171 /* end confdefs.h. */
5185 rm -f conftest.
$ac_objext
5186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5187 (eval $ac_compile) 2>conftest.er1
5189 grep -v '^ *+' conftest.er1
>conftest.err
5191 cat conftest.err
>&5
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); } &&
5194 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); }; } &&
5200 { ac_try
='test -s conftest.$ac_objext'
5201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); }; }; then
5206 ac_cv_header_stdc
=yes
5208 echo "$as_me: failed program was:" >&5
5209 sed 's/^/| /' conftest.
$ac_ext >&5
5211 ac_cv_header_stdc
=no
5213 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5215 if test $ac_cv_header_stdc = yes; then
5216 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5217 cat >conftest.
$ac_ext <<_ACEOF
5220 cat confdefs.h
>>conftest.
$ac_ext
5221 cat >>conftest.
$ac_ext <<_ACEOF
5222 /* end confdefs.h. */
5226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5227 $EGREP "memchr" >/dev
/null
2>&1; then
5230 ac_cv_header_stdc
=no
5236 if test $ac_cv_header_stdc = yes; then
5237 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5238 cat >conftest.
$ac_ext <<_ACEOF
5241 cat confdefs.h
>>conftest.
$ac_ext
5242 cat >>conftest.
$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5248 $EGREP "free" >/dev
/null
2>&1; then
5251 ac_cv_header_stdc
=no
5257 if test $ac_cv_header_stdc = yes; then
5258 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5259 if test "$cross_compiling" = yes; then
5262 cat >conftest.
$ac_ext <<_ACEOF
5265 cat confdefs.h
>>conftest.
$ac_ext
5266 cat >>conftest.
$ac_ext <<_ACEOF
5267 /* end confdefs.h. */
5269 #if ((' ' & 0x0FF) == 0x020)
5270 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5271 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5273 # define ISLOWER(c) \
5274 (('a' <= (c) && (c) <= 'i') \
5275 || ('j' <= (c) && (c) <= 'r') \
5276 || ('s' <= (c) && (c) <= 'z'))
5277 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5280 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5285 for (i = 0; i < 256; i++)
5286 if (XOR (islower (i), ISLOWER (i))
5287 || toupper (i) != TOUPPER (i))
5292 rm -f conftest
$ac_exeext
5293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5294 (eval $ac_link) 2>&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }; }; then
5305 echo "$as_me: program exited with status $ac_status" >&5
5306 echo "$as_me: failed program was:" >&5
5307 sed 's/^/| /' conftest.
$ac_ext >&5
5310 ac_cv_header_stdc
=no
5312 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5316 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5317 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5318 if test $ac_cv_header_stdc = yes; then
5320 cat >>confdefs.h
<<\_ACEOF
5321 #define STDC_HEADERS 1
5326 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5336 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5337 inttypes.h stdint.h unistd.h
5339 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5340 echo "$as_me:$LINENO: checking for $ac_header" >&5
5341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5345 cat >conftest.
$ac_ext <<_ACEOF
5348 cat confdefs.h
>>conftest.
$ac_ext
5349 cat >>conftest.
$ac_ext <<_ACEOF
5350 /* end confdefs.h. */
5351 $ac_includes_default
5353 #include <$ac_header>
5355 rm -f conftest.
$ac_objext
5356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5357 (eval $ac_compile) 2>conftest.er1
5359 grep -v '^ *+' conftest.er1
>conftest.err
5361 cat conftest.err
>&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); } &&
5364 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; } &&
5370 { ac_try
='test -s conftest.$ac_objext'
5371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); }; }; then
5376 eval "$as_ac_Header=yes"
5378 echo "$as_me: failed program was:" >&5
5379 sed 's/^/| /' conftest.
$ac_ext >&5
5381 eval "$as_ac_Header=no"
5383 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5388 cat >>confdefs.h
<<_ACEOF
5389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5400 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5402 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5404 echo "$as_me:$LINENO: checking for $ac_header" >&5
5405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5412 # Is the header compilable?
5413 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5415 cat >conftest.
$ac_ext <<_ACEOF
5418 cat confdefs.h
>>conftest.
$ac_ext
5419 cat >>conftest.
$ac_ext <<_ACEOF
5420 /* end confdefs.h. */
5421 $ac_includes_default
5422 #include <$ac_header>
5424 rm -f conftest.
$ac_objext
5425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5426 (eval $ac_compile) 2>conftest.er1
5428 grep -v '^ *+' conftest.er1
>conftest.err
5430 cat conftest.err
>&5
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); } &&
5433 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; } &&
5439 { ac_try
='test -s conftest.$ac_objext'
5440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; }; then
5445 ac_header_compiler
=yes
5447 echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.
$ac_ext >&5
5450 ac_header_compiler
=no
5452 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5453 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5454 echo "${ECHO_T}$ac_header_compiler" >&6
5456 # Is the header present?
5457 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5458 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5459 cat >conftest.
$ac_ext <<_ACEOF
5462 cat confdefs.h
>>conftest.
$ac_ext
5463 cat >>conftest.
$ac_ext <<_ACEOF
5464 /* end confdefs.h. */
5465 #include <$ac_header>
5467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5468 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5470 grep -v '^ *+' conftest.er1
>conftest.err
5472 cat conftest.err
>&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); } >/dev
/null
; then
5475 if test -s conftest.err
; then
5476 ac_cpp_err
=$ac_c_preproc_warn_flag
5477 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5484 if test -z "$ac_cpp_err"; then
5485 ac_header_preproc
=yes
5487 echo "$as_me: failed program was:" >&5
5488 sed 's/^/| /' conftest.
$ac_ext >&5
5490 ac_header_preproc
=no
5492 rm -f conftest.err conftest.
$ac_ext
5493 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5494 echo "${ECHO_T}$ac_header_preproc" >&6
5496 # So? What about this header?
5497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5499 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5500 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5502 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5503 ac_header_preproc
=yes
5506 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5507 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5508 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5509 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5510 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5511 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5512 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5513 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5515 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5516 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5517 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5520 ## ------------------------------------------ ##
5521 ## Report this to the AC_PACKAGE_NAME lists. ##
5522 ## ------------------------------------------ ##
5525 sed "s/^/$as_me: WARNING: /" >&2
5528 echo "$as_me:$LINENO: checking for $ac_header" >&5
5529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5531 echo $ECHO_N "(cached) $ECHO_C" >&6
5533 eval "$as_ac_Header=\$ac_header_preproc"
5535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5536 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5540 cat >>confdefs.h
<<_ACEOF
5541 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5548 # Emulation library used on NetBSD.
5549 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5550 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5551 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5554 ac_check_lib_save_LIBS
=$LIBS
5555 LIBS
="-lossaudio $LIBS"
5556 cat >conftest.
$ac_ext <<_ACEOF
5559 cat confdefs.h
>>conftest.
$ac_ext
5560 cat >>conftest.
$ac_ext <<_ACEOF
5561 /* end confdefs.h. */
5563 /* Override any gcc2 internal prototype to avoid an error. */
5567 /* We use char because int might match the return type of a gcc2
5568 builtin and then its argument prototype would still apply. */
5578 rm -f conftest.
$ac_objext conftest
$ac_exeext
5579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5580 (eval $ac_link) 2>conftest.er1
5582 grep -v '^ *+' conftest.er1
>conftest.err
5584 cat conftest.err
>&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } &&
5587 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); }; } &&
5593 { ac_try
='test -s conftest$ac_exeext'
5594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); }; }; then
5599 ac_cv_lib_ossaudio__oss_ioctl
=yes
5601 echo "$as_me: failed program was:" >&5
5602 sed 's/^/| /' conftest.
$ac_ext >&5
5604 ac_cv_lib_ossaudio__oss_ioctl
=no
5606 rm -f conftest.err conftest.
$ac_objext \
5607 conftest
$ac_exeext conftest.
$ac_ext
5608 LIBS
=$ac_check_lib_save_LIBS
5610 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5611 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5612 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5621 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
5622 if test "X${with_pkg_config_prog}" != X
; then
5623 PKG_CONFIG
="${with_pkg_config_prog}"
5628 if test -z "$PKG_CONFIG"; then
5629 # Extract the first word of "pkg-config", so it can be a program name with args.
5630 set dummy pkg-config
; ac_word
=$2
5631 echo "$as_me:$LINENO: checking for $ac_word" >&5
5632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5633 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5638 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
5641 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5645 test -z "$as_dir" && as_dir
=.
5646 for ac_exec_ext
in '' $ac_executable_extensions; do
5647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5648 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5655 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
5659 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
5661 if test -n "$PKG_CONFIG"; then
5662 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5663 echo "${ECHO_T}$PKG_CONFIG" >&6
5665 echo "$as_me:$LINENO: result: no" >&5
5666 echo "${ECHO_T}no" >&6
5671 if test "$PKG_CONFIG" = "no" ; then
5674 PKG_CONFIG_MIN_VERSION
=0.9.0
5675 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5676 echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
5677 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6
5679 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5680 echo "$as_me:$LINENO: result: yes" >&5
5681 echo "${ECHO_T}yes" >&6
5684 echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
5685 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6
5686 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
5687 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
5688 echo "${ECHO_T}$ALSA_CFLAGS" >&6
5690 echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
5691 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6
5692 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"`
5693 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
5694 echo "${ECHO_T}$ALSA_LIBS" >&6
5696 echo "$as_me:$LINENO: result: no" >&5
5697 echo "${ECHO_T}no" >&6
5700 ## If we have a custom action on failure, don't print errors, but
5701 ## do set a variable so people can do so.
5702 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5709 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5710 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5714 if test $succeeded = yes; then
5720 if test $HAVE_ALSA = yes; then
5721 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
5722 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
5724 cat >>confdefs.h
<<\_ACEOF
5757 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5758 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5759 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5760 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
5763 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5765 echo "$as_me:$LINENO: checking for $ac_header" >&5
5766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5768 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5771 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5773 # Is the header compilable?
5774 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5776 cat >conftest.
$ac_ext <<_ACEOF
5779 cat confdefs.h
>>conftest.
$ac_ext
5780 cat >>conftest.
$ac_ext <<_ACEOF
5781 /* end confdefs.h. */
5782 $ac_includes_default
5783 #include <$ac_header>
5785 rm -f conftest.
$ac_objext
5786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5787 (eval $ac_compile) 2>conftest.er1
5789 grep -v '^ *+' conftest.er1
>conftest.err
5791 cat conftest.err
>&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); } &&
5794 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }; } &&
5800 { ac_try
='test -s conftest.$ac_objext'
5801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); }; }; then
5806 ac_header_compiler
=yes
5808 echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.
$ac_ext >&5
5811 ac_header_compiler
=no
5813 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5814 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5815 echo "${ECHO_T}$ac_header_compiler" >&6
5817 # Is the header present?
5818 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5819 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5820 cat >conftest.
$ac_ext <<_ACEOF
5823 cat confdefs.h
>>conftest.
$ac_ext
5824 cat >>conftest.
$ac_ext <<_ACEOF
5825 /* end confdefs.h. */
5826 #include <$ac_header>
5828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5829 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5831 grep -v '^ *+' conftest.er1
>conftest.err
5833 cat conftest.err
>&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } >/dev
/null
; then
5836 if test -s conftest.err
; then
5837 ac_cpp_err
=$ac_c_preproc_warn_flag
5838 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5845 if test -z "$ac_cpp_err"; then
5846 ac_header_preproc
=yes
5848 echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.
$ac_ext >&5
5851 ac_header_preproc
=no
5853 rm -f conftest.err conftest.
$ac_ext
5854 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5855 echo "${ECHO_T}$ac_header_preproc" >&6
5857 # So? What about this header?
5858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5860 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5861 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5863 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5864 ac_header_preproc
=yes
5867 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5868 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5869 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5870 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5871 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5872 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5873 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5874 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5877 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5878 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5881 ## ------------------------------------------ ##
5882 ## Report this to the AC_PACKAGE_NAME lists. ##
5883 ## ------------------------------------------ ##
5886 sed "s/^/$as_me: WARNING: /" >&2
5889 echo "$as_me:$LINENO: checking for $ac_header" >&5
5890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5894 eval "$as_ac_Header=\$ac_header_preproc"
5896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5897 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5901 cat >>confdefs.h
<<_ACEOF
5902 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5910 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5911 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5912 cat >conftest.
$ac_ext <<_ACEOF
5915 cat confdefs.h
>>conftest.
$ac_ext
5916 cat >>conftest.
$ac_ext <<_ACEOF
5917 /* end confdefs.h. */
5918 #include <sys/personality.h>
5922 personality (PER_LINUX32)
5927 rm -f conftest.
$ac_objext
5928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5929 (eval $ac_compile) 2>conftest.er1
5931 grep -v '^ *+' conftest.er1
>conftest.err
5933 cat conftest.err
>&5
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); } &&
5936 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); }; } &&
5942 { ac_try
='test -s conftest.$ac_objext'
5943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; }; then
5948 emacs_cv_personality_linux32
=yes
5950 echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.
$ac_ext >&5
5953 emacs_cv_personality_linux32
=no
5955 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5956 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5957 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5959 if test $emacs_cv_personality_linux32 = yes; then
5961 cat >>confdefs.h
<<\_ACEOF
5962 #define HAVE_PERSONALITY_LINUX32 1
5968 for ac_header
in term.h
5970 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5971 echo "$as_me:$LINENO: checking for $ac_header" >&5
5972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 cat >conftest.
$ac_ext <<_ACEOF
5979 cat confdefs.h
>>conftest.
$ac_ext
5980 cat >>conftest.
$ac_ext <<_ACEOF
5981 /* end confdefs.h. */
5982 #include <$ac_header>
5984 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5985 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5987 grep -v '^ *+' conftest.er1
>conftest.err
5989 cat conftest.err
>&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } >/dev
/null
; then
5992 if test -s conftest.err
; then
5993 ac_cpp_err
=$ac_c_preproc_warn_flag
5994 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6001 if test -z "$ac_cpp_err"; then
6002 eval "$as_ac_Header=yes"
6004 echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.
$ac_ext >&5
6007 eval "$as_ac_Header=no"
6009 rm -f conftest.err conftest.
$ac_ext
6011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6014 cat >>confdefs.h
<<_ACEOF
6015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6022 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6023 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6024 if test "${ac_cv_header_stdc+set}" = set; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 cat >conftest.
$ac_ext <<_ACEOF
6030 cat confdefs.h
>>conftest.
$ac_ext
6031 cat >>conftest.
$ac_ext <<_ACEOF
6032 /* end confdefs.h. */
6046 rm -f conftest.
$ac_objext
6047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6048 (eval $ac_compile) 2>conftest.er1
6050 grep -v '^ *+' conftest.er1
>conftest.err
6052 cat conftest.err
>&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); } &&
6055 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); }; } &&
6061 { ac_try
='test -s conftest.$ac_objext'
6062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); }; }; then
6067 ac_cv_header_stdc
=yes
6069 echo "$as_me: failed program was:" >&5
6070 sed 's/^/| /' conftest.
$ac_ext >&5
6072 ac_cv_header_stdc
=no
6074 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6076 if test $ac_cv_header_stdc = yes; then
6077 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6078 cat >conftest.
$ac_ext <<_ACEOF
6081 cat confdefs.h
>>conftest.
$ac_ext
6082 cat >>conftest.
$ac_ext <<_ACEOF
6083 /* end confdefs.h. */
6087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6088 $EGREP "memchr" >/dev
/null
2>&1; then
6091 ac_cv_header_stdc
=no
6097 if test $ac_cv_header_stdc = yes; then
6098 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6099 cat >conftest.
$ac_ext <<_ACEOF
6102 cat confdefs.h
>>conftest.
$ac_ext
6103 cat >>conftest.
$ac_ext <<_ACEOF
6104 /* end confdefs.h. */
6108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6109 $EGREP "free" >/dev
/null
2>&1; then
6112 ac_cv_header_stdc
=no
6118 if test $ac_cv_header_stdc = yes; then
6119 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6120 if test "$cross_compiling" = yes; then
6123 cat >conftest.
$ac_ext <<_ACEOF
6126 cat confdefs.h
>>conftest.
$ac_ext
6127 cat >>conftest.
$ac_ext <<_ACEOF
6128 /* end confdefs.h. */
6130 #if ((' ' & 0x0FF) == 0x020)
6131 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6132 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6134 # define ISLOWER(c) \
6135 (('a' <= (c) && (c) <= 'i') \
6136 || ('j' <= (c) && (c) <= 'r') \
6137 || ('s' <= (c) && (c) <= 'z'))
6138 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6141 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6146 for (i = 0; i < 256; i++)
6147 if (XOR (islower (i), ISLOWER (i))
6148 || toupper (i) != TOUPPER (i))
6153 rm -f conftest
$ac_exeext
6154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6155 (eval $ac_link) 2>&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; }; then
6166 echo "$as_me: program exited with status $ac_status" >&5
6167 echo "$as_me: failed program was:" >&5
6168 sed 's/^/| /' conftest.
$ac_ext >&5
6171 ac_cv_header_stdc
=no
6173 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6177 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6178 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6179 if test $ac_cv_header_stdc = yes; then
6181 cat >>confdefs.h
<<\_ACEOF
6182 #define STDC_HEADERS 1
6187 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6188 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6189 if test "${ac_cv_header_time+set}" = set; then
6190 echo $ECHO_N "(cached) $ECHO_C" >&6
6192 cat >conftest.
$ac_ext <<_ACEOF
6195 cat confdefs.h
>>conftest.
$ac_ext
6196 cat >>conftest.
$ac_ext <<_ACEOF
6197 /* end confdefs.h. */
6198 #include <sys/types.h>
6199 #include <sys/time.h>
6205 if ((struct tm *) 0)
6211 rm -f conftest.
$ac_objext
6212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6213 (eval $ac_compile) 2>conftest.er1
6215 grep -v '^ *+' conftest.er1
>conftest.err
6217 cat conftest.err
>&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); } &&
6220 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; } &&
6226 { ac_try
='test -s conftest.$ac_objext'
6227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; }; then
6232 ac_cv_header_time
=yes
6234 echo "$as_me: failed program was:" >&5
6235 sed 's/^/| /' conftest.
$ac_ext >&5
6237 ac_cv_header_time
=no
6239 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6241 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6242 echo "${ECHO_T}$ac_cv_header_time" >&6
6243 if test $ac_cv_header_time = yes; then
6245 cat >>confdefs.h
<<\_ACEOF
6246 #define TIME_WITH_SYS_TIME 1
6251 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6252 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6253 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6256 cat >conftest.
$ac_ext <<_ACEOF
6259 cat confdefs.h
>>conftest.
$ac_ext
6260 cat >>conftest.
$ac_ext <<_ACEOF
6261 /* end confdefs.h. */
6262 $ac_includes_default
6267 char *p = (char *) sys_siglist;
6274 rm -f conftest.
$ac_objext
6275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6276 (eval $ac_compile) 2>conftest.er1
6278 grep -v '^ *+' conftest.er1
>conftest.err
6280 cat conftest.err
>&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); } &&
6283 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); }; } &&
6289 { ac_try
='test -s conftest.$ac_objext'
6290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }; }; then
6295 ac_cv_have_decl_sys_siglist
=yes
6297 echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.
$ac_ext >&5
6300 ac_cv_have_decl_sys_siglist
=no
6302 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6304 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6305 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6306 if test $ac_cv_have_decl_sys_siglist = yes; then
6308 cat >>confdefs.h
<<_ACEOF
6309 #define HAVE_DECL_SYS_SIGLIST 1
6314 cat >>confdefs.h
<<_ACEOF
6315 #define HAVE_DECL_SYS_SIGLIST 0
6322 if test $ac_cv_have_decl_sys_siglist != yes; then
6323 # For Tru64, at least:
6324 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6325 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6326 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 cat >conftest.
$ac_ext <<_ACEOF
6332 cat confdefs.h
>>conftest.
$ac_ext
6333 cat >>conftest.
$ac_ext <<_ACEOF
6334 /* end confdefs.h. */
6335 $ac_includes_default
6339 #ifndef __sys_siglist
6340 char *p = (char *) __sys_siglist;
6347 rm -f conftest.
$ac_objext
6348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6349 (eval $ac_compile) 2>conftest.er1
6351 grep -v '^ *+' conftest.er1
>conftest.err
6353 cat conftest.err
>&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } &&
6356 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); }; } &&
6362 { ac_try
='test -s conftest.$ac_objext'
6363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); }; }; then
6368 ac_cv_have_decl___sys_siglist
=yes
6370 echo "$as_me: failed program was:" >&5
6371 sed 's/^/| /' conftest.
$ac_ext >&5
6373 ac_cv_have_decl___sys_siglist
=no
6375 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6377 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6378 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6379 if test $ac_cv_have_decl___sys_siglist = yes; then
6381 cat >>confdefs.h
<<_ACEOF
6382 #define HAVE_DECL___SYS_SIGLIST 1
6387 cat >>confdefs.h
<<_ACEOF
6388 #define HAVE_DECL___SYS_SIGLIST 0
6395 if test $ac_cv_have_decl___sys_siglist = yes; then
6397 cat >>confdefs.h
<<\_ACEOF
6398 #define sys_siglist __sys_siglist
6403 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6404 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6405 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6406 echo $ECHO_N "(cached) $ECHO_C" >&6
6408 cat >conftest.
$ac_ext <<_ACEOF
6411 cat confdefs.h
>>conftest.
$ac_ext
6412 cat >>conftest.
$ac_ext <<_ACEOF
6413 /* end confdefs.h. */
6414 #include <sys/types.h>
6415 #include <sys/wait.h>
6417 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6420 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6428 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6433 rm -f conftest.
$ac_objext
6434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6435 (eval $ac_compile) 2>conftest.er1
6437 grep -v '^ *+' conftest.er1
>conftest.err
6439 cat conftest.err
>&5
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); } &&
6442 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); }; } &&
6448 { ac_try
='test -s conftest.$ac_objext'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; }; then
6454 ac_cv_header_sys_wait_h
=yes
6456 echo "$as_me: failed program was:" >&5
6457 sed 's/^/| /' conftest.
$ac_ext >&5
6459 ac_cv_header_sys_wait_h
=no
6461 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6463 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6464 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6465 if test $ac_cv_header_sys_wait_h = yes; then
6467 cat >>confdefs.h
<<\_ACEOF
6468 #define HAVE_SYS_WAIT_H 1
6474 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6475 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6476 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6479 cat >conftest.
$ac_ext <<_ACEOF
6482 cat confdefs.h
>>conftest.
$ac_ext
6483 cat >>conftest.
$ac_ext <<_ACEOF
6484 /* end confdefs.h. */
6485 #ifdef TIME_WITH_SYS_TIME
6486 #include <sys/time.h>
6489 #ifdef HAVE_SYS_TIME_H
6490 #include <sys/time.h>
6501 static struct utimbuf x; x.actime = x.modtime;
6506 rm -f conftest.
$ac_objext
6507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6508 (eval $ac_compile) 2>conftest.er1
6510 grep -v '^ *+' conftest.er1
>conftest.err
6512 cat conftest.err
>&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); } &&
6515 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }; } &&
6521 { ac_try
='test -s conftest.$ac_objext'
6522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }; }; then
6527 emacs_cv_struct_utimbuf
=yes
6529 echo "$as_me: failed program was:" >&5
6530 sed 's/^/| /' conftest.
$ac_ext >&5
6532 emacs_cv_struct_utimbuf
=no
6534 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6536 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6537 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6538 if test $emacs_cv_struct_utimbuf = yes; then
6540 cat >>confdefs.h
<<\_ACEOF
6541 #define HAVE_STRUCT_UTIMBUF 1
6546 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6547 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6548 if test "${ac_cv_type_signal+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6551 cat >conftest.
$ac_ext <<_ACEOF
6554 cat confdefs.h
>>conftest.
$ac_ext
6555 cat >>conftest.
$ac_ext <<_ACEOF
6556 /* end confdefs.h. */
6557 #include <sys/types.h>
6563 extern "C" void (*signal (int, void (*)(int)))(int);
6565 void (*signal ()) ();
6576 rm -f conftest.
$ac_objext
6577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6578 (eval $ac_compile) 2>conftest.er1
6580 grep -v '^ *+' conftest.er1
>conftest.err
6582 cat conftest.err
>&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); } &&
6585 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }; } &&
6591 { ac_try
='test -s conftest.$ac_objext'
6592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); }; }; then
6597 ac_cv_type_signal
=void
6599 echo "$as_me: failed program was:" >&5
6600 sed 's/^/| /' conftest.
$ac_ext >&5
6602 ac_cv_type_signal
=int
6604 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6606 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6607 echo "${ECHO_T}$ac_cv_type_signal" >&6
6609 cat >>confdefs.h
<<_ACEOF
6610 #define RETSIGTYPE $ac_cv_type_signal
6615 echo "$as_me:$LINENO: checking for speed_t" >&5
6616 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6617 if test "${emacs_cv_speed_t+set}" = set; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6620 cat >conftest.
$ac_ext <<_ACEOF
6623 cat confdefs.h
>>conftest.
$ac_ext
6624 cat >>conftest.
$ac_ext <<_ACEOF
6625 /* end confdefs.h. */
6626 #include <termios.h>
6635 rm -f conftest.
$ac_objext
6636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6637 (eval $ac_compile) 2>conftest.er1
6639 grep -v '^ *+' conftest.er1
>conftest.err
6641 cat conftest.err
>&5
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); } &&
6644 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); }; } &&
6650 { ac_try
='test -s conftest.$ac_objext'
6651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; }; then
6656 emacs_cv_speed_t
=yes
6658 echo "$as_me: failed program was:" >&5
6659 sed 's/^/| /' conftest.
$ac_ext >&5
6663 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6665 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6666 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6667 if test $emacs_cv_speed_t = yes; then
6669 cat >>confdefs.h
<<\_ACEOF
6670 #define HAVE_SPEED_T 1
6675 echo "$as_me:$LINENO: checking for struct timeval" >&5
6676 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6677 if test "${emacs_cv_struct_timeval+set}" = set; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6680 cat >conftest.
$ac_ext <<_ACEOF
6683 cat confdefs.h
>>conftest.
$ac_ext
6684 cat >>conftest.
$ac_ext <<_ACEOF
6685 /* end confdefs.h. */
6686 #ifdef TIME_WITH_SYS_TIME
6687 #include <sys/time.h>
6690 #ifdef HAVE_SYS_TIME_H
6691 #include <sys/time.h>
6699 static struct timeval x; x.tv_sec = x.tv_usec;
6704 rm -f conftest.
$ac_objext
6705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6706 (eval $ac_compile) 2>conftest.er1
6708 grep -v '^ *+' conftest.er1
>conftest.err
6710 cat conftest.err
>&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } &&
6713 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); }; } &&
6719 { ac_try
='test -s conftest.$ac_objext'
6720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); }; }; then
6725 emacs_cv_struct_timeval
=yes
6727 echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.
$ac_ext >&5
6730 emacs_cv_struct_timeval
=no
6732 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6734 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6735 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6736 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6737 if test $emacs_cv_struct_timeval = yes; then
6739 cat >>confdefs.h
<<\_ACEOF
6740 #define HAVE_TIMEVAL 1
6745 echo "$as_me:$LINENO: checking for struct exception" >&5
6746 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6747 if test "${emacs_cv_struct_exception+set}" = set; then
6748 echo $ECHO_N "(cached) $ECHO_C" >&6
6750 cat >conftest.
$ac_ext <<_ACEOF
6753 cat confdefs.h
>>conftest.
$ac_ext
6754 cat >>conftest.
$ac_ext <<_ACEOF
6755 /* end confdefs.h. */
6760 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6765 rm -f conftest.
$ac_objext
6766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6767 (eval $ac_compile) 2>conftest.er1
6769 grep -v '^ *+' conftest.er1
>conftest.err
6771 cat conftest.err
>&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } &&
6774 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); }; } &&
6780 { ac_try
='test -s conftest.$ac_objext'
6781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); }; }; then
6786 emacs_cv_struct_exception
=yes
6788 echo "$as_me: failed program was:" >&5
6789 sed 's/^/| /' conftest.
$ac_ext >&5
6791 emacs_cv_struct_exception
=no
6793 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6795 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6796 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6797 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6798 if test $emacs_cv_struct_exception != yes; then
6800 cat >>confdefs.h
<<\_ACEOF
6801 #define NO_MATHERR 1
6807 for ac_header
in sys
/socket.h
6809 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6811 echo "$as_me:$LINENO: checking for $ac_header" >&5
6812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6819 # Is the header compilable?
6820 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6822 cat >conftest.
$ac_ext <<_ACEOF
6825 cat confdefs.h
>>conftest.
$ac_ext
6826 cat >>conftest.
$ac_ext <<_ACEOF
6827 /* end confdefs.h. */
6828 $ac_includes_default
6829 #include <$ac_header>
6831 rm -f conftest.
$ac_objext
6832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6833 (eval $ac_compile) 2>conftest.er1
6835 grep -v '^ *+' conftest.er1
>conftest.err
6837 cat conftest.err
>&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); } &&
6840 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); }; } &&
6846 { ac_try
='test -s conftest.$ac_objext'
6847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); }; }; then
6852 ac_header_compiler
=yes
6854 echo "$as_me: failed program was:" >&5
6855 sed 's/^/| /' conftest.
$ac_ext >&5
6857 ac_header_compiler
=no
6859 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6860 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6861 echo "${ECHO_T}$ac_header_compiler" >&6
6863 # Is the header present?
6864 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6865 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6866 cat >conftest.
$ac_ext <<_ACEOF
6869 cat confdefs.h
>>conftest.
$ac_ext
6870 cat >>conftest.
$ac_ext <<_ACEOF
6871 /* end confdefs.h. */
6872 #include <$ac_header>
6874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6875 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6877 grep -v '^ *+' conftest.er1
>conftest.err
6879 cat conftest.err
>&5
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); } >/dev
/null
; then
6882 if test -s conftest.err
; then
6883 ac_cpp_err
=$ac_c_preproc_warn_flag
6884 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6891 if test -z "$ac_cpp_err"; then
6892 ac_header_preproc
=yes
6894 echo "$as_me: failed program was:" >&5
6895 sed 's/^/| /' conftest.
$ac_ext >&5
6897 ac_header_preproc
=no
6899 rm -f conftest.err conftest.
$ac_ext
6900 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6901 echo "${ECHO_T}$ac_header_preproc" >&6
6903 # So? What about this header?
6904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6910 ac_header_preproc
=yes
6913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6916 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6918 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6920 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6924 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6927 ## ------------------------------------------ ##
6928 ## Report this to the AC_PACKAGE_NAME lists. ##
6929 ## ------------------------------------------ ##
6932 sed "s/^/$as_me: WARNING: /" >&2
6935 echo "$as_me:$LINENO: checking for $ac_header" >&5
6936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6940 eval "$as_ac_Header=\$ac_header_preproc"
6942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6943 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6947 cat >>confdefs.h
<<_ACEOF
6948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6956 for ac_header
in net
/if.h
6958 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6959 echo "$as_me:$LINENO: checking for $ac_header" >&5
6960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6962 echo $ECHO_N "(cached) $ECHO_C" >&6
6964 cat >conftest.
$ac_ext <<_ACEOF
6967 cat confdefs.h
>>conftest.
$ac_ext
6968 cat >>conftest.
$ac_ext <<_ACEOF
6969 /* end confdefs.h. */
6970 $ac_includes_default
6971 #if HAVE_SYS_SOCKET_H
6972 #include <sys/socket.h>
6975 #include <$ac_header>
6977 rm -f conftest.
$ac_objext
6978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6979 (eval $ac_compile) 2>conftest.er1
6981 grep -v '^ *+' conftest.er1
>conftest.err
6983 cat conftest.err
>&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); } &&
6986 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); }; } &&
6992 { ac_try
='test -s conftest.$ac_objext'
6993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); }; }; then
6998 eval "$as_ac_Header=yes"
7000 echo "$as_me: failed program was:" >&5
7001 sed 's/^/| /' conftest.
$ac_ext >&5
7003 eval "$as_ac_Header=no"
7005 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7010 cat >>confdefs.h
<<_ACEOF
7011 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7019 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7020 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7021 if test "${ac_cv_struct_tm+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7024 cat >conftest.
$ac_ext <<_ACEOF
7027 cat confdefs.h
>>conftest.
$ac_ext
7028 cat >>conftest.
$ac_ext <<_ACEOF
7029 /* end confdefs.h. */
7030 #include <sys/types.h>
7036 struct tm *tp; tp->tm_sec;
7041 rm -f conftest.
$ac_objext
7042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7043 (eval $ac_compile) 2>conftest.er1
7045 grep -v '^ *+' conftest.er1
>conftest.err
7047 cat conftest.err
>&5
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); } &&
7050 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); }; } &&
7056 { ac_try
='test -s conftest.$ac_objext'
7057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); }; }; then
7062 ac_cv_struct_tm
=time.h
7064 echo "$as_me: failed program was:" >&5
7065 sed 's/^/| /' conftest.
$ac_ext >&5
7067 ac_cv_struct_tm
=sys
/time.h
7069 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7071 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7072 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7073 if test $ac_cv_struct_tm = sys
/time.h
; then
7075 cat >>confdefs.h
<<\_ACEOF
7076 #define TM_IN_SYS_TIME 1
7081 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7082 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
7083 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7086 cat >conftest.
$ac_ext <<_ACEOF
7089 cat confdefs.h
>>conftest.
$ac_ext
7090 cat >>conftest.
$ac_ext <<_ACEOF
7091 /* end confdefs.h. */
7092 #include <sys/types.h>
7093 #include <$ac_cv_struct_tm>
7099 static struct tm ac_aggr;
7100 if (ac_aggr.tm_zone)
7106 rm -f conftest.
$ac_objext
7107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7108 (eval $ac_compile) 2>conftest.er1
7110 grep -v '^ *+' conftest.er1
>conftest.err
7112 cat conftest.err
>&5
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); } &&
7115 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }; } &&
7121 { ac_try
='test -s conftest.$ac_objext'
7122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); }; }; then
7127 ac_cv_member_struct_tm_tm_zone
=yes
7129 echo "$as_me: failed program was:" >&5
7130 sed 's/^/| /' conftest.
$ac_ext >&5
7132 cat >conftest.
$ac_ext <<_ACEOF
7135 cat confdefs.h
>>conftest.
$ac_ext
7136 cat >>conftest.
$ac_ext <<_ACEOF
7137 /* end confdefs.h. */
7138 #include <sys/types.h>
7139 #include <$ac_cv_struct_tm>
7145 static struct tm ac_aggr;
7146 if (sizeof ac_aggr.tm_zone)
7152 rm -f conftest.
$ac_objext
7153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7154 (eval $ac_compile) 2>conftest.er1
7156 grep -v '^ *+' conftest.er1
>conftest.err
7158 cat conftest.err
>&5
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); } &&
7161 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); }; } &&
7167 { ac_try
='test -s conftest.$ac_objext'
7168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); }; }; then
7173 ac_cv_member_struct_tm_tm_zone
=yes
7175 echo "$as_me: failed program was:" >&5
7176 sed 's/^/| /' conftest.
$ac_ext >&5
7178 ac_cv_member_struct_tm_tm_zone
=no
7180 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7182 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7184 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7185 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7186 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7188 cat >>confdefs.h
<<_ACEOF
7189 #define HAVE_STRUCT_TM_TM_ZONE 1
7195 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7197 cat >>confdefs.h
<<\_ACEOF
7198 #define HAVE_TM_ZONE 1
7202 echo "$as_me:$LINENO: checking for tzname" >&5
7203 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7204 if test "${ac_cv_var_tzname+set}" = set; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
7207 cat >conftest.
$ac_ext <<_ACEOF
7210 cat confdefs.h
>>conftest.
$ac_ext
7211 cat >>conftest.
$ac_ext <<_ACEOF
7212 /* end confdefs.h. */
7214 #ifndef tzname /* For SGI. */
7215 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7226 rm -f conftest.
$ac_objext conftest
$ac_exeext
7227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7228 (eval $ac_link) 2>conftest.er1
7230 grep -v '^ *+' conftest.er1
>conftest.err
7232 cat conftest.err
>&5
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); } &&
7235 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); }; } &&
7241 { ac_try
='test -s conftest$ac_exeext'
7242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); }; }; then
7247 ac_cv_var_tzname
=yes
7249 echo "$as_me: failed program was:" >&5
7250 sed 's/^/| /' conftest.
$ac_ext >&5
7254 rm -f conftest.err conftest.
$ac_objext \
7255 conftest
$ac_exeext conftest.
$ac_ext
7257 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7258 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7259 if test $ac_cv_var_tzname = yes; then
7261 cat >>confdefs.h
<<\_ACEOF
7262 #define HAVE_TZNAME 1
7268 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7269 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7270 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
7273 cat >conftest.
$ac_ext <<_ACEOF
7276 cat confdefs.h
>>conftest.
$ac_ext
7277 cat >>conftest.
$ac_ext <<_ACEOF
7278 /* end confdefs.h. */
7284 static struct tm ac_aggr;
7285 if (ac_aggr.tm_gmtoff)
7291 rm -f conftest.
$ac_objext
7292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7293 (eval $ac_compile) 2>conftest.er1
7295 grep -v '^ *+' conftest.er1
>conftest.err
7297 cat conftest.err
>&5
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); } &&
7300 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); }; } &&
7306 { ac_try
='test -s conftest.$ac_objext'
7307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); }; }; then
7312 ac_cv_member_struct_tm_tm_gmtoff
=yes
7314 echo "$as_me: failed program was:" >&5
7315 sed 's/^/| /' conftest.
$ac_ext >&5
7317 cat >conftest.
$ac_ext <<_ACEOF
7320 cat confdefs.h
>>conftest.
$ac_ext
7321 cat >>conftest.
$ac_ext <<_ACEOF
7322 /* end confdefs.h. */
7328 static struct tm ac_aggr;
7329 if (sizeof ac_aggr.tm_gmtoff)
7335 rm -f conftest.
$ac_objext
7336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7337 (eval $ac_compile) 2>conftest.er1
7339 grep -v '^ *+' conftest.er1
>conftest.err
7341 cat conftest.err
>&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); } &&
7344 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); }; } &&
7350 { ac_try
='test -s conftest.$ac_objext'
7351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); }; }; then
7356 ac_cv_member_struct_tm_tm_gmtoff
=yes
7358 echo "$as_me: failed program was:" >&5
7359 sed 's/^/| /' conftest.
$ac_ext >&5
7361 ac_cv_member_struct_tm_tm_gmtoff
=no
7363 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7365 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7367 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7368 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7369 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7371 cat >>confdefs.h
<<\_ACEOF
7372 #define HAVE_TM_GMTOFF 1
7377 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7378 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7379 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
7382 cat >conftest.
$ac_ext <<_ACEOF
7385 cat confdefs.h
>>conftest.
$ac_ext
7386 cat >>conftest.
$ac_ext <<_ACEOF
7387 /* end confdefs.h. */
7388 $ac_includes_default
7389 #if HAVE_SYS_SOCKET_H
7390 #include <sys/socket.h>
7399 static struct ifreq ac_aggr;
7400 if (ac_aggr.ifr_flags)
7406 rm -f conftest.
$ac_objext
7407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7408 (eval $ac_compile) 2>conftest.er1
7410 grep -v '^ *+' conftest.er1
>conftest.err
7412 cat conftest.err
>&5
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); } &&
7415 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); }; } &&
7421 { ac_try
='test -s conftest.$ac_objext'
7422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); }; }; then
7427 ac_cv_member_struct_ifreq_ifr_flags
=yes
7429 echo "$as_me: failed program was:" >&5
7430 sed 's/^/| /' conftest.
$ac_ext >&5
7432 cat >conftest.
$ac_ext <<_ACEOF
7435 cat confdefs.h
>>conftest.
$ac_ext
7436 cat >>conftest.
$ac_ext <<_ACEOF
7437 /* end confdefs.h. */
7438 $ac_includes_default
7439 #if HAVE_SYS_SOCKET_H
7440 #include <sys/socket.h>
7449 static struct ifreq ac_aggr;
7450 if (sizeof ac_aggr.ifr_flags)
7456 rm -f conftest.
$ac_objext
7457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7458 (eval $ac_compile) 2>conftest.er1
7460 grep -v '^ *+' conftest.er1
>conftest.err
7462 cat conftest.err
>&5
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); } &&
7465 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470 (exit $ac_status); }; } &&
7471 { ac_try
='test -s conftest.$ac_objext'
7472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); }; }; then
7477 ac_cv_member_struct_ifreq_ifr_flags
=yes
7479 echo "$as_me: failed program was:" >&5
7480 sed 's/^/| /' conftest.
$ac_ext >&5
7482 ac_cv_member_struct_ifreq_ifr_flags
=no
7484 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7486 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7488 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7489 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7490 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7492 cat >>confdefs.h
<<_ACEOF
7493 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7498 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7499 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7500 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7503 cat >conftest.
$ac_ext <<_ACEOF
7506 cat confdefs.h
>>conftest.
$ac_ext
7507 cat >>conftest.
$ac_ext <<_ACEOF
7508 /* end confdefs.h. */
7509 $ac_includes_default
7510 #if HAVE_SYS_SOCKET_H
7511 #include <sys/socket.h>
7520 static struct ifreq ac_aggr;
7521 if (ac_aggr.ifr_hwaddr)
7527 rm -f conftest.
$ac_objext
7528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7529 (eval $ac_compile) 2>conftest.er1
7531 grep -v '^ *+' conftest.er1
>conftest.err
7533 cat conftest.err
>&5
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); } &&
7536 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); }; } &&
7542 { ac_try
='test -s conftest.$ac_objext'
7543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); }; }; then
7548 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7550 echo "$as_me: failed program was:" >&5
7551 sed 's/^/| /' conftest.
$ac_ext >&5
7553 cat >conftest.
$ac_ext <<_ACEOF
7556 cat confdefs.h
>>conftest.
$ac_ext
7557 cat >>conftest.
$ac_ext <<_ACEOF
7558 /* end confdefs.h. */
7559 $ac_includes_default
7560 #if HAVE_SYS_SOCKET_H
7561 #include <sys/socket.h>
7570 static struct ifreq ac_aggr;
7571 if (sizeof ac_aggr.ifr_hwaddr)
7577 rm -f conftest.
$ac_objext
7578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7579 (eval $ac_compile) 2>conftest.er1
7581 grep -v '^ *+' conftest.er1
>conftest.err
7583 cat conftest.err
>&5
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); } &&
7586 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); }; } &&
7592 { ac_try
='test -s conftest.$ac_objext'
7593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); }; }; then
7598 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7600 echo "$as_me: failed program was:" >&5
7601 sed 's/^/| /' conftest.
$ac_ext >&5
7603 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
7605 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7607 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7609 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7610 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7611 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7613 cat >>confdefs.h
<<_ACEOF
7614 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7619 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7620 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7621 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7622 echo $ECHO_N "(cached) $ECHO_C" >&6
7624 cat >conftest.
$ac_ext <<_ACEOF
7627 cat confdefs.h
>>conftest.
$ac_ext
7628 cat >>conftest.
$ac_ext <<_ACEOF
7629 /* end confdefs.h. */
7630 $ac_includes_default
7631 #if HAVE_SYS_SOCKET_H
7632 #include <sys/socket.h>
7641 static struct ifreq ac_aggr;
7642 if (ac_aggr.ifr_netmask)
7648 rm -f conftest.
$ac_objext
7649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7650 (eval $ac_compile) 2>conftest.er1
7652 grep -v '^ *+' conftest.er1
>conftest.err
7654 cat conftest.err
>&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } &&
7657 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); }; } &&
7663 { ac_try
='test -s conftest.$ac_objext'
7664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); }; }; then
7669 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7671 echo "$as_me: failed program was:" >&5
7672 sed 's/^/| /' conftest.
$ac_ext >&5
7674 cat >conftest.
$ac_ext <<_ACEOF
7677 cat confdefs.h
>>conftest.
$ac_ext
7678 cat >>conftest.
$ac_ext <<_ACEOF
7679 /* end confdefs.h. */
7680 $ac_includes_default
7681 #if HAVE_SYS_SOCKET_H
7682 #include <sys/socket.h>
7691 static struct ifreq ac_aggr;
7692 if (sizeof ac_aggr.ifr_netmask)
7698 rm -f conftest.
$ac_objext
7699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7700 (eval $ac_compile) 2>conftest.er1
7702 grep -v '^ *+' conftest.er1
>conftest.err
7704 cat conftest.err
>&5
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); } &&
7707 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); }; } &&
7713 { ac_try
='test -s conftest.$ac_objext'
7714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); }; }; then
7719 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7721 echo "$as_me: failed program was:" >&5
7722 sed 's/^/| /' conftest.
$ac_ext >&5
7724 ac_cv_member_struct_ifreq_ifr_netmask
=no
7726 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7728 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7730 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7731 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7732 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7734 cat >>confdefs.h
<<_ACEOF
7735 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7740 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7741 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7742 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
7745 cat >conftest.
$ac_ext <<_ACEOF
7748 cat confdefs.h
>>conftest.
$ac_ext
7749 cat >>conftest.
$ac_ext <<_ACEOF
7750 /* end confdefs.h. */
7751 $ac_includes_default
7752 #if HAVE_SYS_SOCKET_H
7753 #include <sys/socket.h>
7762 static struct ifreq ac_aggr;
7763 if (ac_aggr.ifr_broadaddr)
7769 rm -f conftest.
$ac_objext
7770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7771 (eval $ac_compile) 2>conftest.er1
7773 grep -v '^ *+' conftest.er1
>conftest.err
7775 cat conftest.err
>&5
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); } &&
7778 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); }; } &&
7784 { ac_try
='test -s conftest.$ac_objext'
7785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); }; }; then
7790 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7792 echo "$as_me: failed program was:" >&5
7793 sed 's/^/| /' conftest.
$ac_ext >&5
7795 cat >conftest.
$ac_ext <<_ACEOF
7798 cat confdefs.h
>>conftest.
$ac_ext
7799 cat >>conftest.
$ac_ext <<_ACEOF
7800 /* end confdefs.h. */
7801 $ac_includes_default
7802 #if HAVE_SYS_SOCKET_H
7803 #include <sys/socket.h>
7812 static struct ifreq ac_aggr;
7813 if (sizeof ac_aggr.ifr_broadaddr)
7819 rm -f conftest.
$ac_objext
7820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7821 (eval $ac_compile) 2>conftest.er1
7823 grep -v '^ *+' conftest.er1
>conftest.err
7825 cat conftest.err
>&5
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); } &&
7828 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); }; } &&
7834 { ac_try
='test -s conftest.$ac_objext'
7835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); }; }; then
7840 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7842 echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.
$ac_ext >&5
7845 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7847 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7849 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7851 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7852 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7853 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7855 cat >>confdefs.h
<<_ACEOF
7856 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7861 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7862 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7863 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7866 cat >conftest.
$ac_ext <<_ACEOF
7869 cat confdefs.h
>>conftest.
$ac_ext
7870 cat >>conftest.
$ac_ext <<_ACEOF
7871 /* end confdefs.h. */
7872 $ac_includes_default
7873 #if HAVE_SYS_SOCKET_H
7874 #include <sys/socket.h>
7883 static struct ifreq ac_aggr;
7884 if (ac_aggr.ifr_addr)
7890 rm -f conftest.
$ac_objext
7891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7892 (eval $ac_compile) 2>conftest.er1
7894 grep -v '^ *+' conftest.er1
>conftest.err
7896 cat conftest.err
>&5
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); } &&
7899 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; } &&
7905 { ac_try
='test -s conftest.$ac_objext'
7906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); }; }; then
7911 ac_cv_member_struct_ifreq_ifr_addr
=yes
7913 echo "$as_me: failed program was:" >&5
7914 sed 's/^/| /' conftest.
$ac_ext >&5
7916 cat >conftest.
$ac_ext <<_ACEOF
7919 cat confdefs.h
>>conftest.
$ac_ext
7920 cat >>conftest.
$ac_ext <<_ACEOF
7921 /* end confdefs.h. */
7922 $ac_includes_default
7923 #if HAVE_SYS_SOCKET_H
7924 #include <sys/socket.h>
7933 static struct ifreq ac_aggr;
7934 if (sizeof ac_aggr.ifr_addr)
7940 rm -f conftest.
$ac_objext
7941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7942 (eval $ac_compile) 2>conftest.er1
7944 grep -v '^ *+' conftest.er1
>conftest.err
7946 cat conftest.err
>&5
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); } &&
7949 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); }; } &&
7955 { ac_try
='test -s conftest.$ac_objext'
7956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); }; }; then
7961 ac_cv_member_struct_ifreq_ifr_addr
=yes
7963 echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.
$ac_ext >&5
7966 ac_cv_member_struct_ifreq_ifr_addr
=no
7968 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7970 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7972 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7973 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7974 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7976 cat >>confdefs.h
<<_ACEOF
7977 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7985 echo "$as_me:$LINENO: checking for function prototypes" >&5
7986 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7987 if test "$ac_cv_prog_cc_stdc" != no
; then
7988 echo "$as_me:$LINENO: result: yes" >&5
7989 echo "${ECHO_T}yes" >&6
7991 cat >>confdefs.h
<<\_ACEOF
7992 #define PROTOTYPES 1
7996 cat >>confdefs.h
<<\_ACEOF
7997 #define __PROTOTYPES 1
8001 echo "$as_me:$LINENO: result: no" >&5
8002 echo "${ECHO_T}no" >&6
8005 echo "$as_me:$LINENO: checking for working volatile" >&5
8006 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8007 if test "${ac_cv_c_volatile+set}" = set; then
8008 echo $ECHO_N "(cached) $ECHO_C" >&6
8010 cat >conftest.
$ac_ext <<_ACEOF
8013 cat confdefs.h
>>conftest.
$ac_ext
8014 cat >>conftest.
$ac_ext <<_ACEOF
8015 /* end confdefs.h. */
8027 rm -f conftest.
$ac_objext
8028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8029 (eval $ac_compile) 2>conftest.er1
8031 grep -v '^ *+' conftest.er1
>conftest.err
8033 cat conftest.err
>&5
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); } &&
8036 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); }; } &&
8042 { ac_try
='test -s conftest.$ac_objext'
8043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); }; }; then
8048 ac_cv_c_volatile
=yes
8050 echo "$as_me: failed program was:" >&5
8051 sed 's/^/| /' conftest.
$ac_ext >&5
8055 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8057 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8058 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8059 if test $ac_cv_c_volatile = no
; then
8061 cat >>confdefs.h
<<\_ACEOF
8067 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8068 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8069 if test "${ac_cv_c_const+set}" = set; then
8070 echo $ECHO_N "(cached) $ECHO_C" >&6
8072 cat >conftest.
$ac_ext <<_ACEOF
8075 cat confdefs.h
>>conftest.
$ac_ext
8076 cat >>conftest.
$ac_ext <<_ACEOF
8077 /* end confdefs.h. */
8082 /* FIXME: Include the comments suggested by Paul. */
8084 /* Ultrix mips cc rejects this. */
8085 typedef int charset[2];
8087 /* SunOS 4.1.1 cc rejects this. */
8088 char const *const *ccp;
8090 /* NEC SVR4.0.2 mips cc rejects this. */
8091 struct point {int x, y;};
8092 static struct point const zero = {0,0};
8093 /* AIX XL C 1.02.0.0 rejects this.
8094 It does not let you subtract one const X* pointer from another in
8095 an arm of an if-expression whose if-part is not a constant
8097 const char *g = "string";
8098 ccp = &g + (g ? g-g : 0);
8099 /* HPUX 7.0 cc rejects these. */
8102 ccp = (char const *const *) p;
8103 { /* SCO 3.2v4 cc rejects this. */
8105 char const *s = 0 ? (char *) 0 : (char const *) 0;
8109 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8111 const int *foo = &x[0];
8114 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8115 typedef const int *iptr;
8119 { /* AIX XL C 1.02.0.0 rejects this saying
8120 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8121 struct s { int j; const int *ap[3]; };
8122 struct s *b; b->j = 5;
8124 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8133 rm -f conftest.
$ac_objext
8134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8135 (eval $ac_compile) 2>conftest.er1
8137 grep -v '^ *+' conftest.er1
>conftest.err
8139 cat conftest.err
>&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); } &&
8142 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); }; } &&
8148 { ac_try
='test -s conftest.$ac_objext'
8149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); }; }; then
8156 echo "$as_me: failed program was:" >&5
8157 sed 's/^/| /' conftest.
$ac_ext >&5
8161 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8163 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8164 echo "${ECHO_T}$ac_cv_c_const" >&6
8165 if test $ac_cv_c_const = no
; then
8167 cat >>confdefs.h
<<\_ACEOF
8173 echo "$as_me:$LINENO: checking for void * support" >&5
8174 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8175 if test "${emacs_cv_void_star+set}" = set; then
8176 echo $ECHO_N "(cached) $ECHO_C" >&6
8178 cat >conftest.
$ac_ext <<_ACEOF
8181 cat confdefs.h
>>conftest.
$ac_ext
8182 cat >>conftest.
$ac_ext <<_ACEOF
8183 /* end confdefs.h. */
8193 rm -f conftest.
$ac_objext
8194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8195 (eval $ac_compile) 2>conftest.er1
8197 grep -v '^ *+' conftest.er1
>conftest.err
8199 cat conftest.err
>&5
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); } &&
8202 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); }; } &&
8208 { ac_try
='test -s conftest.$ac_objext'
8209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); }; }; then
8214 emacs_cv_void_star
=yes
8216 echo "$as_me: failed program was:" >&5
8217 sed 's/^/| /' conftest.
$ac_ext >&5
8219 emacs_cv_void_star
=no
8221 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8223 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8224 echo "${ECHO_T}$emacs_cv_void_star" >&6
8225 if test $emacs_cv_void_star = yes; then
8226 cat >>confdefs.h
<<\_ACEOF
8227 #define POINTER_TYPE void
8231 cat >>confdefs.h
<<\_ACEOF
8232 #define POINTER_TYPE char
8241 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8242 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8243 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
8244 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8245 echo $ECHO_N "(cached) $ECHO_C" >&6
8247 cat >conftest.
make <<\_ACEOF
8249 @
echo 'ac_maketemp="$(MAKE)"'
8251 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8252 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8253 if test -n "$ac_maketemp"; then
8254 eval ac_cv_prog_make_
${ac_make}_set
=yes
8256 eval ac_cv_prog_make_
${ac_make}_set
=no
8260 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8261 echo "$as_me:$LINENO: result: yes" >&5
8262 echo "${ECHO_T}yes" >&6
8265 echo "$as_me:$LINENO: result: no" >&5
8266 echo "${ECHO_T}no" >&6
8267 SET_MAKE
="MAKE=${MAKE-make}"
8271 echo "$as_me:$LINENO: checking for long file names" >&5
8272 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8273 if test "${ac_cv_sys_long_file_names+set}" = set; then
8274 echo $ECHO_N "(cached) $ECHO_C" >&6
8276 ac_cv_sys_long_file_names
=yes
8277 # Test for long file names in all the places we know might matter:
8278 # . the current directory, where building will happen
8279 # $prefix/lib where we will be installing things
8280 # $exec_prefix/lib likewise
8281 # eval it to expand exec_prefix.
8282 # $TMPDIR if set, where it might want to write temporary files
8283 # if $TMPDIR is not set:
8284 # /tmp where it might want to write temporary files
8287 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8290 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
8292 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8293 test -d $ac_dir ||
continue
8294 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
8295 ac_xdir
=$ac_dir/cf$$
8296 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
8297 ac_tf1
=$ac_xdir/conftest9012345
8298 ac_tf2
=$ac_xdir/conftest9012346
8299 (echo 1 >$ac_tf1) 2>/dev
/null
8300 (echo 2 >$ac_tf2) 2>/dev
/null
8301 ac_val
=`cat $ac_tf1 2>/dev/null`
8302 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
8303 ac_cv_sys_long_file_names
=no
8304 rm -rf $ac_xdir 2>/dev
/null
8307 rm -rf $ac_xdir 2>/dev
/null
8310 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8311 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8312 if test $ac_cv_sys_long_file_names = yes; then
8314 cat >>confdefs.h
<<\_ACEOF
8315 #define HAVE_LONG_FILE_NAMES 1
8321 #### Choose a window system.
8323 echo "$as_me:$LINENO: checking for X" >&5
8324 echo $ECHO_N "checking for X... $ECHO_C" >&6
8326 ac_path_x_has_been_run
=yes
8328 # Check whether --with-x or --without-x was given.
8329 if test "${with_x+set}" = set; then
8333 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8334 if test "x$with_x" = xno
; then
8335 # The user explicitly disabled X.
8338 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
8339 # Both variables are already set.
8342 if test "${ac_cv_have_x+set}" = set; then
8343 echo $ECHO_N "(cached) $ECHO_C" >&6
8345 # One or both of the vars are not set, and there is no cached value.
8346 ac_x_includes
=no ac_x_libraries
=no
8348 if mkdir conftest.dir
; then
8350 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8351 cat >Imakefile
<<'_ACEOF'
8353 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8355 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8356 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8357 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8358 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8359 for ac_extension
in a so sl
; do
8360 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
8361 test -f $ac_im_libdir/libX11.
$ac_extension; then
8362 ac_im_usrlibdir
=$ac_im_libdir; break
8365 # Screen out bogus values from the imake configuration. They are
8366 # bogus both because they are the default anyway, and because
8367 # using them would break gcc on systems where it needs fixed includes.
8368 case $ac_im_incroot in
8370 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8372 case $ac_im_usrlibdir in
8374 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8381 # Standard set of common directories for X headers.
8382 # Check X11 before X11Rn because it is often a symlink to the current release.
8394 /usr/local/X11/include
8395 /usr/local/X11R6/include
8396 /usr/local/X11R5/include
8397 /usr/local/X11R4/include
8399 /usr/local/include/X11
8400 /usr/local/include/X11R6
8401 /usr/local/include/X11R5
8402 /usr/local/include/X11R4
8406 /usr/XFree86/include/X11
8410 /usr/unsupported/include
8412 /usr/local/x11r5/include
8413 /usr/lpp/Xamples/include
8415 /usr/openwin/include
8416 /usr/openwin/share/include'
8418 if test "$ac_x_includes" = no
; then
8419 # Guess where to find include files, by looking for a specified header file.
8420 # First, try using that file with no special directory specified.
8421 cat >conftest.
$ac_ext <<_ACEOF
8424 cat confdefs.h
>>conftest.
$ac_ext
8425 cat >>conftest.
$ac_ext <<_ACEOF
8426 /* end confdefs.h. */
8427 #include <X11/Intrinsic.h>
8429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8430 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8432 grep -v '^ *+' conftest.er1
>conftest.err
8434 cat conftest.err
>&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); } >/dev
/null
; then
8437 if test -s conftest.err
; then
8438 ac_cpp_err
=$ac_c_preproc_warn_flag
8439 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8446 if test -z "$ac_cpp_err"; then
8447 # We can compile using X headers with no special include directory.
8450 echo "$as_me: failed program was:" >&5
8451 sed 's/^/| /' conftest.
$ac_ext >&5
8453 for ac_dir
in $ac_x_header_dirs; do
8454 if test -r "$ac_dir/X11/Intrinsic.h"; then
8455 ac_x_includes
=$ac_dir
8460 rm -f conftest.err conftest.
$ac_ext
8461 fi # $ac_x_includes = no
8463 if test "$ac_x_libraries" = no
; then
8464 # Check for the libraries.
8465 # See if we find them without any special options.
8466 # Don't add to $LIBS permanently.
8469 cat >conftest.
$ac_ext <<_ACEOF
8472 cat confdefs.h
>>conftest.
$ac_ext
8473 cat >>conftest.
$ac_ext <<_ACEOF
8474 /* end confdefs.h. */
8475 #include <X11/Intrinsic.h>
8484 rm -f conftest.
$ac_objext conftest
$ac_exeext
8485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8486 (eval $ac_link) 2>conftest.er1
8488 grep -v '^ *+' conftest.er1
>conftest.err
8490 cat conftest.err
>&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); } &&
8493 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); }; } &&
8499 { ac_try
='test -s conftest$ac_exeext'
8500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); }; }; then
8506 # We can link X programs with no special library path.
8509 echo "$as_me: failed program was:" >&5
8510 sed 's/^/| /' conftest.
$ac_ext >&5
8513 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8515 # Don't even attempt the hair of trying to link an X program!
8516 for ac_extension
in a so sl
; do
8517 if test -r $ac_dir/libXt.
$ac_extension; then
8518 ac_x_libraries
=$ac_dir
8524 rm -f conftest.err conftest.
$ac_objext \
8525 conftest
$ac_exeext conftest.
$ac_ext
8526 fi # $ac_x_libraries = no
8528 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8529 # Didn't find X anywhere. Cache the known absence of X.
8530 ac_cv_have_x
="have_x=no"
8532 # Record where we found X for the cache.
8533 ac_cv_have_x
="have_x=yes \
8534 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8539 eval "$ac_cv_have_x"
8542 if test "$have_x" != yes; then
8543 echo "$as_me:$LINENO: result: $have_x" >&5
8544 echo "${ECHO_T}$have_x" >&6
8547 # If each of the values was on the command line, it overrides each guess.
8548 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8549 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8550 # Update the cache value to reflect the command line values.
8551 ac_cv_have_x
="have_x=yes \
8552 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8553 # It might be that x_includes is empty (headers are found in the
8554 # standard search path. Then output the corresponding message
8555 ac_out_x_includes
=$x_includes
8556 test "x$x_includes" = x
&& ac_out_x_includes
="in standard search path"
8557 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8558 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
8561 if test "$no_x" = yes; then
8567 if test "${x_libraries}" != NONE
; then
8568 if test -n "${x_libraries}"; then
8569 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8570 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8572 x_default_search_path
=""
8573 x_search_path
=${x_libraries}
8574 if test -z "${x_search_path}"; then
8575 x_search_path
=/usr
/lib
8577 for x_library
in `echo ${x_search_path}: | \
8578 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8580 ${x_library}/X11/%L/%T/%N%C%S:\
8581 ${x_library}/X11/%l/%T/%N%C%S:\
8582 ${x_library}/X11/%T/%N%C%S:\
8583 ${x_library}/X11/%L/%T/%N%S:\
8584 ${x_library}/X11/%l/%T/%N%S:\
8585 ${x_library}/X11/%T/%N%S"
8586 if test x
"${x_default_search_path}" = x
; then
8587 x_default_search_path
=${x_search_path}
8589 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8593 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8594 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8597 if test x
"${x_includes}" = x
; then
8598 bitmapdir
=/usr
/include
/X11
/bitmaps
8600 # accumulate include directories that have X11 bitmap subdirectories
8602 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8603 if test -d "${bmd}/X11/bitmaps"; then
8604 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8606 if test -d "${bmd}/bitmaps"; then
8607 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8610 if test ${bmd_acc} != "dummyval"; then
8611 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8616 if test "${with_carbon}" != no
; then
8617 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8618 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8619 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8620 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8621 echo $ECHO_N "(cached) $ECHO_C" >&6
8623 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8624 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8626 # Is the header compilable?
8627 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8628 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8629 cat >conftest.
$ac_ext <<_ACEOF
8632 cat confdefs.h
>>conftest.
$ac_ext
8633 cat >>conftest.
$ac_ext <<_ACEOF
8634 /* end confdefs.h. */
8635 $ac_includes_default
8636 #include <Carbon/Carbon.h>
8638 rm -f conftest.
$ac_objext
8639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8640 (eval $ac_compile) 2>conftest.er1
8642 grep -v '^ *+' conftest.er1
>conftest.err
8644 cat conftest.err
>&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); } &&
8647 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); }; } &&
8653 { ac_try
='test -s conftest.$ac_objext'
8654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); }; }; then
8659 ac_header_compiler
=yes
8661 echo "$as_me: failed program was:" >&5
8662 sed 's/^/| /' conftest.
$ac_ext >&5
8664 ac_header_compiler
=no
8666 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8667 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8668 echo "${ECHO_T}$ac_header_compiler" >&6
8670 # Is the header present?
8671 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8672 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8673 cat >conftest.
$ac_ext <<_ACEOF
8676 cat confdefs.h
>>conftest.
$ac_ext
8677 cat >>conftest.
$ac_ext <<_ACEOF
8678 /* end confdefs.h. */
8679 #include <Carbon/Carbon.h>
8681 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8682 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8684 grep -v '^ *+' conftest.er1
>conftest.err
8686 cat conftest.err
>&5
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); } >/dev
/null
; then
8689 if test -s conftest.err
; then
8690 ac_cpp_err
=$ac_c_preproc_warn_flag
8691 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8698 if test -z "$ac_cpp_err"; then
8699 ac_header_preproc
=yes
8701 echo "$as_me: failed program was:" >&5
8702 sed 's/^/| /' conftest.
$ac_ext >&5
8704 ac_header_preproc
=no
8706 rm -f conftest.err conftest.
$ac_ext
8707 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8708 echo "${ECHO_T}$ac_header_preproc" >&6
8710 # So? What about this header?
8711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8713 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8714 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8715 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8716 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8717 ac_header_preproc
=yes
8720 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8721 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8722 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8723 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8724 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8725 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8726 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8727 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8728 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8729 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8730 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8731 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8734 ## ------------------------------------------ ##
8735 ## Report this to the AC_PACKAGE_NAME lists. ##
8736 ## ------------------------------------------ ##
8739 sed "s/^/$as_me: WARNING: /" >&2
8742 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8743 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8744 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8747 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
8749 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8750 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8753 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8759 if test "${window_system}" = x11
&& test "${HAVE_CARBON}" = yes; then
8760 if test "${with_carbon+set}" != set \
8761 && test "${carbon_appdir_x+set}" != set; then
8765 if test "${HAVE_CARBON}" = yes; then
8769 case "${window_system}" in
8773 case "${with_x_toolkit}" in
8774 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8775 motif
) USE_X_TOOLKIT
=MOTIF
;;
8777 USE_X_TOOLKIT
=none
;;
8778 no
) USE_X_TOOLKIT
=none
;;
8779 * ) USE_X_TOOLKIT
=maybe
;;
8789 ### If we're using X11, we should use the X menu package.
8792 yes ) HAVE_MENUS
=yes ;;
8795 if test "${opsys}" = "hpux9"; then
8796 case "${x_libraries}" in
8798 opsysfile
="s/hpux9-x11r4.h"
8803 if test "${opsys}" = "hpux9shr"; then
8804 case "${x_libraries}" in
8806 opsysfile
="s/hpux9shxr4.h"
8811 ### Compute the unexec source name from the object name.
8812 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
8814 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8815 # Assume not, until told otherwise.
8818 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8819 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8820 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8821 echo $ECHO_N "(cached) $ECHO_C" >&6
8823 cat >conftest.
$ac_ext <<_ACEOF
8826 cat confdefs.h
>>conftest.
$ac_ext
8827 cat >>conftest.
$ac_ext <<_ACEOF
8828 /* end confdefs.h. */
8829 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8831 #define malloc_get_state innocuous_malloc_get_state
8833 /* System header to define __stub macros and hopefully few prototypes,
8834 which can conflict with char malloc_get_state (); below.
8835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8836 <limits.h> exists even on freestanding compilers. */
8839 # include <limits.h>
8841 # include <assert.h>
8844 #undef malloc_get_state
8846 /* Override any gcc2 internal prototype to avoid an error. */
8851 /* We use char because int might match the return type of a gcc2
8852 builtin and then its argument prototype would still apply. */
8853 char malloc_get_state ();
8854 /* The GNU C library defines this for functions which it implements
8855 to always fail with ENOSYS. Some functions are actually named
8856 something starting with __ and the normal name is an alias. */
8857 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8860 char (*f) () = malloc_get_state;
8869 return f != malloc_get_state;
8874 rm -f conftest.
$ac_objext conftest
$ac_exeext
8875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8876 (eval $ac_link) 2>conftest.er1
8878 grep -v '^ *+' conftest.er1
>conftest.err
8880 cat conftest.err
>&5
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); } &&
8883 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); }; } &&
8889 { ac_try
='test -s conftest$ac_exeext'
8890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); }; }; then
8895 ac_cv_func_malloc_get_state
=yes
8897 echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.
$ac_ext >&5
8900 ac_cv_func_malloc_get_state
=no
8902 rm -f conftest.err conftest.
$ac_objext \
8903 conftest
$ac_exeext conftest.
$ac_ext
8905 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8906 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8907 if test $ac_cv_func_malloc_get_state = yes; then
8913 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8914 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8915 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8916 echo $ECHO_N "(cached) $ECHO_C" >&6
8918 cat >conftest.
$ac_ext <<_ACEOF
8921 cat confdefs.h
>>conftest.
$ac_ext
8922 cat >>conftest.
$ac_ext <<_ACEOF
8923 /* end confdefs.h. */
8924 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8926 #define malloc_set_state innocuous_malloc_set_state
8928 /* System header to define __stub macros and hopefully few prototypes,
8929 which can conflict with char malloc_set_state (); below.
8930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8931 <limits.h> exists even on freestanding compilers. */
8934 # include <limits.h>
8936 # include <assert.h>
8939 #undef malloc_set_state
8941 /* Override any gcc2 internal prototype to avoid an error. */
8946 /* We use char because int might match the return type of a gcc2
8947 builtin and then its argument prototype would still apply. */
8948 char malloc_set_state ();
8949 /* The GNU C library defines this for functions which it implements
8950 to always fail with ENOSYS. Some functions are actually named
8951 something starting with __ and the normal name is an alias. */
8952 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8955 char (*f) () = malloc_set_state;
8964 return f != malloc_set_state;
8969 rm -f conftest.
$ac_objext conftest
$ac_exeext
8970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8971 (eval $ac_link) 2>conftest.er1
8973 grep -v '^ *+' conftest.er1
>conftest.err
8975 cat conftest.err
>&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); } &&
8978 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); }; } &&
8984 { ac_try
='test -s conftest$ac_exeext'
8985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); }; }; then
8990 ac_cv_func_malloc_set_state
=yes
8992 echo "$as_me: failed program was:" >&5
8993 sed 's/^/| /' conftest.
$ac_ext >&5
8995 ac_cv_func_malloc_set_state
=no
8997 rm -f conftest.err conftest.
$ac_objext \
8998 conftest
$ac_exeext conftest.
$ac_ext
9000 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9001 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
9002 if test $ac_cv_func_malloc_set_state = yes; then
9008 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9009 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
9010 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
9013 cat >conftest.
$ac_ext <<_ACEOF
9016 cat confdefs.h
>>conftest.
$ac_ext
9017 cat >>conftest.
$ac_ext <<_ACEOF
9018 /* end confdefs.h. */
9019 extern void (* __after_morecore_hook)();
9023 __after_morecore_hook = 0
9028 rm -f conftest.
$ac_objext conftest
$ac_exeext
9029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9030 (eval $ac_link) 2>conftest.er1
9032 grep -v '^ *+' conftest.er1
>conftest.err
9034 cat conftest.err
>&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); } &&
9037 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); }; } &&
9043 { ac_try
='test -s conftest$ac_exeext'
9044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); }; }; then
9049 emacs_cv_var___after_morecore_hook
=yes
9051 echo "$as_me: failed program was:" >&5
9052 sed 's/^/| /' conftest.
$ac_ext >&5
9054 emacs_cv_var___after_morecore_hook
=no
9056 rm -f conftest.err conftest.
$ac_objext \
9057 conftest
$ac_exeext conftest.
$ac_ext
9059 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9060 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
9061 if test $emacs_cv_var___after_morecore_hook = no
; then
9064 if test "${system_malloc}" = "yes"; then
9067 (The GNU allocators don't work with this system configuration.)"
9069 if test "$doug_lea_malloc" = "yes" ; then
9070 if test "$GNU_MALLOC" = yes ; then
9072 (Using Doug Lea's new malloc from the GNU C Library.)"
9075 cat >>confdefs.h
<<\_ACEOF
9076 #define DOUG_LEA_MALLOC 1
9081 if test x
"${REL_ALLOC}" = x
; then
9082 REL_ALLOC
=${GNU_MALLOC}
9088 for ac_header
in stdlib.h unistd.h
9090 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9092 echo "$as_me:$LINENO: checking for $ac_header" >&5
9093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9095 echo $ECHO_N "(cached) $ECHO_C" >&6
9097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9100 # Is the header compilable?
9101 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9103 cat >conftest.
$ac_ext <<_ACEOF
9106 cat confdefs.h
>>conftest.
$ac_ext
9107 cat >>conftest.
$ac_ext <<_ACEOF
9108 /* end confdefs.h. */
9109 $ac_includes_default
9110 #include <$ac_header>
9112 rm -f conftest.
$ac_objext
9113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9114 (eval $ac_compile) 2>conftest.er1
9116 grep -v '^ *+' conftest.er1
>conftest.err
9118 cat conftest.err
>&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); } &&
9121 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; } &&
9127 { ac_try
='test -s conftest.$ac_objext'
9128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; }; then
9133 ac_header_compiler
=yes
9135 echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.
$ac_ext >&5
9138 ac_header_compiler
=no
9140 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9141 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9142 echo "${ECHO_T}$ac_header_compiler" >&6
9144 # Is the header present?
9145 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9146 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9147 cat >conftest.
$ac_ext <<_ACEOF
9150 cat confdefs.h
>>conftest.
$ac_ext
9151 cat >>conftest.
$ac_ext <<_ACEOF
9152 /* end confdefs.h. */
9153 #include <$ac_header>
9155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9156 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9158 grep -v '^ *+' conftest.er1
>conftest.err
9160 cat conftest.err
>&5
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); } >/dev
/null
; then
9163 if test -s conftest.err
; then
9164 ac_cpp_err
=$ac_c_preproc_warn_flag
9165 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9172 if test -z "$ac_cpp_err"; then
9173 ac_header_preproc
=yes
9175 echo "$as_me: failed program was:" >&5
9176 sed 's/^/| /' conftest.
$ac_ext >&5
9178 ac_header_preproc
=no
9180 rm -f conftest.err conftest.
$ac_ext
9181 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9182 echo "${ECHO_T}$ac_header_preproc" >&6
9184 # So? What about this header?
9185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9187 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9188 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9190 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9191 ac_header_preproc
=yes
9194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9197 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9198 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9199 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9200 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9201 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9204 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9205 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9208 ## ------------------------------------------ ##
9209 ## Report this to the AC_PACKAGE_NAME lists. ##
9210 ## ------------------------------------------ ##
9213 sed "s/^/$as_me: WARNING: /" >&2
9216 echo "$as_me:$LINENO: checking for $ac_header" >&5
9217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9219 echo $ECHO_N "(cached) $ECHO_C" >&6
9221 eval "$as_ac_Header=\$ac_header_preproc"
9223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9228 cat >>confdefs.h
<<_ACEOF
9229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9237 for ac_func
in getpagesize
9239 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9240 echo "$as_me:$LINENO: checking for $ac_func" >&5
9241 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9242 if eval "test \"\${$as_ac_var+set}\" = set"; then
9243 echo $ECHO_N "(cached) $ECHO_C" >&6
9245 cat >conftest.
$ac_ext <<_ACEOF
9248 cat confdefs.h
>>conftest.
$ac_ext
9249 cat >>conftest.
$ac_ext <<_ACEOF
9250 /* end confdefs.h. */
9251 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9253 #define $ac_func innocuous_$ac_func
9255 /* System header to define __stub macros and hopefully few prototypes,
9256 which can conflict with char $ac_func (); below.
9257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9258 <limits.h> exists even on freestanding compilers. */
9261 # include <limits.h>
9263 # include <assert.h>
9268 /* Override any gcc2 internal prototype to avoid an error. */
9273 /* We use char because int might match the return type of a gcc2
9274 builtin and then its argument prototype would still apply. */
9276 /* The GNU C library defines this for functions which it implements
9277 to always fail with ENOSYS. Some functions are actually named
9278 something starting with __ and the normal name is an alias. */
9279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9282 char (*f) () = $ac_func;
9291 return f != $ac_func;
9296 rm -f conftest.
$ac_objext conftest
$ac_exeext
9297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9298 (eval $ac_link) 2>conftest.er1
9300 grep -v '^ *+' conftest.er1
>conftest.err
9302 cat conftest.err
>&5
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); } &&
9305 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); }; } &&
9311 { ac_try
='test -s conftest$ac_exeext'
9312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); }; }; then
9317 eval "$as_ac_var=yes"
9319 echo "$as_me: failed program was:" >&5
9320 sed 's/^/| /' conftest.
$ac_ext >&5
9322 eval "$as_ac_var=no"
9324 rm -f conftest.err conftest.
$ac_objext \
9325 conftest
$ac_exeext conftest.
$ac_ext
9327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9328 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9329 if test `eval echo '${'$as_ac_var'}'` = yes; then
9330 cat >>confdefs.h
<<_ACEOF
9331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9337 echo "$as_me:$LINENO: checking for working mmap" >&5
9338 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9339 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9340 echo $ECHO_N "(cached) $ECHO_C" >&6
9342 if test "$cross_compiling" = yes; then
9343 ac_cv_func_mmap_fixed_mapped
=no
9345 cat >conftest.
$ac_ext <<_ACEOF
9348 cat confdefs.h
>>conftest.
$ac_ext
9349 cat >>conftest.
$ac_ext <<_ACEOF
9350 /* end confdefs.h. */
9351 $ac_includes_default
9352 /* malloc might have been renamed as rpl_malloc. */
9355 /* Thanks to Mike Haertel and Jim Avera for this test.
9356 Here is a matrix of mmap possibilities:
9357 mmap private not fixed
9358 mmap private fixed at somewhere currently unmapped
9359 mmap private fixed at somewhere already mapped
9360 mmap shared not fixed
9361 mmap shared fixed at somewhere currently unmapped
9362 mmap shared fixed at somewhere already mapped
9363 For private mappings, we should verify that changes cannot be read()
9364 back from the file, nor mmap's back from the file at a different
9365 address. (There have been systems where private was not correctly
9366 implemented like the infamous i386 svr4.0, and systems where the
9367 VM page cache was not coherent with the file system buffer cache
9368 like early versions of FreeBSD and possibly contemporary NetBSD.)
9369 For shared mappings, we should conversely verify that changes get
9370 propagated back to all the places they're supposed to be.
9372 Grep wants private fixed already mapped.
9373 The main things grep needs to know about mmap are:
9374 * does it exist and is it safe to write into the mmap'd area
9375 * how to use it (BSD variants) */
9378 #include <sys/mman.h>
9380 #if !STDC_HEADERS && !HAVE_STDLIB_H
9384 /* This mess was copied from the GNU getpagesize.h. */
9385 #if !HAVE_GETPAGESIZE
9386 /* Assume that all systems that can run configure have sys/param.h. */
9387 # if !HAVE_SYS_PARAM_H
9388 # define HAVE_SYS_PARAM_H 1
9391 # ifdef _SC_PAGESIZE
9392 # define getpagesize() sysconf(_SC_PAGESIZE)
9393 # else /* no _SC_PAGESIZE */
9394 # if HAVE_SYS_PARAM_H
9395 # include <sys/param.h>
9396 # ifdef EXEC_PAGESIZE
9397 # define getpagesize() EXEC_PAGESIZE
9398 # else /* no EXEC_PAGESIZE */
9400 # define getpagesize() NBPG * CLSIZE
9403 # endif /* no CLSIZE */
9404 # else /* no NBPG */
9406 # define getpagesize() NBPC
9407 # else /* no NBPC */
9409 # define getpagesize() PAGESIZE
9410 # endif /* PAGESIZE */
9411 # endif /* no NBPC */
9412 # endif /* no NBPG */
9413 # endif /* no EXEC_PAGESIZE */
9414 # else /* no HAVE_SYS_PARAM_H */
9415 # define getpagesize() 8192 /* punt totally */
9416 # endif /* no HAVE_SYS_PARAM_H */
9417 # endif /* no _SC_PAGESIZE */
9419 #endif /* no HAVE_GETPAGESIZE */
9424 char *data, *data2, *data3;
9428 pagesize = getpagesize ();
9430 /* First, make a file with some known garbage in it. */
9431 data = (char *) malloc (pagesize);
9434 for (i = 0; i < pagesize; ++i)
9435 *(data + i) = rand ();
9437 fd = creat ("conftest.mmap", 0600);
9440 if (write (fd, data, pagesize) != pagesize)
9444 /* Next, try to mmap the file at a fixed address which already has
9445 something else allocated at it. If we can, also make sure that
9446 we see the same garbage. */
9447 fd = open ("conftest.mmap", O_RDWR);
9450 data2 = (char *) malloc (2 * pagesize);
9453 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9454 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9455 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9457 for (i = 0; i < pagesize; ++i)
9458 if (*(data + i) != *(data2 + i))
9461 /* Finally, make sure that changes to the mapped area do not
9462 percolate back to the file as seen by read(). (This is a bug on
9463 some variants of i386 svr4.0.) */
9464 for (i = 0; i < pagesize; ++i)
9465 *(data2 + i) = *(data2 + i) + 1;
9466 data3 = (char *) malloc (pagesize);
9469 if (read (fd, data3, pagesize) != pagesize)
9471 for (i = 0; i < pagesize; ++i)
9472 if (*(data + i) != *(data3 + i))
9478 rm -f conftest
$ac_exeext
9479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9480 (eval $ac_link) 2>&5
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); }; }; then
9489 ac_cv_func_mmap_fixed_mapped
=yes
9491 echo "$as_me: program exited with status $ac_status" >&5
9492 echo "$as_me: failed program was:" >&5
9493 sed 's/^/| /' conftest.
$ac_ext >&5
9496 ac_cv_func_mmap_fixed_mapped
=no
9498 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9501 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9502 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9503 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9505 cat >>confdefs.h
<<\_ACEOF
9512 if test $use_mmap_for_buffers = yes; then
9516 LIBS
="$libsrc_libs $LIBS"
9519 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9520 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9521 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9522 echo $ECHO_N "(cached) $ECHO_C" >&6
9524 ac_check_lib_save_LIBS
=$LIBS
9526 cat >conftest.
$ac_ext <<_ACEOF
9529 cat confdefs.h
>>conftest.
$ac_ext
9530 cat >>conftest.
$ac_ext <<_ACEOF
9531 /* end confdefs.h. */
9533 /* Override any gcc2 internal prototype to avoid an error. */
9537 /* We use char because int might match the return type of a gcc2
9538 builtin and then its argument prototype would still apply. */
9548 rm -f conftest.
$ac_objext conftest
$ac_exeext
9549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9550 (eval $ac_link) 2>conftest.er1
9552 grep -v '^ *+' conftest.er1
>conftest.err
9554 cat conftest.err
>&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); } &&
9557 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); }; } &&
9563 { ac_try
='test -s conftest$ac_exeext'
9564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); }; }; then
9569 ac_cv_lib_dnet_dnet_ntoa
=yes
9571 echo "$as_me: failed program was:" >&5
9572 sed 's/^/| /' conftest.
$ac_ext >&5
9574 ac_cv_lib_dnet_dnet_ntoa
=no
9576 rm -f conftest.err conftest.
$ac_objext \
9577 conftest
$ac_exeext conftest.
$ac_ext
9578 LIBS
=$ac_check_lib_save_LIBS
9580 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9581 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9582 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9583 cat >>confdefs.h
<<_ACEOF
9584 #define HAVE_LIBDNET 1
9592 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9593 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9594 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9595 echo $ECHO_N "(cached) $ECHO_C" >&6
9597 ac_check_lib_save_LIBS
=$LIBS
9599 cat >conftest.
$ac_ext <<_ACEOF
9602 cat confdefs.h
>>conftest.
$ac_ext
9603 cat >>conftest.
$ac_ext <<_ACEOF
9604 /* end confdefs.h. */
9615 rm -f conftest.
$ac_objext conftest
$ac_exeext
9616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9617 (eval $ac_link) 2>conftest.er1
9619 grep -v '^ *+' conftest.er1
>conftest.err
9621 cat conftest.err
>&5
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); } &&
9624 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); }; } &&
9630 { ac_try
='test -s conftest$ac_exeext'
9631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); }; }; then
9636 ac_cv_lib_Xbsd_main
=yes
9638 echo "$as_me: failed program was:" >&5
9639 sed 's/^/| /' conftest.
$ac_ext >&5
9641 ac_cv_lib_Xbsd_main
=no
9643 rm -f conftest.err conftest.
$ac_objext \
9644 conftest
$ac_exeext conftest.
$ac_ext
9645 LIBS
=$ac_check_lib_save_LIBS
9647 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9648 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9649 if test $ac_cv_lib_Xbsd_main = yes; then
9650 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9655 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9656 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9657 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9658 echo $ECHO_N "(cached) $ECHO_C" >&6
9660 ac_check_lib_save_LIBS
=$LIBS
9661 LIBS
="-lpthreads $LIBS"
9662 cat >conftest.
$ac_ext <<_ACEOF
9665 cat confdefs.h
>>conftest.
$ac_ext
9666 cat >>conftest.
$ac_ext <<_ACEOF
9667 /* end confdefs.h. */
9669 /* Override any gcc2 internal prototype to avoid an error. */
9673 /* We use char because int might match the return type of a gcc2
9674 builtin and then its argument prototype would still apply. */
9684 rm -f conftest.
$ac_objext conftest
$ac_exeext
9685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9686 (eval $ac_link) 2>conftest.er1
9688 grep -v '^ *+' conftest.er1
>conftest.err
9690 cat conftest.err
>&5
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); } &&
9693 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; } &&
9699 { ac_try
='test -s conftest$ac_exeext'
9700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; }; then
9705 ac_cv_lib_pthreads_cma_open
=yes
9707 echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.
$ac_ext >&5
9710 ac_cv_lib_pthreads_cma_open
=no
9712 rm -f conftest.err conftest.
$ac_objext \
9713 conftest
$ac_exeext conftest.
$ac_ext
9714 LIBS
=$ac_check_lib_save_LIBS
9716 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9717 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9718 if test $ac_cv_lib_pthreads_cma_open = yes; then
9719 cat >>confdefs.h
<<_ACEOF
9720 #define HAVE_LIBPTHREADS 1
9723 LIBS
="-lpthreads $LIBS"
9728 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9729 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9730 if test -d /usr
/X386
/include
; then
9732 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9736 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9737 echo "${ECHO_T}$HAVE_XFREE386" >&6
9742 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9743 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9744 if test "${gdb_cv_bigtoc+set}" = set; then
9745 echo $ECHO_N "(cached) $ECHO_C" >&6
9749 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9750 *) gdb_cv_bigtoc
=-bbigtoc ;;
9753 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9754 cat >conftest.
$ac_ext <<_ACEOF
9757 cat confdefs.h
>>conftest.
$ac_ext
9758 cat >>conftest.
$ac_ext <<_ACEOF
9759 /* end confdefs.h. */
9769 rm -f conftest.
$ac_objext conftest
$ac_exeext
9770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9771 (eval $ac_link) 2>conftest.er1
9773 grep -v '^ *+' conftest.er1
>conftest.err
9775 cat conftest.err
>&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); } &&
9778 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); }; } &&
9784 { ac_try
='test -s conftest$ac_exeext'
9785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); }; }; then
9792 echo "$as_me: failed program was:" >&5
9793 sed 's/^/| /' conftest.
$ac_ext >&5
9797 rm -f conftest.err conftest.
$ac_objext \
9798 conftest
$ac_exeext conftest.
$ac_ext
9801 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9802 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9806 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9807 # used for the tests that follow. We set them back to REAL_CFLAGS and
9808 # REAL_CPPFLAGS later on.
9810 REAL_CPPFLAGS
="$CPPFLAGS"
9812 if test "${HAVE_X11}" = "yes"; then
9813 DEFS
="$C_SWITCH_X_SITE $DEFS"
9814 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9816 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9817 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9819 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9820 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9821 # but it's more convenient here to set LD_RUN_PATH
9822 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9823 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9824 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9828 if test "${opsys}" = "gnu-linux"; then
9829 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9830 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9831 cat >conftest.
$ac_ext <<_ACEOF
9834 cat confdefs.h
>>conftest.
$ac_ext
9835 cat >>conftest.
$ac_ext <<_ACEOF
9836 /* end confdefs.h. */
9841 XOpenDisplay ("foo");
9846 rm -f conftest.
$ac_objext conftest
$ac_exeext
9847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9848 (eval $ac_link) 2>conftest.er1
9850 grep -v '^ *+' conftest.er1
>conftest.err
9852 cat conftest.err
>&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); } &&
9855 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; } &&
9861 { ac_try
='test -s conftest$ac_exeext'
9862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; }; then
9867 xlinux_first_failure
=no
9869 echo "$as_me: failed program was:" >&5
9870 sed 's/^/| /' conftest.
$ac_ext >&5
9872 xlinux_first_failure
=yes
9874 rm -f conftest.err conftest.
$ac_objext \
9875 conftest
$ac_exeext conftest.
$ac_ext
9876 if test "${xlinux_first_failure}" = "yes"; then
9877 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9878 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9879 OLD_CPPFLAGS
="$CPPFLAGS"
9881 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9882 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9883 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9884 LIBS
="$LIBS -b i486-linuxaout"
9885 cat >conftest.
$ac_ext <<_ACEOF
9888 cat confdefs.h
>>conftest.
$ac_ext
9889 cat >>conftest.
$ac_ext <<_ACEOF
9890 /* end confdefs.h. */
9895 XOpenDisplay ("foo");
9900 rm -f conftest.
$ac_objext conftest
$ac_exeext
9901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9902 (eval $ac_link) 2>conftest.er1
9904 grep -v '^ *+' conftest.er1
>conftest.err
9906 cat conftest.err
>&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); } &&
9909 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); }; } &&
9915 { ac_try
='test -s conftest$ac_exeext'
9916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; }; then
9921 xlinux_second_failure
=no
9923 echo "$as_me: failed program was:" >&5
9924 sed 's/^/| /' conftest.
$ac_ext >&5
9926 xlinux_second_failure
=yes
9928 rm -f conftest.err conftest.
$ac_objext \
9929 conftest
$ac_exeext conftest.
$ac_ext
9930 if test "${xlinux_second_failure}" = "yes"; then
9931 # If we get the same failure with -b, there is no use adding -b.
9932 # So take it out. This plays safe.
9933 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9934 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9935 CPPFLAGS
="$OLD_CPPFLAGS"
9937 echo "$as_me:$LINENO: result: no" >&5
9938 echo "${ECHO_T}no" >&6
9940 echo "$as_me:$LINENO: result: yes" >&5
9941 echo "${ECHO_T}yes" >&6
9944 echo "$as_me:$LINENO: result: no" >&5
9945 echo "${ECHO_T}no" >&6
9949 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9950 # header files included from there.
9951 echo "$as_me:$LINENO: checking for Xkb" >&5
9952 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9953 cat >conftest.
$ac_ext <<_ACEOF
9956 cat confdefs.h
>>conftest.
$ac_ext
9957 cat >>conftest.
$ac_ext <<_ACEOF
9958 /* end confdefs.h. */
9959 #include <X11/Xlib.h>
9960 #include <X11/XKBlib.h>
9964 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9969 rm -f conftest.
$ac_objext conftest
$ac_exeext
9970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9971 (eval $ac_link) 2>conftest.er1
9973 grep -v '^ *+' conftest.er1
>conftest.err
9975 cat conftest.err
>&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); } &&
9978 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); }; } &&
9984 { ac_try
='test -s conftest$ac_exeext'
9985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); }; }; then
9992 echo "$as_me: failed program was:" >&5
9993 sed 's/^/| /' conftest.
$ac_ext >&5
9997 rm -f conftest.err conftest.
$ac_objext \
9998 conftest
$ac_exeext conftest.
$ac_ext
9999 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10000 echo "${ECHO_T}$emacs_xkb" >&6
10001 if test $emacs_xkb = yes; then
10003 cat >>confdefs.h
<<\_ACEOF
10004 #define HAVE_XKBGETKEYBOARD 1
10013 for ac_func
in XrmSetDatabase XScreenResourceString \
10014 XScreenNumberOfScreen XSetWMProtocols
10016 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10017 echo "$as_me:$LINENO: checking for $ac_func" >&5
10018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10019 if eval "test \"\${$as_ac_var+set}\" = set"; then
10020 echo $ECHO_N "(cached) $ECHO_C" >&6
10022 cat >conftest.
$ac_ext <<_ACEOF
10025 cat confdefs.h
>>conftest.
$ac_ext
10026 cat >>conftest.
$ac_ext <<_ACEOF
10027 /* end confdefs.h. */
10028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10030 #define $ac_func innocuous_$ac_func
10032 /* System header to define __stub macros and hopefully few prototypes,
10033 which can conflict with char $ac_func (); below.
10034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10035 <limits.h> exists even on freestanding compilers. */
10038 # include <limits.h>
10040 # include <assert.h>
10045 /* Override any gcc2 internal prototype to avoid an error. */
10050 /* We use char because int might match the return type of a gcc2
10051 builtin and then its argument prototype would still apply. */
10053 /* The GNU C library defines this for functions which it implements
10054 to always fail with ENOSYS. Some functions are actually named
10055 something starting with __ and the normal name is an alias. */
10056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10059 char (*f) () = $ac_func;
10068 return f != $ac_func;
10073 rm -f conftest.
$ac_objext conftest
$ac_exeext
10074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10075 (eval $ac_link) 2>conftest.er1
10077 grep -v '^ *+' conftest.er1
>conftest.err
10079 cat conftest.err
>&5
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); } &&
10082 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10084 (eval $ac_try) 2>&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); }; } &&
10088 { ac_try
='test -s conftest$ac_exeext'
10089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10090 (eval $ac_try) 2>&5
10092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 (exit $ac_status); }; }; then
10094 eval "$as_ac_var=yes"
10096 echo "$as_me: failed program was:" >&5
10097 sed 's/^/| /' conftest.
$ac_ext >&5
10099 eval "$as_ac_var=no"
10101 rm -f conftest.err conftest.
$ac_objext \
10102 conftest
$ac_exeext conftest.
$ac_ext
10104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10105 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10106 if test `eval echo '${'$as_ac_var'}'` = yes; then
10107 cat >>confdefs.h
<<_ACEOF
10108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10116 if test "${window_system}" = "x11"; then
10117 echo "$as_me:$LINENO: checking X11 version 6" >&5
10118 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
10119 if test "${emacs_cv_x11_version_6+set}" = set; then
10120 echo $ECHO_N "(cached) $ECHO_C" >&6
10122 cat >conftest.
$ac_ext <<_ACEOF
10125 cat confdefs.h
>>conftest.
$ac_ext
10126 cat >>conftest.
$ac_ext <<_ACEOF
10127 /* end confdefs.h. */
10128 #include <X11/Xlib.h>
10132 #if XlibSpecificationRelease < 6
10140 rm -f conftest.
$ac_objext conftest
$ac_exeext
10141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10142 (eval $ac_link) 2>conftest.er1
10144 grep -v '^ *+' conftest.er1
>conftest.err
10146 cat conftest.err
>&5
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); } &&
10149 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10151 (eval $ac_try) 2>&5
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); }; } &&
10155 { ac_try
='test -s conftest$ac_exeext'
10156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157 (eval $ac_try) 2>&5
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; }; then
10161 emacs_cv_x11_version_6
=yes
10163 echo "$as_me: failed program was:" >&5
10164 sed 's/^/| /' conftest.
$ac_ext >&5
10166 emacs_cv_x11_version_6
=no
10168 rm -f conftest.err conftest.
$ac_objext \
10169 conftest
$ac_exeext conftest.
$ac_ext
10172 if test $emacs_cv_x11_version_6 = yes; then
10173 echo "$as_me:$LINENO: result: 6 or newer" >&5
10174 echo "${ECHO_T}6 or newer" >&6
10176 cat >>confdefs.h
<<\_ACEOF
10177 #define HAVE_X11R6 1
10181 echo "$as_me:$LINENO: result: before 6" >&5
10182 echo "${ECHO_T}before 6" >&6
10186 if test "${window_system}" = "x11"; then
10187 echo "$as_me:$LINENO: checking X11 version 5" >&5
10188 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10189 if test "${emacs_cv_x11_version_5+set}" = set; then
10190 echo $ECHO_N "(cached) $ECHO_C" >&6
10192 cat >conftest.
$ac_ext <<_ACEOF
10195 cat confdefs.h
>>conftest.
$ac_ext
10196 cat >>conftest.
$ac_ext <<_ACEOF
10197 /* end confdefs.h. */
10198 #include <X11/Xlib.h>
10202 #if XlibSpecificationRelease < 5
10210 rm -f conftest.
$ac_objext conftest
$ac_exeext
10211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10212 (eval $ac_link) 2>conftest.er1
10214 grep -v '^ *+' conftest.er1
>conftest.err
10216 cat conftest.err
>&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); } &&
10219 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221 (eval $ac_try) 2>&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; } &&
10225 { ac_try
='test -s conftest$ac_exeext'
10226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10227 (eval $ac_try) 2>&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); }; }; then
10231 emacs_cv_x11_version_5
=yes
10233 echo "$as_me: failed program was:" >&5
10234 sed 's/^/| /' conftest.
$ac_ext >&5
10236 emacs_cv_x11_version_5
=no
10238 rm -f conftest.err conftest.
$ac_objext \
10239 conftest
$ac_exeext conftest.
$ac_ext
10242 if test $emacs_cv_x11_version_5 = yes; then
10243 echo "$as_me:$LINENO: result: 5 or newer" >&5
10244 echo "${ECHO_T}5 or newer" >&6
10247 cat >>confdefs.h
<<\_ACEOF
10248 #define HAVE_X11R5 1
10253 echo "$as_me:$LINENO: result: before 5" >&5
10254 echo "${ECHO_T}before 5" >&6
10259 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
10260 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10261 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10262 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10263 { (exit 1); exit 1; }; };
10267 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10269 if test "X${with_pkg_config_prog}" != X
; then
10270 PKG_CONFIG
="${with_pkg_config_prog}"
10275 if test -z "$PKG_CONFIG"; then
10276 # Extract the first word of "pkg-config", so it can be a program name with args.
10277 set dummy pkg-config
; ac_word
=$2
10278 echo "$as_me:$LINENO: checking for $ac_word" >&5
10279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10280 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10281 echo $ECHO_N "(cached) $ECHO_C" >&6
10283 case $PKG_CONFIG in
10285 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10288 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10289 for as_dir
in $PATH
10292 test -z "$as_dir" && as_dir
=.
10293 for ac_exec_ext
in '' $ac_executable_extensions; do
10294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10295 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10302 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10306 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10308 if test -n "$PKG_CONFIG"; then
10309 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10310 echo "${ECHO_T}$PKG_CONFIG" >&6
10312 echo "$as_me:$LINENO: result: no" >&5
10313 echo "${ECHO_T}no" >&6
10318 if test "$PKG_CONFIG" = "no" ; then
10319 { { echo "$as_me:$LINENO: error:
10320 *** 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
10321 echo "$as_me: error:
10322 *** 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;}
10323 { (exit 1); exit 1; }; }
10325 PKG_CONFIG_MIN_VERSION
=0.9.0
10326 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10327 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10328 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10330 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10331 echo "$as_me:$LINENO: result: yes" >&5
10332 echo "${ECHO_T}yes" >&6
10335 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10336 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10337 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10338 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10339 echo "${ECHO_T}$GTK_CFLAGS" >&6
10341 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10342 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10343 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
10344 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10345 echo "${ECHO_T}$GTK_LIBS" >&6
10347 echo "$as_me:$LINENO: result: no" >&5
10348 echo "${ECHO_T}no" >&6
10351 ## If we have a custom action on failure, don't print errors, but
10352 ## do set a variable so people can do so.
10353 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10354 echo $GTK_PKG_ERRORS
10360 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10361 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10365 if test $succeeded = yes; then
10368 { { 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
10369 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;}
10370 { (exit 1); exit 1; }; }
10375 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10376 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10377 LIBS
="$GTK_LIBS $LIBS"
10380 cat >>confdefs.h
<<\_ACEOF
10386 if test "$with_toolkit_scroll_bars" != no
; then
10387 with_toolkit_scroll_bars
=yes
10390 HAVE_GTK_MULTIDISPLAY
=no
10392 for ac_func
in gdk_display_open
10394 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10395 echo "$as_me:$LINENO: checking for $ac_func" >&5
10396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10397 if eval "test \"\${$as_ac_var+set}\" = set"; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
10400 cat >conftest.
$ac_ext <<_ACEOF
10403 cat confdefs.h
>>conftest.
$ac_ext
10404 cat >>conftest.
$ac_ext <<_ACEOF
10405 /* end confdefs.h. */
10406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10408 #define $ac_func innocuous_$ac_func
10410 /* System header to define __stub macros and hopefully few prototypes,
10411 which can conflict with char $ac_func (); below.
10412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10413 <limits.h> exists even on freestanding compilers. */
10416 # include <limits.h>
10418 # include <assert.h>
10423 /* Override any gcc2 internal prototype to avoid an error. */
10428 /* We use char because int might match the return type of a gcc2
10429 builtin and then its argument prototype would still apply. */
10431 /* The GNU C library defines this for functions which it implements
10432 to always fail with ENOSYS. Some functions are actually named
10433 something starting with __ and the normal name is an alias. */
10434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10437 char (*f) () = $ac_func;
10446 return f != $ac_func;
10451 rm -f conftest.
$ac_objext conftest
$ac_exeext
10452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10453 (eval $ac_link) 2>conftest.er1
10455 grep -v '^ *+' conftest.er1
>conftest.err
10457 cat conftest.err
>&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); } &&
10460 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10462 (eval $ac_try) 2>&5
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); }; } &&
10466 { ac_try
='test -s conftest$ac_exeext'
10467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468 (eval $ac_try) 2>&5
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; }; then
10472 eval "$as_ac_var=yes"
10474 echo "$as_me: failed program was:" >&5
10475 sed 's/^/| /' conftest.
$ac_ext >&5
10477 eval "$as_ac_var=no"
10479 rm -f conftest.err conftest.
$ac_objext \
10480 conftest
$ac_exeext conftest.
$ac_ext
10482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10483 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10484 if test `eval echo '${'$as_ac_var'}'` = yes; then
10485 cat >>confdefs.h
<<_ACEOF
10486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10488 HAVE_GTK_MULTIDISPLAY
=yes
10492 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10494 cat >>confdefs.h
<<\_ACEOF
10495 #define HAVE_GTK_MULTIDISPLAY 1
10499 HAVE_GTK_FILE_SELECTION
=no
10501 for ac_func
in gtk_file_selection_new
10503 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10504 echo "$as_me:$LINENO: checking for $ac_func" >&5
10505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10506 if eval "test \"\${$as_ac_var+set}\" = set"; then
10507 echo $ECHO_N "(cached) $ECHO_C" >&6
10509 cat >conftest.
$ac_ext <<_ACEOF
10512 cat confdefs.h
>>conftest.
$ac_ext
10513 cat >>conftest.
$ac_ext <<_ACEOF
10514 /* end confdefs.h. */
10515 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10517 #define $ac_func innocuous_$ac_func
10519 /* System header to define __stub macros and hopefully few prototypes,
10520 which can conflict with char $ac_func (); below.
10521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10522 <limits.h> exists even on freestanding compilers. */
10525 # include <limits.h>
10527 # include <assert.h>
10532 /* Override any gcc2 internal prototype to avoid an error. */
10537 /* We use char because int might match the return type of a gcc2
10538 builtin and then its argument prototype would still apply. */
10540 /* The GNU C library defines this for functions which it implements
10541 to always fail with ENOSYS. Some functions are actually named
10542 something starting with __ and the normal name is an alias. */
10543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10546 char (*f) () = $ac_func;
10555 return f != $ac_func;
10560 rm -f conftest.
$ac_objext conftest
$ac_exeext
10561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10562 (eval $ac_link) 2>conftest.er1
10564 grep -v '^ *+' conftest.er1
>conftest.err
10566 cat conftest.err
>&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); } &&
10569 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571 (eval $ac_try) 2>&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); }; } &&
10575 { ac_try
='test -s conftest$ac_exeext'
10576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577 (eval $ac_try) 2>&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); }; }; then
10581 eval "$as_ac_var=yes"
10583 echo "$as_me: failed program was:" >&5
10584 sed 's/^/| /' conftest.
$ac_ext >&5
10586 eval "$as_ac_var=no"
10588 rm -f conftest.err conftest.
$ac_objext \
10589 conftest
$ac_exeext conftest.
$ac_ext
10591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10592 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10593 if test `eval echo '${'$as_ac_var'}'` = yes; then
10594 cat >>confdefs.h
<<_ACEOF
10595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10597 HAVE_GTK_FILE_SELECTION
=yes
10602 HAVE_GTK_FILE_CHOOSER
=no
10604 for ac_func
in gtk_file_chooser_dialog_new
10606 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10607 echo "$as_me:$LINENO: checking for $ac_func" >&5
10608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10609 if eval "test \"\${$as_ac_var+set}\" = set"; then
10610 echo $ECHO_N "(cached) $ECHO_C" >&6
10612 cat >conftest.
$ac_ext <<_ACEOF
10615 cat confdefs.h
>>conftest.
$ac_ext
10616 cat >>conftest.
$ac_ext <<_ACEOF
10617 /* end confdefs.h. */
10618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10620 #define $ac_func innocuous_$ac_func
10622 /* System header to define __stub macros and hopefully few prototypes,
10623 which can conflict with char $ac_func (); below.
10624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10625 <limits.h> exists even on freestanding compilers. */
10628 # include <limits.h>
10630 # include <assert.h>
10635 /* Override any gcc2 internal prototype to avoid an error. */
10640 /* We use char because int might match the return type of a gcc2
10641 builtin and then its argument prototype would still apply. */
10643 /* The GNU C library defines this for functions which it implements
10644 to always fail with ENOSYS. Some functions are actually named
10645 something starting with __ and the normal name is an alias. */
10646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10649 char (*f) () = $ac_func;
10658 return f != $ac_func;
10663 rm -f conftest.
$ac_objext conftest
$ac_exeext
10664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10665 (eval $ac_link) 2>conftest.er1
10667 grep -v '^ *+' conftest.er1
>conftest.err
10669 cat conftest.err
>&5
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); } &&
10672 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10674 (eval $ac_try) 2>&5
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); }; } &&
10678 { ac_try
='test -s conftest$ac_exeext'
10679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10680 (eval $ac_try) 2>&5
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); }; }; then
10684 eval "$as_ac_var=yes"
10686 echo "$as_me: failed program was:" >&5
10687 sed 's/^/| /' conftest.
$ac_ext >&5
10689 eval "$as_ac_var=no"
10691 rm -f conftest.err conftest.
$ac_objext \
10692 conftest
$ac_exeext conftest.
$ac_ext
10694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10695 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10696 if test `eval echo '${'$as_ac_var'}'` = yes; then
10697 cat >>confdefs.h
<<_ACEOF
10698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10700 HAVE_GTK_FILE_CHOOSER
=yes
10705 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10706 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10708 cat >>confdefs.h
<<\_ACEOF
10709 #define HAVE_GTK_FILE_BOTH 1
10714 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10715 HAVE_GTK_AND_PTHREAD
=no
10717 for ac_header
in pthread.h
10719 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10721 echo "$as_me:$LINENO: checking for $ac_header" >&5
10722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10724 echo $ECHO_N "(cached) $ECHO_C" >&6
10726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10729 # Is the header compilable?
10730 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10731 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10732 cat >conftest.
$ac_ext <<_ACEOF
10735 cat confdefs.h
>>conftest.
$ac_ext
10736 cat >>conftest.
$ac_ext <<_ACEOF
10737 /* end confdefs.h. */
10738 $ac_includes_default
10739 #include <$ac_header>
10741 rm -f conftest.
$ac_objext
10742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10743 (eval $ac_compile) 2>conftest.er1
10745 grep -v '^ *+' conftest.er1
>conftest.err
10747 cat conftest.err
>&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); } &&
10750 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10752 (eval $ac_try) 2>&5
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); }; } &&
10756 { ac_try
='test -s conftest.$ac_objext'
10757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10758 (eval $ac_try) 2>&5
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); }; }; then
10762 ac_header_compiler
=yes
10764 echo "$as_me: failed program was:" >&5
10765 sed 's/^/| /' conftest.
$ac_ext >&5
10767 ac_header_compiler
=no
10769 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10770 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10771 echo "${ECHO_T}$ac_header_compiler" >&6
10773 # Is the header present?
10774 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10776 cat >conftest.
$ac_ext <<_ACEOF
10779 cat confdefs.h
>>conftest.
$ac_ext
10780 cat >>conftest.
$ac_ext <<_ACEOF
10781 /* end confdefs.h. */
10782 #include <$ac_header>
10784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10785 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10787 grep -v '^ *+' conftest.er1
>conftest.err
10789 cat conftest.err
>&5
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); } >/dev
/null
; then
10792 if test -s conftest.err
; then
10793 ac_cpp_err
=$ac_c_preproc_warn_flag
10794 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10801 if test -z "$ac_cpp_err"; then
10802 ac_header_preproc
=yes
10804 echo "$as_me: failed program was:" >&5
10805 sed 's/^/| /' conftest.
$ac_ext >&5
10807 ac_header_preproc
=no
10809 rm -f conftest.err conftest.
$ac_ext
10810 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10811 echo "${ECHO_T}$ac_header_preproc" >&6
10813 # So? What about this header?
10814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10816 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10819 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10820 ac_header_preproc
=yes
10823 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10824 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10825 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10826 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10827 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10828 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10829 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10830 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10833 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10834 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10837 ## ------------------------------------------ ##
10838 ## Report this to the AC_PACKAGE_NAME lists. ##
10839 ## ------------------------------------------ ##
10842 sed "s/^/$as_me: WARNING: /" >&2
10845 echo "$as_me:$LINENO: checking for $ac_header" >&5
10846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10848 echo $ECHO_N "(cached) $ECHO_C" >&6
10850 eval "$as_ac_Header=\$ac_header_preproc"
10852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10857 cat >>confdefs.h
<<_ACEOF
10858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10865 if test "$ac_cv_header_pthread_h"; then
10866 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10867 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10868 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
10871 ac_check_lib_save_LIBS
=$LIBS
10872 LIBS
="-lpthread $LIBS"
10873 cat >conftest.
$ac_ext <<_ACEOF
10876 cat confdefs.h
>>conftest.
$ac_ext
10877 cat >>conftest.
$ac_ext <<_ACEOF
10878 /* end confdefs.h. */
10880 /* Override any gcc2 internal prototype to avoid an error. */
10884 /* We use char because int might match the return type of a gcc2
10885 builtin and then its argument prototype would still apply. */
10886 char pthread_self ();
10895 rm -f conftest.
$ac_objext conftest
$ac_exeext
10896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10897 (eval $ac_link) 2>conftest.er1
10899 grep -v '^ *+' conftest.er1
>conftest.err
10901 cat conftest.err
>&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } &&
10904 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10906 (eval $ac_try) 2>&5
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); }; } &&
10910 { ac_try
='test -s conftest$ac_exeext'
10911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10912 (eval $ac_try) 2>&5
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); }; }; then
10916 ac_cv_lib_pthread_pthread_self
=yes
10918 echo "$as_me: failed program was:" >&5
10919 sed 's/^/| /' conftest.
$ac_ext >&5
10921 ac_cv_lib_pthread_pthread_self
=no
10923 rm -f conftest.err conftest.
$ac_objext \
10924 conftest
$ac_exeext conftest.
$ac_ext
10925 LIBS
=$ac_check_lib_save_LIBS
10927 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10928 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10929 if test $ac_cv_lib_pthread_pthread_self = yes; then
10930 HAVE_GTK_AND_PTHREAD
=yes
10934 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10935 GTK_LIBS
="$GTK_LIBS -lpthread"
10937 cat >>confdefs.h
<<\_ACEOF
10938 #define HAVE_GTK_AND_PTHREAD 1
10945 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
10946 if test x
"${HAVE_X11R5}" = xyes
; then
10947 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10948 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10949 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10950 echo $ECHO_N "(cached) $ECHO_C" >&6
10952 cat >conftest.
$ac_ext <<_ACEOF
10955 cat confdefs.h
>>conftest.
$ac_ext
10956 cat >>conftest.
$ac_ext <<_ACEOF
10957 /* end confdefs.h. */
10959 #include <X11/Intrinsic.h>
10960 #include <X11/Xaw/Simple.h>
10969 rm -f conftest.
$ac_objext conftest
$ac_exeext
10970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10971 (eval $ac_link) 2>conftest.er1
10973 grep -v '^ *+' conftest.er1
>conftest.err
10975 cat conftest.err
>&5
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); } &&
10978 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10980 (eval $ac_try) 2>&5
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); }; } &&
10984 { ac_try
='test -s conftest$ac_exeext'
10985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10986 (eval $ac_try) 2>&5
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); }; }; then
10990 emacs_cv_x11_version_5_with_xaw
=yes
10992 echo "$as_me: failed program was:" >&5
10993 sed 's/^/| /' conftest.
$ac_ext >&5
10995 emacs_cv_x11_version_5_with_xaw
=no
10997 rm -f conftest.err conftest.
$ac_objext \
10998 conftest
$ac_exeext conftest.
$ac_ext
11001 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11002 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11003 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
11004 USE_X_TOOLKIT
=LUCID
11006 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11007 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
11015 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11017 if test "${USE_X_TOOLKIT}" != "none"; then
11018 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11019 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
11020 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11021 echo $ECHO_N "(cached) $ECHO_C" >&6
11023 cat >conftest.
$ac_ext <<_ACEOF
11026 cat confdefs.h
>>conftest.
$ac_ext
11027 cat >>conftest.
$ac_ext <<_ACEOF
11028 /* end confdefs.h. */
11029 #include <X11/Intrinsic.h>
11033 #if XtSpecificationRelease < 6
11041 rm -f conftest.
$ac_objext conftest
$ac_exeext
11042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11043 (eval $ac_link) 2>conftest.er1
11045 grep -v '^ *+' conftest.er1
>conftest.err
11047 cat conftest.err
>&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } &&
11050 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11052 (eval $ac_try) 2>&5
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); }; } &&
11056 { ac_try
='test -s conftest$ac_exeext'
11057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11058 (eval $ac_try) 2>&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; }; then
11062 emacs_cv_x11_toolkit_version_6
=yes
11064 echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.
$ac_ext >&5
11067 emacs_cv_x11_toolkit_version_6
=no
11069 rm -f conftest.err conftest.
$ac_objext \
11070 conftest
$ac_exeext conftest.
$ac_ext
11073 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11074 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11075 echo "$as_me:$LINENO: result: 6 or newer" >&5
11076 echo "${ECHO_T}6 or newer" >&6
11078 cat >>confdefs.h
<<\_ACEOF
11079 #define HAVE_X11XTR6 1
11083 echo "$as_me:$LINENO: result: before 6" >&5
11084 echo "${ECHO_T}before 6" >&6
11088 if test x
$HAVE_X11XTR6 = xyes
; then
11089 LIBS
="-lXt -lSM -lICE $LIBS"
11094 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11095 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
11096 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11097 echo $ECHO_N "(cached) $ECHO_C" >&6
11099 ac_check_lib_save_LIBS
=$LIBS
11101 cat >conftest.
$ac_ext <<_ACEOF
11104 cat confdefs.h
>>conftest.
$ac_ext
11105 cat >>conftest.
$ac_ext <<_ACEOF
11106 /* end confdefs.h. */
11108 /* Override any gcc2 internal prototype to avoid an error. */
11112 /* We use char because int might match the return type of a gcc2
11113 builtin and then its argument prototype would still apply. */
11114 char XmuConvertStandardSelection ();
11118 XmuConvertStandardSelection ();
11123 rm -f conftest.
$ac_objext conftest
$ac_exeext
11124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11125 (eval $ac_link) 2>conftest.er1
11127 grep -v '^ *+' conftest.er1
>conftest.err
11129 cat conftest.err
>&5
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); } &&
11132 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11134 (eval $ac_try) 2>&5
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); }; } &&
11138 { ac_try
='test -s conftest$ac_exeext'
11139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11140 (eval $ac_try) 2>&5
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; }; then
11144 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11146 echo "$as_me: failed program was:" >&5
11147 sed 's/^/| /' conftest.
$ac_ext >&5
11149 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11151 rm -f conftest.err conftest.
$ac_objext \
11152 conftest
$ac_exeext conftest.
$ac_ext
11153 LIBS
=$ac_check_lib_save_LIBS
11155 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11156 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
11157 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11158 cat >>confdefs.h
<<_ACEOF
11159 #define HAVE_LIBXMU 1
11166 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11169 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11170 if test "${HAVE_X11}" = "yes"; then
11171 if test "${USE_X_TOOLKIT}" != "none"; then
11173 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11174 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
11175 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11176 echo $ECHO_N "(cached) $ECHO_C" >&6
11178 ac_check_lib_save_LIBS
=$LIBS
11179 LIBS
="-lXext $LIBS"
11180 cat >conftest.
$ac_ext <<_ACEOF
11183 cat confdefs.h
>>conftest.
$ac_ext
11184 cat >>conftest.
$ac_ext <<_ACEOF
11185 /* end confdefs.h. */
11187 /* Override any gcc2 internal prototype to avoid an error. */
11191 /* We use char because int might match the return type of a gcc2
11192 builtin and then its argument prototype would still apply. */
11193 char XShapeQueryExtension ();
11197 XShapeQueryExtension ();
11202 rm -f conftest.
$ac_objext conftest
$ac_exeext
11203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11204 (eval $ac_link) 2>conftest.er1
11206 grep -v '^ *+' conftest.er1
>conftest.err
11208 cat conftest.err
>&5
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); } &&
11211 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11213 (eval $ac_try) 2>&5
11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); }; } &&
11217 { ac_try
='test -s conftest$ac_exeext'
11218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11219 (eval $ac_try) 2>&5
11221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222 (exit $ac_status); }; }; then
11223 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11225 echo "$as_me: failed program was:" >&5
11226 sed 's/^/| /' conftest.
$ac_ext >&5
11228 ac_cv_lib_Xext_XShapeQueryExtension
=no
11230 rm -f conftest.err conftest.
$ac_objext \
11231 conftest
$ac_exeext conftest.
$ac_ext
11232 LIBS
=$ac_check_lib_save_LIBS
11234 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11235 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11236 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11237 cat >>confdefs.h
<<_ACEOF
11238 #define HAVE_LIBXEXT 1
11241 LIBS
="-lXext $LIBS"
11248 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11249 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11250 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11251 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11252 echo $ECHO_N "(cached) $ECHO_C" >&6
11254 cat >conftest.
$ac_ext <<_ACEOF
11257 cat confdefs.h
>>conftest.
$ac_ext
11258 cat >>conftest.
$ac_ext <<_ACEOF
11259 /* end confdefs.h. */
11264 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11267 Motif version prior to 2.1.
11273 rm -f conftest.
$ac_objext
11274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11275 (eval $ac_compile) 2>conftest.er1
11277 grep -v '^ *+' conftest.er1
>conftest.err
11279 cat conftest.err
>&5
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); } &&
11282 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11284 (eval $ac_try) 2>&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); }; } &&
11288 { ac_try
='test -s conftest.$ac_objext'
11289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11290 (eval $ac_try) 2>&5
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); }; }; then
11294 emacs_cv_motif_version_2_1
=yes
11296 echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.
$ac_ext >&5
11299 emacs_cv_motif_version_2_1
=no
11301 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11303 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11304 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11305 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
11306 if test $emacs_cv_motif_version_2_1 = yes; then
11309 cat >>confdefs.h
<<\_ACEOF
11310 #define HAVE_MOTIF_2_1 1
11313 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11314 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11315 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11316 echo $ECHO_N "(cached) $ECHO_C" >&6
11318 ac_check_lib_save_LIBS
=$LIBS
11320 cat >conftest.
$ac_ext <<_ACEOF
11323 cat confdefs.h
>>conftest.
$ac_ext
11324 cat >>conftest.
$ac_ext <<_ACEOF
11325 /* end confdefs.h. */
11327 /* Override any gcc2 internal prototype to avoid an error. */
11331 /* We use char because int might match the return type of a gcc2
11332 builtin and then its argument prototype would still apply. */
11333 char XpCreateContext ();
11337 XpCreateContext ();
11342 rm -f conftest.
$ac_objext conftest
$ac_exeext
11343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11344 (eval $ac_link) 2>conftest.er1
11346 grep -v '^ *+' conftest.er1
>conftest.err
11348 cat conftest.err
>&5
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); } &&
11351 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11353 (eval $ac_try) 2>&5
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); }; } &&
11357 { ac_try
='test -s conftest$ac_exeext'
11358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11359 (eval $ac_try) 2>&5
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); }; }; then
11363 ac_cv_lib_Xp_XpCreateContext
=yes
11365 echo "$as_me: failed program was:" >&5
11366 sed 's/^/| /' conftest.
$ac_ext >&5
11368 ac_cv_lib_Xp_XpCreateContext
=no
11370 rm -f conftest.err conftest.
$ac_objext \
11371 conftest
$ac_exeext conftest.
$ac_ext
11372 LIBS
=$ac_check_lib_save_LIBS
11374 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11375 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11376 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11380 if test ${HAVE_LIBXP} = yes; then
11382 cat >>confdefs.h
<<\_ACEOF
11383 #define HAVE_LIBXP 1
11388 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11389 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11390 if test "${emacs_cv_lesstif+set}" = set; then
11391 echo $ECHO_N "(cached) $ECHO_C" >&6
11393 # We put this in CFLAGS temporarily to precede other -I options
11394 # that might be in CFLAGS temporarily.
11395 # We put this in CPPFLAGS where it precedes the other -I options.
11396 OLD_CPPFLAGS
=$CPPFLAGS
11398 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11399 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11400 cat >conftest.
$ac_ext <<_ACEOF
11403 cat confdefs.h
>>conftest.
$ac_ext
11404 cat >>conftest.
$ac_ext <<_ACEOF
11405 /* end confdefs.h. */
11406 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11415 rm -f conftest.
$ac_objext
11416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11417 (eval $ac_compile) 2>conftest.er1
11419 grep -v '^ *+' conftest.er1
>conftest.err
11421 cat conftest.err
>&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); } &&
11424 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11426 (eval $ac_try) 2>&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); }; } &&
11430 { ac_try
='test -s conftest.$ac_objext'
11431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11432 (eval $ac_try) 2>&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); }; }; then
11436 emacs_cv_lesstif
=yes
11438 echo "$as_me: failed program was:" >&5
11439 sed 's/^/| /' conftest.
$ac_ext >&5
11441 emacs_cv_lesstif
=no
11443 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11445 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11446 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11447 if test $emacs_cv_lesstif = yes; then
11448 # Make sure this -I option remains in CPPFLAGS after it is set
11449 # back to REAL_CPPFLAGS.
11450 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11451 # have those other -I options anyway. Ultimately, having this
11452 # directory ultimately in CPPFLAGS will be enough.
11453 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11454 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11457 CPPFLAGS
=$OLD_CPPFLAGS
11462 ### Is -lXaw3d available?
11464 if test "${HAVE_X11}" = "yes"; then
11465 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
11466 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11467 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11468 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11469 echo $ECHO_N "(cached) $ECHO_C" >&6
11471 cat >conftest.
$ac_ext <<_ACEOF
11474 cat confdefs.h
>>conftest.
$ac_ext
11475 cat >>conftest.
$ac_ext <<_ACEOF
11476 /* end confdefs.h. */
11477 #include <X11/Xaw3d/Scrollbar.h>
11479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11480 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11482 grep -v '^ *+' conftest.er1
>conftest.err
11484 cat conftest.err
>&5
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); } >/dev
/null
; then
11487 if test -s conftest.err
; then
11488 ac_cpp_err
=$ac_c_preproc_warn_flag
11489 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11496 if test -z "$ac_cpp_err"; then
11497 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
11499 echo "$as_me: failed program was:" >&5
11500 sed 's/^/| /' conftest.
$ac_ext >&5
11502 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
11504 rm -f conftest.err conftest.
$ac_ext
11506 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11507 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11508 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11509 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11510 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11511 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11512 echo $ECHO_N "(cached) $ECHO_C" >&6
11514 ac_check_lib_save_LIBS
=$LIBS
11515 LIBS
="-lXaw3d $LIBS"
11516 cat >conftest.
$ac_ext <<_ACEOF
11519 cat confdefs.h
>>conftest.
$ac_ext
11520 cat >>conftest.
$ac_ext <<_ACEOF
11521 /* end confdefs.h. */
11523 /* Override any gcc2 internal prototype to avoid an error. */
11527 /* We use char because int might match the return type of a gcc2
11528 builtin and then its argument prototype would still apply. */
11529 char XawScrollbarSetThumb ();
11533 XawScrollbarSetThumb ();
11538 rm -f conftest.
$ac_objext conftest
$ac_exeext
11539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11540 (eval $ac_link) 2>conftest.er1
11542 grep -v '^ *+' conftest.er1
>conftest.err
11544 cat conftest.err
>&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } &&
11547 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11549 (eval $ac_try) 2>&5
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); }; } &&
11553 { ac_try
='test -s conftest$ac_exeext'
11554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11555 (eval $ac_try) 2>&5
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); }; }; then
11559 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11561 echo "$as_me: failed program was:" >&5
11562 sed 's/^/| /' conftest.
$ac_ext >&5
11564 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11566 rm -f conftest.err conftest.
$ac_objext \
11567 conftest
$ac_exeext conftest.
$ac_ext
11568 LIBS
=$ac_check_lib_save_LIBS
11570 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11571 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11572 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11579 if test "${HAVE_XAW3D}" = "yes"; then
11581 cat >>confdefs.h
<<\_ACEOF
11582 #define HAVE_XAW3D 1
11591 USE_TOOLKIT_SCROLL_BARS
=no
11592 if test "${with_toolkit_scroll_bars}" != "no"; then
11593 if test "${USE_X_TOOLKIT}" != "none"; then
11594 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11595 cat >>confdefs.h
<<\_ACEOF
11596 #define USE_TOOLKIT_SCROLL_BARS 1
11600 USE_TOOLKIT_SCROLL_BARS
=yes
11601 elif test "${HAVE_XAW3D}" = "yes"; then
11602 cat >>confdefs.h
<<\_ACEOF
11603 #define USE_TOOLKIT_SCROLL_BARS 1
11606 USE_TOOLKIT_SCROLL_BARS
=yes
11608 elif test "${HAVE_GTK}" = "yes"; then
11609 cat >>confdefs.h
<<\_ACEOF
11610 #define USE_TOOLKIT_SCROLL_BARS 1
11613 USE_TOOLKIT_SCROLL_BARS
=yes
11614 elif test "${HAVE_CARBON}" = "yes"; then
11615 cat >>confdefs.h
<<\_ACEOF
11616 #define USE_TOOLKIT_SCROLL_BARS 1
11619 USE_TOOLKIT_SCROLL_BARS
=yes
11623 cat >conftest.
$ac_ext <<_ACEOF
11626 cat confdefs.h
>>conftest.
$ac_ext
11627 cat >>conftest.
$ac_ext <<_ACEOF
11628 /* end confdefs.h. */
11630 #include <X11/Xlib.h>
11631 #include <X11/Xresource.h>
11640 rm -f conftest.
$ac_objext
11641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11642 (eval $ac_compile) 2>conftest.er1
11644 grep -v '^ *+' conftest.er1
>conftest.err
11646 cat conftest.err
>&5
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); } &&
11649 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11651 (eval $ac_try) 2>&5
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); }; } &&
11655 { ac_try
='test -s conftest.$ac_objext'
11656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11657 (eval $ac_try) 2>&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); }; }; then
11663 cat >>confdefs.h
<<\_ACEOF
11668 echo "$as_me: failed program was:" >&5
11669 sed 's/^/| /' conftest.
$ac_ext >&5
11673 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11676 if test "${with_xim}" != "no"; then
11678 cat >>confdefs.h
<<\_ACEOF
11685 if test "${HAVE_XIM}" != "no"; then
11686 late_CFLAGS
=$CFLAGS
11687 if test "$GCC" = yes; then
11688 CFLAGS
="$CFLAGS --pedantic-errors"
11690 cat >conftest.
$ac_ext <<_ACEOF
11693 cat confdefs.h
>>conftest.
$ac_ext
11694 cat >>conftest.
$ac_ext <<_ACEOF
11695 /* end confdefs.h. */
11697 #include <X11/Xlib.h>
11698 #include <X11/Xresource.h>
11707 XPointer *client_data;
11709 /* If we're not using GCC, it's probably not XFree86, and this is
11710 probably right, but we can't use something like --pedantic-errors. */
11711 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11712 char*, XIMProc, XPointer*);
11714 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11720 rm -f conftest.
$ac_objext
11721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11722 (eval $ac_compile) 2>conftest.er1
11724 grep -v '^ *+' conftest.er1
>conftest.err
11726 cat conftest.err
>&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); } &&
11729 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731 (eval $ac_try) 2>&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); }; } &&
11735 { ac_try
='test -s conftest.$ac_objext'
11736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737 (eval $ac_try) 2>&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; }; then
11741 emacs_cv_arg6_star
=yes
11743 echo "$as_me: failed program was:" >&5
11744 sed 's/^/| /' conftest.
$ac_ext >&5
11747 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11749 if test "$emacs_cv_arg6_star" = yes; then
11750 cat >>confdefs.h
<<\_ACEOF
11751 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11755 cat >>confdefs.h
<<\_ACEOF
11756 #define XRegisterIMInstantiateCallback_arg6 XPointer
11760 CFLAGS
=$late_CFLAGS
11763 ### Use -lXpm if available, unless `--with-xpm=no'.
11765 if test "${HAVE_X11}" = "yes"; then
11766 if test "${with_xpm}" != "no"; then
11767 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11768 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11769 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11770 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11771 echo $ECHO_N "(cached) $ECHO_C" >&6
11773 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11774 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11776 # Is the header compilable?
11777 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11778 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11779 cat >conftest.
$ac_ext <<_ACEOF
11782 cat confdefs.h
>>conftest.
$ac_ext
11783 cat >>conftest.
$ac_ext <<_ACEOF
11784 /* end confdefs.h. */
11785 $ac_includes_default
11786 #include <X11/xpm.h>
11788 rm -f conftest.
$ac_objext
11789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11790 (eval $ac_compile) 2>conftest.er1
11792 grep -v '^ *+' conftest.er1
>conftest.err
11794 cat conftest.err
>&5
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); } &&
11797 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11799 (eval $ac_try) 2>&5
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; } &&
11803 { ac_try
='test -s conftest.$ac_objext'
11804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11805 (eval $ac_try) 2>&5
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; }; then
11809 ac_header_compiler
=yes
11811 echo "$as_me: failed program was:" >&5
11812 sed 's/^/| /' conftest.
$ac_ext >&5
11814 ac_header_compiler
=no
11816 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11817 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11818 echo "${ECHO_T}$ac_header_compiler" >&6
11820 # Is the header present?
11821 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11822 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11823 cat >conftest.
$ac_ext <<_ACEOF
11826 cat confdefs.h
>>conftest.
$ac_ext
11827 cat >>conftest.
$ac_ext <<_ACEOF
11828 /* end confdefs.h. */
11829 #include <X11/xpm.h>
11831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11832 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11834 grep -v '^ *+' conftest.er1
>conftest.err
11836 cat conftest.err
>&5
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); } >/dev
/null
; then
11839 if test -s conftest.err
; then
11840 ac_cpp_err
=$ac_c_preproc_warn_flag
11841 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11848 if test -z "$ac_cpp_err"; then
11849 ac_header_preproc
=yes
11851 echo "$as_me: failed program was:" >&5
11852 sed 's/^/| /' conftest.
$ac_ext >&5
11854 ac_header_preproc
=no
11856 rm -f conftest.err conftest.
$ac_ext
11857 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11858 echo "${ECHO_T}$ac_header_preproc" >&6
11860 # So? What about this header?
11861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11863 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11864 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11865 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11866 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11867 ac_header_preproc
=yes
11870 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11871 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11872 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11873 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11874 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11875 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11876 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11877 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11878 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11879 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11880 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11881 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11884 ## ------------------------------------------ ##
11885 ## Report this to the AC_PACKAGE_NAME lists. ##
11886 ## ------------------------------------------ ##
11889 sed "s/^/$as_me: WARNING: /" >&2
11892 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11893 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11894 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11895 echo $ECHO_N "(cached) $ECHO_C" >&6
11897 ac_cv_header_X11_xpm_h
=$ac_header_preproc
11899 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11900 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11903 if test $ac_cv_header_X11_xpm_h = yes; then
11904 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11905 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11906 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11907 echo $ECHO_N "(cached) $ECHO_C" >&6
11909 ac_check_lib_save_LIBS
=$LIBS
11910 LIBS
="-lXpm -lX11 $LIBS"
11911 cat >conftest.
$ac_ext <<_ACEOF
11914 cat confdefs.h
>>conftest.
$ac_ext
11915 cat >>conftest.
$ac_ext <<_ACEOF
11916 /* end confdefs.h. */
11918 /* Override any gcc2 internal prototype to avoid an error. */
11922 /* We use char because int might match the return type of a gcc2
11923 builtin and then its argument prototype would still apply. */
11924 char XpmReadFileToPixmap ();
11928 XpmReadFileToPixmap ();
11933 rm -f conftest.
$ac_objext conftest
$ac_exeext
11934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11935 (eval $ac_link) 2>conftest.er1
11937 grep -v '^ *+' conftest.er1
>conftest.err
11939 cat conftest.err
>&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); } &&
11942 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944 (eval $ac_try) 2>&5
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); }; } &&
11948 { ac_try
='test -s conftest$ac_exeext'
11949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950 (eval $ac_try) 2>&5
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; }; then
11954 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
11956 echo "$as_me: failed program was:" >&5
11957 sed 's/^/| /' conftest.
$ac_ext >&5
11959 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
11961 rm -f conftest.err conftest.
$ac_objext \
11962 conftest
$ac_exeext conftest.
$ac_ext
11963 LIBS
=$ac_check_lib_save_LIBS
11965 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11966 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11967 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11974 if test "${HAVE_XPM}" = "yes"; then
11975 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11976 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11977 cat >conftest.
$ac_ext <<_ACEOF
11980 cat confdefs.h
>>conftest.
$ac_ext
11981 cat >>conftest.
$ac_ext <<_ACEOF
11982 /* end confdefs.h. */
11983 #include "X11/xpm.h"
11984 #ifndef XpmReturnAllocPixels
11985 no_return_alloc_pixels
11989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11990 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
11998 if test "${HAVE_XPM}" = "yes"; then
11999 echo "$as_me:$LINENO: result: yes" >&5
12000 echo "${ECHO_T}yes" >&6
12002 echo "$as_me:$LINENO: result: no" >&5
12003 echo "${ECHO_T}no" >&6
12008 if test "${HAVE_XPM}" = "yes"; then
12010 cat >>confdefs.h
<<\_ACEOF
12017 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12019 if test "${HAVE_X11}" = "yes"; then
12020 if test "${with_jpeg}" != "no"; then
12021 if test "${ac_cv_header_jerror_h+set}" = set; then
12022 echo "$as_me:$LINENO: checking for jerror.h" >&5
12023 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12024 if test "${ac_cv_header_jerror_h+set}" = set; then
12025 echo $ECHO_N "(cached) $ECHO_C" >&6
12027 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12028 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12030 # Is the header compilable?
12031 echo "$as_me:$LINENO: checking jerror.h usability" >&5
12032 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
12033 cat >conftest.
$ac_ext <<_ACEOF
12036 cat confdefs.h
>>conftest.
$ac_ext
12037 cat >>conftest.
$ac_ext <<_ACEOF
12038 /* end confdefs.h. */
12039 $ac_includes_default
12040 #include <jerror.h>
12042 rm -f conftest.
$ac_objext
12043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12044 (eval $ac_compile) 2>conftest.er1
12046 grep -v '^ *+' conftest.er1
>conftest.err
12048 cat conftest.err
>&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); } &&
12051 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12057 { ac_try
='test -s conftest.$ac_objext'
12058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12059 (eval $ac_try) 2>&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); }; }; then
12063 ac_header_compiler
=yes
12065 echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.
$ac_ext >&5
12068 ac_header_compiler
=no
12070 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12072 echo "${ECHO_T}$ac_header_compiler" >&6
12074 # Is the header present?
12075 echo "$as_me:$LINENO: checking jerror.h presence" >&5
12076 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
12077 cat >conftest.
$ac_ext <<_ACEOF
12080 cat confdefs.h
>>conftest.
$ac_ext
12081 cat >>conftest.
$ac_ext <<_ACEOF
12082 /* end confdefs.h. */
12083 #include <jerror.h>
12085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12086 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12088 grep -v '^ *+' conftest.er1
>conftest.err
12090 cat conftest.err
>&5
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); } >/dev
/null
; then
12093 if test -s conftest.err
; then
12094 ac_cpp_err
=$ac_c_preproc_warn_flag
12095 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12102 if test -z "$ac_cpp_err"; then
12103 ac_header_preproc
=yes
12105 echo "$as_me: failed program was:" >&5
12106 sed 's/^/| /' conftest.
$ac_ext >&5
12108 ac_header_preproc
=no
12110 rm -f conftest.err conftest.
$ac_ext
12111 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12112 echo "${ECHO_T}$ac_header_preproc" >&6
12114 # So? What about this header?
12115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12117 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12118 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12119 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12120 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12121 ac_header_preproc
=yes
12124 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12125 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12126 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12127 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12128 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12129 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12130 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12131 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12132 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12133 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12134 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12135 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12138 ## ------------------------------------------ ##
12139 ## Report this to the AC_PACKAGE_NAME lists. ##
12140 ## ------------------------------------------ ##
12143 sed "s/^/$as_me: WARNING: /" >&2
12146 echo "$as_me:$LINENO: checking for jerror.h" >&5
12147 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12148 if test "${ac_cv_header_jerror_h+set}" = set; then
12149 echo $ECHO_N "(cached) $ECHO_C" >&6
12151 ac_cv_header_jerror_h
=$ac_header_preproc
12153 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12154 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12157 if test $ac_cv_header_jerror_h = yes; then
12158 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12159 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
12160 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12161 echo $ECHO_N "(cached) $ECHO_C" >&6
12163 ac_check_lib_save_LIBS
=$LIBS
12164 LIBS
="-ljpeg $LIBS"
12165 cat >conftest.
$ac_ext <<_ACEOF
12168 cat confdefs.h
>>conftest.
$ac_ext
12169 cat >>conftest.
$ac_ext <<_ACEOF
12170 /* end confdefs.h. */
12172 /* Override any gcc2 internal prototype to avoid an error. */
12176 /* We use char because int might match the return type of a gcc2
12177 builtin and then its argument prototype would still apply. */
12178 char jpeg_destroy_compress ();
12182 jpeg_destroy_compress ();
12187 rm -f conftest.
$ac_objext conftest
$ac_exeext
12188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12189 (eval $ac_link) 2>conftest.er1
12191 grep -v '^ *+' conftest.er1
>conftest.err
12193 cat conftest.err
>&5
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); } &&
12196 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12198 (eval $ac_try) 2>&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); }; } &&
12202 { ac_try
='test -s conftest$ac_exeext'
12203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12204 (eval $ac_try) 2>&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); }; }; then
12208 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12210 echo "$as_me: failed program was:" >&5
12211 sed 's/^/| /' conftest.
$ac_ext >&5
12213 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12215 rm -f conftest.err conftest.
$ac_objext \
12216 conftest
$ac_exeext conftest.
$ac_ext
12217 LIBS
=$ac_check_lib_save_LIBS
12219 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12220 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
12221 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12231 if test "${HAVE_JPEG}" = "yes"; then
12232 cat >>confdefs.h
<<\_ACEOF
12233 #define HAVE_JPEG 1
12236 cat >conftest.
$ac_ext <<_ACEOF
12239 cat confdefs.h
>>conftest.
$ac_ext
12240 cat >>conftest.
$ac_ext <<_ACEOF
12241 /* end confdefs.h. */
12242 #include <jpeglib.h>
12243 version=JPEG_LIB_VERSION
12246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12247 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
12248 cat >>confdefs.h
<<\_ACEOF
12249 #define HAVE_JPEG 1
12253 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12254 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12262 ### Use -lpng if available, unless `--with-png=no'.
12264 if test "${HAVE_X11}" = "yes"; then
12265 if test "${with_png}" != "no"; then
12266 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12267 # in /usr/include/libpng.
12270 for ac_header
in png.h libpng
/png.h
12272 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12274 echo "$as_me:$LINENO: checking for $ac_header" >&5
12275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12277 echo $ECHO_N "(cached) $ECHO_C" >&6
12279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12280 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12282 # Is the header compilable?
12283 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12284 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12285 cat >conftest.
$ac_ext <<_ACEOF
12288 cat confdefs.h
>>conftest.
$ac_ext
12289 cat >>conftest.
$ac_ext <<_ACEOF
12290 /* end confdefs.h. */
12291 $ac_includes_default
12292 #include <$ac_header>
12294 rm -f conftest.
$ac_objext
12295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12296 (eval $ac_compile) 2>conftest.er1
12298 grep -v '^ *+' conftest.er1
>conftest.err
12300 cat conftest.err
>&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } &&
12303 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12305 (eval $ac_try) 2>&5
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); }; } &&
12309 { ac_try
='test -s conftest.$ac_objext'
12310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12311 (eval $ac_try) 2>&5
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); }; }; then
12315 ac_header_compiler
=yes
12317 echo "$as_me: failed program was:" >&5
12318 sed 's/^/| /' conftest.
$ac_ext >&5
12320 ac_header_compiler
=no
12322 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12323 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12324 echo "${ECHO_T}$ac_header_compiler" >&6
12326 # Is the header present?
12327 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12328 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12329 cat >conftest.
$ac_ext <<_ACEOF
12332 cat confdefs.h
>>conftest.
$ac_ext
12333 cat >>conftest.
$ac_ext <<_ACEOF
12334 /* end confdefs.h. */
12335 #include <$ac_header>
12337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12338 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12340 grep -v '^ *+' conftest.er1
>conftest.err
12342 cat conftest.err
>&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } >/dev
/null
; then
12345 if test -s conftest.err
; then
12346 ac_cpp_err
=$ac_c_preproc_warn_flag
12347 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12354 if test -z "$ac_cpp_err"; then
12355 ac_header_preproc
=yes
12357 echo "$as_me: failed program was:" >&5
12358 sed 's/^/| /' conftest.
$ac_ext >&5
12360 ac_header_preproc
=no
12362 rm -f conftest.err conftest.
$ac_ext
12363 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12364 echo "${ECHO_T}$ac_header_preproc" >&6
12366 # So? What about this header?
12367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12369 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12372 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12373 ac_header_preproc
=yes
12376 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12377 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12378 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12379 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12380 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12381 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12382 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12383 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12386 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12387 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12390 ## ------------------------------------------ ##
12391 ## Report this to the AC_PACKAGE_NAME lists. ##
12392 ## ------------------------------------------ ##
12395 sed "s/^/$as_me: WARNING: /" >&2
12398 echo "$as_me:$LINENO: checking for $ac_header" >&5
12399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12401 echo $ECHO_N "(cached) $ECHO_C" >&6
12403 eval "$as_ac_Header=\$ac_header_preproc"
12405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12410 cat >>confdefs.h
<<_ACEOF
12411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12418 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12419 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12420 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12421 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12422 echo $ECHO_N "(cached) $ECHO_C" >&6
12424 ac_check_lib_save_LIBS
=$LIBS
12425 LIBS
="-lpng -lz -lm $LIBS"
12426 cat >conftest.
$ac_ext <<_ACEOF
12429 cat confdefs.h
>>conftest.
$ac_ext
12430 cat >>conftest.
$ac_ext <<_ACEOF
12431 /* end confdefs.h. */
12433 /* Override any gcc2 internal prototype to avoid an error. */
12437 /* We use char because int might match the return type of a gcc2
12438 builtin and then its argument prototype would still apply. */
12439 char png_get_channels ();
12443 png_get_channels ();
12448 rm -f conftest.
$ac_objext conftest
$ac_exeext
12449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12450 (eval $ac_link) 2>conftest.er1
12452 grep -v '^ *+' conftest.er1
>conftest.err
12454 cat conftest.err
>&5
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); } &&
12457 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12459 (eval $ac_try) 2>&5
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); }; } &&
12463 { ac_try
='test -s conftest$ac_exeext'
12464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12465 (eval $ac_try) 2>&5
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); }; }; then
12469 ac_cv_lib_png_png_get_channels
=yes
12471 echo "$as_me: failed program was:" >&5
12472 sed 's/^/| /' conftest.
$ac_ext >&5
12474 ac_cv_lib_png_png_get_channels
=no
12476 rm -f conftest.err conftest.
$ac_objext \
12477 conftest
$ac_exeext conftest.
$ac_ext
12478 LIBS
=$ac_check_lib_save_LIBS
12480 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12481 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12482 if test $ac_cv_lib_png_png_get_channels = yes; then
12489 if test "${HAVE_PNG}" = "yes"; then
12491 cat >>confdefs.h
<<\_ACEOF
12498 ### Use -ltiff if available, unless `--with-tiff=no'.
12500 if test "${HAVE_X11}" = "yes"; then
12501 if test "${with_tiff}" != "no"; then
12502 if test "${ac_cv_header_tiffio_h+set}" = set; then
12503 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12504 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12505 if test "${ac_cv_header_tiffio_h+set}" = set; then
12506 echo $ECHO_N "(cached) $ECHO_C" >&6
12508 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12509 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12511 # Is the header compilable?
12512 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12513 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12514 cat >conftest.
$ac_ext <<_ACEOF
12517 cat confdefs.h
>>conftest.
$ac_ext
12518 cat >>conftest.
$ac_ext <<_ACEOF
12519 /* end confdefs.h. */
12520 $ac_includes_default
12521 #include <tiffio.h>
12523 rm -f conftest.
$ac_objext
12524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12525 (eval $ac_compile) 2>conftest.er1
12527 grep -v '^ *+' conftest.er1
>conftest.err
12529 cat conftest.err
>&5
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); } &&
12532 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12534 (eval $ac_try) 2>&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); }; } &&
12538 { ac_try
='test -s conftest.$ac_objext'
12539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12540 (eval $ac_try) 2>&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); }; }; then
12544 ac_header_compiler
=yes
12546 echo "$as_me: failed program was:" >&5
12547 sed 's/^/| /' conftest.
$ac_ext >&5
12549 ac_header_compiler
=no
12551 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12552 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12553 echo "${ECHO_T}$ac_header_compiler" >&6
12555 # Is the header present?
12556 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12557 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12558 cat >conftest.
$ac_ext <<_ACEOF
12561 cat confdefs.h
>>conftest.
$ac_ext
12562 cat >>conftest.
$ac_ext <<_ACEOF
12563 /* end confdefs.h. */
12564 #include <tiffio.h>
12566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12567 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12569 grep -v '^ *+' conftest.er1
>conftest.err
12571 cat conftest.err
>&5
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); } >/dev
/null
; then
12574 if test -s conftest.err
; then
12575 ac_cpp_err
=$ac_c_preproc_warn_flag
12576 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12583 if test -z "$ac_cpp_err"; then
12584 ac_header_preproc
=yes
12586 echo "$as_me: failed program was:" >&5
12587 sed 's/^/| /' conftest.
$ac_ext >&5
12589 ac_header_preproc
=no
12591 rm -f conftest.err conftest.
$ac_ext
12592 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12593 echo "${ECHO_T}$ac_header_preproc" >&6
12595 # So? What about this header?
12596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12598 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12599 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12600 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12601 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12602 ac_header_preproc
=yes
12605 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12606 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12607 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12608 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12609 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12610 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12611 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12612 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12613 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12614 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12615 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12616 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12619 ## ------------------------------------------ ##
12620 ## Report this to the AC_PACKAGE_NAME lists. ##
12621 ## ------------------------------------------ ##
12624 sed "s/^/$as_me: WARNING: /" >&2
12627 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12628 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12629 if test "${ac_cv_header_tiffio_h+set}" = set; then
12630 echo $ECHO_N "(cached) $ECHO_C" >&6
12632 ac_cv_header_tiffio_h
=$ac_header_preproc
12634 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12635 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12638 if test $ac_cv_header_tiffio_h = yes; then
12640 # At least one tiff package requires the jpeg library.
12641 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12642 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12643 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12644 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12645 echo $ECHO_N "(cached) $ECHO_C" >&6
12647 ac_check_lib_save_LIBS
=$LIBS
12648 LIBS
="-ltiff $tifflibs $LIBS"
12649 cat >conftest.
$ac_ext <<_ACEOF
12652 cat confdefs.h
>>conftest.
$ac_ext
12653 cat >>conftest.
$ac_ext <<_ACEOF
12654 /* end confdefs.h. */
12656 /* Override any gcc2 internal prototype to avoid an error. */
12660 /* We use char because int might match the return type of a gcc2
12661 builtin and then its argument prototype would still apply. */
12662 char TIFFGetVersion ();
12671 rm -f conftest.
$ac_objext conftest
$ac_exeext
12672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12673 (eval $ac_link) 2>conftest.er1
12675 grep -v '^ *+' conftest.er1
>conftest.err
12677 cat conftest.err
>&5
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); } &&
12680 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12682 (eval $ac_try) 2>&5
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); }; } &&
12686 { ac_try
='test -s conftest$ac_exeext'
12687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12688 (eval $ac_try) 2>&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); }; }; then
12692 ac_cv_lib_tiff_TIFFGetVersion
=yes
12694 echo "$as_me: failed program was:" >&5
12695 sed 's/^/| /' conftest.
$ac_ext >&5
12697 ac_cv_lib_tiff_TIFFGetVersion
=no
12699 rm -f conftest.err conftest.
$ac_objext \
12700 conftest
$ac_exeext conftest.
$ac_ext
12701 LIBS
=$ac_check_lib_save_LIBS
12703 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12704 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12705 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12714 if test "${HAVE_TIFF}" = "yes"; then
12716 cat >>confdefs.h
<<\_ACEOF
12717 #define HAVE_TIFF 1
12723 ### Use -lgif if available, unless `--with-gif=no'.
12725 if test "${HAVE_X11}" = "yes"; then
12726 if test "${with_gif}" != "no"; then
12727 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12728 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12729 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12730 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12731 echo $ECHO_N "(cached) $ECHO_C" >&6
12733 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12734 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12736 # Is the header compilable?
12737 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12738 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12739 cat >conftest.
$ac_ext <<_ACEOF
12742 cat confdefs.h
>>conftest.
$ac_ext
12743 cat >>conftest.
$ac_ext <<_ACEOF
12744 /* end confdefs.h. */
12745 $ac_includes_default
12746 #include <gif_lib.h>
12748 rm -f conftest.
$ac_objext
12749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12750 (eval $ac_compile) 2>conftest.er1
12752 grep -v '^ *+' conftest.er1
>conftest.err
12754 cat conftest.err
>&5
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); } &&
12757 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12759 (eval $ac_try) 2>&5
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); }; } &&
12763 { ac_try
='test -s conftest.$ac_objext'
12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765 (eval $ac_try) 2>&5
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; }; then
12769 ac_header_compiler
=yes
12771 echo "$as_me: failed program was:" >&5
12772 sed 's/^/| /' conftest.
$ac_ext >&5
12774 ac_header_compiler
=no
12776 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12777 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12778 echo "${ECHO_T}$ac_header_compiler" >&6
12780 # Is the header present?
12781 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12782 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12783 cat >conftest.
$ac_ext <<_ACEOF
12786 cat confdefs.h
>>conftest.
$ac_ext
12787 cat >>conftest.
$ac_ext <<_ACEOF
12788 /* end confdefs.h. */
12789 #include <gif_lib.h>
12791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12792 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12794 grep -v '^ *+' conftest.er1
>conftest.err
12796 cat conftest.err
>&5
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); } >/dev
/null
; then
12799 if test -s conftest.err
; then
12800 ac_cpp_err
=$ac_c_preproc_warn_flag
12801 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12808 if test -z "$ac_cpp_err"; then
12809 ac_header_preproc
=yes
12811 echo "$as_me: failed program was:" >&5
12812 sed 's/^/| /' conftest.
$ac_ext >&5
12814 ac_header_preproc
=no
12816 rm -f conftest.err conftest.
$ac_ext
12817 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12818 echo "${ECHO_T}$ac_header_preproc" >&6
12820 # So? What about this header?
12821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12823 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12824 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12825 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12826 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12827 ac_header_preproc
=yes
12830 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12831 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12832 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12833 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12834 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12835 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12836 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12837 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12838 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12839 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12840 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12841 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12844 ## ------------------------------------------ ##
12845 ## Report this to the AC_PACKAGE_NAME lists. ##
12846 ## ------------------------------------------ ##
12849 sed "s/^/$as_me: WARNING: /" >&2
12852 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12853 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12854 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12855 echo $ECHO_N "(cached) $ECHO_C" >&6
12857 ac_cv_header_gif_lib_h
=$ac_header_preproc
12859 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12860 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12863 if test $ac_cv_header_gif_lib_h = yes; then
12864 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12865 # Earlier versions can crash Emacs.
12866 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12867 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12868 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12869 echo $ECHO_N "(cached) $ECHO_C" >&6
12871 ac_check_lib_save_LIBS
=$LIBS
12872 LIBS
="-lungif $LIBS"
12873 cat >conftest.
$ac_ext <<_ACEOF
12876 cat confdefs.h
>>conftest.
$ac_ext
12877 cat >>conftest.
$ac_ext <<_ACEOF
12878 /* end confdefs.h. */
12880 /* Override any gcc2 internal prototype to avoid an error. */
12884 /* We use char because int might match the return type of a gcc2
12885 builtin and then its argument prototype would still apply. */
12886 char EGifPutExtensionLast ();
12890 EGifPutExtensionLast ();
12895 rm -f conftest.
$ac_objext conftest
$ac_exeext
12896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12897 (eval $ac_link) 2>conftest.er1
12899 grep -v '^ *+' conftest.er1
>conftest.err
12901 cat conftest.err
>&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); } &&
12904 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12906 (eval $ac_try) 2>&5
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); }; } &&
12910 { ac_try
='test -s conftest$ac_exeext'
12911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912 (eval $ac_try) 2>&5
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; }; then
12916 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12918 echo "$as_me: failed program was:" >&5
12919 sed 's/^/| /' conftest.
$ac_ext >&5
12921 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12923 rm -f conftest.err conftest.
$ac_objext \
12924 conftest
$ac_exeext conftest.
$ac_ext
12925 LIBS
=$ac_check_lib_save_LIBS
12927 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12928 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12929 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12938 if test "${HAVE_GIF}" = "yes"; then
12940 cat >>confdefs.h
<<\_ACEOF
12947 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12948 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12949 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12950 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
12953 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12954 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12956 # Is the header compilable?
12957 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12958 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12959 cat >conftest.
$ac_ext <<_ACEOF
12962 cat confdefs.h
>>conftest.
$ac_ext
12963 cat >>conftest.
$ac_ext <<_ACEOF
12964 /* end confdefs.h. */
12965 $ac_includes_default
12966 #include <malloc/malloc.h>
12968 rm -f conftest.
$ac_objext
12969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12970 (eval $ac_compile) 2>conftest.er1
12972 grep -v '^ *+' conftest.er1
>conftest.err
12974 cat conftest.err
>&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); } &&
12977 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979 (eval $ac_try) 2>&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; } &&
12983 { ac_try
='test -s conftest.$ac_objext'
12984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12985 (eval $ac_try) 2>&5
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); }; }; then
12989 ac_header_compiler
=yes
12991 echo "$as_me: failed program was:" >&5
12992 sed 's/^/| /' conftest.
$ac_ext >&5
12994 ac_header_compiler
=no
12996 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12997 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12998 echo "${ECHO_T}$ac_header_compiler" >&6
13000 # Is the header present?
13001 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13002 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
13003 cat >conftest.
$ac_ext <<_ACEOF
13006 cat confdefs.h
>>conftest.
$ac_ext
13007 cat >>conftest.
$ac_ext <<_ACEOF
13008 /* end confdefs.h. */
13009 #include <malloc/malloc.h>
13011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13012 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13014 grep -v '^ *+' conftest.er1
>conftest.err
13016 cat conftest.err
>&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); } >/dev
/null
; then
13019 if test -s conftest.err
; then
13020 ac_cpp_err
=$ac_c_preproc_warn_flag
13021 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13028 if test -z "$ac_cpp_err"; then
13029 ac_header_preproc
=yes
13031 echo "$as_me: failed program was:" >&5
13032 sed 's/^/| /' conftest.
$ac_ext >&5
13034 ac_header_preproc
=no
13036 rm -f conftest.err conftest.
$ac_ext
13037 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13038 echo "${ECHO_T}$ac_header_preproc" >&6
13040 # So? What about this header?
13041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13043 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13044 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13045 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13046 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13047 ac_header_preproc
=yes
13050 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13051 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13052 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13053 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13054 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13055 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13056 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13057 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13058 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13059 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13060 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13061 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13064 ## ------------------------------------------ ##
13065 ## Report this to the AC_PACKAGE_NAME lists. ##
13066 ## ------------------------------------------ ##
13069 sed "s/^/$as_me: WARNING: /" >&2
13072 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13073 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13074 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13075 echo $ECHO_N "(cached) $ECHO_C" >&6
13077 ac_cv_header_malloc_malloc_h
=$ac_header_preproc
13079 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13080 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13083 if test $ac_cv_header_malloc_malloc_h = yes; then
13085 cat >>confdefs.h
<<\_ACEOF
13086 #define HAVE_MALLOC_MALLOC_H 1
13093 ### Use Mac OS X Carbon API to implement GUI.
13094 if test "${HAVE_CARBON}" = "yes"; then
13096 cat >>confdefs.h
<<\_ACEOF
13097 #define HAVE_CARBON 1
13100 ## Specify the install directory
13102 if test "${carbon_appdir_x}" != ""; then
13103 case ${carbon_appdir_x} in
13104 y | ye |
yes) carbon_appdir
=/Applications
;;
13105 * ) carbon_appdir
=${carbon_appdir_x} ;;
13108 # We also have mouse menus.
13111 tmp_CFLAGS
="$CFLAGS"
13112 CFLAGS
="$CFLAGS -framework Carbon"
13113 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
13114 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
13115 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
13116 echo $ECHO_N "(cached) $ECHO_C" >&6
13118 cat >conftest.
$ac_ext <<_ACEOF
13121 cat confdefs.h
>>conftest.
$ac_ext
13122 cat >>conftest.
$ac_ext <<_ACEOF
13123 /* end confdefs.h. */
13124 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
13125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13126 #define CancelMenuTracking innocuous_CancelMenuTracking
13128 /* System header to define __stub macros and hopefully few prototypes,
13129 which can conflict with char CancelMenuTracking (); below.
13130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13131 <limits.h> exists even on freestanding compilers. */
13134 # include <limits.h>
13136 # include <assert.h>
13139 #undef CancelMenuTracking
13141 /* Override any gcc2 internal prototype to avoid an error. */
13146 /* We use char because int might match the return type of a gcc2
13147 builtin and then its argument prototype would still apply. */
13148 char CancelMenuTracking ();
13149 /* The GNU C library defines this for functions which it implements
13150 to always fail with ENOSYS. Some functions are actually named
13151 something starting with __ and the normal name is an alias. */
13152 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
13155 char (*f) () = CancelMenuTracking;
13164 return f != CancelMenuTracking;
13169 rm -f conftest.
$ac_objext conftest
$ac_exeext
13170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13171 (eval $ac_link) 2>conftest.er1
13173 grep -v '^ *+' conftest.er1
>conftest.err
13175 cat conftest.err
>&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); } &&
13178 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13180 (eval $ac_try) 2>&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; } &&
13184 { ac_try
='test -s conftest$ac_exeext'
13185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13186 (eval $ac_try) 2>&5
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); }; }; then
13190 ac_cv_func_CancelMenuTracking
=yes
13192 echo "$as_me: failed program was:" >&5
13193 sed 's/^/| /' conftest.
$ac_ext >&5
13195 ac_cv_func_CancelMenuTracking
=no
13197 rm -f conftest.err conftest.
$ac_objext \
13198 conftest
$ac_exeext conftest.
$ac_ext
13200 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
13201 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
13202 if test $ac_cv_func_CancelMenuTracking = yes; then
13208 if test "$have_cmt" = yes; then
13210 cat >>confdefs.h
<<\_ACEOF
13211 #define HAVE_CANCELMENUTRACKING 1
13215 CFLAGS
="$tmp_CFLAGS"
13218 ### Use session management (-lSM -lICE) if available
13220 if test "${HAVE_X11}" = "yes"; then
13221 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13222 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13223 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13224 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13225 echo $ECHO_N "(cached) $ECHO_C" >&6
13227 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13228 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13230 # Is the header compilable?
13231 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13232 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13233 cat >conftest.
$ac_ext <<_ACEOF
13236 cat confdefs.h
>>conftest.
$ac_ext
13237 cat >>conftest.
$ac_ext <<_ACEOF
13238 /* end confdefs.h. */
13239 $ac_includes_default
13240 #include <X11/SM/SMlib.h>
13242 rm -f conftest.
$ac_objext
13243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13244 (eval $ac_compile) 2>conftest.er1
13246 grep -v '^ *+' conftest.er1
>conftest.err
13248 cat conftest.err
>&5
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); } &&
13251 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13253 (eval $ac_try) 2>&5
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }; } &&
13257 { ac_try
='test -s conftest.$ac_objext'
13258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13259 (eval $ac_try) 2>&5
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); }; }; then
13263 ac_header_compiler
=yes
13265 echo "$as_me: failed program was:" >&5
13266 sed 's/^/| /' conftest.
$ac_ext >&5
13268 ac_header_compiler
=no
13270 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13271 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13272 echo "${ECHO_T}$ac_header_compiler" >&6
13274 # Is the header present?
13275 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13276 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13277 cat >conftest.
$ac_ext <<_ACEOF
13280 cat confdefs.h
>>conftest.
$ac_ext
13281 cat >>conftest.
$ac_ext <<_ACEOF
13282 /* end confdefs.h. */
13283 #include <X11/SM/SMlib.h>
13285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13286 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13288 grep -v '^ *+' conftest.er1
>conftest.err
13290 cat conftest.err
>&5
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); } >/dev
/null
; then
13293 if test -s conftest.err
; then
13294 ac_cpp_err
=$ac_c_preproc_warn_flag
13295 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13302 if test -z "$ac_cpp_err"; then
13303 ac_header_preproc
=yes
13305 echo "$as_me: failed program was:" >&5
13306 sed 's/^/| /' conftest.
$ac_ext >&5
13308 ac_header_preproc
=no
13310 rm -f conftest.err conftest.
$ac_ext
13311 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13312 echo "${ECHO_T}$ac_header_preproc" >&6
13314 # So? What about this header?
13315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13317 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13318 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13319 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13320 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13321 ac_header_preproc
=yes
13324 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13325 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13326 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13327 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13328 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13329 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13330 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13331 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13332 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13333 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13334 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13335 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13338 ## ------------------------------------------ ##
13339 ## Report this to the AC_PACKAGE_NAME lists. ##
13340 ## ------------------------------------------ ##
13343 sed "s/^/$as_me: WARNING: /" >&2
13346 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13347 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13348 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13349 echo $ECHO_N "(cached) $ECHO_C" >&6
13351 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
13353 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13354 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13357 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13358 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13359 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
13360 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13361 echo $ECHO_N "(cached) $ECHO_C" >&6
13363 ac_check_lib_save_LIBS
=$LIBS
13364 LIBS
="-lSM -lICE $LIBS"
13365 cat >conftest.
$ac_ext <<_ACEOF
13368 cat confdefs.h
>>conftest.
$ac_ext
13369 cat >>conftest.
$ac_ext <<_ACEOF
13370 /* end confdefs.h. */
13372 /* Override any gcc2 internal prototype to avoid an error. */
13376 /* We use char because int might match the return type of a gcc2
13377 builtin and then its argument prototype would still apply. */
13378 char SmcOpenConnection ();
13382 SmcOpenConnection ();
13387 rm -f conftest.
$ac_objext conftest
$ac_exeext
13388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13389 (eval $ac_link) 2>conftest.er1
13391 grep -v '^ *+' conftest.er1
>conftest.err
13393 cat conftest.err
>&5
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); } &&
13396 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13398 (eval $ac_try) 2>&5
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); }; } &&
13402 { ac_try
='test -s conftest$ac_exeext'
13403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13404 (eval $ac_try) 2>&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); }; }; then
13408 ac_cv_lib_SM_SmcOpenConnection
=yes
13410 echo "$as_me: failed program was:" >&5
13411 sed 's/^/| /' conftest.
$ac_ext >&5
13413 ac_cv_lib_SM_SmcOpenConnection
=no
13415 rm -f conftest.err conftest.
$ac_objext \
13416 conftest
$ac_exeext conftest.
$ac_ext
13417 LIBS
=$ac_check_lib_save_LIBS
13419 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13420 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13421 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13429 if test "${HAVE_X_SM}" = "yes"; then
13431 cat >>confdefs.h
<<\_ACEOF
13432 #define HAVE_X_SM 1
13437 *) LIBS
="-lSM -lICE $LIBS" ;;
13442 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13443 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13444 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13445 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13446 echo $ECHO_N "(cached) $ECHO_C" >&6
13448 cat >conftest.
$ac_ext <<_ACEOF
13451 cat confdefs.h
>>conftest.
$ac_ext
13452 cat >>conftest.
$ac_ext <<_ACEOF
13453 /* end confdefs.h. */
13463 rm -f conftest.
$ac_objext conftest
$ac_exeext
13464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13465 (eval $ac_link) 2>conftest.er1
13467 grep -v '^ *+' conftest.er1
>conftest.err
13469 cat conftest.err
>&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); } &&
13472 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13474 (eval $ac_try) 2>&5
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); }; } &&
13478 { ac_try
='test -s conftest$ac_exeext'
13479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13480 (eval $ac_try) 2>&5
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); }; }; then
13484 emacs_cv_netdb_declares_h_errno
=yes
13486 echo "$as_me: failed program was:" >&5
13487 sed 's/^/| /' conftest.
$ac_ext >&5
13489 emacs_cv_netdb_declares_h_errno
=no
13491 rm -f conftest.err conftest.
$ac_objext \
13492 conftest
$ac_exeext conftest.
$ac_ext
13494 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13495 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13496 if test $emacs_cv_netdb_declares_h_errno = yes; then
13498 cat >>confdefs.h
<<\_ACEOF
13499 #define HAVE_H_ERRNO 1
13504 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13505 # for constant arguments. Useless!
13506 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13507 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13508 if test "${ac_cv_working_alloca_h+set}" = set; then
13509 echo $ECHO_N "(cached) $ECHO_C" >&6
13511 cat >conftest.
$ac_ext <<_ACEOF
13514 cat confdefs.h
>>conftest.
$ac_ext
13515 cat >>conftest.
$ac_ext <<_ACEOF
13516 /* end confdefs.h. */
13517 #include <alloca.h>
13521 char *p = (char *) alloca (2 * sizeof (int));
13526 rm -f conftest.
$ac_objext conftest
$ac_exeext
13527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13528 (eval $ac_link) 2>conftest.er1
13530 grep -v '^ *+' conftest.er1
>conftest.err
13532 cat conftest.err
>&5
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); } &&
13535 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13537 (eval $ac_try) 2>&5
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); }; } &&
13541 { ac_try
='test -s conftest$ac_exeext'
13542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13543 (eval $ac_try) 2>&5
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); }; }; then
13547 ac_cv_working_alloca_h
=yes
13549 echo "$as_me: failed program was:" >&5
13550 sed 's/^/| /' conftest.
$ac_ext >&5
13552 ac_cv_working_alloca_h
=no
13554 rm -f conftest.err conftest.
$ac_objext \
13555 conftest
$ac_exeext conftest.
$ac_ext
13557 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13558 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13559 if test $ac_cv_working_alloca_h = yes; then
13561 cat >>confdefs.h
<<\_ACEOF
13562 #define HAVE_ALLOCA_H 1
13567 echo "$as_me:$LINENO: checking for alloca" >&5
13568 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13569 if test "${ac_cv_func_alloca_works+set}" = set; then
13570 echo $ECHO_N "(cached) $ECHO_C" >&6
13572 cat >conftest.
$ac_ext <<_ACEOF
13575 cat confdefs.h
>>conftest.
$ac_ext
13576 cat >>conftest.
$ac_ext <<_ACEOF
13577 /* end confdefs.h. */
13579 # define alloca __builtin_alloca
13582 # include <malloc.h>
13583 # define alloca _alloca
13586 # include <alloca.h>
13591 # ifndef alloca /* predefined by HP cc +Olibcalls */
13602 char *p = (char *) alloca (1);
13607 rm -f conftest.
$ac_objext conftest
$ac_exeext
13608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13609 (eval $ac_link) 2>conftest.er1
13611 grep -v '^ *+' conftest.er1
>conftest.err
13613 cat conftest.err
>&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); } &&
13616 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13618 (eval $ac_try) 2>&5
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); }; } &&
13622 { ac_try
='test -s conftest$ac_exeext'
13623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13624 (eval $ac_try) 2>&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); }; }; then
13628 ac_cv_func_alloca_works
=yes
13630 echo "$as_me: failed program was:" >&5
13631 sed 's/^/| /' conftest.
$ac_ext >&5
13633 ac_cv_func_alloca_works
=no
13635 rm -f conftest.err conftest.
$ac_objext \
13636 conftest
$ac_exeext conftest.
$ac_ext
13638 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13639 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13641 if test $ac_cv_func_alloca_works = yes; then
13643 cat >>confdefs.h
<<\_ACEOF
13644 #define HAVE_ALLOCA 1
13648 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13649 # that cause trouble. Some versions do not even contain alloca or
13650 # contain a buggy version. If you still want to use their alloca,
13651 # use ar to extract alloca.o from them instead of compiling alloca.c.
13653 ALLOCA
=alloca.
$ac_objext
13655 cat >>confdefs.h
<<\_ACEOF
13660 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13661 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13662 if test "${ac_cv_os_cray+set}" = set; then
13663 echo $ECHO_N "(cached) $ECHO_C" >&6
13665 cat >conftest.
$ac_ext <<_ACEOF
13668 cat confdefs.h
>>conftest.
$ac_ext
13669 cat >>conftest.
$ac_ext <<_ACEOF
13670 /* end confdefs.h. */
13671 #if defined(CRAY) && ! defined(CRAY2)
13678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13679 $EGREP "webecray" >/dev
/null
2>&1; then
13687 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13688 echo "${ECHO_T}$ac_cv_os_cray" >&6
13689 if test $ac_cv_os_cray = yes; then
13690 for ac_func
in _getb67 GETB67 getb67
; do
13691 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13692 echo "$as_me:$LINENO: checking for $ac_func" >&5
13693 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13694 if eval "test \"\${$as_ac_var+set}\" = set"; then
13695 echo $ECHO_N "(cached) $ECHO_C" >&6
13697 cat >conftest.
$ac_ext <<_ACEOF
13700 cat confdefs.h
>>conftest.
$ac_ext
13701 cat >>conftest.
$ac_ext <<_ACEOF
13702 /* end confdefs.h. */
13703 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13705 #define $ac_func innocuous_$ac_func
13707 /* System header to define __stub macros and hopefully few prototypes,
13708 which can conflict with char $ac_func (); below.
13709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13710 <limits.h> exists even on freestanding compilers. */
13713 # include <limits.h>
13715 # include <assert.h>
13720 /* Override any gcc2 internal prototype to avoid an error. */
13725 /* We use char because int might match the return type of a gcc2
13726 builtin and then its argument prototype would still apply. */
13728 /* The GNU C library defines this for functions which it implements
13729 to always fail with ENOSYS. Some functions are actually named
13730 something starting with __ and the normal name is an alias. */
13731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13734 char (*f) () = $ac_func;
13743 return f != $ac_func;
13748 rm -f conftest.
$ac_objext conftest
$ac_exeext
13749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13750 (eval $ac_link) 2>conftest.er1
13752 grep -v '^ *+' conftest.er1
>conftest.err
13754 cat conftest.err
>&5
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); } &&
13757 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13759 (eval $ac_try) 2>&5
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); }; } &&
13763 { ac_try
='test -s conftest$ac_exeext'
13764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13765 (eval $ac_try) 2>&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); }; }; then
13769 eval "$as_ac_var=yes"
13771 echo "$as_me: failed program was:" >&5
13772 sed 's/^/| /' conftest.
$ac_ext >&5
13774 eval "$as_ac_var=no"
13776 rm -f conftest.err conftest.
$ac_objext \
13777 conftest
$ac_exeext conftest.
$ac_ext
13779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13780 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13781 if test `eval echo '${'$as_ac_var'}'` = yes; then
13783 cat >>confdefs.h
<<_ACEOF
13784 #define CRAY_STACKSEG_END $ac_func
13793 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13794 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13795 if test "${ac_cv_c_stack_direction+set}" = set; then
13796 echo $ECHO_N "(cached) $ECHO_C" >&6
13798 if test "$cross_compiling" = yes; then
13799 ac_cv_c_stack_direction
=0
13801 cat >conftest.
$ac_ext <<_ACEOF
13804 cat confdefs.h
>>conftest.
$ac_ext
13805 cat >>conftest.
$ac_ext <<_ACEOF
13806 /* end confdefs.h. */
13808 find_stack_direction ()
13810 static char *addr = 0;
13815 return find_stack_direction ();
13818 return (&dummy > addr) ? 1 : -1;
13824 exit (find_stack_direction () < 0);
13827 rm -f conftest
$ac_exeext
13828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13829 (eval $ac_link) 2>&5
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13834 (eval $ac_try) 2>&5
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); }; }; then
13838 ac_cv_c_stack_direction
=1
13840 echo "$as_me: program exited with status $ac_status" >&5
13841 echo "$as_me: failed program was:" >&5
13842 sed 's/^/| /' conftest.
$ac_ext >&5
13844 ( exit $ac_status )
13845 ac_cv_c_stack_direction
=-1
13847 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13850 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13851 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13853 cat >>confdefs.h
<<_ACEOF
13854 #define STACK_DIRECTION $ac_cv_c_stack_direction
13861 # fmod, logb, and frexp are found in -lm on most systems.
13862 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13864 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13865 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13866 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13867 echo $ECHO_N "(cached) $ECHO_C" >&6
13869 ac_check_lib_save_LIBS
=$LIBS
13871 cat >conftest.
$ac_ext <<_ACEOF
13874 cat confdefs.h
>>conftest.
$ac_ext
13875 cat >>conftest.
$ac_ext <<_ACEOF
13876 /* end confdefs.h. */
13878 /* Override any gcc2 internal prototype to avoid an error. */
13882 /* We use char because int might match the return type of a gcc2
13883 builtin and then its argument prototype would still apply. */
13893 rm -f conftest.
$ac_objext conftest
$ac_exeext
13894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13895 (eval $ac_link) 2>conftest.er1
13897 grep -v '^ *+' conftest.er1
>conftest.err
13899 cat conftest.err
>&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); } &&
13902 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13904 (eval $ac_try) 2>&5
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); }; } &&
13908 { ac_try
='test -s conftest$ac_exeext'
13909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13910 (eval $ac_try) 2>&5
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); }; }; then
13914 ac_cv_lib_m_sqrt
=yes
13916 echo "$as_me: failed program was:" >&5
13917 sed 's/^/| /' conftest.
$ac_ext >&5
13919 ac_cv_lib_m_sqrt
=no
13921 rm -f conftest.err conftest.
$ac_objext \
13922 conftest
$ac_exeext conftest.
$ac_ext
13923 LIBS
=$ac_check_lib_save_LIBS
13925 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13926 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13927 if test $ac_cv_lib_m_sqrt = yes; then
13928 cat >>confdefs.h
<<_ACEOF
13929 #define HAVE_LIBM 1
13937 # Check for mail-locking functions in a "mail" library. Probably this should
13938 # have the same check as for liblockfile below.
13940 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13941 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13942 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13943 echo $ECHO_N "(cached) $ECHO_C" >&6
13945 ac_check_lib_save_LIBS
=$LIBS
13946 LIBS
="-lmail $LIBS"
13947 cat >conftest.
$ac_ext <<_ACEOF
13950 cat confdefs.h
>>conftest.
$ac_ext
13951 cat >>conftest.
$ac_ext <<_ACEOF
13952 /* end confdefs.h. */
13954 /* Override any gcc2 internal prototype to avoid an error. */
13958 /* We use char because int might match the return type of a gcc2
13959 builtin and then its argument prototype would still apply. */
13969 rm -f conftest.
$ac_objext conftest
$ac_exeext
13970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13971 (eval $ac_link) 2>conftest.er1
13973 grep -v '^ *+' conftest.er1
>conftest.err
13975 cat conftest.err
>&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); } &&
13978 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980 (eval $ac_try) 2>&5
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); }; } &&
13984 { ac_try
='test -s conftest$ac_exeext'
13985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986 (eval $ac_try) 2>&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; }; then
13990 ac_cv_lib_mail_maillock
=yes
13992 echo "$as_me: failed program was:" >&5
13993 sed 's/^/| /' conftest.
$ac_ext >&5
13995 ac_cv_lib_mail_maillock
=no
13997 rm -f conftest.err conftest.
$ac_objext \
13998 conftest
$ac_exeext conftest.
$ac_ext
13999 LIBS
=$ac_check_lib_save_LIBS
14001 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14002 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
14003 if test $ac_cv_lib_mail_maillock = yes; then
14004 cat >>confdefs.h
<<_ACEOF
14005 #define HAVE_LIBMAIL 1
14008 LIBS
="-lmail $LIBS"
14013 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14014 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
14015 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14016 echo $ECHO_N "(cached) $ECHO_C" >&6
14018 ac_check_lib_save_LIBS
=$LIBS
14019 LIBS
="-llockfile $LIBS"
14020 cat >conftest.
$ac_ext <<_ACEOF
14023 cat confdefs.h
>>conftest.
$ac_ext
14024 cat >>conftest.
$ac_ext <<_ACEOF
14025 /* end confdefs.h. */
14027 /* Override any gcc2 internal prototype to avoid an error. */
14031 /* We use char because int might match the return type of a gcc2
14032 builtin and then its argument prototype would still apply. */
14042 rm -f conftest.
$ac_objext conftest
$ac_exeext
14043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14044 (eval $ac_link) 2>conftest.er1
14046 grep -v '^ *+' conftest.er1
>conftest.err
14048 cat conftest.err
>&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); } &&
14051 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14053 (eval $ac_try) 2>&5
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); }; } &&
14057 { ac_try
='test -s conftest$ac_exeext'
14058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14059 (eval $ac_try) 2>&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); }; }; then
14063 ac_cv_lib_lockfile_maillock
=yes
14065 echo "$as_me: failed program was:" >&5
14066 sed 's/^/| /' conftest.
$ac_ext >&5
14068 ac_cv_lib_lockfile_maillock
=no
14070 rm -f conftest.err conftest.
$ac_objext \
14071 conftest
$ac_exeext conftest.
$ac_ext
14072 LIBS
=$ac_check_lib_save_LIBS
14074 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14075 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
14076 if test $ac_cv_lib_lockfile_maillock = yes; then
14077 cat >>confdefs.h
<<_ACEOF
14078 #define HAVE_LIBLOCKFILE 1
14081 LIBS
="-llockfile $LIBS"
14085 # If we have the shared liblockfile, assume we must use it for mail
14086 # locking (e.g. Debian). If we couldn't link against liblockfile
14087 # (no liblockfile.a installed), ensure that we don't need to.
14088 if test "$ac_cv_lib_lockfile_maillock" = no
; then
14089 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14090 set dummy liblockfile.so
; ac_word
=$2
14091 echo "$as_me:$LINENO: checking for $ac_word" >&5
14092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14093 if test "${ac_cv_prog_liblockfile+set}" = set; then
14094 echo $ECHO_N "(cached) $ECHO_C" >&6
14096 if test -n "$liblockfile"; then
14097 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
14099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14100 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14101 for as_dir
in $as_dummy
14104 test -z "$as_dir" && as_dir
=.
14105 for ac_exec_ext
in '' $ac_executable_extensions; do
14106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14107 ac_cv_prog_liblockfile
="yes"
14108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14114 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
14117 liblockfile
=$ac_cv_prog_liblockfile
14118 if test -n "$liblockfile"; then
14119 echo "$as_me:$LINENO: result: $liblockfile" >&5
14120 echo "${ECHO_T}$liblockfile" >&6
14122 echo "$as_me:$LINENO: result: no" >&5
14123 echo "${ECHO_T}no" >&6
14126 if test $ac_cv_prog_liblockfile = yes; then
14127 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14128 This probably means that movemail could lose mail.
14129 There may be a \`development' package to install containing liblockfile." >&5
14130 echo "$as_me: error: Shared liblockfile found but can't link against it.
14131 This probably means that movemail could lose mail.
14132 There may be a \`development' package to install containing liblockfile." >&2;}
14133 { (exit 1); exit 1; }; }
14138 for ac_func
in touchlock
14140 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14141 echo "$as_me:$LINENO: checking for $ac_func" >&5
14142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14143 if eval "test \"\${$as_ac_var+set}\" = set"; then
14144 echo $ECHO_N "(cached) $ECHO_C" >&6
14146 cat >conftest.
$ac_ext <<_ACEOF
14149 cat confdefs.h
>>conftest.
$ac_ext
14150 cat >>conftest.
$ac_ext <<_ACEOF
14151 /* end confdefs.h. */
14152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14154 #define $ac_func innocuous_$ac_func
14156 /* System header to define __stub macros and hopefully few prototypes,
14157 which can conflict with char $ac_func (); below.
14158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14159 <limits.h> exists even on freestanding compilers. */
14162 # include <limits.h>
14164 # include <assert.h>
14169 /* Override any gcc2 internal prototype to avoid an error. */
14174 /* We use char because int might match the return type of a gcc2
14175 builtin and then its argument prototype would still apply. */
14177 /* The GNU C library defines this for functions which it implements
14178 to always fail with ENOSYS. Some functions are actually named
14179 something starting with __ and the normal name is an alias. */
14180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14183 char (*f) () = $ac_func;
14192 return f != $ac_func;
14197 rm -f conftest.
$ac_objext conftest
$ac_exeext
14198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14199 (eval $ac_link) 2>conftest.er1
14201 grep -v '^ *+' conftest.er1
>conftest.err
14203 cat conftest.err
>&5
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); } &&
14206 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14208 (eval $ac_try) 2>&5
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); }; } &&
14212 { ac_try
='test -s conftest$ac_exeext'
14213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14214 (eval $ac_try) 2>&5
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); }; }; then
14218 eval "$as_ac_var=yes"
14220 echo "$as_me: failed program was:" >&5
14221 sed 's/^/| /' conftest.
$ac_ext >&5
14223 eval "$as_ac_var=no"
14225 rm -f conftest.err conftest.
$ac_objext \
14226 conftest
$ac_exeext conftest.
$ac_ext
14228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14229 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14230 if test `eval echo '${'$as_ac_var'}'` = yes; then
14231 cat >>confdefs.h
<<_ACEOF
14232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14239 for ac_header
in maillock.h
14241 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14243 echo "$as_me:$LINENO: checking for $ac_header" >&5
14244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
14248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14251 # Is the header compilable?
14252 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14253 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14254 cat >conftest.
$ac_ext <<_ACEOF
14257 cat confdefs.h
>>conftest.
$ac_ext
14258 cat >>conftest.
$ac_ext <<_ACEOF
14259 /* end confdefs.h. */
14260 $ac_includes_default
14261 #include <$ac_header>
14263 rm -f conftest.
$ac_objext
14264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14265 (eval $ac_compile) 2>conftest.er1
14267 grep -v '^ *+' conftest.er1
>conftest.err
14269 cat conftest.err
>&5
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); } &&
14272 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14274 (eval $ac_try) 2>&5
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); }; } &&
14278 { ac_try
='test -s conftest.$ac_objext'
14279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14280 (eval $ac_try) 2>&5
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); }; }; then
14284 ac_header_compiler
=yes
14286 echo "$as_me: failed program was:" >&5
14287 sed 's/^/| /' conftest.
$ac_ext >&5
14289 ac_header_compiler
=no
14291 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14292 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14293 echo "${ECHO_T}$ac_header_compiler" >&6
14295 # Is the header present?
14296 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14298 cat >conftest.
$ac_ext <<_ACEOF
14301 cat confdefs.h
>>conftest.
$ac_ext
14302 cat >>conftest.
$ac_ext <<_ACEOF
14303 /* end confdefs.h. */
14304 #include <$ac_header>
14306 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14307 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14309 grep -v '^ *+' conftest.er1
>conftest.err
14311 cat conftest.err
>&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } >/dev
/null
; then
14314 if test -s conftest.err
; then
14315 ac_cpp_err
=$ac_c_preproc_warn_flag
14316 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14323 if test -z "$ac_cpp_err"; then
14324 ac_header_preproc
=yes
14326 echo "$as_me: failed program was:" >&5
14327 sed 's/^/| /' conftest.
$ac_ext >&5
14329 ac_header_preproc
=no
14331 rm -f conftest.err conftest.
$ac_ext
14332 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14333 echo "${ECHO_T}$ac_header_preproc" >&6
14335 # So? What about this header?
14336 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14338 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14339 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14341 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14342 ac_header_preproc
=yes
14345 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14346 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14347 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14348 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14349 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14350 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14351 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14352 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14354 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14355 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14356 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14359 ## ------------------------------------------ ##
14360 ## Report this to the AC_PACKAGE_NAME lists. ##
14361 ## ------------------------------------------ ##
14364 sed "s/^/$as_me: WARNING: /" >&2
14367 echo "$as_me:$LINENO: checking for $ac_header" >&5
14368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14370 echo $ECHO_N "(cached) $ECHO_C" >&6
14372 eval "$as_ac_Header=\$ac_header_preproc"
14374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14379 cat >>confdefs.h
<<_ACEOF
14380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14456 for ac_func
in gethostname getdomainname dup2 \
14457 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
14458 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14459 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
14460 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14461 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14462 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14463 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
14464 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14466 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14467 echo "$as_me:$LINENO: checking for $ac_func" >&5
14468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14469 if eval "test \"\${$as_ac_var+set}\" = set"; then
14470 echo $ECHO_N "(cached) $ECHO_C" >&6
14472 cat >conftest.
$ac_ext <<_ACEOF
14475 cat confdefs.h
>>conftest.
$ac_ext
14476 cat >>conftest.
$ac_ext <<_ACEOF
14477 /* end confdefs.h. */
14478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14480 #define $ac_func innocuous_$ac_func
14482 /* System header to define __stub macros and hopefully few prototypes,
14483 which can conflict with char $ac_func (); below.
14484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14485 <limits.h> exists even on freestanding compilers. */
14488 # include <limits.h>
14490 # include <assert.h>
14495 /* Override any gcc2 internal prototype to avoid an error. */
14500 /* We use char because int might match the return type of a gcc2
14501 builtin and then its argument prototype would still apply. */
14503 /* The GNU C library defines this for functions which it implements
14504 to always fail with ENOSYS. Some functions are actually named
14505 something starting with __ and the normal name is an alias. */
14506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14509 char (*f) () = $ac_func;
14518 return f != $ac_func;
14523 rm -f conftest.
$ac_objext conftest
$ac_exeext
14524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14525 (eval $ac_link) 2>conftest.er1
14527 grep -v '^ *+' conftest.er1
>conftest.err
14529 cat conftest.err
>&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); } &&
14532 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534 (eval $ac_try) 2>&5
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); }; } &&
14538 { ac_try
='test -s conftest$ac_exeext'
14539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14540 (eval $ac_try) 2>&5
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); }; }; then
14544 eval "$as_ac_var=yes"
14546 echo "$as_me: failed program was:" >&5
14547 sed 's/^/| /' conftest.
$ac_ext >&5
14549 eval "$as_ac_var=no"
14551 rm -f conftest.err conftest.
$ac_objext \
14552 conftest
$ac_exeext conftest.
$ac_ext
14554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14555 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14556 if test `eval echo '${'$as_ac_var'}'` = yes; then
14557 cat >>confdefs.h
<<_ACEOF
14558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14566 for ac_header
in sys
/un.h
14568 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14570 echo "$as_me:$LINENO: checking for $ac_header" >&5
14571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14573 echo $ECHO_N "(cached) $ECHO_C" >&6
14575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14578 # Is the header compilable?
14579 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14581 cat >conftest.
$ac_ext <<_ACEOF
14584 cat confdefs.h
>>conftest.
$ac_ext
14585 cat >>conftest.
$ac_ext <<_ACEOF
14586 /* end confdefs.h. */
14587 $ac_includes_default
14588 #include <$ac_header>
14590 rm -f conftest.
$ac_objext
14591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14592 (eval $ac_compile) 2>conftest.er1
14594 grep -v '^ *+' conftest.er1
>conftest.err
14596 cat conftest.err
>&5
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); } &&
14599 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14601 (eval $ac_try) 2>&5
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); }; } &&
14605 { ac_try
='test -s conftest.$ac_objext'
14606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14607 (eval $ac_try) 2>&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); }; }; then
14611 ac_header_compiler
=yes
14613 echo "$as_me: failed program was:" >&5
14614 sed 's/^/| /' conftest.
$ac_ext >&5
14616 ac_header_compiler
=no
14618 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14619 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14620 echo "${ECHO_T}$ac_header_compiler" >&6
14622 # Is the header present?
14623 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14624 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14625 cat >conftest.
$ac_ext <<_ACEOF
14628 cat confdefs.h
>>conftest.
$ac_ext
14629 cat >>conftest.
$ac_ext <<_ACEOF
14630 /* end confdefs.h. */
14631 #include <$ac_header>
14633 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14634 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14636 grep -v '^ *+' conftest.er1
>conftest.err
14638 cat conftest.err
>&5
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); } >/dev
/null
; then
14641 if test -s conftest.err
; then
14642 ac_cpp_err
=$ac_c_preproc_warn_flag
14643 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14650 if test -z "$ac_cpp_err"; then
14651 ac_header_preproc
=yes
14653 echo "$as_me: failed program was:" >&5
14654 sed 's/^/| /' conftest.
$ac_ext >&5
14656 ac_header_preproc
=no
14658 rm -f conftest.err conftest.
$ac_ext
14659 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14660 echo "${ECHO_T}$ac_header_preproc" >&6
14662 # So? What about this header?
14663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14665 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14666 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14668 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14669 ac_header_preproc
=yes
14672 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14673 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14674 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14675 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14676 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14677 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14678 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14679 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14681 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14682 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14683 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14686 ## ------------------------------------------ ##
14687 ## Report this to the AC_PACKAGE_NAME lists. ##
14688 ## ------------------------------------------ ##
14691 sed "s/^/$as_me: WARNING: /" >&2
14694 echo "$as_me:$LINENO: checking for $ac_header" >&5
14695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14697 echo $ECHO_N "(cached) $ECHO_C" >&6
14699 eval "$as_ac_Header=\$ac_header_preproc"
14701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14706 cat >>confdefs.h
<<_ACEOF
14707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14718 for ac_header
in stdlib.h sys
/time.h unistd.h
14720 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14722 echo "$as_me:$LINENO: checking for $ac_header" >&5
14723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14725 echo $ECHO_N "(cached) $ECHO_C" >&6
14727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14730 # Is the header compilable?
14731 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14733 cat >conftest.
$ac_ext <<_ACEOF
14736 cat confdefs.h
>>conftest.
$ac_ext
14737 cat >>conftest.
$ac_ext <<_ACEOF
14738 /* end confdefs.h. */
14739 $ac_includes_default
14740 #include <$ac_header>
14742 rm -f conftest.
$ac_objext
14743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14744 (eval $ac_compile) 2>conftest.er1
14746 grep -v '^ *+' conftest.er1
>conftest.err
14748 cat conftest.err
>&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } &&
14751 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14753 (eval $ac_try) 2>&5
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; } &&
14757 { ac_try
='test -s conftest.$ac_objext'
14758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14759 (eval $ac_try) 2>&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); }; }; then
14763 ac_header_compiler
=yes
14765 echo "$as_me: failed program was:" >&5
14766 sed 's/^/| /' conftest.
$ac_ext >&5
14768 ac_header_compiler
=no
14770 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14771 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14772 echo "${ECHO_T}$ac_header_compiler" >&6
14774 # Is the header present?
14775 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14776 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14777 cat >conftest.
$ac_ext <<_ACEOF
14780 cat confdefs.h
>>conftest.
$ac_ext
14781 cat >>conftest.
$ac_ext <<_ACEOF
14782 /* end confdefs.h. */
14783 #include <$ac_header>
14785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14786 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14788 grep -v '^ *+' conftest.er1
>conftest.err
14790 cat conftest.err
>&5
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); } >/dev
/null
; then
14793 if test -s conftest.err
; then
14794 ac_cpp_err
=$ac_c_preproc_warn_flag
14795 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14802 if test -z "$ac_cpp_err"; then
14803 ac_header_preproc
=yes
14805 echo "$as_me: failed program was:" >&5
14806 sed 's/^/| /' conftest.
$ac_ext >&5
14808 ac_header_preproc
=no
14810 rm -f conftest.err conftest.
$ac_ext
14811 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14812 echo "${ECHO_T}$ac_header_preproc" >&6
14814 # So? What about this header?
14815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14817 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14818 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14820 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14821 ac_header_preproc
=yes
14824 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14825 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14826 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14827 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14828 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14829 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14830 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14831 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14834 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14835 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14838 ## ------------------------------------------ ##
14839 ## Report this to the AC_PACKAGE_NAME lists. ##
14840 ## ------------------------------------------ ##
14843 sed "s/^/$as_me: WARNING: /" >&2
14846 echo "$as_me:$LINENO: checking for $ac_header" >&5
14847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14849 echo $ECHO_N "(cached) $ECHO_C" >&6
14851 eval "$as_ac_Header=\$ac_header_preproc"
14853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14858 cat >>confdefs.h
<<_ACEOF
14859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14867 for ac_func
in alarm
14869 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14870 echo "$as_me:$LINENO: checking for $ac_func" >&5
14871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14872 if eval "test \"\${$as_ac_var+set}\" = set"; then
14873 echo $ECHO_N "(cached) $ECHO_C" >&6
14875 cat >conftest.
$ac_ext <<_ACEOF
14878 cat confdefs.h
>>conftest.
$ac_ext
14879 cat >>conftest.
$ac_ext <<_ACEOF
14880 /* end confdefs.h. */
14881 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14883 #define $ac_func innocuous_$ac_func
14885 /* System header to define __stub macros and hopefully few prototypes,
14886 which can conflict with char $ac_func (); below.
14887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14888 <limits.h> exists even on freestanding compilers. */
14891 # include <limits.h>
14893 # include <assert.h>
14898 /* Override any gcc2 internal prototype to avoid an error. */
14903 /* We use char because int might match the return type of a gcc2
14904 builtin and then its argument prototype would still apply. */
14906 /* The GNU C library defines this for functions which it implements
14907 to always fail with ENOSYS. Some functions are actually named
14908 something starting with __ and the normal name is an alias. */
14909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14912 char (*f) () = $ac_func;
14921 return f != $ac_func;
14926 rm -f conftest.
$ac_objext conftest
$ac_exeext
14927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14928 (eval $ac_link) 2>conftest.er1
14930 grep -v '^ *+' conftest.er1
>conftest.err
14932 cat conftest.err
>&5
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); } &&
14935 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14937 (eval $ac_try) 2>&5
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); }; } &&
14941 { ac_try
='test -s conftest$ac_exeext'
14942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14943 (eval $ac_try) 2>&5
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); }; }; then
14947 eval "$as_ac_var=yes"
14949 echo "$as_me: failed program was:" >&5
14950 sed 's/^/| /' conftest.
$ac_ext >&5
14952 eval "$as_ac_var=no"
14954 rm -f conftest.err conftest.
$ac_objext \
14955 conftest
$ac_exeext conftest.
$ac_ext
14957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14958 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14959 if test `eval echo '${'$as_ac_var'}'` = yes; then
14960 cat >>confdefs.h
<<_ACEOF
14961 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14967 echo "$as_me:$LINENO: checking for working mktime" >&5
14968 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14969 if test "${ac_cv_func_working_mktime+set}" = set; then
14970 echo $ECHO_N "(cached) $ECHO_C" >&6
14972 if test "$cross_compiling" = yes; then
14973 ac_cv_func_working_mktime
=no
14975 cat >conftest.
$ac_ext <<_ACEOF
14978 cat confdefs.h
>>conftest.
$ac_ext
14979 cat >>conftest.
$ac_ext <<_ACEOF
14980 /* end confdefs.h. */
14981 /* Test program from Paul Eggert and Tony Leneis. */
14982 #if TIME_WITH_SYS_TIME
14983 # include <sys/time.h>
14986 # if HAVE_SYS_TIME_H
14987 # include <sys/time.h>
14994 # include <stdlib.h>
14998 # include <unistd.h>
15002 # define alarm(X) /* empty */
15005 /* Work around redefinition to rpl_putenv by other config tests. */
15008 static time_t time_t_max;
15009 static time_t time_t_min;
15011 /* Values we'll use to set the TZ environment variable. */
15012 static char *tz_strings[] = {
15013 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15014 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15016 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15018 /* Fail if mktime fails to convert a date in the spring-forward gap.
15019 Based on a problem report from Andreas Jaeger. */
15021 spring_forward_gap ()
15023 /* glibc (up to about 1998-10-07) failed this test. */
15026 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15027 instead of "TZ=America/Vancouver" in order to detect the bug even
15028 on systems that don't support the Olson extension, or don't have the
15029 full zoneinfo tables installed. */
15030 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15039 if (mktime (&tm) == (time_t)-1)
15048 if ((lt = localtime (&now)) && mktime (lt) != now)
15056 mktime_test1 (now);
15057 mktime_test1 ((time_t) (time_t_max - now));
15058 mktime_test1 ((time_t) (time_t_min + now));
15064 /* Based on code from Ariel Faigon. */
15074 if (tm.tm_mon != 2 || tm.tm_mday != 31)
15084 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15085 now = mktime (&tm);
15086 if (now != (time_t) -1)
15088 struct tm *lt = localtime (&now);
15090 && lt->tm_year == tm.tm_year
15091 && lt->tm_mon == tm.tm_mon
15092 && lt->tm_mday == tm.tm_mday
15093 && lt->tm_hour == tm.tm_hour
15094 && lt->tm_min == tm.tm_min
15095 && lt->tm_sec == tm.tm_sec
15096 && lt->tm_yday == tm.tm_yday
15097 && lt->tm_wday == tm.tm_wday
15098 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15099 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15110 /* This test makes some buggy mktime implementations loop.
15111 Give up after 60 seconds; a mktime slower than that
15112 isn't worth using anyway. */
15115 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15118 if ((time_t) -1 < 0)
15119 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15121 delta = time_t_max / 997; /* a suitable prime number */
15122 for (i = 0; i < N_STRINGS; i++)
15125 putenv (tz_strings[i]);
15127 for (t = 0; t <= time_t_max - delta; t += delta)
15129 mktime_test ((time_t) 1);
15130 mktime_test ((time_t) (60 * 60));
15131 mktime_test ((time_t) (60 * 60 * 24));
15133 for (j = 1; 0 < j; j *= 2)
15135 bigtime_test (j - 1);
15138 spring_forward_gap ();
15142 rm -f conftest
$ac_exeext
15143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15144 (eval $ac_link) 2>&5
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15149 (eval $ac_try) 2>&5
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); }; }; then
15153 ac_cv_func_working_mktime
=yes
15155 echo "$as_me: program exited with status $ac_status" >&5
15156 echo "$as_me: failed program was:" >&5
15157 sed 's/^/| /' conftest.
$ac_ext >&5
15159 ( exit $ac_status )
15160 ac_cv_func_working_mktime
=no
15162 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15165 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15166 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
15167 if test $ac_cv_func_working_mktime = no
; then
15169 "mktime.$ac_objext" | \
15170 *" mktime.$ac_objext" | \
15171 "mktime.$ac_objext "* | \
15172 *" mktime.$ac_objext "* ) ;;
15173 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
15178 if test "$ac_cv_func_working_mktime" = no
; then
15180 cat >>confdefs.h
<<\_ACEOF
15181 #define BROKEN_MKTIME 1
15186 ac_have_func
=no
# yes means we've found a way to get the load average.
15188 # Make sure getloadavg.c is where it belongs, at configure-time.
15189 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15190 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15191 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15192 { (exit 1); exit 1; }; }
15196 # Check for getloadavg, but be sure not to touch the cache variable.
15197 (echo "$as_me:$LINENO: checking for getloadavg" >&5
15198 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
15199 if test "${ac_cv_func_getloadavg+set}" = set; then
15200 echo $ECHO_N "(cached) $ECHO_C" >&6
15202 cat >conftest.
$ac_ext <<_ACEOF
15205 cat confdefs.h
>>conftest.
$ac_ext
15206 cat >>conftest.
$ac_ext <<_ACEOF
15207 /* end confdefs.h. */
15208 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15210 #define getloadavg innocuous_getloadavg
15212 /* System header to define __stub macros and hopefully few prototypes,
15213 which can conflict with char getloadavg (); below.
15214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15215 <limits.h> exists even on freestanding compilers. */
15218 # include <limits.h>
15220 # include <assert.h>
15225 /* Override any gcc2 internal prototype to avoid an error. */
15230 /* We use char because int might match the return type of a gcc2
15231 builtin and then its argument prototype would still apply. */
15232 char getloadavg ();
15233 /* The GNU C library defines this for functions which it implements
15234 to always fail with ENOSYS. Some functions are actually named
15235 something starting with __ and the normal name is an alias. */
15236 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15239 char (*f) () = getloadavg;
15248 return f != getloadavg;
15253 rm -f conftest.
$ac_objext conftest
$ac_exeext
15254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15255 (eval $ac_link) 2>conftest.er1
15257 grep -v '^ *+' conftest.er1
>conftest.err
15259 cat conftest.err
>&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); } &&
15262 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15264 (eval $ac_try) 2>&5
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); }; } &&
15268 { ac_try
='test -s conftest$ac_exeext'
15269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15270 (eval $ac_try) 2>&5
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); }; }; then
15274 ac_cv_func_getloadavg
=yes
15276 echo "$as_me: failed program was:" >&5
15277 sed 's/^/| /' conftest.
$ac_ext >&5
15279 ac_cv_func_getloadavg
=no
15281 rm -f conftest.err conftest.
$ac_objext \
15282 conftest
$ac_exeext conftest.
$ac_ext
15284 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15285 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15286 if test $ac_cv_func_getloadavg = yes; then
15291 ) && ac_have_func
=yes
15293 # On HPUX9, an unprivileged user can get load averages through this function.
15295 for ac_func
in pstat_getdynamic
15297 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15298 echo "$as_me:$LINENO: checking for $ac_func" >&5
15299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15300 if eval "test \"\${$as_ac_var+set}\" = set"; then
15301 echo $ECHO_N "(cached) $ECHO_C" >&6
15303 cat >conftest.
$ac_ext <<_ACEOF
15306 cat confdefs.h
>>conftest.
$ac_ext
15307 cat >>conftest.
$ac_ext <<_ACEOF
15308 /* end confdefs.h. */
15309 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15311 #define $ac_func innocuous_$ac_func
15313 /* System header to define __stub macros and hopefully few prototypes,
15314 which can conflict with char $ac_func (); below.
15315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15316 <limits.h> exists even on freestanding compilers. */
15319 # include <limits.h>
15321 # include <assert.h>
15326 /* Override any gcc2 internal prototype to avoid an error. */
15331 /* We use char because int might match the return type of a gcc2
15332 builtin and then its argument prototype would still apply. */
15334 /* The GNU C library defines this for functions which it implements
15335 to always fail with ENOSYS. Some functions are actually named
15336 something starting with __ and the normal name is an alias. */
15337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15340 char (*f) () = $ac_func;
15349 return f != $ac_func;
15354 rm -f conftest.
$ac_objext conftest
$ac_exeext
15355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15356 (eval $ac_link) 2>conftest.er1
15358 grep -v '^ *+' conftest.er1
>conftest.err
15360 cat conftest.err
>&5
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); } &&
15363 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15365 (eval $ac_try) 2>&5
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); }; } &&
15369 { ac_try
='test -s conftest$ac_exeext'
15370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15371 (eval $ac_try) 2>&5
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); }; }; then
15375 eval "$as_ac_var=yes"
15377 echo "$as_me: failed program was:" >&5
15378 sed 's/^/| /' conftest.
$ac_ext >&5
15380 eval "$as_ac_var=no"
15382 rm -f conftest.err conftest.
$ac_objext \
15383 conftest
$ac_exeext conftest.
$ac_ext
15385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15386 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15387 if test `eval echo '${'$as_ac_var'}'` = yes; then
15388 cat >>confdefs.h
<<_ACEOF
15389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15396 # Solaris has libkstat which does not require root.
15398 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15399 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15400 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15401 echo $ECHO_N "(cached) $ECHO_C" >&6
15403 ac_check_lib_save_LIBS
=$LIBS
15404 LIBS
="-lkstat $LIBS"
15405 cat >conftest.
$ac_ext <<_ACEOF
15408 cat confdefs.h
>>conftest.
$ac_ext
15409 cat >>conftest.
$ac_ext <<_ACEOF
15410 /* end confdefs.h. */
15412 /* Override any gcc2 internal prototype to avoid an error. */
15416 /* We use char because int might match the return type of a gcc2
15417 builtin and then its argument prototype would still apply. */
15418 char kstat_open ();
15427 rm -f conftest.
$ac_objext conftest
$ac_exeext
15428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15429 (eval $ac_link) 2>conftest.er1
15431 grep -v '^ *+' conftest.er1
>conftest.err
15433 cat conftest.err
>&5
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); } &&
15436 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15438 (eval $ac_try) 2>&5
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); }; } &&
15442 { ac_try
='test -s conftest$ac_exeext'
15443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15444 (eval $ac_try) 2>&5
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); }; }; then
15448 ac_cv_lib_kstat_kstat_open
=yes
15450 echo "$as_me: failed program was:" >&5
15451 sed 's/^/| /' conftest.
$ac_ext >&5
15453 ac_cv_lib_kstat_kstat_open
=no
15455 rm -f conftest.err conftest.
$ac_objext \
15456 conftest
$ac_exeext conftest.
$ac_ext
15457 LIBS
=$ac_check_lib_save_LIBS
15459 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15460 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15461 if test $ac_cv_lib_kstat_kstat_open = yes; then
15462 cat >>confdefs.h
<<_ACEOF
15463 #define HAVE_LIBKSTAT 1
15466 LIBS
="-lkstat $LIBS"
15470 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
15472 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15473 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15474 # to get the right answer into the cache.
15475 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15476 if test $ac_have_func = no
; then
15477 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15478 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15479 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15480 echo $ECHO_N "(cached) $ECHO_C" >&6
15482 ac_check_lib_save_LIBS
=$LIBS
15484 cat >conftest.
$ac_ext <<_ACEOF
15487 cat confdefs.h
>>conftest.
$ac_ext
15488 cat >>conftest.
$ac_ext <<_ACEOF
15489 /* end confdefs.h. */
15491 /* Override any gcc2 internal prototype to avoid an error. */
15495 /* We use char because int might match the return type of a gcc2
15496 builtin and then its argument prototype would still apply. */
15506 rm -f conftest.
$ac_objext conftest
$ac_exeext
15507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15508 (eval $ac_link) 2>conftest.er1
15510 grep -v '^ *+' conftest.er1
>conftest.err
15512 cat conftest.err
>&5
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); } &&
15515 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15517 (eval $ac_try) 2>&5
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); }; } &&
15521 { ac_try
='test -s conftest$ac_exeext'
15522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15523 (eval $ac_try) 2>&5
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); }; }; then
15527 ac_cv_lib_elf_elf_begin
=yes
15529 echo "$as_me: failed program was:" >&5
15530 sed 's/^/| /' conftest.
$ac_ext >&5
15532 ac_cv_lib_elf_elf_begin
=no
15534 rm -f conftest.err conftest.
$ac_objext \
15535 conftest
$ac_exeext conftest.
$ac_ext
15536 LIBS
=$ac_check_lib_save_LIBS
15538 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15539 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15540 if test $ac_cv_lib_elf_elf_begin = yes; then
15545 if test $ac_have_func = no
; then
15546 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15547 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15548 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15549 echo $ECHO_N "(cached) $ECHO_C" >&6
15551 ac_check_lib_save_LIBS
=$LIBS
15553 cat >conftest.
$ac_ext <<_ACEOF
15556 cat confdefs.h
>>conftest.
$ac_ext
15557 cat >>conftest.
$ac_ext <<_ACEOF
15558 /* end confdefs.h. */
15560 /* Override any gcc2 internal prototype to avoid an error. */
15564 /* We use char because int might match the return type of a gcc2
15565 builtin and then its argument prototype would still apply. */
15575 rm -f conftest.
$ac_objext conftest
$ac_exeext
15576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15577 (eval $ac_link) 2>conftest.er1
15579 grep -v '^ *+' conftest.er1
>conftest.err
15581 cat conftest.err
>&5
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); } &&
15584 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586 (eval $ac_try) 2>&5
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); }; } &&
15590 { ac_try
='test -s conftest$ac_exeext'
15591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15592 (eval $ac_try) 2>&5
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); }; }; then
15596 ac_cv_lib_kvm_kvm_open
=yes
15598 echo "$as_me: failed program was:" >&5
15599 sed 's/^/| /' conftest.
$ac_ext >&5
15601 ac_cv_lib_kvm_kvm_open
=no
15603 rm -f conftest.err conftest.
$ac_objext \
15604 conftest
$ac_exeext conftest.
$ac_ext
15605 LIBS
=$ac_check_lib_save_LIBS
15607 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15608 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15609 if test $ac_cv_lib_kvm_kvm_open = yes; then
15613 # Check for the 4.4BSD definition of getloadavg.
15614 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15615 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15616 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15617 echo $ECHO_N "(cached) $ECHO_C" >&6
15619 ac_check_lib_save_LIBS
=$LIBS
15620 LIBS
="-lutil $LIBS"
15621 cat >conftest.
$ac_ext <<_ACEOF
15624 cat confdefs.h
>>conftest.
$ac_ext
15625 cat >>conftest.
$ac_ext <<_ACEOF
15626 /* end confdefs.h. */
15628 /* Override any gcc2 internal prototype to avoid an error. */
15632 /* We use char because int might match the return type of a gcc2
15633 builtin and then its argument prototype would still apply. */
15634 char getloadavg ();
15643 rm -f conftest.
$ac_objext conftest
$ac_exeext
15644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15645 (eval $ac_link) 2>conftest.er1
15647 grep -v '^ *+' conftest.er1
>conftest.err
15649 cat conftest.err
>&5
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); } &&
15652 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15654 (eval $ac_try) 2>&5
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); }; } &&
15658 { ac_try
='test -s conftest$ac_exeext'
15659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15660 (eval $ac_try) 2>&5
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); }; }; then
15664 ac_cv_lib_util_getloadavg
=yes
15666 echo "$as_me: failed program was:" >&5
15667 sed 's/^/| /' conftest.
$ac_ext >&5
15669 ac_cv_lib_util_getloadavg
=no
15671 rm -f conftest.err conftest.
$ac_objext \
15672 conftest
$ac_exeext conftest.
$ac_ext
15673 LIBS
=$ac_check_lib_save_LIBS
15675 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15676 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15677 if test $ac_cv_lib_util_getloadavg = yes; then
15678 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
15683 if test $ac_have_func = no
; then
15684 # There is a commonly available library for RS/6000 AIX.
15685 # Since it is not a standard part of AIX, it might be installed locally.
15686 ac_getloadavg_LIBS
=$LIBS
15687 LIBS
="-L/usr/local/lib $LIBS"
15688 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15689 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15690 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15691 echo $ECHO_N "(cached) $ECHO_C" >&6
15693 ac_check_lib_save_LIBS
=$LIBS
15694 LIBS
="-lgetloadavg $LIBS"
15695 cat >conftest.
$ac_ext <<_ACEOF
15698 cat confdefs.h
>>conftest.
$ac_ext
15699 cat >>conftest.
$ac_ext <<_ACEOF
15700 /* end confdefs.h. */
15702 /* Override any gcc2 internal prototype to avoid an error. */
15706 /* We use char because int might match the return type of a gcc2
15707 builtin and then its argument prototype would still apply. */
15708 char getloadavg ();
15717 rm -f conftest.
$ac_objext conftest
$ac_exeext
15718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15719 (eval $ac_link) 2>conftest.er1
15721 grep -v '^ *+' conftest.er1
>conftest.err
15723 cat conftest.err
>&5
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); } &&
15726 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15728 (eval $ac_try) 2>&5
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); }; } &&
15732 { ac_try
='test -s conftest$ac_exeext'
15733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15734 (eval $ac_try) 2>&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); }; }; then
15738 ac_cv_lib_getloadavg_getloadavg
=yes
15740 echo "$as_me: failed program was:" >&5
15741 sed 's/^/| /' conftest.
$ac_ext >&5
15743 ac_cv_lib_getloadavg_getloadavg
=no
15745 rm -f conftest.err conftest.
$ac_objext \
15746 conftest
$ac_exeext conftest.
$ac_ext
15747 LIBS
=$ac_check_lib_save_LIBS
15749 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15750 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15751 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15752 LIBS
="-lgetloadavg $LIBS"
15754 LIBS
=$ac_getloadavg_LIBS
15759 # Make sure it is really in the library, if we think we found it,
15760 # otherwise set up the replacement function.
15762 for ac_func
in getloadavg
15764 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15765 echo "$as_me:$LINENO: checking for $ac_func" >&5
15766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15767 if eval "test \"\${$as_ac_var+set}\" = set"; then
15768 echo $ECHO_N "(cached) $ECHO_C" >&6
15770 cat >conftest.
$ac_ext <<_ACEOF
15773 cat confdefs.h
>>conftest.
$ac_ext
15774 cat >>conftest.
$ac_ext <<_ACEOF
15775 /* end confdefs.h. */
15776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15778 #define $ac_func innocuous_$ac_func
15780 /* System header to define __stub macros and hopefully few prototypes,
15781 which can conflict with char $ac_func (); below.
15782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15783 <limits.h> exists even on freestanding compilers. */
15786 # include <limits.h>
15788 # include <assert.h>
15793 /* Override any gcc2 internal prototype to avoid an error. */
15798 /* We use char because int might match the return type of a gcc2
15799 builtin and then its argument prototype would still apply. */
15801 /* The GNU C library defines this for functions which it implements
15802 to always fail with ENOSYS. Some functions are actually named
15803 something starting with __ and the normal name is an alias. */
15804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15807 char (*f) () = $ac_func;
15816 return f != $ac_func;
15821 rm -f conftest.
$ac_objext conftest
$ac_exeext
15822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15823 (eval $ac_link) 2>conftest.er1
15825 grep -v '^ *+' conftest.er1
>conftest.err
15827 cat conftest.err
>&5
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); } &&
15830 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15832 (eval $ac_try) 2>&5
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); }; } &&
15836 { ac_try
='test -s conftest$ac_exeext'
15837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15838 (eval $ac_try) 2>&5
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); }; }; then
15842 eval "$as_ac_var=yes"
15844 echo "$as_me: failed program was:" >&5
15845 sed 's/^/| /' conftest.
$ac_ext >&5
15847 eval "$as_ac_var=no"
15849 rm -f conftest.err conftest.
$ac_objext \
15850 conftest
$ac_exeext conftest.
$ac_ext
15852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15853 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15854 if test `eval echo '${'$as_ac_var'}'` = yes; then
15855 cat >>confdefs.h
<<_ACEOF
15856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15861 "getloadavg.$ac_objext" | \
15862 *" getloadavg.$ac_objext" | \
15863 "getloadavg.$ac_objext "* | \
15864 *" getloadavg.$ac_objext "* ) ;;
15865 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
15869 cat >>confdefs.h
<<\_ACEOF
15870 #define C_GETLOADAVG 1
15873 # Figure out what our getloadavg.c needs.
15875 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15876 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15877 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15878 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15879 echo $ECHO_N "(cached) $ECHO_C" >&6
15881 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15882 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15884 # Is the header compilable?
15885 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15886 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15887 cat >conftest.
$ac_ext <<_ACEOF
15890 cat confdefs.h
>>conftest.
$ac_ext
15891 cat >>conftest.
$ac_ext <<_ACEOF
15892 /* end confdefs.h. */
15893 $ac_includes_default
15894 #include <sys/dg_sys_info.h>
15896 rm -f conftest.
$ac_objext
15897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15898 (eval $ac_compile) 2>conftest.er1
15900 grep -v '^ *+' conftest.er1
>conftest.err
15902 cat conftest.err
>&5
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); } &&
15905 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15907 (eval $ac_try) 2>&5
15909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); }; } &&
15911 { ac_try
='test -s conftest.$ac_objext'
15912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15913 (eval $ac_try) 2>&5
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); }; }; then
15917 ac_header_compiler
=yes
15919 echo "$as_me: failed program was:" >&5
15920 sed 's/^/| /' conftest.
$ac_ext >&5
15922 ac_header_compiler
=no
15924 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15925 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15926 echo "${ECHO_T}$ac_header_compiler" >&6
15928 # Is the header present?
15929 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15930 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15931 cat >conftest.
$ac_ext <<_ACEOF
15934 cat confdefs.h
>>conftest.
$ac_ext
15935 cat >>conftest.
$ac_ext <<_ACEOF
15936 /* end confdefs.h. */
15937 #include <sys/dg_sys_info.h>
15939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15940 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15942 grep -v '^ *+' conftest.er1
>conftest.err
15944 cat conftest.err
>&5
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); } >/dev
/null
; then
15947 if test -s conftest.err
; then
15948 ac_cpp_err
=$ac_c_preproc_warn_flag
15949 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15956 if test -z "$ac_cpp_err"; then
15957 ac_header_preproc
=yes
15959 echo "$as_me: failed program was:" >&5
15960 sed 's/^/| /' conftest.
$ac_ext >&5
15962 ac_header_preproc
=no
15964 rm -f conftest.err conftest.
$ac_ext
15965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15966 echo "${ECHO_T}$ac_header_preproc" >&6
15968 # So? What about this header?
15969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15971 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15972 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15973 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15974 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15975 ac_header_preproc
=yes
15978 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15979 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15980 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15981 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15982 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15983 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15984 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15985 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15986 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15987 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15988 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15989 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15992 ## ------------------------------------------ ##
15993 ## Report this to the AC_PACKAGE_NAME lists. ##
15994 ## ------------------------------------------ ##
15997 sed "s/^/$as_me: WARNING: /" >&2
16000 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16001 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16002 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16003 echo $ECHO_N "(cached) $ECHO_C" >&6
16005 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
16007 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16008 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16011 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16014 cat >>confdefs.h
<<\_ACEOF
16019 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16020 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
16021 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16022 echo $ECHO_N "(cached) $ECHO_C" >&6
16024 ac_check_lib_save_LIBS
=$LIBS
16026 cat >conftest.
$ac_ext <<_ACEOF
16029 cat confdefs.h
>>conftest.
$ac_ext
16030 cat >>conftest.
$ac_ext <<_ACEOF
16031 /* end confdefs.h. */
16033 /* Override any gcc2 internal prototype to avoid an error. */
16037 /* We use char because int might match the return type of a gcc2
16038 builtin and then its argument prototype would still apply. */
16039 char dg_sys_info ();
16048 rm -f conftest.
$ac_objext conftest
$ac_exeext
16049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16050 (eval $ac_link) 2>conftest.er1
16052 grep -v '^ *+' conftest.er1
>conftest.err
16054 cat conftest.err
>&5
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); } &&
16057 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16059 (eval $ac_try) 2>&5
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); }; } &&
16063 { ac_try
='test -s conftest$ac_exeext'
16064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16065 (eval $ac_try) 2>&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); }; }; then
16069 ac_cv_lib_dgc_dg_sys_info
=yes
16071 echo "$as_me: failed program was:" >&5
16072 sed 's/^/| /' conftest.
$ac_ext >&5
16074 ac_cv_lib_dgc_dg_sys_info
=no
16076 rm -f conftest.err conftest.
$ac_objext \
16077 conftest
$ac_exeext conftest.
$ac_ext
16078 LIBS
=$ac_check_lib_save_LIBS
16080 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16081 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
16082 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16083 cat >>confdefs.h
<<_ACEOF
16084 #define HAVE_LIBDGC 1
16095 if test "${ac_cv_header_locale_h+set}" = set; then
16096 echo "$as_me:$LINENO: checking for locale.h" >&5
16097 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16098 if test "${ac_cv_header_locale_h+set}" = set; then
16099 echo $ECHO_N "(cached) $ECHO_C" >&6
16101 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16102 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16104 # Is the header compilable?
16105 echo "$as_me:$LINENO: checking locale.h usability" >&5
16106 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
16107 cat >conftest.
$ac_ext <<_ACEOF
16110 cat confdefs.h
>>conftest.
$ac_ext
16111 cat >>conftest.
$ac_ext <<_ACEOF
16112 /* end confdefs.h. */
16113 $ac_includes_default
16114 #include <locale.h>
16116 rm -f conftest.
$ac_objext
16117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16118 (eval $ac_compile) 2>conftest.er1
16120 grep -v '^ *+' conftest.er1
>conftest.err
16122 cat conftest.err
>&5
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); } &&
16125 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16127 (eval $ac_try) 2>&5
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); }; } &&
16131 { ac_try
='test -s conftest.$ac_objext'
16132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16133 (eval $ac_try) 2>&5
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); }; }; then
16137 ac_header_compiler
=yes
16139 echo "$as_me: failed program was:" >&5
16140 sed 's/^/| /' conftest.
$ac_ext >&5
16142 ac_header_compiler
=no
16144 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16145 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16146 echo "${ECHO_T}$ac_header_compiler" >&6
16148 # Is the header present?
16149 echo "$as_me:$LINENO: checking locale.h presence" >&5
16150 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
16151 cat >conftest.
$ac_ext <<_ACEOF
16154 cat confdefs.h
>>conftest.
$ac_ext
16155 cat >>conftest.
$ac_ext <<_ACEOF
16156 /* end confdefs.h. */
16157 #include <locale.h>
16159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16160 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16162 grep -v '^ *+' conftest.er1
>conftest.err
16164 cat conftest.err
>&5
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); } >/dev
/null
; then
16167 if test -s conftest.err
; then
16168 ac_cpp_err
=$ac_c_preproc_warn_flag
16169 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16176 if test -z "$ac_cpp_err"; then
16177 ac_header_preproc
=yes
16179 echo "$as_me: failed program was:" >&5
16180 sed 's/^/| /' conftest.
$ac_ext >&5
16182 ac_header_preproc
=no
16184 rm -f conftest.err conftest.
$ac_ext
16185 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16186 echo "${ECHO_T}$ac_header_preproc" >&6
16188 # So? What about this header?
16189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16191 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16192 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16193 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16194 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16195 ac_header_preproc
=yes
16198 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16199 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16200 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16201 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16202 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16203 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16204 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16205 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16206 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16207 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16208 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16209 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16212 ## ------------------------------------------ ##
16213 ## Report this to the AC_PACKAGE_NAME lists. ##
16214 ## ------------------------------------------ ##
16217 sed "s/^/$as_me: WARNING: /" >&2
16220 echo "$as_me:$LINENO: checking for locale.h" >&5
16221 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16222 if test "${ac_cv_header_locale_h+set}" = set; then
16223 echo $ECHO_N "(cached) $ECHO_C" >&6
16225 ac_cv_header_locale_h
=$ac_header_preproc
16227 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16228 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16234 for ac_func
in setlocale
16236 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16237 echo "$as_me:$LINENO: checking for $ac_func" >&5
16238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16239 if eval "test \"\${$as_ac_var+set}\" = set"; then
16240 echo $ECHO_N "(cached) $ECHO_C" >&6
16242 cat >conftest.
$ac_ext <<_ACEOF
16245 cat confdefs.h
>>conftest.
$ac_ext
16246 cat >>conftest.
$ac_ext <<_ACEOF
16247 /* end confdefs.h. */
16248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16250 #define $ac_func innocuous_$ac_func
16252 /* System header to define __stub macros and hopefully few prototypes,
16253 which can conflict with char $ac_func (); below.
16254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16255 <limits.h> exists even on freestanding compilers. */
16258 # include <limits.h>
16260 # include <assert.h>
16265 /* Override any gcc2 internal prototype to avoid an error. */
16270 /* We use char because int might match the return type of a gcc2
16271 builtin and then its argument prototype would still apply. */
16273 /* The GNU C library defines this for functions which it implements
16274 to always fail with ENOSYS. Some functions are actually named
16275 something starting with __ and the normal name is an alias. */
16276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16279 char (*f) () = $ac_func;
16288 return f != $ac_func;
16293 rm -f conftest.
$ac_objext conftest
$ac_exeext
16294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16295 (eval $ac_link) 2>conftest.er1
16297 grep -v '^ *+' conftest.er1
>conftest.err
16299 cat conftest.err
>&5
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); } &&
16302 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16304 (eval $ac_try) 2>&5
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); }; } &&
16308 { ac_try
='test -s conftest$ac_exeext'
16309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16310 (eval $ac_try) 2>&5
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); }; }; then
16314 eval "$as_ac_var=yes"
16316 echo "$as_me: failed program was:" >&5
16317 sed 's/^/| /' conftest.
$ac_ext >&5
16319 eval "$as_ac_var=no"
16321 rm -f conftest.err conftest.
$ac_objext \
16322 conftest
$ac_exeext conftest.
$ac_ext
16324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16325 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16326 if test `eval echo '${'$as_ac_var'}'` = yes; then
16327 cat >>confdefs.h
<<_ACEOF
16328 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16335 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16336 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16337 # Irix 4.0.5F has the header but not the library.
16338 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
16341 cat >>confdefs.h
<<\_ACEOF
16347 if test $ac_have_func = no
; then
16348 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16349 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16350 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16351 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16352 echo $ECHO_N "(cached) $ECHO_C" >&6
16354 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16355 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16357 # Is the header compilable?
16358 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16359 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16360 cat >conftest.
$ac_ext <<_ACEOF
16363 cat confdefs.h
>>conftest.
$ac_ext
16364 cat >>conftest.
$ac_ext <<_ACEOF
16365 /* end confdefs.h. */
16366 $ac_includes_default
16367 #include <inq_stats/cpustats.h>
16369 rm -f conftest.
$ac_objext
16370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16371 (eval $ac_compile) 2>conftest.er1
16373 grep -v '^ *+' conftest.er1
>conftest.err
16375 cat conftest.err
>&5
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); } &&
16378 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16380 (eval $ac_try) 2>&5
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); }; } &&
16384 { ac_try
='test -s conftest.$ac_objext'
16385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16386 (eval $ac_try) 2>&5
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); }; }; then
16390 ac_header_compiler
=yes
16392 echo "$as_me: failed program was:" >&5
16393 sed 's/^/| /' conftest.
$ac_ext >&5
16395 ac_header_compiler
=no
16397 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16398 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16399 echo "${ECHO_T}$ac_header_compiler" >&6
16401 # Is the header present?
16402 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16403 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16404 cat >conftest.
$ac_ext <<_ACEOF
16407 cat confdefs.h
>>conftest.
$ac_ext
16408 cat >>conftest.
$ac_ext <<_ACEOF
16409 /* end confdefs.h. */
16410 #include <inq_stats/cpustats.h>
16412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16413 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16415 grep -v '^ *+' conftest.er1
>conftest.err
16417 cat conftest.err
>&5
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); } >/dev
/null
; then
16420 if test -s conftest.err
; then
16421 ac_cpp_err
=$ac_c_preproc_warn_flag
16422 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16429 if test -z "$ac_cpp_err"; then
16430 ac_header_preproc
=yes
16432 echo "$as_me: failed program was:" >&5
16433 sed 's/^/| /' conftest.
$ac_ext >&5
16435 ac_header_preproc
=no
16437 rm -f conftest.err conftest.
$ac_ext
16438 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16439 echo "${ECHO_T}$ac_header_preproc" >&6
16441 # So? What about this header?
16442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16444 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16445 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16446 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16447 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16448 ac_header_preproc
=yes
16451 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16452 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16453 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16454 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16455 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16456 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16457 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16458 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16459 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16460 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16461 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16462 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16465 ## ------------------------------------------ ##
16466 ## Report this to the AC_PACKAGE_NAME lists. ##
16467 ## ------------------------------------------ ##
16470 sed "s/^/$as_me: WARNING: /" >&2
16473 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16474 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16475 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16476 echo $ECHO_N "(cached) $ECHO_C" >&6
16478 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
16480 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16481 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16484 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16487 cat >>confdefs.h
<<\_ACEOF
16492 cat >>confdefs.h
<<\_ACEOF
16501 if test $ac_have_func = no
; then
16502 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16503 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16504 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16505 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16506 echo $ECHO_N "(cached) $ECHO_C" >&6
16508 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16509 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16511 # Is the header compilable?
16512 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16513 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16514 cat >conftest.
$ac_ext <<_ACEOF
16517 cat confdefs.h
>>conftest.
$ac_ext
16518 cat >>conftest.
$ac_ext <<_ACEOF
16519 /* end confdefs.h. */
16520 $ac_includes_default
16521 #include <sys/cpustats.h>
16523 rm -f conftest.
$ac_objext
16524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16525 (eval $ac_compile) 2>conftest.er1
16527 grep -v '^ *+' conftest.er1
>conftest.err
16529 cat conftest.err
>&5
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); } &&
16532 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16534 (eval $ac_try) 2>&5
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); }; } &&
16538 { ac_try
='test -s conftest.$ac_objext'
16539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16540 (eval $ac_try) 2>&5
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); }; }; then
16544 ac_header_compiler
=yes
16546 echo "$as_me: failed program was:" >&5
16547 sed 's/^/| /' conftest.
$ac_ext >&5
16549 ac_header_compiler
=no
16551 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16552 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16553 echo "${ECHO_T}$ac_header_compiler" >&6
16555 # Is the header present?
16556 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16557 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16558 cat >conftest.
$ac_ext <<_ACEOF
16561 cat confdefs.h
>>conftest.
$ac_ext
16562 cat >>conftest.
$ac_ext <<_ACEOF
16563 /* end confdefs.h. */
16564 #include <sys/cpustats.h>
16566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16567 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16569 grep -v '^ *+' conftest.er1
>conftest.err
16571 cat conftest.err
>&5
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); } >/dev
/null
; then
16574 if test -s conftest.err
; then
16575 ac_cpp_err
=$ac_c_preproc_warn_flag
16576 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16583 if test -z "$ac_cpp_err"; then
16584 ac_header_preproc
=yes
16586 echo "$as_me: failed program was:" >&5
16587 sed 's/^/| /' conftest.
$ac_ext >&5
16589 ac_header_preproc
=no
16591 rm -f conftest.err conftest.
$ac_ext
16592 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16593 echo "${ECHO_T}$ac_header_preproc" >&6
16595 # So? What about this header?
16596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16598 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16599 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16600 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16601 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16602 ac_header_preproc
=yes
16605 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16606 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16607 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16608 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16609 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16610 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16611 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16612 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16613 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16614 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16615 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16616 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16619 ## ------------------------------------------ ##
16620 ## Report this to the AC_PACKAGE_NAME lists. ##
16621 ## ------------------------------------------ ##
16624 sed "s/^/$as_me: WARNING: /" >&2
16627 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16628 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16629 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16630 echo $ECHO_N "(cached) $ECHO_C" >&6
16632 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
16634 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16635 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16638 if test $ac_cv_header_sys_cpustats_h = yes; then
16639 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
16648 if test $ac_have_func = no
; then
16650 for ac_header
in mach
/mach.h
16652 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16654 echo "$as_me:$LINENO: checking for $ac_header" >&5
16655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16657 echo $ECHO_N "(cached) $ECHO_C" >&6
16659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16662 # Is the header compilable?
16663 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16664 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16665 cat >conftest.
$ac_ext <<_ACEOF
16668 cat confdefs.h
>>conftest.
$ac_ext
16669 cat >>conftest.
$ac_ext <<_ACEOF
16670 /* end confdefs.h. */
16671 $ac_includes_default
16672 #include <$ac_header>
16674 rm -f conftest.
$ac_objext
16675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16676 (eval $ac_compile) 2>conftest.er1
16678 grep -v '^ *+' conftest.er1
>conftest.err
16680 cat conftest.err
>&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); } &&
16683 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16685 (eval $ac_try) 2>&5
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); }; } &&
16689 { ac_try
='test -s conftest.$ac_objext'
16690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16691 (eval $ac_try) 2>&5
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); }; }; then
16695 ac_header_compiler
=yes
16697 echo "$as_me: failed program was:" >&5
16698 sed 's/^/| /' conftest.
$ac_ext >&5
16700 ac_header_compiler
=no
16702 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16703 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16704 echo "${ECHO_T}$ac_header_compiler" >&6
16706 # Is the header present?
16707 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16708 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16709 cat >conftest.
$ac_ext <<_ACEOF
16712 cat confdefs.h
>>conftest.
$ac_ext
16713 cat >>conftest.
$ac_ext <<_ACEOF
16714 /* end confdefs.h. */
16715 #include <$ac_header>
16717 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16718 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16720 grep -v '^ *+' conftest.er1
>conftest.err
16722 cat conftest.err
>&5
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); } >/dev
/null
; then
16725 if test -s conftest.err
; then
16726 ac_cpp_err
=$ac_c_preproc_warn_flag
16727 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16734 if test -z "$ac_cpp_err"; then
16735 ac_header_preproc
=yes
16737 echo "$as_me: failed program was:" >&5
16738 sed 's/^/| /' conftest.
$ac_ext >&5
16740 ac_header_preproc
=no
16742 rm -f conftest.err conftest.
$ac_ext
16743 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16744 echo "${ECHO_T}$ac_header_preproc" >&6
16746 # So? What about this header?
16747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16749 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16750 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16752 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16753 ac_header_preproc
=yes
16756 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16757 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16758 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16759 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16760 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16761 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16762 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16763 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16766 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16767 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16770 ## ------------------------------------------ ##
16771 ## Report this to the AC_PACKAGE_NAME lists. ##
16772 ## ------------------------------------------ ##
16775 sed "s/^/$as_me: WARNING: /" >&2
16778 echo "$as_me:$LINENO: checking for $ac_header" >&5
16779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16781 echo $ECHO_N "(cached) $ECHO_C" >&6
16783 eval "$as_ac_Header=\$ac_header_preproc"
16785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16790 cat >>confdefs.h
<<_ACEOF
16791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16801 for ac_header
in nlist.h
16803 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16805 echo "$as_me:$LINENO: checking for $ac_header" >&5
16806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16808 echo $ECHO_N "(cached) $ECHO_C" >&6
16810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16813 # Is the header compilable?
16814 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16816 cat >conftest.
$ac_ext <<_ACEOF
16819 cat confdefs.h
>>conftest.
$ac_ext
16820 cat >>conftest.
$ac_ext <<_ACEOF
16821 /* end confdefs.h. */
16822 $ac_includes_default
16823 #include <$ac_header>
16825 rm -f conftest.
$ac_objext
16826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16827 (eval $ac_compile) 2>conftest.er1
16829 grep -v '^ *+' conftest.er1
>conftest.err
16831 cat conftest.err
>&5
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); } &&
16834 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16836 (eval $ac_try) 2>&5
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); }; } &&
16840 { ac_try
='test -s conftest.$ac_objext'
16841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16842 (eval $ac_try) 2>&5
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); }; }; then
16846 ac_header_compiler
=yes
16848 echo "$as_me: failed program was:" >&5
16849 sed 's/^/| /' conftest.
$ac_ext >&5
16851 ac_header_compiler
=no
16853 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16854 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16855 echo "${ECHO_T}$ac_header_compiler" >&6
16857 # Is the header present?
16858 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16860 cat >conftest.
$ac_ext <<_ACEOF
16863 cat confdefs.h
>>conftest.
$ac_ext
16864 cat >>conftest.
$ac_ext <<_ACEOF
16865 /* end confdefs.h. */
16866 #include <$ac_header>
16868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16869 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16871 grep -v '^ *+' conftest.er1
>conftest.err
16873 cat conftest.err
>&5
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); } >/dev
/null
; then
16876 if test -s conftest.err
; then
16877 ac_cpp_err
=$ac_c_preproc_warn_flag
16878 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16885 if test -z "$ac_cpp_err"; then
16886 ac_header_preproc
=yes
16888 echo "$as_me: failed program was:" >&5
16889 sed 's/^/| /' conftest.
$ac_ext >&5
16891 ac_header_preproc
=no
16893 rm -f conftest.err conftest.
$ac_ext
16894 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16895 echo "${ECHO_T}$ac_header_preproc" >&6
16897 # So? What about this header?
16898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16900 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16903 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16904 ac_header_preproc
=yes
16907 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16909 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16910 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16911 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16912 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16913 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16914 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16917 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16918 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16921 ## ------------------------------------------ ##
16922 ## Report this to the AC_PACKAGE_NAME lists. ##
16923 ## ------------------------------------------ ##
16926 sed "s/^/$as_me: WARNING: /" >&2
16929 echo "$as_me:$LINENO: checking for $ac_header" >&5
16930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16932 echo $ECHO_N "(cached) $ECHO_C" >&6
16934 eval "$as_ac_Header=\$ac_header_preproc"
16936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16941 cat >>confdefs.h
<<_ACEOF
16942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16944 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16945 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16946 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16947 echo $ECHO_N "(cached) $ECHO_C" >&6
16949 cat >conftest.
$ac_ext <<_ACEOF
16952 cat confdefs.h
>>conftest.
$ac_ext
16953 cat >>conftest.
$ac_ext <<_ACEOF
16954 /* end confdefs.h. */
16960 static struct nlist ac_aggr;
16961 if (ac_aggr.n_un.n_name)
16967 rm -f conftest.
$ac_objext
16968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16969 (eval $ac_compile) 2>conftest.er1
16971 grep -v '^ *+' conftest.er1
>conftest.err
16973 cat conftest.err
>&5
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); } &&
16976 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16978 (eval $ac_try) 2>&5
16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981 (exit $ac_status); }; } &&
16982 { ac_try
='test -s conftest.$ac_objext'
16983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16984 (eval $ac_try) 2>&5
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); }; }; then
16988 ac_cv_member_struct_nlist_n_un_n_name
=yes
16990 echo "$as_me: failed program was:" >&5
16991 sed 's/^/| /' conftest.
$ac_ext >&5
16993 cat >conftest.
$ac_ext <<_ACEOF
16996 cat confdefs.h
>>conftest.
$ac_ext
16997 cat >>conftest.
$ac_ext <<_ACEOF
16998 /* end confdefs.h. */
17004 static struct nlist ac_aggr;
17005 if (sizeof ac_aggr.n_un.n_name)
17011 rm -f conftest.
$ac_objext
17012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17013 (eval $ac_compile) 2>conftest.er1
17015 grep -v '^ *+' conftest.er1
>conftest.err
17017 cat conftest.err
>&5
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); } &&
17020 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17022 (eval $ac_try) 2>&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); }; } &&
17026 { ac_try
='test -s conftest.$ac_objext'
17027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17028 (eval $ac_try) 2>&5
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); }; }; then
17032 ac_cv_member_struct_nlist_n_un_n_name
=yes
17034 echo "$as_me: failed program was:" >&5
17035 sed 's/^/| /' conftest.
$ac_ext >&5
17037 ac_cv_member_struct_nlist_n_un_n_name
=no
17039 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17041 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17043 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17044 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
17045 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17047 cat >>confdefs.h
<<_ACEOF
17048 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17052 cat >>confdefs.h
<<\_ACEOF
17053 #define NLIST_NAME_UNION 1
17067 # Some definitions of getloadavg require that the program be installed setgid.
17068 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17069 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
17070 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17071 echo $ECHO_N "(cached) $ECHO_C" >&6
17073 cat >conftest.
$ac_ext <<_ACEOF
17076 cat confdefs.h
>>conftest.
$ac_ext
17077 cat >>conftest.
$ac_ext <<_ACEOF
17078 /* end confdefs.h. */
17079 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17080 #ifdef LDAV_PRIVILEGED
17081 Yowza Am I SETGID yet
17084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17085 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
17086 ac_cv_func_getloadavg_setgid
=yes
17088 ac_cv_func_getloadavg_setgid
=no
17093 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17094 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
17095 if test $ac_cv_func_getloadavg_setgid = yes; then
17098 cat >>confdefs.h
<<\_ACEOF
17099 #define GETLOADAVG_PRIVILEGED 1
17106 if test $ac_cv_func_getloadavg_setgid = yes; then
17107 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17108 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
17109 if test "${ac_cv_group_kmem+set}" = set; then
17110 echo $ECHO_N "(cached) $ECHO_C" >&6
17112 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17113 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
17114 # If we got an error (system does not support symlinks), try without -L.
17115 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
17116 ac_cv_group_kmem
=`echo $ac_ls_output \
17117 | sed -ne 's/[ ][ ]*/ /g;
17118 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17122 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17123 echo "${ECHO_T}$ac_cv_group_kmem" >&6
17124 KMEM_GROUP
=$ac_cv_group_kmem
17126 if test "x$ac_save_LIBS" = x
; then
17127 GETLOADAVG_LIBS
=$LIBS
17129 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17135 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17136 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17137 if test "${ac_cv_sys_largefile_source+set}" = set; then
17138 echo $ECHO_N "(cached) $ECHO_C" >&6
17141 ac_cv_sys_largefile_source
=no
17142 cat >conftest.
$ac_ext <<_ACEOF
17145 cat confdefs.h
>>conftest.
$ac_ext
17146 cat >>conftest.
$ac_ext <<_ACEOF
17147 /* end confdefs.h. */
17157 rm -f conftest.
$ac_objext
17158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17159 (eval $ac_compile) 2>conftest.er1
17161 grep -v '^ *+' conftest.er1
>conftest.err
17163 cat conftest.err
>&5
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); } &&
17166 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17168 (eval $ac_try) 2>&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); }; } &&
17172 { ac_try
='test -s conftest.$ac_objext'
17173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17174 (eval $ac_try) 2>&5
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); }; }; then
17180 echo "$as_me: failed program was:" >&5
17181 sed 's/^/| /' conftest.
$ac_ext >&5
17184 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17185 cat >conftest.
$ac_ext <<_ACEOF
17188 cat confdefs.h
>>conftest.
$ac_ext
17189 cat >>conftest.
$ac_ext <<_ACEOF
17190 /* end confdefs.h. */
17191 #define _LARGEFILE_SOURCE 1
17201 rm -f conftest.
$ac_objext
17202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17203 (eval $ac_compile) 2>conftest.er1
17205 grep -v '^ *+' conftest.er1
>conftest.err
17207 cat conftest.err
>&5
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); } &&
17210 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17212 (eval $ac_try) 2>&5
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); }; } &&
17216 { ac_try
='test -s conftest.$ac_objext'
17217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17218 (eval $ac_try) 2>&5
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); }; }; then
17222 ac_cv_sys_largefile_source
=1; break
17224 echo "$as_me: failed program was:" >&5
17225 sed 's/^/| /' conftest.
$ac_ext >&5
17228 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17232 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17233 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17234 if test "$ac_cv_sys_largefile_source" != no
; then
17236 cat >>confdefs.h
<<_ACEOF
17237 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17243 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17244 # in glibc 2.1.3, but that breaks too many other things.
17245 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17246 echo "$as_me:$LINENO: checking for fseeko" >&5
17247 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17248 if test "${ac_cv_func_fseeko+set}" = set; then
17249 echo $ECHO_N "(cached) $ECHO_C" >&6
17251 cat >conftest.
$ac_ext <<_ACEOF
17254 cat confdefs.h
>>conftest.
$ac_ext
17255 cat >>conftest.
$ac_ext <<_ACEOF
17256 /* end confdefs.h. */
17261 return fseeko && fseeko (stdin, 0, 0);
17266 rm -f conftest.
$ac_objext conftest
$ac_exeext
17267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17268 (eval $ac_link) 2>conftest.er1
17270 grep -v '^ *+' conftest.er1
>conftest.err
17272 cat conftest.err
>&5
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); } &&
17275 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17277 (eval $ac_try) 2>&5
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); }; } &&
17281 { ac_try
='test -s conftest$ac_exeext'
17282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17283 (eval $ac_try) 2>&5
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); }; }; then
17287 ac_cv_func_fseeko
=yes
17289 echo "$as_me: failed program was:" >&5
17290 sed 's/^/| /' conftest.
$ac_ext >&5
17292 ac_cv_func_fseeko
=no
17294 rm -f conftest.err conftest.
$ac_objext \
17295 conftest
$ac_exeext conftest.
$ac_ext
17297 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17298 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17299 if test $ac_cv_func_fseeko = yes; then
17301 cat >>confdefs.h
<<\_ACEOF
17302 #define HAVE_FSEEKO 1
17308 # Configure getopt.
17309 # getopt.m4 serial 10
17311 # The getopt module assume you want GNU getopt, with getopt_long etc,
17312 # rather than vanilla POSIX getopt. This means your your code should
17313 # always include <getopt.h> for the getopt prototypes.
17325 # Prerequisites of lib/getopt*.
17332 for ac_header
in getopt.h
17334 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17336 echo "$as_me:$LINENO: checking for $ac_header" >&5
17337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17339 echo $ECHO_N "(cached) $ECHO_C" >&6
17341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17344 # Is the header compilable?
17345 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17347 cat >conftest.
$ac_ext <<_ACEOF
17350 cat confdefs.h
>>conftest.
$ac_ext
17351 cat >>conftest.
$ac_ext <<_ACEOF
17352 /* end confdefs.h. */
17353 $ac_includes_default
17354 #include <$ac_header>
17356 rm -f conftest.
$ac_objext
17357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17358 (eval $ac_compile) 2>conftest.er1
17360 grep -v '^ *+' conftest.er1
>conftest.err
17362 cat conftest.err
>&5
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); } &&
17365 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17367 (eval $ac_try) 2>&5
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); }; } &&
17371 { ac_try
='test -s conftest.$ac_objext'
17372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17373 (eval $ac_try) 2>&5
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); }; }; then
17377 ac_header_compiler
=yes
17379 echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.
$ac_ext >&5
17382 ac_header_compiler
=no
17384 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17385 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17386 echo "${ECHO_T}$ac_header_compiler" >&6
17388 # Is the header present?
17389 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17391 cat >conftest.
$ac_ext <<_ACEOF
17394 cat confdefs.h
>>conftest.
$ac_ext
17395 cat >>conftest.
$ac_ext <<_ACEOF
17396 /* end confdefs.h. */
17397 #include <$ac_header>
17399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17400 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17402 grep -v '^ *+' conftest.er1
>conftest.err
17404 cat conftest.err
>&5
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); } >/dev
/null
; then
17407 if test -s conftest.err
; then
17408 ac_cpp_err
=$ac_c_preproc_warn_flag
17409 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17416 if test -z "$ac_cpp_err"; then
17417 ac_header_preproc
=yes
17419 echo "$as_me: failed program was:" >&5
17420 sed 's/^/| /' conftest.
$ac_ext >&5
17422 ac_header_preproc
=no
17424 rm -f conftest.err conftest.
$ac_ext
17425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17426 echo "${ECHO_T}$ac_header_preproc" >&6
17428 # So? What about this header?
17429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17435 ac_header_preproc
=yes
17438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17441 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17445 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17452 ## ------------------------------------------ ##
17453 ## Report this to the AC_PACKAGE_NAME lists. ##
17454 ## ------------------------------------------ ##
17457 sed "s/^/$as_me: WARNING: /" >&2
17460 echo "$as_me:$LINENO: checking for $ac_header" >&5
17461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17463 echo $ECHO_N "(cached) $ECHO_C" >&6
17465 eval "$as_ac_Header=\$ac_header_preproc"
17467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17472 cat >>confdefs.h
<<_ACEOF
17473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17482 if test -z "$GETOPT_H"; then
17484 for ac_func
in getopt_long_only
17486 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17487 echo "$as_me:$LINENO: checking for $ac_func" >&5
17488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17489 if eval "test \"\${$as_ac_var+set}\" = set"; then
17490 echo $ECHO_N "(cached) $ECHO_C" >&6
17492 cat >conftest.
$ac_ext <<_ACEOF
17495 cat confdefs.h
>>conftest.
$ac_ext
17496 cat >>conftest.
$ac_ext <<_ACEOF
17497 /* end confdefs.h. */
17498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17500 #define $ac_func innocuous_$ac_func
17502 /* System header to define __stub macros and hopefully few prototypes,
17503 which can conflict with char $ac_func (); below.
17504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17505 <limits.h> exists even on freestanding compilers. */
17508 # include <limits.h>
17510 # include <assert.h>
17515 /* Override any gcc2 internal prototype to avoid an error. */
17520 /* We use char because int might match the return type of a gcc2
17521 builtin and then its argument prototype would still apply. */
17523 /* The GNU C library defines this for functions which it implements
17524 to always fail with ENOSYS. Some functions are actually named
17525 something starting with __ and the normal name is an alias. */
17526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17529 char (*f) () = $ac_func;
17538 return f != $ac_func;
17543 rm -f conftest.
$ac_objext conftest
$ac_exeext
17544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17545 (eval $ac_link) 2>conftest.er1
17547 grep -v '^ *+' conftest.er1
>conftest.err
17549 cat conftest.err
>&5
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); } &&
17552 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17554 (eval $ac_try) 2>&5
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); }; } &&
17558 { ac_try
='test -s conftest$ac_exeext'
17559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17560 (eval $ac_try) 2>&5
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); }; }; then
17564 eval "$as_ac_var=yes"
17566 echo "$as_me: failed program was:" >&5
17567 sed 's/^/| /' conftest.
$ac_ext >&5
17569 eval "$as_ac_var=no"
17571 rm -f conftest.err conftest.
$ac_objext \
17572 conftest
$ac_exeext conftest.
$ac_ext
17574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17575 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17576 if test `eval echo '${'$as_ac_var'}'` = yes; then
17577 cat >>confdefs.h
<<_ACEOF
17578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17588 if test -z "$GETOPT_H"; then
17589 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17590 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17591 if test "${ac_cv_have_decl_optreset+set}" = set; then
17592 echo $ECHO_N "(cached) $ECHO_C" >&6
17594 cat >conftest.
$ac_ext <<_ACEOF
17597 cat confdefs.h
>>conftest.
$ac_ext
17598 cat >>conftest.
$ac_ext <<_ACEOF
17599 /* end confdefs.h. */
17600 #include <getopt.h>
17606 char *p = (char *) optreset;
17613 rm -f conftest.
$ac_objext
17614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17615 (eval $ac_compile) 2>conftest.er1
17617 grep -v '^ *+' conftest.er1
>conftest.err
17619 cat conftest.err
>&5
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); } &&
17622 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17624 (eval $ac_try) 2>&5
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); }; } &&
17628 { ac_try
='test -s conftest.$ac_objext'
17629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17630 (eval $ac_try) 2>&5
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); }; }; then
17634 ac_cv_have_decl_optreset
=yes
17636 echo "$as_me: failed program was:" >&5
17637 sed 's/^/| /' conftest.
$ac_ext >&5
17639 ac_cv_have_decl_optreset
=no
17641 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17643 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17644 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17645 if test $ac_cv_have_decl_optreset = yes; then
17651 if test -z "$GETOPT_H"; then
17652 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17653 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17654 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17655 echo $ECHO_N "(cached) $ECHO_C" >&6
17657 if test "$cross_compiling" = yes; then
17658 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17659 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17660 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17661 echo $ECHO_N "(cached) $ECHO_C" >&6
17663 cat >conftest.
$ac_ext <<_ACEOF
17666 cat confdefs.h
>>conftest.
$ac_ext
17667 cat >>conftest.
$ac_ext <<_ACEOF
17668 /* end confdefs.h. */
17669 #include <getopt.h>
17674 #ifndef getopt_clip
17675 char *p = (char *) getopt_clip;
17682 rm -f conftest.
$ac_objext
17683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17684 (eval $ac_compile) 2>conftest.er1
17686 grep -v '^ *+' conftest.er1
>conftest.err
17688 cat conftest.err
>&5
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); } &&
17691 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17693 (eval $ac_try) 2>&5
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); }; } &&
17697 { ac_try
='test -s conftest.$ac_objext'
17698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17699 (eval $ac_try) 2>&5
17701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 (exit $ac_status); }; }; then
17703 ac_cv_have_decl_getopt_clip
=yes
17705 echo "$as_me: failed program was:" >&5
17706 sed 's/^/| /' conftest.
$ac_ext >&5
17708 ac_cv_have_decl_getopt_clip
=no
17710 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17712 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17713 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17714 if test $ac_cv_have_decl_getopt_clip = yes; then
17715 gl_cv_func_gnu_getopt
=no
17717 gl_cv_func_gnu_getopt
=yes
17721 cat >conftest.
$ac_ext <<_ACEOF
17724 cat confdefs.h
>>conftest.
$ac_ext
17725 cat >>conftest.
$ac_ext <<_ACEOF
17726 /* end confdefs.h. */
17727 #include <getopt.h>
17733 myargv[0] = "conftest";
17736 return getopt (2, myargv, "+a") != '?';
17742 rm -f conftest
$ac_exeext
17743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17744 (eval $ac_link) 2>&5
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17749 (eval $ac_try) 2>&5
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); }; }; then
17753 gl_cv_func_gnu_getopt
=yes
17755 echo "$as_me: program exited with status $ac_status" >&5
17756 echo "$as_me: failed program was:" >&5
17757 sed 's/^/| /' conftest.
$ac_ext >&5
17759 ( exit $ac_status )
17760 gl_cv_func_gnu_getopt
=no
17762 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17765 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17766 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17767 if test "$gl_cv_func_gnu_getopt" = "no"; then
17774 if test -n "$GETOPT_H"; then
17779 cat >>confdefs.h
<<\_ACEOF
17780 #define __GETOPT_PREFIX rpl_
17786 GETOPTOBJS
='getopt.o getopt1.o'
17793 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17794 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17795 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17796 echo $ECHO_N "(cached) $ECHO_C" >&6
17798 # Use it with a single arg.
17799 cat >conftest.
$ac_ext <<_ACEOF
17802 cat confdefs.h
>>conftest.
$ac_ext
17803 cat >>conftest.
$ac_ext <<_ACEOF
17804 /* end confdefs.h. */
17805 $ac_includes_default
17814 rm -f conftest.
$ac_objext
17815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17816 (eval $ac_compile) 2>conftest.er1
17818 grep -v '^ *+' conftest.er1
>conftest.err
17820 cat conftest.err
>&5
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); } &&
17823 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17825 (eval $ac_try) 2>&5
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); }; } &&
17829 { ac_try
='test -s conftest.$ac_objext'
17830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831 (eval $ac_try) 2>&5
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; }; then
17835 ac_cv_func_getpgrp_void
=no
17837 echo "$as_me: failed program was:" >&5
17838 sed 's/^/| /' conftest.
$ac_ext >&5
17840 ac_cv_func_getpgrp_void
=yes
17842 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17845 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17846 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17847 if test $ac_cv_func_getpgrp_void = yes; then
17849 cat >>confdefs.h
<<\_ACEOF
17850 #define GETPGRP_VOID 1
17857 for ac_func
in strftime
17859 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17860 echo "$as_me:$LINENO: checking for $ac_func" >&5
17861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17862 if eval "test \"\${$as_ac_var+set}\" = set"; then
17863 echo $ECHO_N "(cached) $ECHO_C" >&6
17865 cat >conftest.
$ac_ext <<_ACEOF
17868 cat confdefs.h
>>conftest.
$ac_ext
17869 cat >>conftest.
$ac_ext <<_ACEOF
17870 /* end confdefs.h. */
17871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17873 #define $ac_func innocuous_$ac_func
17875 /* System header to define __stub macros and hopefully few prototypes,
17876 which can conflict with char $ac_func (); below.
17877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17878 <limits.h> exists even on freestanding compilers. */
17881 # include <limits.h>
17883 # include <assert.h>
17888 /* Override any gcc2 internal prototype to avoid an error. */
17893 /* We use char because int might match the return type of a gcc2
17894 builtin and then its argument prototype would still apply. */
17896 /* The GNU C library defines this for functions which it implements
17897 to always fail with ENOSYS. Some functions are actually named
17898 something starting with __ and the normal name is an alias. */
17899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17902 char (*f) () = $ac_func;
17911 return f != $ac_func;
17916 rm -f conftest.
$ac_objext conftest
$ac_exeext
17917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17918 (eval $ac_link) 2>conftest.er1
17920 grep -v '^ *+' conftest.er1
>conftest.err
17922 cat conftest.err
>&5
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); } &&
17925 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17927 (eval $ac_try) 2>&5
17929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); }; } &&
17931 { ac_try
='test -s conftest$ac_exeext'
17932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17933 (eval $ac_try) 2>&5
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); }; }; then
17937 eval "$as_ac_var=yes"
17939 echo "$as_me: failed program was:" >&5
17940 sed 's/^/| /' conftest.
$ac_ext >&5
17942 eval "$as_ac_var=no"
17944 rm -f conftest.err conftest.
$ac_objext \
17945 conftest
$ac_exeext conftest.
$ac_ext
17947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17948 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17949 if test `eval echo '${'$as_ac_var'}'` = yes; then
17950 cat >>confdefs.h
<<_ACEOF
17951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17955 # strftime is in -lintl on SCO UNIX.
17956 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17957 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17958 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17959 echo $ECHO_N "(cached) $ECHO_C" >&6
17961 ac_check_lib_save_LIBS
=$LIBS
17962 LIBS
="-lintl $LIBS"
17963 cat >conftest.
$ac_ext <<_ACEOF
17966 cat confdefs.h
>>conftest.
$ac_ext
17967 cat >>conftest.
$ac_ext <<_ACEOF
17968 /* end confdefs.h. */
17970 /* Override any gcc2 internal prototype to avoid an error. */
17974 /* We use char because int might match the return type of a gcc2
17975 builtin and then its argument prototype would still apply. */
17985 rm -f conftest.
$ac_objext conftest
$ac_exeext
17986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17987 (eval $ac_link) 2>conftest.er1
17989 grep -v '^ *+' conftest.er1
>conftest.err
17991 cat conftest.err
>&5
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); } &&
17994 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17996 (eval $ac_try) 2>&5
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); }; } &&
18000 { ac_try
='test -s conftest$ac_exeext'
18001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18002 (eval $ac_try) 2>&5
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); }; }; then
18006 ac_cv_lib_intl_strftime
=yes
18008 echo "$as_me: failed program was:" >&5
18009 sed 's/^/| /' conftest.
$ac_ext >&5
18011 ac_cv_lib_intl_strftime
=no
18013 rm -f conftest.err conftest.
$ac_objext \
18014 conftest
$ac_exeext conftest.
$ac_ext
18015 LIBS
=$ac_check_lib_save_LIBS
18017 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18018 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18019 if test $ac_cv_lib_intl_strftime = yes; then
18020 cat >>confdefs.h
<<\_ACEOF
18021 #define HAVE_STRFTIME 1
18024 LIBS
="-lintl $LIBS"
18033 for ac_func
in grantpt
18035 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18036 echo "$as_me:$LINENO: checking for $ac_func" >&5
18037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18038 if eval "test \"\${$as_ac_var+set}\" = set"; then
18039 echo $ECHO_N "(cached) $ECHO_C" >&6
18041 cat >conftest.
$ac_ext <<_ACEOF
18044 cat confdefs.h
>>conftest.
$ac_ext
18045 cat >>conftest.
$ac_ext <<_ACEOF
18046 /* end confdefs.h. */
18047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18049 #define $ac_func innocuous_$ac_func
18051 /* System header to define __stub macros and hopefully few prototypes,
18052 which can conflict with char $ac_func (); below.
18053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18054 <limits.h> exists even on freestanding compilers. */
18057 # include <limits.h>
18059 # include <assert.h>
18064 /* Override any gcc2 internal prototype to avoid an error. */
18069 /* We use char because int might match the return type of a gcc2
18070 builtin and then its argument prototype would still apply. */
18072 /* The GNU C library defines this for functions which it implements
18073 to always fail with ENOSYS. Some functions are actually named
18074 something starting with __ and the normal name is an alias. */
18075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18078 char (*f) () = $ac_func;
18087 return f != $ac_func;
18092 rm -f conftest.
$ac_objext conftest
$ac_exeext
18093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18094 (eval $ac_link) 2>conftest.er1
18096 grep -v '^ *+' conftest.er1
>conftest.err
18098 cat conftest.err
>&5
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); } &&
18101 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18103 (eval $ac_try) 2>&5
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); }; } &&
18107 { ac_try
='test -s conftest$ac_exeext'
18108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18109 (eval $ac_try) 2>&5
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); }; }; then
18113 eval "$as_ac_var=yes"
18115 echo "$as_me: failed program was:" >&5
18116 sed 's/^/| /' conftest.
$ac_ext >&5
18118 eval "$as_ac_var=no"
18120 rm -f conftest.err conftest.
$ac_objext \
18121 conftest
$ac_exeext conftest.
$ac_ext
18123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18124 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18125 if test `eval echo '${'$as_ac_var'}'` = yes; then
18126 cat >>confdefs.h
<<_ACEOF
18127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18134 # PTY-related GNU extensions.
18136 for ac_func
in getpt
18138 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18139 echo "$as_me:$LINENO: checking for $ac_func" >&5
18140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18141 if eval "test \"\${$as_ac_var+set}\" = set"; then
18142 echo $ECHO_N "(cached) $ECHO_C" >&6
18144 cat >conftest.
$ac_ext <<_ACEOF
18147 cat confdefs.h
>>conftest.
$ac_ext
18148 cat >>conftest.
$ac_ext <<_ACEOF
18149 /* end confdefs.h. */
18150 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18152 #define $ac_func innocuous_$ac_func
18154 /* System header to define __stub macros and hopefully few prototypes,
18155 which can conflict with char $ac_func (); below.
18156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18157 <limits.h> exists even on freestanding compilers. */
18160 # include <limits.h>
18162 # include <assert.h>
18167 /* Override any gcc2 internal prototype to avoid an error. */
18172 /* We use char because int might match the return type of a gcc2
18173 builtin and then its argument prototype would still apply. */
18175 /* The GNU C library defines this for functions which it implements
18176 to always fail with ENOSYS. Some functions are actually named
18177 something starting with __ and the normal name is an alias. */
18178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18181 char (*f) () = $ac_func;
18190 return f != $ac_func;
18195 rm -f conftest.
$ac_objext conftest
$ac_exeext
18196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18197 (eval $ac_link) 2>conftest.er1
18199 grep -v '^ *+' conftest.er1
>conftest.err
18201 cat conftest.err
>&5
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); } &&
18204 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; } &&
18210 { ac_try
='test -s conftest$ac_exeext'
18211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18212 (eval $ac_try) 2>&5
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); }; }; then
18216 eval "$as_ac_var=yes"
18218 echo "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.
$ac_ext >&5
18221 eval "$as_ac_var=no"
18223 rm -f conftest.err conftest.
$ac_objext \
18224 conftest
$ac_exeext conftest.
$ac_ext
18226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18227 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18228 if test `eval echo '${'$as_ac_var'}'` = yes; then
18229 cat >>confdefs.h
<<_ACEOF
18230 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18237 # Check this now, so that we will NOT find the above functions in ncurses.
18238 # That is because we have not set up to link ncurses in lib-src.
18239 # It's better to believe a function is not available
18240 # than to expect to find it in ncurses.
18242 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18243 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18244 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18245 echo $ECHO_N "(cached) $ECHO_C" >&6
18247 ac_check_lib_save_LIBS
=$LIBS
18248 LIBS
="-lncurses $LIBS"
18249 cat >conftest.
$ac_ext <<_ACEOF
18252 cat confdefs.h
>>conftest.
$ac_ext
18253 cat >>conftest.
$ac_ext <<_ACEOF
18254 /* end confdefs.h. */
18256 /* Override any gcc2 internal prototype to avoid an error. */
18260 /* We use char because int might match the return type of a gcc2
18261 builtin and then its argument prototype would still apply. */
18271 rm -f conftest.
$ac_objext conftest
$ac_exeext
18272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18273 (eval $ac_link) 2>conftest.er1
18275 grep -v '^ *+' conftest.er1
>conftest.err
18277 cat conftest.err
>&5
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); } &&
18280 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282 (eval $ac_try) 2>&5
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; } &&
18286 { ac_try
='test -s conftest$ac_exeext'
18287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18288 (eval $ac_try) 2>&5
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); }; }; then
18292 ac_cv_lib_ncurses_tparm
=yes
18294 echo "$as_me: failed program was:" >&5
18295 sed 's/^/| /' conftest.
$ac_ext >&5
18297 ac_cv_lib_ncurses_tparm
=no
18299 rm -f conftest.err conftest.
$ac_objext \
18300 conftest
$ac_exeext conftest.
$ac_ext
18301 LIBS
=$ac_check_lib_save_LIBS
18303 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18304 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18305 if test $ac_cv_lib_ncurses_tparm = yes; then
18306 cat >>confdefs.h
<<_ACEOF
18307 #define HAVE_LIBNCURSES 1
18310 LIBS
="-lncurses $LIBS"
18315 # Do we need the Hesiod library to provide the support routines?
18316 if test "$with_hesiod" = yes ; then
18317 # Don't set $LIBS here -- see comments above.
18319 echo "$as_me:$LINENO: checking for res_send" >&5
18320 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
18321 if test "${ac_cv_func_res_send+set}" = set; then
18322 echo $ECHO_N "(cached) $ECHO_C" >&6
18324 cat >conftest.
$ac_ext <<_ACEOF
18327 cat confdefs.h
>>conftest.
$ac_ext
18328 cat >>conftest.
$ac_ext <<_ACEOF
18329 /* end confdefs.h. */
18330 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18332 #define res_send innocuous_res_send
18334 /* System header to define __stub macros and hopefully few prototypes,
18335 which can conflict with char res_send (); below.
18336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18337 <limits.h> exists even on freestanding compilers. */
18340 # include <limits.h>
18342 # include <assert.h>
18347 /* Override any gcc2 internal prototype to avoid an error. */
18352 /* We use char because int might match the return type of a gcc2
18353 builtin and then its argument prototype would still apply. */
18355 /* The GNU C library defines this for functions which it implements
18356 to always fail with ENOSYS. Some functions are actually named
18357 something starting with __ and the normal name is an alias. */
18358 #if defined (__stub_res_send) || defined (__stub___res_send)
18361 char (*f) () = res_send;
18370 return f != res_send;
18375 rm -f conftest.
$ac_objext conftest
$ac_exeext
18376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18377 (eval $ac_link) 2>conftest.er1
18379 grep -v '^ *+' conftest.er1
>conftest.err
18381 cat conftest.err
>&5
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); } &&
18384 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18386 (eval $ac_try) 2>&5
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); }; } &&
18390 { ac_try
='test -s conftest$ac_exeext'
18391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18392 (eval $ac_try) 2>&5
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); }; }; then
18396 ac_cv_func_res_send
=yes
18398 echo "$as_me: failed program was:" >&5
18399 sed 's/^/| /' conftest.
$ac_ext >&5
18401 ac_cv_func_res_send
=no
18403 rm -f conftest.err conftest.
$ac_objext \
18404 conftest
$ac_exeext conftest.
$ac_ext
18406 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18407 echo "${ECHO_T}$ac_cv_func_res_send" >&6
18408 if test $ac_cv_func_res_send = yes; then
18411 echo "$as_me:$LINENO: checking for __res_send" >&5
18412 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18413 if test "${ac_cv_func___res_send+set}" = set; then
18414 echo $ECHO_N "(cached) $ECHO_C" >&6
18416 cat >conftest.
$ac_ext <<_ACEOF
18419 cat confdefs.h
>>conftest.
$ac_ext
18420 cat >>conftest.
$ac_ext <<_ACEOF
18421 /* end confdefs.h. */
18422 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18424 #define __res_send innocuous___res_send
18426 /* System header to define __stub macros and hopefully few prototypes,
18427 which can conflict with char __res_send (); below.
18428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18429 <limits.h> exists even on freestanding compilers. */
18432 # include <limits.h>
18434 # include <assert.h>
18439 /* Override any gcc2 internal prototype to avoid an error. */
18444 /* We use char because int might match the return type of a gcc2
18445 builtin and then its argument prototype would still apply. */
18446 char __res_send ();
18447 /* The GNU C library defines this for functions which it implements
18448 to always fail with ENOSYS. Some functions are actually named
18449 something starting with __ and the normal name is an alias. */
18450 #if defined (__stub___res_send) || defined (__stub_____res_send)
18453 char (*f) () = __res_send;
18462 return f != __res_send;
18467 rm -f conftest.
$ac_objext conftest
$ac_exeext
18468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18469 (eval $ac_link) 2>conftest.er1
18471 grep -v '^ *+' conftest.er1
>conftest.err
18473 cat conftest.err
>&5
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); } &&
18476 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18478 (eval $ac_try) 2>&5
18480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); }; } &&
18482 { ac_try
='test -s conftest$ac_exeext'
18483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18484 (eval $ac_try) 2>&5
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); }; }; then
18488 ac_cv_func___res_send
=yes
18490 echo "$as_me: failed program was:" >&5
18491 sed 's/^/| /' conftest.
$ac_ext >&5
18493 ac_cv_func___res_send
=no
18495 rm -f conftest.err conftest.
$ac_objext \
18496 conftest
$ac_exeext conftest.
$ac_ext
18498 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18499 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18500 if test $ac_cv_func___res_send = yes; then
18503 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18504 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18505 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18506 echo $ECHO_N "(cached) $ECHO_C" >&6
18508 ac_check_lib_save_LIBS
=$LIBS
18509 LIBS
="-lresolv $LIBS"
18510 cat >conftest.
$ac_ext <<_ACEOF
18513 cat confdefs.h
>>conftest.
$ac_ext
18514 cat >>conftest.
$ac_ext <<_ACEOF
18515 /* end confdefs.h. */
18517 /* Override any gcc2 internal prototype to avoid an error. */
18521 /* We use char because int might match the return type of a gcc2
18522 builtin and then its argument prototype would still apply. */
18532 rm -f conftest.
$ac_objext conftest
$ac_exeext
18533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18534 (eval $ac_link) 2>conftest.er1
18536 grep -v '^ *+' conftest.er1
>conftest.err
18538 cat conftest.err
>&5
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); } &&
18541 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18543 (eval $ac_try) 2>&5
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; } &&
18547 { ac_try
='test -s conftest$ac_exeext'
18548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18549 (eval $ac_try) 2>&5
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); }; }; then
18553 ac_cv_lib_resolv_res_send
=yes
18555 echo "$as_me: failed program was:" >&5
18556 sed 's/^/| /' conftest.
$ac_ext >&5
18558 ac_cv_lib_resolv_res_send
=no
18560 rm -f conftest.err conftest.
$ac_objext \
18561 conftest
$ac_exeext conftest.
$ac_ext
18562 LIBS
=$ac_check_lib_save_LIBS
18564 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18565 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18566 if test $ac_cv_lib_resolv_res_send = yes; then
18569 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18570 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18571 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18572 echo $ECHO_N "(cached) $ECHO_C" >&6
18574 ac_check_lib_save_LIBS
=$LIBS
18575 LIBS
="-lresolv $LIBS"
18576 cat >conftest.
$ac_ext <<_ACEOF
18579 cat confdefs.h
>>conftest.
$ac_ext
18580 cat >>conftest.
$ac_ext <<_ACEOF
18581 /* end confdefs.h. */
18583 /* Override any gcc2 internal prototype to avoid an error. */
18587 /* We use char because int might match the return type of a gcc2
18588 builtin and then its argument prototype would still apply. */
18589 char __res_send ();
18598 rm -f conftest.
$ac_objext conftest
$ac_exeext
18599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18600 (eval $ac_link) 2>conftest.er1
18602 grep -v '^ *+' conftest.er1
>conftest.err
18604 cat conftest.err
>&5
18605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606 (exit $ac_status); } &&
18607 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18609 (eval $ac_try) 2>&5
18611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); }; } &&
18613 { ac_try
='test -s conftest$ac_exeext'
18614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18615 (eval $ac_try) 2>&5
18617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); }; }; then
18619 ac_cv_lib_resolv___res_send
=yes
18621 echo "$as_me: failed program was:" >&5
18622 sed 's/^/| /' conftest.
$ac_ext >&5
18624 ac_cv_lib_resolv___res_send
=no
18626 rm -f conftest.err conftest.
$ac_objext \
18627 conftest
$ac_exeext conftest.
$ac_ext
18628 LIBS
=$ac_check_lib_save_LIBS
18630 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18631 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18632 if test $ac_cv_lib_resolv___res_send = yes; then
18642 if test "$resolv" = yes ; then
18645 cat >>confdefs.h
<<\_ACEOF
18646 #define HAVE_LIBRESOLV 1
18652 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18653 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18654 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18655 echo $ECHO_N "(cached) $ECHO_C" >&6
18657 cat >conftest.
$ac_ext <<_ACEOF
18660 cat confdefs.h
>>conftest.
$ac_ext
18661 cat >>conftest.
$ac_ext <<_ACEOF
18662 /* end confdefs.h. */
18663 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18665 #define hes_getmailhost innocuous_hes_getmailhost
18667 /* System header to define __stub macros and hopefully few prototypes,
18668 which can conflict with char hes_getmailhost (); below.
18669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18670 <limits.h> exists even on freestanding compilers. */
18673 # include <limits.h>
18675 # include <assert.h>
18678 #undef hes_getmailhost
18680 /* Override any gcc2 internal prototype to avoid an error. */
18685 /* We use char because int might match the return type of a gcc2
18686 builtin and then its argument prototype would still apply. */
18687 char hes_getmailhost ();
18688 /* The GNU C library defines this for functions which it implements
18689 to always fail with ENOSYS. Some functions are actually named
18690 something starting with __ and the normal name is an alias. */
18691 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18694 char (*f) () = hes_getmailhost;
18703 return f != hes_getmailhost;
18708 rm -f conftest.
$ac_objext conftest
$ac_exeext
18709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18710 (eval $ac_link) 2>conftest.er1
18712 grep -v '^ *+' conftest.er1
>conftest.err
18714 cat conftest.err
>&5
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); } &&
18717 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18719 (eval $ac_try) 2>&5
18721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722 (exit $ac_status); }; } &&
18723 { ac_try
='test -s conftest$ac_exeext'
18724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18725 (eval $ac_try) 2>&5
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); }; }; then
18729 ac_cv_func_hes_getmailhost
=yes
18731 echo "$as_me: failed program was:" >&5
18732 sed 's/^/| /' conftest.
$ac_ext >&5
18734 ac_cv_func_hes_getmailhost
=no
18736 rm -f conftest.err conftest.
$ac_objext \
18737 conftest
$ac_exeext conftest.
$ac_ext
18739 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18740 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18741 if test $ac_cv_func_hes_getmailhost = yes; then
18744 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18745 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18746 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18747 echo $ECHO_N "(cached) $ECHO_C" >&6
18749 ac_check_lib_save_LIBS
=$LIBS
18750 LIBS
="-lhesiod $RESOLVLIB $LIBS"
18751 cat >conftest.
$ac_ext <<_ACEOF
18754 cat confdefs.h
>>conftest.
$ac_ext
18755 cat >>conftest.
$ac_ext <<_ACEOF
18756 /* end confdefs.h. */
18758 /* Override any gcc2 internal prototype to avoid an error. */
18762 /* We use char because int might match the return type of a gcc2
18763 builtin and then its argument prototype would still apply. */
18764 char hes_getmailhost ();
18768 hes_getmailhost ();
18773 rm -f conftest.
$ac_objext conftest
$ac_exeext
18774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18775 (eval $ac_link) 2>conftest.er1
18777 grep -v '^ *+' conftest.er1
>conftest.err
18779 cat conftest.err
>&5
18780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781 (exit $ac_status); } &&
18782 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18784 (eval $ac_try) 2>&5
18786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); }; } &&
18788 { ac_try
='test -s conftest$ac_exeext'
18789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18790 (eval $ac_try) 2>&5
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); }; }; then
18794 ac_cv_lib_hesiod_hes_getmailhost
=yes
18796 echo "$as_me: failed program was:" >&5
18797 sed 's/^/| /' conftest.
$ac_ext >&5
18799 ac_cv_lib_hesiod_hes_getmailhost
=no
18801 rm -f conftest.err conftest.
$ac_objext \
18802 conftest
$ac_exeext conftest.
$ac_ext
18803 LIBS
=$ac_check_lib_save_LIBS
18805 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18806 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18807 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18809 cat >>confdefs.h
<<\_ACEOF
18810 #define HAVE_LIBHESIOD 1
18821 # These tell us which Kerberos-related libraries to use.
18822 if test "${with_kerberos+set}" = set; then
18824 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18825 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18826 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18827 echo $ECHO_N "(cached) $ECHO_C" >&6
18829 ac_check_lib_save_LIBS
=$LIBS
18830 LIBS
="-lcom_err $LIBS"
18831 cat >conftest.
$ac_ext <<_ACEOF
18834 cat confdefs.h
>>conftest.
$ac_ext
18835 cat >>conftest.
$ac_ext <<_ACEOF
18836 /* end confdefs.h. */
18838 /* Override any gcc2 internal prototype to avoid an error. */
18842 /* We use char because int might match the return type of a gcc2
18843 builtin and then its argument prototype would still apply. */
18853 rm -f conftest.
$ac_objext conftest
$ac_exeext
18854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18855 (eval $ac_link) 2>conftest.er1
18857 grep -v '^ *+' conftest.er1
>conftest.err
18859 cat conftest.err
>&5
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); } &&
18862 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18864 (eval $ac_try) 2>&5
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); }; } &&
18868 { ac_try
='test -s conftest$ac_exeext'
18869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18870 (eval $ac_try) 2>&5
18872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18873 (exit $ac_status); }; }; then
18874 ac_cv_lib_com_err_com_err
=yes
18876 echo "$as_me: failed program was:" >&5
18877 sed 's/^/| /' conftest.
$ac_ext >&5
18879 ac_cv_lib_com_err_com_err
=no
18881 rm -f conftest.err conftest.
$ac_objext \
18882 conftest
$ac_exeext conftest.
$ac_ext
18883 LIBS
=$ac_check_lib_save_LIBS
18885 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18886 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18887 if test $ac_cv_lib_com_err_com_err = yes; then
18888 cat >>confdefs.h
<<_ACEOF
18889 #define HAVE_LIBCOM_ERR 1
18892 LIBS
="-lcom_err $LIBS"
18897 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18898 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18899 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18900 echo $ECHO_N "(cached) $ECHO_C" >&6
18902 ac_check_lib_save_LIBS
=$LIBS
18903 LIBS
="-lk5crypto $LIBS"
18904 cat >conftest.
$ac_ext <<_ACEOF
18907 cat confdefs.h
>>conftest.
$ac_ext
18908 cat >>conftest.
$ac_ext <<_ACEOF
18909 /* end confdefs.h. */
18911 /* Override any gcc2 internal prototype to avoid an error. */
18915 /* We use char because int might match the return type of a gcc2
18916 builtin and then its argument prototype would still apply. */
18917 char mit_des_cbc_encrypt ();
18921 mit_des_cbc_encrypt ();
18926 rm -f conftest.
$ac_objext conftest
$ac_exeext
18927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18928 (eval $ac_link) 2>conftest.er1
18930 grep -v '^ *+' conftest.er1
>conftest.err
18932 cat conftest.err
>&5
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); } &&
18935 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18937 (eval $ac_try) 2>&5
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); }; } &&
18941 { ac_try
='test -s conftest$ac_exeext'
18942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18943 (eval $ac_try) 2>&5
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); }; }; then
18947 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
18949 echo "$as_me: failed program was:" >&5
18950 sed 's/^/| /' conftest.
$ac_ext >&5
18952 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
18954 rm -f conftest.err conftest.
$ac_objext \
18955 conftest
$ac_exeext conftest.
$ac_ext
18956 LIBS
=$ac_check_lib_save_LIBS
18958 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18959 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18960 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18961 cat >>confdefs.h
<<_ACEOF
18962 #define HAVE_LIBK5CRYPTO 1
18965 LIBS
="-lk5crypto $LIBS"
18970 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18971 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18972 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18973 echo $ECHO_N "(cached) $ECHO_C" >&6
18975 ac_check_lib_save_LIBS
=$LIBS
18976 LIBS
="-lcrypto $LIBS"
18977 cat >conftest.
$ac_ext <<_ACEOF
18980 cat confdefs.h
>>conftest.
$ac_ext
18981 cat >>conftest.
$ac_ext <<_ACEOF
18982 /* end confdefs.h. */
18984 /* Override any gcc2 internal prototype to avoid an error. */
18988 /* We use char because int might match the return type of a gcc2
18989 builtin and then its argument prototype would still apply. */
18990 char mit_des_cbc_encrypt ();
18994 mit_des_cbc_encrypt ();
18999 rm -f conftest.
$ac_objext conftest
$ac_exeext
19000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19001 (eval $ac_link) 2>conftest.er1
19003 grep -v '^ *+' conftest.er1
>conftest.err
19005 cat conftest.err
>&5
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); } &&
19008 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19010 (eval $ac_try) 2>&5
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); }; } &&
19014 { ac_try
='test -s conftest$ac_exeext'
19015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19016 (eval $ac_try) 2>&5
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); }; }; then
19020 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
19022 echo "$as_me: failed program was:" >&5
19023 sed 's/^/| /' conftest.
$ac_ext >&5
19025 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
19027 rm -f conftest.err conftest.
$ac_objext \
19028 conftest
$ac_exeext conftest.
$ac_ext
19029 LIBS
=$ac_check_lib_save_LIBS
19031 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19032 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
19033 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19034 cat >>confdefs.h
<<_ACEOF
19035 #define HAVE_LIBCRYPTO 1
19038 LIBS
="-lcrypto $LIBS"
19043 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19044 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
19045 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19046 echo $ECHO_N "(cached) $ECHO_C" >&6
19048 ac_check_lib_save_LIBS
=$LIBS
19049 LIBS
="-lkrb5 $LIBS"
19050 cat >conftest.
$ac_ext <<_ACEOF
19053 cat confdefs.h
>>conftest.
$ac_ext
19054 cat >>conftest.
$ac_ext <<_ACEOF
19055 /* end confdefs.h. */
19057 /* Override any gcc2 internal prototype to avoid an error. */
19061 /* We use char because int might match the return type of a gcc2
19062 builtin and then its argument prototype would still apply. */
19063 char krb5_init_context ();
19067 krb5_init_context ();
19072 rm -f conftest.
$ac_objext conftest
$ac_exeext
19073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19074 (eval $ac_link) 2>conftest.er1
19076 grep -v '^ *+' conftest.er1
>conftest.err
19078 cat conftest.err
>&5
19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); } &&
19081 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19083 (eval $ac_try) 2>&5
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); }; } &&
19087 { ac_try
='test -s conftest$ac_exeext'
19088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19089 (eval $ac_try) 2>&5
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); }; }; then
19093 ac_cv_lib_krb5_krb5_init_context
=yes
19095 echo "$as_me: failed program was:" >&5
19096 sed 's/^/| /' conftest.
$ac_ext >&5
19098 ac_cv_lib_krb5_krb5_init_context
=no
19100 rm -f conftest.err conftest.
$ac_objext \
19101 conftest
$ac_exeext conftest.
$ac_ext
19102 LIBS
=$ac_check_lib_save_LIBS
19104 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19105 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
19106 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19107 cat >>confdefs.h
<<_ACEOF
19108 #define HAVE_LIBKRB5 1
19111 LIBS
="-lkrb5 $LIBS"
19115 if test "${with_kerberos5+set}" != set; then
19117 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19118 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
19119 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19120 echo $ECHO_N "(cached) $ECHO_C" >&6
19122 ac_check_lib_save_LIBS
=$LIBS
19123 LIBS
="-ldes425 $LIBS"
19124 cat >conftest.
$ac_ext <<_ACEOF
19127 cat confdefs.h
>>conftest.
$ac_ext
19128 cat >>conftest.
$ac_ext <<_ACEOF
19129 /* end confdefs.h. */
19131 /* Override any gcc2 internal prototype to avoid an error. */
19135 /* We use char because int might match the return type of a gcc2
19136 builtin and then its argument prototype would still apply. */
19137 char des_cbc_encrypt ();
19141 des_cbc_encrypt ();
19146 rm -f conftest.
$ac_objext conftest
$ac_exeext
19147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19148 (eval $ac_link) 2>conftest.er1
19150 grep -v '^ *+' conftest.er1
>conftest.err
19152 cat conftest.err
>&5
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); } &&
19155 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19157 (eval $ac_try) 2>&5
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); }; } &&
19161 { ac_try
='test -s conftest$ac_exeext'
19162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19163 (eval $ac_try) 2>&5
19165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166 (exit $ac_status); }; }; then
19167 ac_cv_lib_des425_des_cbc_encrypt
=yes
19169 echo "$as_me: failed program was:" >&5
19170 sed 's/^/| /' conftest.
$ac_ext >&5
19172 ac_cv_lib_des425_des_cbc_encrypt
=no
19174 rm -f conftest.err conftest.
$ac_objext \
19175 conftest
$ac_exeext conftest.
$ac_ext
19176 LIBS
=$ac_check_lib_save_LIBS
19178 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19179 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
19180 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19181 cat >>confdefs.h
<<_ACEOF
19182 #define HAVE_LIBDES425 1
19185 LIBS
="-ldes425 $LIBS"
19189 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19190 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
19191 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19192 echo $ECHO_N "(cached) $ECHO_C" >&6
19194 ac_check_lib_save_LIBS
=$LIBS
19196 cat >conftest.
$ac_ext <<_ACEOF
19199 cat confdefs.h
>>conftest.
$ac_ext
19200 cat >>conftest.
$ac_ext <<_ACEOF
19201 /* end confdefs.h. */
19203 /* Override any gcc2 internal prototype to avoid an error. */
19207 /* We use char because int might match the return type of a gcc2
19208 builtin and then its argument prototype would still apply. */
19209 char des_cbc_encrypt ();
19213 des_cbc_encrypt ();
19218 rm -f conftest.
$ac_objext conftest
$ac_exeext
19219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19220 (eval $ac_link) 2>conftest.er1
19222 grep -v '^ *+' conftest.er1
>conftest.err
19224 cat conftest.err
>&5
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); } &&
19227 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19229 (eval $ac_try) 2>&5
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); }; } &&
19233 { ac_try
='test -s conftest$ac_exeext'
19234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19235 (eval $ac_try) 2>&5
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); }; }; then
19239 ac_cv_lib_des_des_cbc_encrypt
=yes
19241 echo "$as_me: failed program was:" >&5
19242 sed 's/^/| /' conftest.
$ac_ext >&5
19244 ac_cv_lib_des_des_cbc_encrypt
=no
19246 rm -f conftest.err conftest.
$ac_objext \
19247 conftest
$ac_exeext conftest.
$ac_ext
19248 LIBS
=$ac_check_lib_save_LIBS
19250 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19251 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19252 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19253 cat >>confdefs.h
<<_ACEOF
19254 #define HAVE_LIBDES 1
19264 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19265 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19266 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19267 echo $ECHO_N "(cached) $ECHO_C" >&6
19269 ac_check_lib_save_LIBS
=$LIBS
19270 LIBS
="-lkrb4 $LIBS"
19271 cat >conftest.
$ac_ext <<_ACEOF
19274 cat confdefs.h
>>conftest.
$ac_ext
19275 cat >>conftest.
$ac_ext <<_ACEOF
19276 /* end confdefs.h. */
19278 /* Override any gcc2 internal prototype to avoid an error. */
19282 /* We use char because int might match the return type of a gcc2
19283 builtin and then its argument prototype would still apply. */
19284 char krb_get_cred ();
19293 rm -f conftest.
$ac_objext conftest
$ac_exeext
19294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19295 (eval $ac_link) 2>conftest.er1
19297 grep -v '^ *+' conftest.er1
>conftest.err
19299 cat conftest.err
>&5
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); } &&
19302 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19304 (eval $ac_try) 2>&5
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); }; } &&
19308 { ac_try
='test -s conftest$ac_exeext'
19309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19310 (eval $ac_try) 2>&5
19312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313 (exit $ac_status); }; }; then
19314 ac_cv_lib_krb4_krb_get_cred
=yes
19316 echo "$as_me: failed program was:" >&5
19317 sed 's/^/| /' conftest.
$ac_ext >&5
19319 ac_cv_lib_krb4_krb_get_cred
=no
19321 rm -f conftest.err conftest.
$ac_objext \
19322 conftest
$ac_exeext conftest.
$ac_ext
19323 LIBS
=$ac_check_lib_save_LIBS
19325 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19326 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19327 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19328 cat >>confdefs.h
<<_ACEOF
19329 #define HAVE_LIBKRB4 1
19332 LIBS
="-lkrb4 $LIBS"
19336 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19337 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19338 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19339 echo $ECHO_N "(cached) $ECHO_C" >&6
19341 ac_check_lib_save_LIBS
=$LIBS
19343 cat >conftest.
$ac_ext <<_ACEOF
19346 cat confdefs.h
>>conftest.
$ac_ext
19347 cat >>conftest.
$ac_ext <<_ACEOF
19348 /* end confdefs.h. */
19350 /* Override any gcc2 internal prototype to avoid an error. */
19354 /* We use char because int might match the return type of a gcc2
19355 builtin and then its argument prototype would still apply. */
19356 char krb_get_cred ();
19365 rm -f conftest.
$ac_objext conftest
$ac_exeext
19366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19367 (eval $ac_link) 2>conftest.er1
19369 grep -v '^ *+' conftest.er1
>conftest.err
19371 cat conftest.err
>&5
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); } &&
19374 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19380 { ac_try
='test -s conftest$ac_exeext'
19381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19382 (eval $ac_try) 2>&5
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); }; }; then
19386 ac_cv_lib_krb_krb_get_cred
=yes
19388 echo "$as_me: failed program was:" >&5
19389 sed 's/^/| /' conftest.
$ac_ext >&5
19391 ac_cv_lib_krb_krb_get_cred
=no
19393 rm -f conftest.err conftest.
$ac_objext \
19394 conftest
$ac_exeext conftest.
$ac_ext
19395 LIBS
=$ac_check_lib_save_LIBS
19397 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19398 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19399 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19400 cat >>confdefs.h
<<_ACEOF
19401 #define HAVE_LIBKRB 1
19412 if test "${with_kerberos5+set}" = set; then
19414 for ac_header
in krb5.h
19416 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19418 echo "$as_me:$LINENO: checking for $ac_header" >&5
19419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19421 echo $ECHO_N "(cached) $ECHO_C" >&6
19423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19426 # Is the header compilable?
19427 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19429 cat >conftest.
$ac_ext <<_ACEOF
19432 cat confdefs.h
>>conftest.
$ac_ext
19433 cat >>conftest.
$ac_ext <<_ACEOF
19434 /* end confdefs.h. */
19435 $ac_includes_default
19436 #include <$ac_header>
19438 rm -f conftest.
$ac_objext
19439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19440 (eval $ac_compile) 2>conftest.er1
19442 grep -v '^ *+' conftest.er1
>conftest.err
19444 cat conftest.err
>&5
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); } &&
19447 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19453 { ac_try
='test -s conftest.$ac_objext'
19454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19455 (eval $ac_try) 2>&5
19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458 (exit $ac_status); }; }; then
19459 ac_header_compiler
=yes
19461 echo "$as_me: failed program was:" >&5
19462 sed 's/^/| /' conftest.
$ac_ext >&5
19464 ac_header_compiler
=no
19466 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19467 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19468 echo "${ECHO_T}$ac_header_compiler" >&6
19470 # Is the header present?
19471 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19473 cat >conftest.
$ac_ext <<_ACEOF
19476 cat confdefs.h
>>conftest.
$ac_ext
19477 cat >>conftest.
$ac_ext <<_ACEOF
19478 /* end confdefs.h. */
19479 #include <$ac_header>
19481 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19482 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19484 grep -v '^ *+' conftest.er1
>conftest.err
19486 cat conftest.err
>&5
19487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488 (exit $ac_status); } >/dev
/null
; then
19489 if test -s conftest.err
; then
19490 ac_cpp_err
=$ac_c_preproc_warn_flag
19491 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19498 if test -z "$ac_cpp_err"; then
19499 ac_header_preproc
=yes
19501 echo "$as_me: failed program was:" >&5
19502 sed 's/^/| /' conftest.
$ac_ext >&5
19504 ac_header_preproc
=no
19506 rm -f conftest.err conftest.
$ac_ext
19507 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19508 echo "${ECHO_T}$ac_header_preproc" >&6
19510 # So? What about this header?
19511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19513 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19514 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19516 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19517 ac_header_preproc
=yes
19520 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19521 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19522 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19523 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19524 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19525 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19526 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19527 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19529 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19530 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19531 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19534 ## ------------------------------------------ ##
19535 ## Report this to the AC_PACKAGE_NAME lists. ##
19536 ## ------------------------------------------ ##
19539 sed "s/^/$as_me: WARNING: /" >&2
19542 echo "$as_me:$LINENO: checking for $ac_header" >&5
19543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19545 echo $ECHO_N "(cached) $ECHO_C" >&6
19547 eval "$as_ac_Header=\$ac_header_preproc"
19549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19554 cat >>confdefs.h
<<_ACEOF
19555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19564 for ac_header
in des.h
19566 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19568 echo "$as_me:$LINENO: checking for $ac_header" >&5
19569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19571 echo $ECHO_N "(cached) $ECHO_C" >&6
19573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19576 # Is the header compilable?
19577 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19578 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19579 cat >conftest.
$ac_ext <<_ACEOF
19582 cat confdefs.h
>>conftest.
$ac_ext
19583 cat >>conftest.
$ac_ext <<_ACEOF
19584 /* end confdefs.h. */
19585 $ac_includes_default
19586 #include <$ac_header>
19588 rm -f conftest.
$ac_objext
19589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19590 (eval $ac_compile) 2>conftest.er1
19592 grep -v '^ *+' conftest.er1
>conftest.err
19594 cat conftest.err
>&5
19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); } &&
19597 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19599 (eval $ac_try) 2>&5
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); }; } &&
19603 { ac_try
='test -s conftest.$ac_objext'
19604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19605 (eval $ac_try) 2>&5
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); }; }; then
19609 ac_header_compiler
=yes
19611 echo "$as_me: failed program was:" >&5
19612 sed 's/^/| /' conftest.
$ac_ext >&5
19614 ac_header_compiler
=no
19616 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19617 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19618 echo "${ECHO_T}$ac_header_compiler" >&6
19620 # Is the header present?
19621 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19623 cat >conftest.
$ac_ext <<_ACEOF
19626 cat confdefs.h
>>conftest.
$ac_ext
19627 cat >>conftest.
$ac_ext <<_ACEOF
19628 /* end confdefs.h. */
19629 #include <$ac_header>
19631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19632 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19634 grep -v '^ *+' conftest.er1
>conftest.err
19636 cat conftest.err
>&5
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); } >/dev
/null
; then
19639 if test -s conftest.err
; then
19640 ac_cpp_err
=$ac_c_preproc_warn_flag
19641 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19648 if test -z "$ac_cpp_err"; then
19649 ac_header_preproc
=yes
19651 echo "$as_me: failed program was:" >&5
19652 sed 's/^/| /' conftest.
$ac_ext >&5
19654 ac_header_preproc
=no
19656 rm -f conftest.err conftest.
$ac_ext
19657 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19658 echo "${ECHO_T}$ac_header_preproc" >&6
19660 # So? What about this header?
19661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19667 ac_header_preproc
=yes
19670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19677 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19684 ## ------------------------------------------ ##
19685 ## Report this to the AC_PACKAGE_NAME lists. ##
19686 ## ------------------------------------------ ##
19689 sed "s/^/$as_me: WARNING: /" >&2
19692 echo "$as_me:$LINENO: checking for $ac_header" >&5
19693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19695 echo $ECHO_N "(cached) $ECHO_C" >&6
19697 eval "$as_ac_Header=\$ac_header_preproc"
19699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19704 cat >>confdefs.h
<<_ACEOF
19705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19710 for ac_header
in kerberosIV
/des.h
19712 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19714 echo "$as_me:$LINENO: checking for $ac_header" >&5
19715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19717 echo $ECHO_N "(cached) $ECHO_C" >&6
19719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19722 # Is the header compilable?
19723 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19724 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19725 cat >conftest.
$ac_ext <<_ACEOF
19728 cat confdefs.h
>>conftest.
$ac_ext
19729 cat >>conftest.
$ac_ext <<_ACEOF
19730 /* end confdefs.h. */
19731 $ac_includes_default
19732 #include <$ac_header>
19734 rm -f conftest.
$ac_objext
19735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19736 (eval $ac_compile) 2>conftest.er1
19738 grep -v '^ *+' conftest.er1
>conftest.err
19740 cat conftest.err
>&5
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); } &&
19743 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19745 (eval $ac_try) 2>&5
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); }; } &&
19749 { ac_try
='test -s conftest.$ac_objext'
19750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19751 (eval $ac_try) 2>&5
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); }; }; then
19755 ac_header_compiler
=yes
19757 echo "$as_me: failed program was:" >&5
19758 sed 's/^/| /' conftest.
$ac_ext >&5
19760 ac_header_compiler
=no
19762 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19763 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19764 echo "${ECHO_T}$ac_header_compiler" >&6
19766 # Is the header present?
19767 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19769 cat >conftest.
$ac_ext <<_ACEOF
19772 cat confdefs.h
>>conftest.
$ac_ext
19773 cat >>conftest.
$ac_ext <<_ACEOF
19774 /* end confdefs.h. */
19775 #include <$ac_header>
19777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19778 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19780 grep -v '^ *+' conftest.er1
>conftest.err
19782 cat conftest.err
>&5
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); } >/dev
/null
; then
19785 if test -s conftest.err
; then
19786 ac_cpp_err
=$ac_c_preproc_warn_flag
19787 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19794 if test -z "$ac_cpp_err"; then
19795 ac_header_preproc
=yes
19797 echo "$as_me: failed program was:" >&5
19798 sed 's/^/| /' conftest.
$ac_ext >&5
19800 ac_header_preproc
=no
19802 rm -f conftest.err conftest.
$ac_ext
19803 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19804 echo "${ECHO_T}$ac_header_preproc" >&6
19806 # So? What about this header?
19807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19809 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19810 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19812 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19813 ac_header_preproc
=yes
19816 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19817 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19818 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19819 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19820 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19821 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19822 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19823 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19826 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19827 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19830 ## ------------------------------------------ ##
19831 ## Report this to the AC_PACKAGE_NAME lists. ##
19832 ## ------------------------------------------ ##
19835 sed "s/^/$as_me: WARNING: /" >&2
19838 echo "$as_me:$LINENO: checking for $ac_header" >&5
19839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19841 echo $ECHO_N "(cached) $ECHO_C" >&6
19843 eval "$as_ac_Header=\$ac_header_preproc"
19845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19850 cat >>confdefs.h
<<_ACEOF
19851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19856 for ac_header
in kerberos
/des.h
19858 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19860 echo "$as_me:$LINENO: checking for $ac_header" >&5
19861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19863 echo $ECHO_N "(cached) $ECHO_C" >&6
19865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19866 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19868 # Is the header compilable?
19869 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19871 cat >conftest.
$ac_ext <<_ACEOF
19874 cat confdefs.h
>>conftest.
$ac_ext
19875 cat >>conftest.
$ac_ext <<_ACEOF
19876 /* end confdefs.h. */
19877 $ac_includes_default
19878 #include <$ac_header>
19880 rm -f conftest.
$ac_objext
19881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19882 (eval $ac_compile) 2>conftest.er1
19884 grep -v '^ *+' conftest.er1
>conftest.err
19886 cat conftest.err
>&5
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); } &&
19889 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19891 (eval $ac_try) 2>&5
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); }; } &&
19895 { ac_try
='test -s conftest.$ac_objext'
19896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19897 (eval $ac_try) 2>&5
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); }; }; then
19901 ac_header_compiler
=yes
19903 echo "$as_me: failed program was:" >&5
19904 sed 's/^/| /' conftest.
$ac_ext >&5
19906 ac_header_compiler
=no
19908 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19909 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19910 echo "${ECHO_T}$ac_header_compiler" >&6
19912 # Is the header present?
19913 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19914 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19915 cat >conftest.
$ac_ext <<_ACEOF
19918 cat confdefs.h
>>conftest.
$ac_ext
19919 cat >>conftest.
$ac_ext <<_ACEOF
19920 /* end confdefs.h. */
19921 #include <$ac_header>
19923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19924 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19926 grep -v '^ *+' conftest.er1
>conftest.err
19928 cat conftest.err
>&5
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); } >/dev
/null
; then
19931 if test -s conftest.err
; then
19932 ac_cpp_err
=$ac_c_preproc_warn_flag
19933 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19940 if test -z "$ac_cpp_err"; then
19941 ac_header_preproc
=yes
19943 echo "$as_me: failed program was:" >&5
19944 sed 's/^/| /' conftest.
$ac_ext >&5
19946 ac_header_preproc
=no
19948 rm -f conftest.err conftest.
$ac_ext
19949 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19950 echo "${ECHO_T}$ac_header_preproc" >&6
19952 # So? What about this header?
19953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19955 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19956 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19958 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19959 ac_header_preproc
=yes
19962 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19963 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19964 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19965 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19966 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19967 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19968 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19969 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19972 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19973 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19976 ## ------------------------------------------ ##
19977 ## Report this to the AC_PACKAGE_NAME lists. ##
19978 ## ------------------------------------------ ##
19981 sed "s/^/$as_me: WARNING: /" >&2
19984 echo "$as_me:$LINENO: checking for $ac_header" >&5
19985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19987 echo $ECHO_N "(cached) $ECHO_C" >&6
19989 eval "$as_ac_Header=\$ac_header_preproc"
19991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19992 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19996 cat >>confdefs.h
<<_ACEOF
19997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20013 for ac_header
in krb.h
20015 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20017 echo "$as_me:$LINENO: checking for $ac_header" >&5
20018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20020 echo $ECHO_N "(cached) $ECHO_C" >&6
20022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20025 # Is the header compilable?
20026 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20028 cat >conftest.
$ac_ext <<_ACEOF
20031 cat confdefs.h
>>conftest.
$ac_ext
20032 cat >>conftest.
$ac_ext <<_ACEOF
20033 /* end confdefs.h. */
20034 $ac_includes_default
20035 #include <$ac_header>
20037 rm -f conftest.
$ac_objext
20038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20039 (eval $ac_compile) 2>conftest.er1
20041 grep -v '^ *+' conftest.er1
>conftest.err
20043 cat conftest.err
>&5
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); } &&
20046 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20048 (eval $ac_try) 2>&5
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); }; } &&
20052 { ac_try
='test -s conftest.$ac_objext'
20053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20054 (eval $ac_try) 2>&5
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); }; }; then
20058 ac_header_compiler
=yes
20060 echo "$as_me: failed program was:" >&5
20061 sed 's/^/| /' conftest.
$ac_ext >&5
20063 ac_header_compiler
=no
20065 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20066 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20067 echo "${ECHO_T}$ac_header_compiler" >&6
20069 # Is the header present?
20070 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20071 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20072 cat >conftest.
$ac_ext <<_ACEOF
20075 cat confdefs.h
>>conftest.
$ac_ext
20076 cat >>conftest.
$ac_ext <<_ACEOF
20077 /* end confdefs.h. */
20078 #include <$ac_header>
20080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20081 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20083 grep -v '^ *+' conftest.er1
>conftest.err
20085 cat conftest.err
>&5
20086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087 (exit $ac_status); } >/dev
/null
; then
20088 if test -s conftest.err
; then
20089 ac_cpp_err
=$ac_c_preproc_warn_flag
20090 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20097 if test -z "$ac_cpp_err"; then
20098 ac_header_preproc
=yes
20100 echo "$as_me: failed program was:" >&5
20101 sed 's/^/| /' conftest.
$ac_ext >&5
20103 ac_header_preproc
=no
20105 rm -f conftest.err conftest.
$ac_ext
20106 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20107 echo "${ECHO_T}$ac_header_preproc" >&6
20109 # So? What about this header?
20110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20112 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20113 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20115 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20116 ac_header_preproc
=yes
20119 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20120 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20121 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20122 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20123 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20124 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20125 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20126 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20128 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20129 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20130 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20133 ## ------------------------------------------ ##
20134 ## Report this to the AC_PACKAGE_NAME lists. ##
20135 ## ------------------------------------------ ##
20138 sed "s/^/$as_me: WARNING: /" >&2
20141 echo "$as_me:$LINENO: checking for $ac_header" >&5
20142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20144 echo $ECHO_N "(cached) $ECHO_C" >&6
20146 eval "$as_ac_Header=\$ac_header_preproc"
20148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20149 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20153 cat >>confdefs.h
<<_ACEOF
20154 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20159 for ac_header
in kerberosIV
/krb.h
20161 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20163 echo "$as_me:$LINENO: checking for $ac_header" >&5
20164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20166 echo $ECHO_N "(cached) $ECHO_C" >&6
20168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20171 # Is the header compilable?
20172 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20173 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20174 cat >conftest.
$ac_ext <<_ACEOF
20177 cat confdefs.h
>>conftest.
$ac_ext
20178 cat >>conftest.
$ac_ext <<_ACEOF
20179 /* end confdefs.h. */
20180 $ac_includes_default
20181 #include <$ac_header>
20183 rm -f conftest.
$ac_objext
20184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20185 (eval $ac_compile) 2>conftest.er1
20187 grep -v '^ *+' conftest.er1
>conftest.err
20189 cat conftest.err
>&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); } &&
20192 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20194 (eval $ac_try) 2>&5
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); }; } &&
20198 { ac_try
='test -s conftest.$ac_objext'
20199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20200 (eval $ac_try) 2>&5
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); }; }; then
20204 ac_header_compiler
=yes
20206 echo "$as_me: failed program was:" >&5
20207 sed 's/^/| /' conftest.
$ac_ext >&5
20209 ac_header_compiler
=no
20211 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20212 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20213 echo "${ECHO_T}$ac_header_compiler" >&6
20215 # Is the header present?
20216 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20217 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20218 cat >conftest.
$ac_ext <<_ACEOF
20221 cat confdefs.h
>>conftest.
$ac_ext
20222 cat >>conftest.
$ac_ext <<_ACEOF
20223 /* end confdefs.h. */
20224 #include <$ac_header>
20226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20227 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20229 grep -v '^ *+' conftest.er1
>conftest.err
20231 cat conftest.err
>&5
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); } >/dev
/null
; then
20234 if test -s conftest.err
; then
20235 ac_cpp_err
=$ac_c_preproc_warn_flag
20236 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20243 if test -z "$ac_cpp_err"; then
20244 ac_header_preproc
=yes
20246 echo "$as_me: failed program was:" >&5
20247 sed 's/^/| /' conftest.
$ac_ext >&5
20249 ac_header_preproc
=no
20251 rm -f conftest.err conftest.
$ac_ext
20252 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20253 echo "${ECHO_T}$ac_header_preproc" >&6
20255 # So? What about this header?
20256 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20258 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20259 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20261 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20262 ac_header_preproc
=yes
20265 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20266 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20267 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20268 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20269 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20270 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20271 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20272 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20274 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20275 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20276 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20279 ## ------------------------------------------ ##
20280 ## Report this to the AC_PACKAGE_NAME lists. ##
20281 ## ------------------------------------------ ##
20284 sed "s/^/$as_me: WARNING: /" >&2
20287 echo "$as_me:$LINENO: checking for $ac_header" >&5
20288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20290 echo $ECHO_N "(cached) $ECHO_C" >&6
20292 eval "$as_ac_Header=\$ac_header_preproc"
20294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20295 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20299 cat >>confdefs.h
<<_ACEOF
20300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20305 for ac_header
in kerberos
/krb.h
20307 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20309 echo "$as_me:$LINENO: checking for $ac_header" >&5
20310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20312 echo $ECHO_N "(cached) $ECHO_C" >&6
20314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20317 # Is the header compilable?
20318 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20319 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20320 cat >conftest.
$ac_ext <<_ACEOF
20323 cat confdefs.h
>>conftest.
$ac_ext
20324 cat >>conftest.
$ac_ext <<_ACEOF
20325 /* end confdefs.h. */
20326 $ac_includes_default
20327 #include <$ac_header>
20329 rm -f conftest.
$ac_objext
20330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20331 (eval $ac_compile) 2>conftest.er1
20333 grep -v '^ *+' conftest.er1
>conftest.err
20335 cat conftest.err
>&5
20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); } &&
20338 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20340 (eval $ac_try) 2>&5
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); }; } &&
20344 { ac_try
='test -s conftest.$ac_objext'
20345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20346 (eval $ac_try) 2>&5
20348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349 (exit $ac_status); }; }; then
20350 ac_header_compiler
=yes
20352 echo "$as_me: failed program was:" >&5
20353 sed 's/^/| /' conftest.
$ac_ext >&5
20355 ac_header_compiler
=no
20357 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20359 echo "${ECHO_T}$ac_header_compiler" >&6
20361 # Is the header present?
20362 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20364 cat >conftest.
$ac_ext <<_ACEOF
20367 cat confdefs.h
>>conftest.
$ac_ext
20368 cat >>conftest.
$ac_ext <<_ACEOF
20369 /* end confdefs.h. */
20370 #include <$ac_header>
20372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20373 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20375 grep -v '^ *+' conftest.er1
>conftest.err
20377 cat conftest.err
>&5
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); } >/dev
/null
; then
20380 if test -s conftest.err
; then
20381 ac_cpp_err
=$ac_c_preproc_warn_flag
20382 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20389 if test -z "$ac_cpp_err"; then
20390 ac_header_preproc
=yes
20392 echo "$as_me: failed program was:" >&5
20393 sed 's/^/| /' conftest.
$ac_ext >&5
20395 ac_header_preproc
=no
20397 rm -f conftest.err conftest.
$ac_ext
20398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20399 echo "${ECHO_T}$ac_header_preproc" >&6
20401 # So? What about this header?
20402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20408 ac_header_preproc
=yes
20411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20414 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20418 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20425 ## ------------------------------------------ ##
20426 ## Report this to the AC_PACKAGE_NAME lists. ##
20427 ## ------------------------------------------ ##
20430 sed "s/^/$as_me: WARNING: /" >&2
20433 echo "$as_me:$LINENO: checking for $ac_header" >&5
20434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20436 echo $ECHO_N "(cached) $ECHO_C" >&6
20438 eval "$as_ac_Header=\$ac_header_preproc"
20440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20445 cat >>confdefs.h
<<_ACEOF
20446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20463 for ac_header
in com_err.h
20465 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20467 echo "$as_me:$LINENO: checking for $ac_header" >&5
20468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20470 echo $ECHO_N "(cached) $ECHO_C" >&6
20472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20475 # Is the header compilable?
20476 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20477 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20478 cat >conftest.
$ac_ext <<_ACEOF
20481 cat confdefs.h
>>conftest.
$ac_ext
20482 cat >>conftest.
$ac_ext <<_ACEOF
20483 /* end confdefs.h. */
20484 $ac_includes_default
20485 #include <$ac_header>
20487 rm -f conftest.
$ac_objext
20488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20489 (eval $ac_compile) 2>conftest.er1
20491 grep -v '^ *+' conftest.er1
>conftest.err
20493 cat conftest.err
>&5
20494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); } &&
20496 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20498 (eval $ac_try) 2>&5
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); }; } &&
20502 { ac_try
='test -s conftest.$ac_objext'
20503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20504 (eval $ac_try) 2>&5
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); }; }; then
20508 ac_header_compiler
=yes
20510 echo "$as_me: failed program was:" >&5
20511 sed 's/^/| /' conftest.
$ac_ext >&5
20513 ac_header_compiler
=no
20515 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20516 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20517 echo "${ECHO_T}$ac_header_compiler" >&6
20519 # Is the header present?
20520 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20521 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20522 cat >conftest.
$ac_ext <<_ACEOF
20525 cat confdefs.h
>>conftest.
$ac_ext
20526 cat >>conftest.
$ac_ext <<_ACEOF
20527 /* end confdefs.h. */
20528 #include <$ac_header>
20530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20531 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20533 grep -v '^ *+' conftest.er1
>conftest.err
20535 cat conftest.err
>&5
20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537 (exit $ac_status); } >/dev
/null
; then
20538 if test -s conftest.err
; then
20539 ac_cpp_err
=$ac_c_preproc_warn_flag
20540 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20547 if test -z "$ac_cpp_err"; then
20548 ac_header_preproc
=yes
20550 echo "$as_me: failed program was:" >&5
20551 sed 's/^/| /' conftest.
$ac_ext >&5
20553 ac_header_preproc
=no
20555 rm -f conftest.err conftest.
$ac_ext
20556 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20557 echo "${ECHO_T}$ac_header_preproc" >&6
20559 # So? What about this header?
20560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20563 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20565 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20566 ac_header_preproc
=yes
20569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20572 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20573 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20574 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20575 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20576 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20579 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20580 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20583 ## ------------------------------------------ ##
20584 ## Report this to the AC_PACKAGE_NAME lists. ##
20585 ## ------------------------------------------ ##
20588 sed "s/^/$as_me: WARNING: /" >&2
20591 echo "$as_me:$LINENO: checking for $ac_header" >&5
20592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20594 echo $ECHO_N "(cached) $ECHO_C" >&6
20596 eval "$as_ac_Header=\$ac_header_preproc"
20598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20603 cat >>confdefs.h
<<_ACEOF
20604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20613 # Solaris requires -lintl if you want strerror (which calls dgettext)
20614 # to return localized messages.
20616 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20617 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20618 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20619 echo $ECHO_N "(cached) $ECHO_C" >&6
20621 ac_check_lib_save_LIBS
=$LIBS
20622 LIBS
="-lintl $LIBS"
20623 cat >conftest.
$ac_ext <<_ACEOF
20626 cat confdefs.h
>>conftest.
$ac_ext
20627 cat >>conftest.
$ac_ext <<_ACEOF
20628 /* end confdefs.h. */
20630 /* Override any gcc2 internal prototype to avoid an error. */
20634 /* We use char because int might match the return type of a gcc2
20635 builtin and then its argument prototype would still apply. */
20645 rm -f conftest.
$ac_objext conftest
$ac_exeext
20646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20647 (eval $ac_link) 2>conftest.er1
20649 grep -v '^ *+' conftest.er1
>conftest.err
20651 cat conftest.err
>&5
20652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); } &&
20654 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20656 (eval $ac_try) 2>&5
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); }; } &&
20660 { ac_try
='test -s conftest$ac_exeext'
20661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20662 (eval $ac_try) 2>&5
20664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665 (exit $ac_status); }; }; then
20666 ac_cv_lib_intl_dgettext
=yes
20668 echo "$as_me: failed program was:" >&5
20669 sed 's/^/| /' conftest.
$ac_ext >&5
20671 ac_cv_lib_intl_dgettext
=no
20673 rm -f conftest.err conftest.
$ac_objext \
20674 conftest
$ac_exeext conftest.
$ac_ext
20675 LIBS
=$ac_check_lib_save_LIBS
20677 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20678 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20679 if test $ac_cv_lib_intl_dgettext = yes; then
20680 cat >>confdefs.h
<<_ACEOF
20681 #define HAVE_LIBINTL 1
20684 LIBS
="-lintl $LIBS"
20689 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20690 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20691 if test "${emacs_cv_localtime_cache+set}" = set; then
20692 echo $ECHO_N "(cached) $ECHO_C" >&6
20694 if test x
$ac_cv_func_tzset = xyes
; then
20695 if test "$cross_compiling" = yes; then
20696 # If we have tzset, assume the worst when cross-compiling.
20697 emacs_cv_localtime_cache
=yes
20699 cat >conftest.
$ac_ext <<_ACEOF
20702 cat confdefs.h
>>conftest.
$ac_ext
20703 cat >>conftest.
$ac_ext <<_ACEOF
20704 /* end confdefs.h. */
20706 extern char **environ;
20710 for (to = from = environ; (*to = *from); from++)
20711 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20714 char TZ_GMT0[] = "TZ=GMT0";
20715 char TZ_PST8[] = "TZ=PST8";
20718 time_t now = time ((time_t *) 0);
20719 int hour_GMT0, hour_unset;
20720 if (putenv (TZ_GMT0) != 0)
20722 hour_GMT0 = localtime (&now)->tm_hour;
20724 hour_unset = localtime (&now)->tm_hour;
20725 if (putenv (TZ_PST8) != 0)
20727 if (localtime (&now)->tm_hour == hour_GMT0)
20730 if (localtime (&now)->tm_hour != hour_unset)
20735 rm -f conftest
$ac_exeext
20736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20737 (eval $ac_link) 2>&5
20739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20742 (eval $ac_try) 2>&5
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); }; }; then
20746 emacs_cv_localtime_cache
=no
20748 echo "$as_me: program exited with status $ac_status" >&5
20749 echo "$as_me: failed program was:" >&5
20750 sed 's/^/| /' conftest.
$ac_ext >&5
20752 ( exit $ac_status )
20753 emacs_cv_localtime_cache
=yes
20755 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20758 # If we lack tzset, report that localtime does not cache TZ,
20759 # since we can't invalidate the cache if we don't have tzset.
20760 emacs_cv_localtime_cache
=no
20763 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20764 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20765 if test $emacs_cv_localtime_cache = yes; then
20767 cat >>confdefs.h
<<\_ACEOF
20768 #define LOCALTIME_CACHE 1
20773 if test "x$HAVE_TIMEVAL" = xyes
; then
20775 for ac_func
in gettimeofday
20777 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20778 echo "$as_me:$LINENO: checking for $ac_func" >&5
20779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20780 if eval "test \"\${$as_ac_var+set}\" = set"; then
20781 echo $ECHO_N "(cached) $ECHO_C" >&6
20783 cat >conftest.
$ac_ext <<_ACEOF
20786 cat confdefs.h
>>conftest.
$ac_ext
20787 cat >>conftest.
$ac_ext <<_ACEOF
20788 /* end confdefs.h. */
20789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20791 #define $ac_func innocuous_$ac_func
20793 /* System header to define __stub macros and hopefully few prototypes,
20794 which can conflict with char $ac_func (); below.
20795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20796 <limits.h> exists even on freestanding compilers. */
20799 # include <limits.h>
20801 # include <assert.h>
20806 /* Override any gcc2 internal prototype to avoid an error. */
20811 /* We use char because int might match the return type of a gcc2
20812 builtin and then its argument prototype would still apply. */
20814 /* The GNU C library defines this for functions which it implements
20815 to always fail with ENOSYS. Some functions are actually named
20816 something starting with __ and the normal name is an alias. */
20817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20820 char (*f) () = $ac_func;
20829 return f != $ac_func;
20834 rm -f conftest.
$ac_objext conftest
$ac_exeext
20835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20836 (eval $ac_link) 2>conftest.er1
20838 grep -v '^ *+' conftest.er1
>conftest.err
20840 cat conftest.err
>&5
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); } &&
20843 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20845 (eval $ac_try) 2>&5
20847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848 (exit $ac_status); }; } &&
20849 { ac_try
='test -s conftest$ac_exeext'
20850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20851 (eval $ac_try) 2>&5
20853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854 (exit $ac_status); }; }; then
20855 eval "$as_ac_var=yes"
20857 echo "$as_me: failed program was:" >&5
20858 sed 's/^/| /' conftest.
$ac_ext >&5
20860 eval "$as_ac_var=no"
20862 rm -f conftest.err conftest.
$ac_objext \
20863 conftest
$ac_exeext conftest.
$ac_ext
20865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20866 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20867 if test `eval echo '${'$as_ac_var'}'` = yes; then
20868 cat >>confdefs.h
<<_ACEOF
20869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20875 if test $ac_cv_func_gettimeofday = yes; then
20876 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20877 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20878 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20879 echo $ECHO_N "(cached) $ECHO_C" >&6
20881 cat >conftest.
$ac_ext <<_ACEOF
20884 cat confdefs.h
>>conftest.
$ac_ext
20885 cat >>conftest.
$ac_ext <<_ACEOF
20886 /* end confdefs.h. */
20888 #ifdef TIME_WITH_SYS_TIME
20889 #include <sys/time.h>
20892 #ifdef HAVE_SYS_TIME_H
20893 #include <sys/time.h>
20901 struct timeval time;
20902 gettimeofday (&time, 0);
20907 rm -f conftest.
$ac_objext
20908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20909 (eval $ac_compile) 2>conftest.er1
20911 grep -v '^ *+' conftest.er1
>conftest.err
20913 cat conftest.err
>&5
20914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915 (exit $ac_status); } &&
20916 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20918 (eval $ac_try) 2>&5
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); }; } &&
20922 { ac_try
='test -s conftest.$ac_objext'
20923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20924 (eval $ac_try) 2>&5
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); }; }; then
20928 emacs_cv_gettimeofday_two_arguments
=yes
20930 echo "$as_me: failed program was:" >&5
20931 sed 's/^/| /' conftest.
$ac_ext >&5
20933 emacs_cv_gettimeofday_two_arguments
=no
20935 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20937 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20938 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20939 if test $emacs_cv_gettimeofday_two_arguments = no
; then
20941 cat >>confdefs.h
<<\_ACEOF
20942 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20949 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20950 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20951 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20952 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20953 echo $ECHO_N "(cached) $ECHO_C" >&6
20955 cat >conftest.
$ac_ext <<_ACEOF
20958 cat confdefs.h
>>conftest.
$ac_ext
20959 cat >>conftest.
$ac_ext <<_ACEOF
20960 /* end confdefs.h. */
20961 #include <sys/types.h>
20962 #include <$ac_cv_struct_tm>
20968 static struct tm ac_aggr;
20969 if (ac_aggr.tm_zone)
20975 rm -f conftest.
$ac_objext
20976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20977 (eval $ac_compile) 2>conftest.er1
20979 grep -v '^ *+' conftest.er1
>conftest.err
20981 cat conftest.err
>&5
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); } &&
20984 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20986 (eval $ac_try) 2>&5
20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); }; } &&
20990 { ac_try
='test -s conftest.$ac_objext'
20991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20992 (eval $ac_try) 2>&5
20994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); }; }; then
20996 ac_cv_member_struct_tm_tm_zone
=yes
20998 echo "$as_me: failed program was:" >&5
20999 sed 's/^/| /' conftest.
$ac_ext >&5
21001 cat >conftest.
$ac_ext <<_ACEOF
21004 cat confdefs.h
>>conftest.
$ac_ext
21005 cat >>conftest.
$ac_ext <<_ACEOF
21006 /* end confdefs.h. */
21007 #include <sys/types.h>
21008 #include <$ac_cv_struct_tm>
21014 static struct tm ac_aggr;
21015 if (sizeof ac_aggr.tm_zone)
21021 rm -f conftest.
$ac_objext
21022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21023 (eval $ac_compile) 2>conftest.er1
21025 grep -v '^ *+' conftest.er1
>conftest.err
21027 cat conftest.err
>&5
21028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029 (exit $ac_status); } &&
21030 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21032 (eval $ac_try) 2>&5
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); }; } &&
21036 { ac_try
='test -s conftest.$ac_objext'
21037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21038 (eval $ac_try) 2>&5
21040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); }; }; then
21042 ac_cv_member_struct_tm_tm_zone
=yes
21044 echo "$as_me: failed program was:" >&5
21045 sed 's/^/| /' conftest.
$ac_ext >&5
21047 ac_cv_member_struct_tm_tm_zone
=no
21049 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21051 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21053 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21054 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21055 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21057 cat >>confdefs.h
<<_ACEOF
21058 #define HAVE_STRUCT_TM_TM_ZONE 1
21064 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21066 cat >>confdefs.h
<<\_ACEOF
21067 #define HAVE_TM_ZONE 1
21071 echo "$as_me:$LINENO: checking for tzname" >&5
21072 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21073 if test "${ac_cv_var_tzname+set}" = set; then
21074 echo $ECHO_N "(cached) $ECHO_C" >&6
21076 cat >conftest.
$ac_ext <<_ACEOF
21079 cat confdefs.h
>>conftest.
$ac_ext
21080 cat >>conftest.
$ac_ext <<_ACEOF
21081 /* end confdefs.h. */
21083 #ifndef tzname /* For SGI. */
21084 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21095 rm -f conftest.
$ac_objext conftest
$ac_exeext
21096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21097 (eval $ac_link) 2>conftest.er1
21099 grep -v '^ *+' conftest.er1
>conftest.err
21101 cat conftest.err
>&5
21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); } &&
21104 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21106 (eval $ac_try) 2>&5
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); }; } &&
21110 { ac_try
='test -s conftest$ac_exeext'
21111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21112 (eval $ac_try) 2>&5
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); }; }; then
21116 ac_cv_var_tzname
=yes
21118 echo "$as_me: failed program was:" >&5
21119 sed 's/^/| /' conftest.
$ac_ext >&5
21121 ac_cv_var_tzname
=no
21123 rm -f conftest.err conftest.
$ac_objext \
21124 conftest
$ac_exeext conftest.
$ac_ext
21126 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21127 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21128 if test $ac_cv_var_tzname = yes; then
21130 cat >>confdefs.h
<<\_ACEOF
21131 #define HAVE_TZNAME 1
21138 if test "$ac_cv_func_gettimeofday" = yes; then
21139 echo "$as_me:$LINENO: checking for struct timezone" >&5
21140 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
21141 if test "${emacs_cv_struct_timezone+set}" = set; then
21142 echo $ECHO_N "(cached) $ECHO_C" >&6
21144 cat >conftest.
$ac_ext <<_ACEOF
21147 cat confdefs.h
>>conftest.
$ac_ext
21148 cat >>conftest.
$ac_ext <<_ACEOF
21149 /* end confdefs.h. */
21150 #include <sys/time.h>
21154 struct timezone tz;
21159 rm -f conftest.
$ac_objext
21160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21161 (eval $ac_compile) 2>conftest.er1
21163 grep -v '^ *+' conftest.er1
>conftest.err
21165 cat conftest.err
>&5
21166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167 (exit $ac_status); } &&
21168 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21170 (eval $ac_try) 2>&5
21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); }; } &&
21174 { ac_try
='test -s conftest.$ac_objext'
21175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21176 (eval $ac_try) 2>&5
21178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179 (exit $ac_status); }; }; then
21180 if test "$cross_compiling" = yes; then
21181 emacs_cv_struct_timezone
=yes
21183 cat >conftest.
$ac_ext <<_ACEOF
21186 cat confdefs.h
>>conftest.
$ac_ext
21187 cat >>conftest.
$ac_ext <<_ACEOF
21188 /* end confdefs.h. */
21190 #ifdef TIME_WITH_SYS_TIME
21191 #include <sys/time.h>
21194 #ifdef HAVE_SYS_TIME_H
21195 #include <sys/time.h>
21201 struct timeval time;
21202 struct timezone dummy;
21203 exit (gettimeofday (&time, &dummy));
21206 rm -f conftest
$ac_exeext
21207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21208 (eval $ac_link) 2>&5
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21213 (eval $ac_try) 2>&5
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); }; }; then
21217 emacs_cv_struct_timezone
=yes
21219 echo "$as_me: program exited with status $ac_status" >&5
21220 echo "$as_me: failed program was:" >&5
21221 sed 's/^/| /' conftest.
$ac_ext >&5
21223 ( exit $ac_status )
21224 emacs_cv_struct_timezone
=no
21226 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21229 echo "$as_me: failed program was:" >&5
21230 sed 's/^/| /' conftest.
$ac_ext >&5
21232 emacs_cv_struct_timezone
=no
21234 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21236 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21237 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
21241 echo "$as_me:$LINENO: checking for socket" >&5
21242 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21243 if test "${ac_cv_func_socket+set}" = set; then
21244 echo $ECHO_N "(cached) $ECHO_C" >&6
21246 cat >conftest.
$ac_ext <<_ACEOF
21249 cat confdefs.h
>>conftest.
$ac_ext
21250 cat >>conftest.
$ac_ext <<_ACEOF
21251 /* end confdefs.h. */
21252 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21254 #define socket innocuous_socket
21256 /* System header to define __stub macros and hopefully few prototypes,
21257 which can conflict with char socket (); below.
21258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21259 <limits.h> exists even on freestanding compilers. */
21262 # include <limits.h>
21264 # include <assert.h>
21269 /* Override any gcc2 internal prototype to avoid an error. */
21274 /* We use char because int might match the return type of a gcc2
21275 builtin and then its argument prototype would still apply. */
21277 /* The GNU C library defines this for functions which it implements
21278 to always fail with ENOSYS. Some functions are actually named
21279 something starting with __ and the normal name is an alias. */
21280 #if defined (__stub_socket) || defined (__stub___socket)
21283 char (*f) () = socket;
21292 return f != socket;
21297 rm -f conftest.
$ac_objext conftest
$ac_exeext
21298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21299 (eval $ac_link) 2>conftest.er1
21301 grep -v '^ *+' conftest.er1
>conftest.err
21303 cat conftest.err
>&5
21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); } &&
21306 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21308 (eval $ac_try) 2>&5
21310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311 (exit $ac_status); }; } &&
21312 { ac_try
='test -s conftest$ac_exeext'
21313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21314 (eval $ac_try) 2>&5
21316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317 (exit $ac_status); }; }; then
21318 ac_cv_func_socket
=yes
21320 echo "$as_me: failed program was:" >&5
21321 sed 's/^/| /' conftest.
$ac_ext >&5
21323 ac_cv_func_socket
=no
21325 rm -f conftest.err conftest.
$ac_objext \
21326 conftest
$ac_exeext conftest.
$ac_ext
21328 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21329 echo "${ECHO_T}$ac_cv_func_socket" >&6
21330 if test $ac_cv_func_socket = yes; then
21336 if test $ok_so_far = yes; then
21337 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21338 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21339 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21340 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21341 echo $ECHO_N "(cached) $ECHO_C" >&6
21343 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21344 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21346 # Is the header compilable?
21347 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21348 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21349 cat >conftest.
$ac_ext <<_ACEOF
21352 cat confdefs.h
>>conftest.
$ac_ext
21353 cat >>conftest.
$ac_ext <<_ACEOF
21354 /* end confdefs.h. */
21355 $ac_includes_default
21356 #include <netinet/in.h>
21358 rm -f conftest.
$ac_objext
21359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21360 (eval $ac_compile) 2>conftest.er1
21362 grep -v '^ *+' conftest.er1
>conftest.err
21364 cat conftest.err
>&5
21365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); } &&
21367 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21369 (eval $ac_try) 2>&5
21371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); }; } &&
21373 { ac_try
='test -s conftest.$ac_objext'
21374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21375 (eval $ac_try) 2>&5
21377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378 (exit $ac_status); }; }; then
21379 ac_header_compiler
=yes
21381 echo "$as_me: failed program was:" >&5
21382 sed 's/^/| /' conftest.
$ac_ext >&5
21384 ac_header_compiler
=no
21386 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21387 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21388 echo "${ECHO_T}$ac_header_compiler" >&6
21390 # Is the header present?
21391 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21392 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21393 cat >conftest.
$ac_ext <<_ACEOF
21396 cat confdefs.h
>>conftest.
$ac_ext
21397 cat >>conftest.
$ac_ext <<_ACEOF
21398 /* end confdefs.h. */
21399 #include <netinet/in.h>
21401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21402 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21404 grep -v '^ *+' conftest.er1
>conftest.err
21406 cat conftest.err
>&5
21407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408 (exit $ac_status); } >/dev
/null
; then
21409 if test -s conftest.err
; then
21410 ac_cpp_err
=$ac_c_preproc_warn_flag
21411 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21418 if test -z "$ac_cpp_err"; then
21419 ac_header_preproc
=yes
21421 echo "$as_me: failed program was:" >&5
21422 sed 's/^/| /' conftest.
$ac_ext >&5
21424 ac_header_preproc
=no
21426 rm -f conftest.err conftest.
$ac_ext
21427 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21428 echo "${ECHO_T}$ac_header_preproc" >&6
21430 # So? What about this header?
21431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21433 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21434 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21435 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21436 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21437 ac_header_preproc
=yes
21440 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21441 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21442 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21443 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21444 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21445 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21446 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21447 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21448 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21449 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21450 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21451 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21454 ## ------------------------------------------ ##
21455 ## Report this to the AC_PACKAGE_NAME lists. ##
21456 ## ------------------------------------------ ##
21459 sed "s/^/$as_me: WARNING: /" >&2
21462 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21463 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21464 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21465 echo $ECHO_N "(cached) $ECHO_C" >&6
21467 ac_cv_header_netinet_in_h
=$ac_header_preproc
21469 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21470 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21473 if test $ac_cv_header_netinet_in_h = yes; then
21481 if test $ok_so_far = yes; then
21482 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21483 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21484 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21485 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21486 echo $ECHO_N "(cached) $ECHO_C" >&6
21488 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21489 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21491 # Is the header compilable?
21492 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21493 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21494 cat >conftest.
$ac_ext <<_ACEOF
21497 cat confdefs.h
>>conftest.
$ac_ext
21498 cat >>conftest.
$ac_ext <<_ACEOF
21499 /* end confdefs.h. */
21500 $ac_includes_default
21501 #include <arpa/inet.h>
21503 rm -f conftest.
$ac_objext
21504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21505 (eval $ac_compile) 2>conftest.er1
21507 grep -v '^ *+' conftest.er1
>conftest.err
21509 cat conftest.err
>&5
21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511 (exit $ac_status); } &&
21512 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21514 (eval $ac_try) 2>&5
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); }; } &&
21518 { ac_try
='test -s conftest.$ac_objext'
21519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21520 (eval $ac_try) 2>&5
21522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523 (exit $ac_status); }; }; then
21524 ac_header_compiler
=yes
21526 echo "$as_me: failed program was:" >&5
21527 sed 's/^/| /' conftest.
$ac_ext >&5
21529 ac_header_compiler
=no
21531 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21532 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21533 echo "${ECHO_T}$ac_header_compiler" >&6
21535 # Is the header present?
21536 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21537 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21538 cat >conftest.
$ac_ext <<_ACEOF
21541 cat confdefs.h
>>conftest.
$ac_ext
21542 cat >>conftest.
$ac_ext <<_ACEOF
21543 /* end confdefs.h. */
21544 #include <arpa/inet.h>
21546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21547 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21549 grep -v '^ *+' conftest.er1
>conftest.err
21551 cat conftest.err
>&5
21552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553 (exit $ac_status); } >/dev
/null
; then
21554 if test -s conftest.err
; then
21555 ac_cpp_err
=$ac_c_preproc_warn_flag
21556 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21563 if test -z "$ac_cpp_err"; then
21564 ac_header_preproc
=yes
21566 echo "$as_me: failed program was:" >&5
21567 sed 's/^/| /' conftest.
$ac_ext >&5
21569 ac_header_preproc
=no
21571 rm -f conftest.err conftest.
$ac_ext
21572 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21573 echo "${ECHO_T}$ac_header_preproc" >&6
21575 # So? What about this header?
21576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21578 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21579 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21580 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21581 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21582 ac_header_preproc
=yes
21585 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21586 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21587 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21588 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21589 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21590 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21591 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21592 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21593 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21594 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21595 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21596 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21599 ## ------------------------------------------ ##
21600 ## Report this to the AC_PACKAGE_NAME lists. ##
21601 ## ------------------------------------------ ##
21604 sed "s/^/$as_me: WARNING: /" >&2
21607 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21608 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21609 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21610 echo $ECHO_N "(cached) $ECHO_C" >&6
21612 ac_cv_header_arpa_inet_h
=$ac_header_preproc
21614 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21615 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21618 if test $ac_cv_header_arpa_inet_h = yes; then
21626 if test $ok_so_far = yes; then
21628 cat >>confdefs.h
<<\_ACEOF
21629 #define HAVE_INET_SOCKETS 1
21635 for ac_header
in sys
/ioctl.h
21637 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21639 echo "$as_me:$LINENO: checking for $ac_header" >&5
21640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21642 echo $ECHO_N "(cached) $ECHO_C" >&6
21644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21647 # Is the header compilable?
21648 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21649 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21650 cat >conftest.
$ac_ext <<_ACEOF
21653 cat confdefs.h
>>conftest.
$ac_ext
21654 cat >>conftest.
$ac_ext <<_ACEOF
21655 /* end confdefs.h. */
21656 $ac_includes_default
21657 #include <$ac_header>
21659 rm -f conftest.
$ac_objext
21660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21661 (eval $ac_compile) 2>conftest.er1
21663 grep -v '^ *+' conftest.er1
>conftest.err
21665 cat conftest.err
>&5
21666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667 (exit $ac_status); } &&
21668 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21670 (eval $ac_try) 2>&5
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); }; } &&
21674 { ac_try
='test -s conftest.$ac_objext'
21675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21676 (eval $ac_try) 2>&5
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); }; }; then
21680 ac_header_compiler
=yes
21682 echo "$as_me: failed program was:" >&5
21683 sed 's/^/| /' conftest.
$ac_ext >&5
21685 ac_header_compiler
=no
21687 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21688 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21689 echo "${ECHO_T}$ac_header_compiler" >&6
21691 # Is the header present?
21692 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21693 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21694 cat >conftest.
$ac_ext <<_ACEOF
21697 cat confdefs.h
>>conftest.
$ac_ext
21698 cat >>conftest.
$ac_ext <<_ACEOF
21699 /* end confdefs.h. */
21700 #include <$ac_header>
21702 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21703 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21705 grep -v '^ *+' conftest.er1
>conftest.err
21707 cat conftest.err
>&5
21708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709 (exit $ac_status); } >/dev
/null
; then
21710 if test -s conftest.err
; then
21711 ac_cpp_err
=$ac_c_preproc_warn_flag
21712 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21719 if test -z "$ac_cpp_err"; then
21720 ac_header_preproc
=yes
21722 echo "$as_me: failed program was:" >&5
21723 sed 's/^/| /' conftest.
$ac_ext >&5
21725 ac_header_preproc
=no
21727 rm -f conftest.err conftest.
$ac_ext
21728 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21729 echo "${ECHO_T}$ac_header_preproc" >&6
21731 # So? What about this header?
21732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21734 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21735 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21737 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21738 ac_header_preproc
=yes
21741 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21742 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21743 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21744 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21745 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21746 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21747 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21748 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21750 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21751 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21752 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21755 ## ------------------------------------------ ##
21756 ## Report this to the AC_PACKAGE_NAME lists. ##
21757 ## ------------------------------------------ ##
21760 sed "s/^/$as_me: WARNING: /" >&2
21763 echo "$as_me:$LINENO: checking for $ac_header" >&5
21764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21766 echo $ECHO_N "(cached) $ECHO_C" >&6
21768 eval "$as_ac_Header=\$ac_header_preproc"
21770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21771 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21774 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21775 cat >>confdefs.h
<<_ACEOF
21776 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21784 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
21786 cat >>confdefs.h
<<\_ACEOF
21787 #define HAVE_AIX_SMT_EXP 1
21792 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21793 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21794 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
21795 echo "$as_me:$LINENO: result: yes" >&5
21796 echo "${ECHO_T}yes" >&6
21798 cat >>confdefs.h
<<\_ACEOF
21799 #define HAVE_DEV_PTMX 1
21803 echo "$as_me:$LINENO: result: no" >&5
21804 echo "${ECHO_T}no" >&6
21807 echo "$as_me:$LINENO: checking for pid_t" >&5
21808 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21809 if test "${ac_cv_type_pid_t+set}" = set; then
21810 echo $ECHO_N "(cached) $ECHO_C" >&6
21812 cat >conftest.
$ac_ext <<_ACEOF
21815 cat confdefs.h
>>conftest.
$ac_ext
21816 cat >>conftest.
$ac_ext <<_ACEOF
21817 /* end confdefs.h. */
21818 $ac_includes_default
21824 if (sizeof (pid_t))
21830 rm -f conftest.
$ac_objext
21831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21832 (eval $ac_compile) 2>conftest.er1
21834 grep -v '^ *+' conftest.er1
>conftest.err
21836 cat conftest.err
>&5
21837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838 (exit $ac_status); } &&
21839 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21841 (eval $ac_try) 2>&5
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); }; } &&
21845 { ac_try
='test -s conftest.$ac_objext'
21846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21847 (eval $ac_try) 2>&5
21849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850 (exit $ac_status); }; }; then
21851 ac_cv_type_pid_t
=yes
21853 echo "$as_me: failed program was:" >&5
21854 sed 's/^/| /' conftest.
$ac_ext >&5
21856 ac_cv_type_pid_t
=no
21858 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21860 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21861 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21862 if test $ac_cv_type_pid_t = yes; then
21866 cat >>confdefs.h
<<_ACEOF
21874 for ac_header
in unistd.h vfork.h
21876 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21878 echo "$as_me:$LINENO: checking for $ac_header" >&5
21879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21881 echo $ECHO_N "(cached) $ECHO_C" >&6
21883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21884 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21886 # Is the header compilable?
21887 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21888 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21889 cat >conftest.
$ac_ext <<_ACEOF
21892 cat confdefs.h
>>conftest.
$ac_ext
21893 cat >>conftest.
$ac_ext <<_ACEOF
21894 /* end confdefs.h. */
21895 $ac_includes_default
21896 #include <$ac_header>
21898 rm -f conftest.
$ac_objext
21899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21900 (eval $ac_compile) 2>conftest.er1
21902 grep -v '^ *+' conftest.er1
>conftest.err
21904 cat conftest.err
>&5
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); } &&
21907 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21909 (eval $ac_try) 2>&5
21911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912 (exit $ac_status); }; } &&
21913 { ac_try
='test -s conftest.$ac_objext'
21914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21915 (eval $ac_try) 2>&5
21917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918 (exit $ac_status); }; }; then
21919 ac_header_compiler
=yes
21921 echo "$as_me: failed program was:" >&5
21922 sed 's/^/| /' conftest.
$ac_ext >&5
21924 ac_header_compiler
=no
21926 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21927 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21928 echo "${ECHO_T}$ac_header_compiler" >&6
21930 # Is the header present?
21931 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21932 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21933 cat >conftest.
$ac_ext <<_ACEOF
21936 cat confdefs.h
>>conftest.
$ac_ext
21937 cat >>conftest.
$ac_ext <<_ACEOF
21938 /* end confdefs.h. */
21939 #include <$ac_header>
21941 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21942 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21944 grep -v '^ *+' conftest.er1
>conftest.err
21946 cat conftest.err
>&5
21947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948 (exit $ac_status); } >/dev
/null
; then
21949 if test -s conftest.err
; then
21950 ac_cpp_err
=$ac_c_preproc_warn_flag
21951 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21958 if test -z "$ac_cpp_err"; then
21959 ac_header_preproc
=yes
21961 echo "$as_me: failed program was:" >&5
21962 sed 's/^/| /' conftest.
$ac_ext >&5
21964 ac_header_preproc
=no
21966 rm -f conftest.err conftest.
$ac_ext
21967 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21968 echo "${ECHO_T}$ac_header_preproc" >&6
21970 # So? What about this header?
21971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21973 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21974 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21976 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21977 ac_header_preproc
=yes
21980 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21981 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21982 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21983 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21984 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21985 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21986 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21987 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21989 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21990 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21991 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21994 ## ------------------------------------------ ##
21995 ## Report this to the AC_PACKAGE_NAME lists. ##
21996 ## ------------------------------------------ ##
21999 sed "s/^/$as_me: WARNING: /" >&2
22002 echo "$as_me:$LINENO: checking for $ac_header" >&5
22003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22005 echo $ECHO_N "(cached) $ECHO_C" >&6
22007 eval "$as_ac_Header=\$ac_header_preproc"
22009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22010 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22014 cat >>confdefs.h
<<_ACEOF
22015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22024 for ac_func
in fork vfork
22026 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22027 echo "$as_me:$LINENO: checking for $ac_func" >&5
22028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22029 if eval "test \"\${$as_ac_var+set}\" = set"; then
22030 echo $ECHO_N "(cached) $ECHO_C" >&6
22032 cat >conftest.
$ac_ext <<_ACEOF
22035 cat confdefs.h
>>conftest.
$ac_ext
22036 cat >>conftest.
$ac_ext <<_ACEOF
22037 /* end confdefs.h. */
22038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22040 #define $ac_func innocuous_$ac_func
22042 /* System header to define __stub macros and hopefully few prototypes,
22043 which can conflict with char $ac_func (); below.
22044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22045 <limits.h> exists even on freestanding compilers. */
22048 # include <limits.h>
22050 # include <assert.h>
22055 /* Override any gcc2 internal prototype to avoid an error. */
22060 /* We use char because int might match the return type of a gcc2
22061 builtin and then its argument prototype would still apply. */
22063 /* The GNU C library defines this for functions which it implements
22064 to always fail with ENOSYS. Some functions are actually named
22065 something starting with __ and the normal name is an alias. */
22066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22069 char (*f) () = $ac_func;
22078 return f != $ac_func;
22083 rm -f conftest.
$ac_objext conftest
$ac_exeext
22084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22085 (eval $ac_link) 2>conftest.er1
22087 grep -v '^ *+' conftest.er1
>conftest.err
22089 cat conftest.err
>&5
22090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); } &&
22092 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22094 (eval $ac_try) 2>&5
22096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097 (exit $ac_status); }; } &&
22098 { ac_try
='test -s conftest$ac_exeext'
22099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22100 (eval $ac_try) 2>&5
22102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103 (exit $ac_status); }; }; then
22104 eval "$as_ac_var=yes"
22106 echo "$as_me: failed program was:" >&5
22107 sed 's/^/| /' conftest.
$ac_ext >&5
22109 eval "$as_ac_var=no"
22111 rm -f conftest.err conftest.
$ac_objext \
22112 conftest
$ac_exeext conftest.
$ac_ext
22114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22115 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22116 if test `eval echo '${'$as_ac_var'}'` = yes; then
22117 cat >>confdefs.h
<<_ACEOF
22118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22124 if test "x$ac_cv_func_fork" = xyes
; then
22125 echo "$as_me:$LINENO: checking for working fork" >&5
22126 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
22127 if test "${ac_cv_func_fork_works+set}" = set; then
22128 echo $ECHO_N "(cached) $ECHO_C" >&6
22130 if test "$cross_compiling" = yes; then
22131 ac_cv_func_fork_works
=cross
22133 cat >conftest.
$ac_ext <<_ACEOF
22134 /* By Ruediger Kuhlmann. */
22135 #include <sys/types.h>
22137 # include <unistd.h>
22139 /* Some systems only have a dummy stub for fork() */
22147 rm -f conftest
$ac_exeext
22148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22149 (eval $ac_link) 2>&5
22151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22154 (eval $ac_try) 2>&5
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); }; }; then
22158 ac_cv_func_fork_works
=yes
22160 echo "$as_me: program exited with status $ac_status" >&5
22161 echo "$as_me: failed program was:" >&5
22162 sed 's/^/| /' conftest.
$ac_ext >&5
22164 ( exit $ac_status )
22165 ac_cv_func_fork_works
=no
22167 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22170 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22171 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
22174 ac_cv_func_fork_works
=$ac_cv_func_fork
22176 if test "x$ac_cv_func_fork_works" = xcross
; then
22178 *-*-amigaos* |
*-*-msdosdjgpp*)
22179 # Override, as these systems have only a dummy fork() stub
22180 ac_cv_func_fork_works
=no
22183 ac_cv_func_fork_works
=yes
22186 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22187 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22189 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22190 if test "x$ac_cv_func_vfork" = xyes
; then
22191 echo "$as_me:$LINENO: checking for working vfork" >&5
22192 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
22193 if test "${ac_cv_func_vfork_works+set}" = set; then
22194 echo $ECHO_N "(cached) $ECHO_C" >&6
22196 if test "$cross_compiling" = yes; then
22197 ac_cv_func_vfork_works
=cross
22199 cat >conftest.
$ac_ext <<_ACEOF
22202 cat confdefs.h
>>conftest.
$ac_ext
22203 cat >>conftest.
$ac_ext <<_ACEOF
22204 /* end confdefs.h. */
22205 /* Thanks to Paul Eggert for this test. */
22207 #include <stdlib.h>
22208 #include <sys/types.h>
22209 #include <sys/stat.h>
22210 #include <sys/wait.h>
22212 # include <unistd.h>
22215 # include <vfork.h>
22217 /* On some sparc systems, changes by the child to local and incoming
22218 argument registers are propagated back to the parent. The compiler
22219 is told about this with #include <vfork.h>, but some compilers
22220 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22221 static variable whose address is put into a register that is
22222 clobbered by the vfork. */
22225 sparc_address_test (int arg)
22227 sparc_address_test (arg) int arg;
22230 static pid_t child;
22248 pid_t parent = getpid ();
22251 sparc_address_test (0);
22256 /* Here is another test for sparc vfork register problems. This
22257 test uses lots of local variables, at least as many local
22258 variables as main has allocated so far including compiler
22259 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22260 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22261 reuse the register of parent for one of the local variables,
22262 since it will think that parent can't possibly be used any more
22263 in this routine. Assigning to the local variable will thus
22264 munge parent in the parent process. */
22266 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22267 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22268 /* Convince the compiler that p..p7 are live; otherwise, it might
22269 use the same hardware register for all 8 local variables. */
22270 if (p != p1 || p != p2 || p != p3 || p != p4
22271 || p != p5 || p != p6 || p != p7)
22274 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22275 from child file descriptors. If the child closes a descriptor
22276 before it execs or exits, this munges the parent's descriptor
22277 as well. Test for this by closing stdout in the child. */
22278 _exit(close(fileno(stdout)) != 0);
22283 while (wait(&status) != child)
22286 /* Was there some problem with vforking? */
22289 /* Did the child fail? (This shouldn't happen.) */
22292 /* Did the vfork/compiler bug occur? */
22293 || parent != getpid()
22295 /* Did the file descriptor bug occur? */
22296 || fstat(fileno(stdout), &st) != 0
22301 rm -f conftest
$ac_exeext
22302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22303 (eval $ac_link) 2>&5
22305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22308 (eval $ac_try) 2>&5
22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); }; }; then
22312 ac_cv_func_vfork_works
=yes
22314 echo "$as_me: program exited with status $ac_status" >&5
22315 echo "$as_me: failed program was:" >&5
22316 sed 's/^/| /' conftest.
$ac_ext >&5
22318 ( exit $ac_status )
22319 ac_cv_func_vfork_works
=no
22321 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22324 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22325 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22328 if test "x$ac_cv_func_fork_works" = xcross
; then
22329 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22330 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22331 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22334 if test "x$ac_cv_func_vfork_works" = xyes
; then
22336 cat >>confdefs.h
<<\_ACEOF
22337 #define HAVE_WORKING_VFORK 1
22342 cat >>confdefs.h
<<\_ACEOF
22347 if test "x$ac_cv_func_fork_works" = xyes
; then
22349 cat >>confdefs.h
<<\_ACEOF
22350 #define HAVE_WORKING_FORK 1
22356 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22357 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
22358 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22359 echo $ECHO_N "(cached) $ECHO_C" >&6
22361 cat >conftest.
$ac_ext <<_ACEOF
22364 cat confdefs.h
>>conftest.
$ac_ext
22365 cat >>conftest.
$ac_ext <<_ACEOF
22366 /* end confdefs.h. */
22367 #include <langinfo.h>
22371 char* cs = nl_langinfo(CODESET);
22376 rm -f conftest.
$ac_objext conftest
$ac_exeext
22377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22378 (eval $ac_link) 2>conftest.er1
22380 grep -v '^ *+' conftest.er1
>conftest.err
22382 cat conftest.err
>&5
22383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384 (exit $ac_status); } &&
22385 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22387 (eval $ac_try) 2>&5
22389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390 (exit $ac_status); }; } &&
22391 { ac_try
='test -s conftest$ac_exeext'
22392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22393 (eval $ac_try) 2>&5
22395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396 (exit $ac_status); }; }; then
22397 emacs_cv_langinfo_codeset
=yes
22399 echo "$as_me: failed program was:" >&5
22400 sed 's/^/| /' conftest.
$ac_ext >&5
22402 emacs_cv_langinfo_codeset
=no
22404 rm -f conftest.err conftest.
$ac_objext \
22405 conftest
$ac_exeext conftest.
$ac_ext
22408 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22409 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22410 if test $emacs_cv_langinfo_codeset = yes; then
22412 cat >>confdefs.h
<<\_ACEOF
22413 #define HAVE_LANGINFO_CODESET 1
22418 echo "$as_me:$LINENO: checking for size_t" >&5
22419 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22420 if test "${ac_cv_type_size_t+set}" = set; then
22421 echo $ECHO_N "(cached) $ECHO_C" >&6
22423 cat >conftest.
$ac_ext <<_ACEOF
22426 cat confdefs.h
>>conftest.
$ac_ext
22427 cat >>conftest.
$ac_ext <<_ACEOF
22428 /* end confdefs.h. */
22429 $ac_includes_default
22435 if (sizeof (size_t))
22441 rm -f conftest.
$ac_objext
22442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22443 (eval $ac_compile) 2>conftest.er1
22445 grep -v '^ *+' conftest.er1
>conftest.err
22447 cat conftest.err
>&5
22448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449 (exit $ac_status); } &&
22450 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22452 (eval $ac_try) 2>&5
22454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455 (exit $ac_status); }; } &&
22456 { ac_try
='test -s conftest.$ac_objext'
22457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22458 (eval $ac_try) 2>&5
22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); }; }; then
22462 ac_cv_type_size_t
=yes
22464 echo "$as_me: failed program was:" >&5
22465 sed 's/^/| /' conftest.
$ac_ext >&5
22467 ac_cv_type_size_t
=no
22469 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22471 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22472 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22473 if test $ac_cv_type_size_t = yes; then
22475 cat >>confdefs.h
<<_ACEOF
22476 #define HAVE_SIZE_T 1
22483 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22484 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22485 if test "${ac_cv_type_mbstate_t+set}" = set; then
22486 echo $ECHO_N "(cached) $ECHO_C" >&6
22488 cat >conftest.
$ac_ext <<_ACEOF
22491 cat confdefs.h
>>conftest.
$ac_ext
22492 cat >>conftest.
$ac_ext <<_ACEOF
22493 /* end confdefs.h. */
22494 $ac_includes_default
22495 # include <wchar.h>
22499 mbstate_t x; return sizeof x;
22504 rm -f conftest.
$ac_objext
22505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22506 (eval $ac_compile) 2>conftest.er1
22508 grep -v '^ *+' conftest.er1
>conftest.err
22510 cat conftest.err
>&5
22511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512 (exit $ac_status); } &&
22513 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22515 (eval $ac_try) 2>&5
22517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22518 (exit $ac_status); }; } &&
22519 { ac_try
='test -s conftest.$ac_objext'
22520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22521 (eval $ac_try) 2>&5
22523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); }; }; then
22525 ac_cv_type_mbstate_t
=yes
22527 echo "$as_me: failed program was:" >&5
22528 sed 's/^/| /' conftest.
$ac_ext >&5
22530 ac_cv_type_mbstate_t
=no
22532 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22534 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22535 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22536 if test $ac_cv_type_mbstate_t = yes; then
22538 cat >>confdefs.h
<<\_ACEOF
22539 #define HAVE_MBSTATE_T 1
22544 cat >>confdefs.h
<<\_ACEOF
22545 #define mbstate_t int
22550 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22551 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22552 if test "${emacs_cv_c_restrict+set}" = set; then
22553 echo $ECHO_N "(cached) $ECHO_C" >&6
22555 cat >conftest.
$ac_ext <<_ACEOF
22558 cat confdefs.h
>>conftest.
$ac_ext
22559 cat >>conftest.
$ac_ext <<_ACEOF
22560 /* end confdefs.h. */
22561 void fred (int *restrict x);
22570 rm -f conftest.
$ac_objext
22571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22572 (eval $ac_compile) 2>conftest.er1
22574 grep -v '^ *+' conftest.er1
>conftest.err
22576 cat conftest.err
>&5
22577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578 (exit $ac_status); } &&
22579 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22581 (eval $ac_try) 2>&5
22583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22584 (exit $ac_status); }; } &&
22585 { ac_try
='test -s conftest.$ac_objext'
22586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22587 (eval $ac_try) 2>&5
22589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22590 (exit $ac_status); }; }; then
22591 emacs_cv_c_restrict
=yes
22593 echo "$as_me: failed program was:" >&5
22594 sed 's/^/| /' conftest.
$ac_ext >&5
22596 cat >conftest.
$ac_ext <<_ACEOF
22599 cat confdefs.h
>>conftest.
$ac_ext
22600 cat >>conftest.
$ac_ext <<_ACEOF
22601 /* end confdefs.h. */
22602 void fred (int *__restrict x);
22611 rm -f conftest.
$ac_objext
22612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22613 (eval $ac_compile) 2>conftest.er1
22615 grep -v '^ *+' conftest.er1
>conftest.err
22617 cat conftest.err
>&5
22618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619 (exit $ac_status); } &&
22620 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22622 (eval $ac_try) 2>&5
22624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625 (exit $ac_status); }; } &&
22626 { ac_try
='test -s conftest.$ac_objext'
22627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22628 (eval $ac_try) 2>&5
22630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631 (exit $ac_status); }; }; then
22632 emacs_cv_c_restrict
=__restrict
22634 echo "$as_me: failed program was:" >&5
22635 sed 's/^/| /' conftest.
$ac_ext >&5
22637 emacs_cv_c_restrict
=no
22639 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22641 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22643 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22644 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22645 case "$emacs_cv_c_restrict" in
22646 yes) emacs_restrict
=restrict
;;
22647 no
) emacs_restrict
="";;
22648 *) emacs_restrict
="$emacs_cv_c_restrict";;
22650 if test "$emacs_restrict" != __restrict
; then
22652 cat >>confdefs.h
<<_ACEOF
22653 #define __restrict $emacs_restrict
22658 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22659 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22660 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22661 echo $ECHO_N "(cached) $ECHO_C" >&6
22663 cat >conftest.
$ac_ext <<_ACEOF
22666 cat confdefs.h
>>conftest.
$ac_ext
22667 cat >>conftest.
$ac_ext <<_ACEOF
22668 /* end confdefs.h. */
22669 void fred (int x[__restrict]);
22678 rm -f conftest.
$ac_objext
22679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22680 (eval $ac_compile) 2>conftest.er1
22682 grep -v '^ *+' conftest.er1
>conftest.err
22684 cat conftest.err
>&5
22685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686 (exit $ac_status); } &&
22687 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22689 (eval $ac_try) 2>&5
22691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22692 (exit $ac_status); }; } &&
22693 { ac_try
='test -s conftest.$ac_objext'
22694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22695 (eval $ac_try) 2>&5
22697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22698 (exit $ac_status); }; }; then
22699 emacs_cv_c_restrict_arr
=yes
22701 echo "$as_me: failed program was:" >&5
22702 sed 's/^/| /' conftest.
$ac_ext >&5
22704 emacs_cv_c_restrict_arr
=no
22706 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22708 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22709 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22710 if test "$emacs_cv_c_restrict_arr" = yes; then
22712 cat >>confdefs.h
<<\_ACEOF
22713 #define __restrict_arr __restrict
22720 # Set up the CFLAGS for real compilation, so we can substitute it.
22721 CFLAGS
="$REAL_CFLAGS"
22722 CPPFLAGS
="$REAL_CPPFLAGS"
22724 #### Find out which version of Emacs this is.
22725 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22726 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22727 if test x
"${version}" = x
; then
22728 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22729 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22730 { (exit 1); exit 1; }; }
22733 ### Specify what sort of things we'll be editing into Makefile and config.h.
22734 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22770 cat >>confdefs.h
<<_ACEOF
22771 #define EMACS_CONFIGURATION "${canonical}"
22775 cat >>confdefs.h
<<_ACEOF
22776 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22780 cat >>confdefs.h
<<_ACEOF
22781 #define config_machfile "${machfile}"
22785 cat >>confdefs.h
<<_ACEOF
22786 #define config_opsysfile "${opsysfile}"
22790 cat >>confdefs.h
<<_ACEOF
22791 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22795 cat >>confdefs.h
<<_ACEOF
22796 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22800 cat >>confdefs.h
<<_ACEOF
22801 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22805 cat >>confdefs.h
<<_ACEOF
22806 #define UNEXEC_SRC ${UNEXEC_SRC}
22810 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22812 cat >>confdefs.h
<<\_ACEOF
22813 #define HAVE_X_WINDOWS 1
22817 if test "${USE_X_TOOLKIT}" != "none" ; then
22819 cat >>confdefs.h
<<\_ACEOF
22820 #define USE_X_TOOLKIT 1
22824 if test "${HAVE_X11}" = "yes" ; then
22826 cat >>confdefs.h
<<\_ACEOF
22831 if test "${HAVE_XFREE386}" = "yes" ; then
22833 cat >>confdefs.h
<<\_ACEOF
22834 #define HAVE_XFREE386 1
22838 if test "${HAVE_MENUS}" = "yes" ; then
22840 cat >>confdefs.h
<<\_ACEOF
22841 #define HAVE_MENUS 1
22845 if test "${GNU_MALLOC}" = "yes" ; then
22847 cat >>confdefs.h
<<\_ACEOF
22848 #define GNU_MALLOC 1
22852 if test "${REL_ALLOC}" = "yes" ; then
22854 cat >>confdefs.h
<<\_ACEOF
22855 #define REL_ALLOC 1
22864 #### Report on what we decided to do.
22865 #### Report GTK as a toolkit, even if it doesn't use Xt.
22866 #### It makes printing result more understandable as using GTK sets
22867 #### toolkit_scroll_bars to yes by default.
22868 if test "${HAVE_GTK}" = "yes"; then
22873 Configured for \`${canonical}'.
22875 Where should the build process find the source code? ${srcdir}
22876 What operating system and machine description files should Emacs use?
22877 \`${opsysfile}' and \`${machfile}'
22878 What compiler should emacs be built with? ${CC} ${CFLAGS}
22879 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22880 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22881 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22882 What window system should Emacs use? ${window_system}
22883 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22885 if test -n "${x_includes}"; then
22886 echo " Where do we find X Windows header files? ${x_includes}"
22888 echo " Where do we find X Windows header files? Standard dirs"
22890 if test -n "${x_libraries}"; then
22891 echo " Where do we find X Windows libraries? ${x_libraries}"
22893 echo " Where do we find X Windows libraries? Standard dirs"
22896 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22897 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22898 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22899 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22900 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22901 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22902 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22905 if test $USE_XASSERTS = yes; then
22906 echo " Compiling with asserts turned on."
22907 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
22913 # Remove any trailing slashes in these variables.
22914 test "${prefix}" != NONE
&&
22915 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22916 test "${exec_prefix}" != NONE
&&
22917 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22919 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22920 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22921 ## from Makefile.c can correctly provide the arg `-traditional' to the
22924 cat >conftest.
$ac_ext <<_ACEOF
22927 cat confdefs.h
>>conftest.
$ac_ext
22928 cat >>conftest.
$ac_ext <<_ACEOF
22929 /* end confdefs.h. */
22932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22933 $EGREP "yes..yes" >/dev
/null
2>&1; then
22934 CPP_NEED_TRADITIONAL
=no
22936 CPP_NEED_TRADITIONAL
=yes
22941 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"
22942 ac_config_commands
="$ac_config_commands default"
22943 cat >confcache
<<\_ACEOF
22944 # This file is a shell script that caches the results of configure
22945 # tests run on this system so they can be shared between configure
22946 # scripts and configure runs, see configure's option --config-cache.
22947 # It is not useful on other systems. If it contains results you don't
22948 # want to keep, you may remove or edit it.
22950 # config.status only pays attention to the cache file if you give it
22951 # the --recheck option to rerun configure.
22953 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22954 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22955 # following values.
22959 # The following way of writing the cache mishandles newlines in values,
22960 # but we know of no workaround that is simple, portable, and efficient.
22961 # So, don't put newlines in cache variables' values.
22962 # Ultrix sh set writes to stderr and can't be redirected directly,
22963 # and sets the high bit in the cache file unless we assign to the vars.
22966 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22968 # `set' does not quote correctly, so add quotes (double-quote
22969 # substitution turns \\\\ into \\, and sed turns \\ into \).
22972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22975 # `set' quotes correctly as required by POSIX, so do not add quotes.
22977 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22984 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22986 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22988 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
22989 if test -w $cache_file; then
22990 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22991 cat confcache
>$cache_file
22993 echo "not updating unwritable cache $cache_file"
22998 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22999 # Let make expand exec_prefix.
23000 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
23002 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23003 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23004 # trailing colons and then remove the whole line if VPATH becomes empty
23005 # (actually we leave an empty line to preserve line numbers).
23006 if test "x$srcdir" = x.
; then
23007 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23008 s/:*\$(srcdir):*/:/;
23009 s/:*\${srcdir}:*/:/;
23011 s/^\([^=]*=[ ]*\):*/\1/;
23017 DEFS
=-DHAVE_CONFIG_H
23021 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
23022 # 1. Remove the extension, and $U if already installed.
23023 ac_i
=`echo "$ac_i" |
23024 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23026 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
23027 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
23029 LIBOBJS
=$ac_libobjs
23031 LTLIBOBJS
=$ac_ltlibobjs
23035 : ${CONFIG_STATUS=./config.status}
23036 ac_clean_files_save
=$ac_clean_files
23037 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
23038 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23039 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23040 cat >$CONFIG_STATUS <<_ACEOF
23042 # Generated by $as_me.
23043 # Run this file to recreate the current configuration.
23044 # Compiler output produced by configure, useful for debugging
23045 # configure, is in config.log if it exists.
23048 ac_cs_recheck=false
23050 SHELL=\${CONFIG_SHELL-$SHELL}
23053 cat >>$CONFIG_STATUS <<\_ACEOF
23054 ## --------------------- ##
23055 ## M4sh Initialization. ##
23056 ## --------------------- ##
23058 # Be Bourne compatible
23059 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
23062 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23063 # is contrary to our usage. Disable this feature.
23064 alias -g '${1+"$@"}'='"$@"'
23065 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
23068 DUALCASE
=1; export DUALCASE
# for MKS sh
23070 # Support unset when possible.
23071 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23078 # Work around bugs in pre-3.0 UWIN ksh.
23079 $as_unset ENV MAIL MAILPATH
23086 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23087 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23088 LC_TELEPHONE LC_TIME
23090 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23091 eval $as_var=C
; export $as_var
23097 # Required to use basename.
23098 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23104 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
23105 as_basename
=basename
23111 # Name of the executable.
23112 as_me
=`$as_basename "$0" ||
23113 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23114 X"$0" : 'X\(//\)$' \| \
23115 X"$0" : 'X\(/\)$' \| \
23116 . : '\(.\)' 2>/dev/null ||
23118 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23119 /^X\/\(\/\/\)$/{ s//\1/; q; }
23120 /^X\/\(\/\).*/{ s//\1/; q; }
23124 # PATH needs CR, and LINENO needs CR and PATH.
23125 # Avoid depending upon Character Ranges.
23126 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
23127 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23128 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
23129 as_cr_digits
='0123456789'
23130 as_cr_alnum
=$as_cr_Letters$as_cr_digits
23132 # The user is always right.
23133 if test "${PATH_SEPARATOR+set}" != set; then
23134 echo "#! /bin/sh" >conf$$.sh
23135 echo "exit 0" >>conf$$.sh
23137 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23146 as_lineno_1
=$LINENO
23147 as_lineno_2
=$LINENO
23148 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
23149 test "x$as_lineno_1" != "x$as_lineno_2" &&
23150 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
23151 # Find who we are. Look in the path if we contain no path at all
23154 *[\\/]* ) as_myself
=$0 ;;
23155 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23156 for as_dir
in $PATH
23159 test -z "$as_dir" && as_dir
=.
23160 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23165 # We did not find ourselves, most probably we were run as `sh COMMAND'
23166 # in which case we are not to be found in the path.
23167 if test "x$as_myself" = x
; then
23170 if test ! -f "$as_myself"; then
23171 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23172 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23173 { (exit 1); exit 1; }; }
23175 case $CONFIG_SHELL in
23177 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23178 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
23181 test -z "$as_dir" && as_dir
=.
23182 for as_base
in sh bash ksh sh5
; do
23185 if ("$as_dir/$as_base" -c '
23186 as_lineno_1=$LINENO
23187 as_lineno_2=$LINENO
23188 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23189 test "x$as_lineno_1" != "x$as_lineno_2" &&
23190 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
23191 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
23192 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
23193 CONFIG_SHELL
=$as_dir/$as_base
23194 export CONFIG_SHELL
23195 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23203 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23204 # uniformly replaced by the line number. The first 'sed' inserts a
23205 # line-number line before each line; the second 'sed' does the real
23206 # work. The second script uses 'N' to pair each line-number line
23207 # with the numbered line, and appends trailing '-' during
23208 # substitution so that $LINENO is not a special case at line end.
23209 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23210 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23211 sed '=' <$as_myself |
23216 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23219 s,^['$as_cr_digits']*\n,,
23220 ' >$as_me.lineno
&&
23221 chmod +x
$as_me.lineno ||
23222 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23223 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23224 { (exit 1); exit 1; }; }
23226 # Don't try to exec as it changes $[0], causing all sort of problems
23227 # (the dirname of $[0] is not the place where we might find the
23228 # original and so on. Autoconf is especially sensible to this).
23230 # Exit status is that of the last command.
23235 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23236 *c
*,-n*) ECHO_N
= ECHO_C
='
23238 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
23239 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
23242 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23248 rm -f conf$$ conf$$.exe conf$$.
file
23250 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23251 # We could just check for DJGPP; but this test a) works b) is more generic
23252 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23253 if test -f conf$$.exe
; then
23254 # Don't use ln at all; we don't have any links
23259 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23264 rm -f conf$$ conf$$.exe conf$$.
file
23266 if mkdir
-p .
2>/dev
/null
; then
23269 test -d .
/-p && rmdir .
/-p
23273 as_executable_p
="test -f"
23275 # Sed expression to map a string onto a valid CPP name.
23276 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23278 # Sed expression to map a string onto a valid variable name.
23279 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23283 # We need space, tab and new line, in precisely that order.
23293 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23294 # report actual input values of CONFIG_FILES etc. instead of their
23295 # values after options handling. Logging --version etc. is OK.
23299 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23300 ## Running $as_me. ##
23305 This file was extended by $as_me, which was
23306 generated by GNU Autoconf 2.59. Invocation command line was
23308 CONFIG_FILES = $CONFIG_FILES
23309 CONFIG_HEADERS = $CONFIG_HEADERS
23310 CONFIG_LINKS = $CONFIG_LINKS
23311 CONFIG_COMMANDS = $CONFIG_COMMANDS
23315 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23319 # Files that config.status was made for.
23320 if test -n "$ac_config_files"; then
23321 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23324 if test -n "$ac_config_headers"; then
23325 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23328 if test -n "$ac_config_links"; then
23329 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23332 if test -n "$ac_config_commands"; then
23333 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23336 cat >>$CONFIG_STATUS <<\_ACEOF
23339 \`$as_me' instantiates files from templates according to the
23340 current configuration.
23342 Usage: $0 [OPTIONS] [FILE]...
23344 -h, --help print this help, then exit
23345 -V, --version print version number, then exit
23346 -q, --quiet do not print progress messages
23347 -d, --debug don't remove temporary files
23348 --recheck update $as_me by reconfiguring in the same conditions
23349 --file=FILE[:TEMPLATE]
23350 instantiate the configuration file FILE
23351 --header=FILE[:TEMPLATE]
23352 instantiate the configuration header FILE
23354 Configuration files:
23357 Configuration headers:
23360 Configuration commands:
23363 Report bugs to <bug-autoconf@gnu.org>."
23366 cat >>$CONFIG_STATUS <<_ACEOF
23369 configured by $0, generated by GNU Autoconf 2.59,
23370 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23372 Copyright (C) 2003 Free Software Foundation, Inc.
23373 This config.status script is free software; the Free Software Foundation
23374 gives unlimited permission to copy, distribute and modify it."
23379 cat >>$CONFIG_STATUS <<\_ACEOF
23380 # If no file are specified by the user, then we need to provide default
23381 # value. By we need to know if files were specified by the user.
23387 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
23388 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
23396 *) # This is not an option, so the user has probably given explicit
23399 ac_need_defaults
=false
;;
23403 # Handling of the options.
23405 cat >>$CONFIG_STATUS <<\_ACEOF
23406 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23408 --version |
--vers* |
-V )
23409 echo "$ac_cs_version"; exit 0 ;;
23411 # Conflict between --help and --header
23412 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23413 Try \`$0 --help' for more information." >&5
23414 echo "$as_me: error: ambiguous option: $1
23415 Try \`$0 --help' for more information." >&2;}
23416 { (exit 1); exit 1; }; };;
23417 --help |
--hel |
-h )
23418 echo "$ac_cs_usage"; exit 0 ;;
23419 --debug |
--d* |
-d )
23421 --file |
--fil |
--fi |
--f )
23423 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23424 ac_need_defaults
=false
;;
23425 --header |
--heade |
--head |
--hea )
23427 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23428 ac_need_defaults
=false
;;
23429 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23430 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23433 # This is an error.
23434 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23435 Try \`$0 --help' for more information." >&5
23436 echo "$as_me: error: unrecognized option: $1
23437 Try \`$0 --help' for more information." >&2;}
23438 { (exit 1); exit 1; }; } ;;
23440 *) ac_config_targets
="$ac_config_targets $1" ;;
23446 ac_configure_extra_args
=
23448 if $ac_cs_silent; then
23450 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23454 cat >>$CONFIG_STATUS <<_ACEOF
23455 if \$ac_cs_recheck; then
23456 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23457 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23462 cat >>$CONFIG_STATUS <<_ACEOF
23464 # INIT-COMMANDS section.
23467 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23473 cat >>$CONFIG_STATUS <<\_ACEOF
23474 for ac_config_target
in $ac_config_targets
23476 case "$ac_config_target" in
23477 # Handling of arguments.
23478 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23479 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23480 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23481 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23482 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23483 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23484 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23485 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23486 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23487 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23488 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23489 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23490 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23491 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23492 { (exit 1); exit 1; }; };;
23496 # If the user did not use the arguments to specify the items to instantiate,
23497 # then the envvar interface is used. Set only those that are not.
23498 # We use the long form for the default assignment because of an extremely
23499 # bizarre bug on SunOS 4.1.3.
23500 if $ac_need_defaults; then
23501 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23502 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23503 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23506 # Have a temporary directory for convenience. Make it in the build tree
23507 # simply because there is no reason to put it here, and in addition,
23508 # creating and moving files from /tmp can sometimes cause problems.
23509 # Create a temporary directory, and hook for its removal unless debugging.
23512 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23513 trap '{ (exit 1); exit 1; }' 1 2 13 15
23516 # Create a (secure) tmp directory for tmp files.
23519 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23520 test -n "$tmp" && test -d "$tmp"
23523 tmp
=.
/confstat$$
-$RANDOM
23524 (umask 077 && mkdir
$tmp)
23527 echo "$me: cannot create a temporary directory in ." >&2
23528 { (exit 1); exit 1; }
23533 cat >>$CONFIG_STATUS <<_ACEOF
23536 # CONFIG_FILES section.
23539 # No need to generate the scripts if there are no CONFIG_FILES.
23540 # This happens for instance when ./config.status config.h
23541 if test -n "\$CONFIG_FILES"; then
23542 # Protect against being on the right side of a sed subst in config.status.
23543 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23544 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23545 s,@SHELL@,$SHELL,;t t
23546 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23547 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23548 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23549 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23550 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23551 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23552 s,@exec_prefix@,$exec_prefix,;t t
23553 s,@prefix@,$prefix,;t t
23554 s,@program_transform_name@,$program_transform_name,;t t
23555 s,@bindir@,$bindir,;t t
23556 s,@sbindir@,$sbindir,;t t
23557 s,@libexecdir@,$libexecdir,;t t
23558 s,@datadir@,$datadir,;t t
23559 s,@sysconfdir@,$sysconfdir,;t t
23560 s,@sharedstatedir@,$sharedstatedir,;t t
23561 s,@localstatedir@,$localstatedir,;t t
23562 s,@libdir@,$libdir,;t t
23563 s,@includedir@,$includedir,;t t
23564 s,@oldincludedir@,$oldincludedir,;t t
23565 s,@infodir@,$infodir,;t t
23566 s,@mandir@,$mandir,;t t
23567 s,@build_alias@,$build_alias,;t t
23568 s,@host_alias@,$host_alias,;t t
23569 s,@target_alias@,$target_alias,;t t
23570 s,@DEFS@,$DEFS,;t t
23571 s,@ECHO_C@,$ECHO_C,;t t
23572 s,@ECHO_N@,$ECHO_N,;t t
23573 s,@ECHO_T@,$ECHO_T,;t t
23574 s,@LIBS@,$LIBS,;t t
23575 s,@MAINT@,$MAINT,;t t
23576 s,@build@,$build,;t t
23577 s,@build_cpu@,$build_cpu,;t t
23578 s,@build_vendor@,$build_vendor,;t t
23579 s,@build_os@,$build_os,;t t
23580 s,@host@,$host,;t t
23581 s,@host_cpu@,$host_cpu,;t t
23582 s,@host_vendor@,$host_vendor,;t t
23583 s,@host_os@,$host_os,;t t
23585 s,@CFLAGS@,$CFLAGS,;t t
23586 s,@LDFLAGS@,$LDFLAGS,;t t
23587 s,@CPPFLAGS@,$CPPFLAGS,;t t
23588 s,@ac_ct_CC@,$ac_ct_CC,;t t
23589 s,@EXEEXT@,$EXEEXT,;t t
23590 s,@OBJEXT@,$OBJEXT,;t t
23592 s,@EGREP@,$EGREP,;t t
23593 s,@LN_S@,$LN_S,;t t
23594 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23595 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23596 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23597 s,@RANLIB@,$RANLIB,;t t
23598 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23599 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23600 s,@GZIP_PROG@,$GZIP_PROG,;t t
23601 s,@LIBSOUND@,$LIBSOUND,;t t
23602 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23603 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
23604 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
23605 s,@CFLAGS_SOUND@,$CFLAGS_SOUND,;t t
23606 s,@SET_MAKE@,$SET_MAKE,;t t
23607 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23608 s,@GTK_LIBS@,$GTK_LIBS,;t t
23609 s,@ALLOCA@,$ALLOCA,;t t
23610 s,@liblockfile@,$liblockfile,;t t
23611 s,@LIBOBJS@,$LIBOBJS,;t t
23612 s,@NEED_SETGID@,$NEED_SETGID,;t t
23613 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23614 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23615 s,@GETOPT_H@,$GETOPT_H,;t t
23616 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23617 s,@version@,$version,;t t
23618 s,@configuration@,$configuration,;t t
23619 s,@canonical@,$canonical,;t t
23620 s,@srcdir@,$srcdir,;t t
23621 s,@lispdir@,$lispdir,;t t
23622 s,@locallisppath@,$locallisppath,;t t
23623 s,@lisppath@,$lisppath,;t t
23624 s,@x_default_search_path@,$x_default_search_path,;t t
23625 s,@etcdir@,$etcdir,;t t
23626 s,@archlibdir@,$archlibdir,;t t
23627 s,@docdir@,$docdir,;t t
23628 s,@bitmapdir@,$bitmapdir,;t t
23629 s,@gamedir@,$gamedir,;t t
23630 s,@gameuser@,$gameuser,;t t
23631 s,@c_switch_system@,$c_switch_system,;t t
23632 s,@c_switch_machine@,$c_switch_machine,;t t
23633 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23634 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23635 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23636 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23637 s,@machfile@,$machfile,;t t
23638 s,@opsysfile@,$opsysfile,;t t
23639 s,@carbon_appdir@,$carbon_appdir,;t t
23640 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23645 cat >>$CONFIG_STATUS <<\_ACEOF
23646 # Split the substitutions into bite-sized pieces for seds with
23647 # small command number limits, like on Digital OSF/1 and HP-UX.
23648 ac_max_sed_lines
=48
23649 ac_sed_frag
=1 # Number of current file.
23650 ac_beg
=1 # First line for current file.
23651 ac_end
=$ac_max_sed_lines # Line after last line for current file.
23654 while $ac_more_lines; do
23655 if test $ac_beg -gt 1; then
23656 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23658 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23660 if test ! -s $tmp/subs.frag
; then
23661 ac_more_lines
=false
23663 # The purpose of the label and of the branching condition is to
23664 # speed up the sed processing (if there are no `@' at all, there
23665 # is no need to browse any of the substitutions).
23666 # These are the two extra sed commands mentioned above.
23668 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
23669 if test -z "$ac_sed_cmds"; then
23670 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
23672 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23674 ac_sed_frag
=`expr $ac_sed_frag + 1`
23676 ac_end
=`expr $ac_end + $ac_max_sed_lines`
23679 if test -z "$ac_sed_cmds"; then
23682 fi # test -n "$CONFIG_FILES"
23685 cat >>$CONFIG_STATUS <<\_ACEOF
23686 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
23687 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23689 - |
*:- |
*:-:* ) # input from stdin
23691 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23692 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23693 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23694 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23695 * ) ac_file_in
=$ac_file.
in ;;
23698 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23699 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23700 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23701 X"$ac_file" : 'X\(//\)[^/]' \| \
23702 X"$ac_file" : 'X\(//\)$' \| \
23703 X"$ac_file" : 'X\(/\)' \| \
23704 . : '\(.\)' 2>/dev/null ||
23706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23707 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23708 /^X\(\/\/\)$/{ s//\1/; q; }
23709 /^X\(\/\).*/{ s//\1/; q; }
23711 { if $as_mkdir_p; then
23716 while test ! -d "$as_dir"; do
23717 as_dirs
="$as_dir $as_dirs"
23718 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23719 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23720 X"$as_dir" : 'X\(//\)[^/]' \| \
23721 X"$as_dir" : 'X\(//\)$' \| \
23722 X"$as_dir" : 'X\(/\)' \| \
23723 . : '\(.\)' 2>/dev/null ||
23725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23726 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23727 /^X\(\/\/\)$/{ s//\1/; q; }
23728 /^X\(\/\).*/{ s//\1/; q; }
23731 test ! -n "$as_dirs" || mkdir
$as_dirs
23732 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23733 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23734 { (exit 1); exit 1; }; }; }
23738 if test "$ac_dir" != .
; then
23739 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23740 # A "../" for each directory in $ac_dir_suffix.
23741 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23743 ac_dir_suffix
= ac_top_builddir
=
23747 .
) # No --srcdir option. We are building in place.
23749 if test -z "$ac_top_builddir"; then
23752 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23754 [\\/]* | ?
:[\\/]* ) # Absolute path.
23755 ac_srcdir
=$srcdir$ac_dir_suffix;
23756 ac_top_srcdir
=$srcdir ;;
23757 *) # Relative path.
23758 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23759 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23762 # Do not use `cd foo && pwd` to compute absolute paths, because
23763 # the directories may not exist.
23765 .
) ac_abs_builddir
="$ac_dir";;
23768 .
) ac_abs_builddir
=`pwd`;;
23769 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23770 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23773 case $ac_abs_builddir in
23774 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23776 case ${ac_top_builddir}.
in
23777 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23778 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23779 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23782 case $ac_abs_builddir in
23783 .
) ac_abs_srcdir
=$ac_srcdir;;
23786 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23787 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23788 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23791 case $ac_abs_builddir in
23792 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23794 case $ac_top_srcdir in
23795 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23796 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23797 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23803 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23804 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
23807 # Let's still pretend it is `configure' which instantiates (i.e., don't
23808 # use $as_me), people would be surprised to read:
23809 # /* config.h. Generated by config.status. */
23810 if test x
"$ac_file" = x-
; then
23813 configure_input
="$ac_file. "
23815 configure_input
=$configure_input"Generated from `echo $ac_file_in |
23816 sed 's,.*/,,'` by configure."
23818 # First look for the input files in the build tree, otherwise in the
23820 ac_file_inputs
=`IFS=:
23821 for f in $ac_file_in; do
23823 -) echo $tmp/stdin ;;
23825 # Absolute (can't be DOS-style, as IFS=:)
23826 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23827 echo "$as_me: error: cannot find input file: $f" >&2;}
23828 { (exit 1); exit 1; }; }
23831 if test -f "$f"; then
23834 elif test -f "$srcdir/$f"; then
23839 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23840 echo "$as_me: error: cannot find input file: $f" >&2;}
23841 { (exit 1); exit 1; }; }
23844 done` ||
{ (exit 1); exit 1; }
23846 if test x
"$ac_file" != x-
; then
23847 { echo "$as_me:$LINENO: creating $ac_file" >&5
23848 echo "$as_me: creating $ac_file" >&6;}
23852 cat >>$CONFIG_STATUS <<_ACEOF
23856 cat >>$CONFIG_STATUS <<\_ACEOF
23858 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23859 s
,@configure_input@
,$configure_input,;t t
23860 s
,@srcdir@
,$ac_srcdir,;t t
23861 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
23862 s
,@top_srcdir@
,$ac_top_srcdir,;t t
23863 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
23864 s
,@builddir@
,$ac_builddir,;t t
23865 s
,@abs_builddir@
,$ac_abs_builddir,;t t
23866 s
,@top_builddir@
,$ac_top_builddir,;t t
23867 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
23868 s
,@INSTALL@
,$ac_INSTALL,;t t
23869 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23871 if test x"$ac_file" != x-; then
23872 mv $tmp/out $ac_file
23880 cat >>$CONFIG_STATUS <<\_ACEOF
23883 # CONFIG_HEADER section.
23886 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
23887 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23889 # ac_d sets the value in "#define NAME VALUE" lines.
23890 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23891 ac_dB
='[ ].*$,\1#\2'
23894 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23895 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23896 ac_uB
='$,\1#\2define\3'
23900 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
23901 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23903 - |
*:- |
*:-:* ) # input from stdin
23905 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23906 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23907 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23908 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23909 * ) ac_file_in
=$ac_file.
in ;;
23912 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
23913 echo "$as_me: creating $ac_file" >&6;}
23915 # First look for the input files in the build tree, otherwise in the
23917 ac_file_inputs
=`IFS=:
23918 for f in $ac_file_in; do
23920 -) echo $tmp/stdin ;;
23922 # Absolute (can't be DOS-style, as IFS=:)
23923 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23924 echo "$as_me: error: cannot find input file: $f" >&2;}
23925 { (exit 1); exit 1; }; }
23926 # Do quote $f, to prevent DOS paths from being IFS'd.
23929 if test -f "$f"; then
23932 elif test -f "$srcdir/$f"; then
23937 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23938 echo "$as_me: error: cannot find input file: $f" >&2;}
23939 { (exit 1); exit 1; }; }
23942 done` ||
{ (exit 1); exit 1; }
23943 # Remove the trailing spaces.
23944 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23948 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23949 # `conftest.undefs', that substitutes the proper values into
23950 # config.h.in to produce config.h. The first handles `#define'
23951 # templates, and the second `#undef' templates.
23952 # And first: Protect against being on the right side of a sed subst in
23953 # config.status. Protect against being in an unquoted here document
23954 # in config.status.
23955 rm -f conftest.defines conftest.undefs
23956 # Using a here document instead of a string reduces the quoting nightmare.
23957 # Putting comments in sed scripts is not portable.
23959 # `end' is used to avoid that the second main sed command (meant for
23960 # 0-ary CPP macros) applies to n-ary macro definitions.
23961 # See the Autoconf documentation for `clear'.
23962 cat >confdef2sed.
sed <<\_ACEOF
23967 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23969 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23972 # If some macros were called several times there might be several times
23973 # the same #defines, which is useless. Nevertheless, we may not want to
23974 # sort them, since we want the *last* AC-DEFINE to be honored.
23975 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23976 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23977 rm -f confdef2sed.sed
23979 # This sed command replaces #undef with comments. This is necessary, for
23980 # example, in the case of _POSIX_SOURCE, which is predefined and required
23981 # on some systems where configure will not decide to define it.
23982 cat >>conftest.undefs <<\_ACEOF
23983 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23986 # Break up conftest.defines because some shells have a limit on the size
23987 # of here documents, and old seds have small limits too (100 cmds).
23988 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23989 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23990 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23991 echo ' :' >>$CONFIG_STATUS
23992 rm -f conftest.tail
23993 while grep . conftest.defines >/dev/null
23995 # Write a limited-size here document to $tmp/defines.sed.
23996 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23997 # Speed up: don't consider the non `#define' lines.
23998 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23999 # Work around the forget-to-reset-the-flag bug.
24000 echo 't clr' >>$CONFIG_STATUS
24001 echo ': clr' >>$CONFIG_STATUS
24002 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
24004 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24006 mv $tmp/out $tmp/in
24008 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
24009 rm -f conftest.defines
24010 mv conftest.
tail conftest.defines
24012 rm -f conftest.defines
24013 echo ' fi # grep' >>$CONFIG_STATUS
24014 echo >>$CONFIG_STATUS
24016 # Break up conftest.undefs because some shells have a limit on the size
24017 # of here documents, and old seds have small limits too (100 cmds).
24018 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24019 rm -f conftest.
tail
24020 while grep . conftest.undefs
>/dev
/null
24022 # Write a limited-size here document to $tmp/undefs.sed.
24023 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24024 # Speed up: don't consider the non
`#undef'
24025 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24026 # Work around the forget-to-reset-the-flag bug.
24027 echo 't clr' >>$CONFIG_STATUS
24028 echo ': clr' >>$CONFIG_STATUS
24029 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24031 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24033 mv $tmp/out $tmp/in
24035 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24036 rm -f conftest.undefs
24037 mv conftest.tail conftest.undefs
24039 rm -f conftest.undefs
24041 cat >>$CONFIG_STATUS <<\_ACEOF
24042 # Let's still pretend it is `configure
' which instantiates (i.e., don't
24043 # use $as_me), people would be surprised to read:
24044 # /* config.h. Generated by config.status. */
24045 if test x
"$ac_file" = x-
; then
24046 echo "/* Generated by configure. */" >$tmp/config.h
24048 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24050 cat $tmp/in >>$tmp/config.h
24052 if test x
"$ac_file" != x-
; then
24053 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
24054 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24055 echo "$as_me: $ac_file is unchanged" >&6;}
24057 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
24058 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24059 X"$ac_file" : 'X\(//\)[^/]' \| \
24060 X"$ac_file" : 'X\(//\)$' \| \
24061 X"$ac_file" : 'X\(/\)' \| \
24062 . : '\(.\)' 2>/dev/null ||
24064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24065 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24066 /^X\(\/\/\)$/{ s//\1/; q; }
24067 /^X\(\/\).*/{ s//\1/; q; }
24069 { if $as_mkdir_p; then
24074 while test ! -d "$as_dir"; do
24075 as_dirs
="$as_dir $as_dirs"
24076 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24077 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24078 X"$as_dir" : 'X\(//\)[^/]' \| \
24079 X"$as_dir" : 'X\(//\)$' \| \
24080 X"$as_dir" : 'X\(/\)' \| \
24081 . : '\(.\)' 2>/dev/null ||
24083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24084 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24085 /^X\(\/\/\)$/{ s//\1/; q; }
24086 /^X\(\/\).*/{ s//\1/; q; }
24089 test ! -n "$as_dirs" || mkdir
$as_dirs
24090 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24091 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24092 { (exit 1); exit 1; }; }; }
24095 mv $tmp/config.h
$ac_file
24099 rm -f $tmp/config.h
24103 cat >>$CONFIG_STATUS <<\_ACEOF
24106 # CONFIG_COMMANDS section.
24108 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
24109 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
24110 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24111 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
24112 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24113 X"$ac_dest" : 'X\(//\)[^/]' \| \
24114 X"$ac_dest" : 'X\(//\)$' \| \
24115 X"$ac_dest" : 'X\(/\)' \| \
24116 . : '\(.\)' 2>/dev/null ||
24118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24119 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24120 /^X\(\/\/\)$/{ s//\1/; q; }
24121 /^X\(\/\).*/{ s//\1/; q; }
24123 { if $as_mkdir_p; then
24128 while test ! -d "$as_dir"; do
24129 as_dirs
="$as_dir $as_dirs"
24130 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24131 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24132 X"$as_dir" : 'X\(//\)[^/]' \| \
24133 X"$as_dir" : 'X\(//\)$' \| \
24134 X"$as_dir" : 'X\(/\)' \| \
24135 . : '\(.\)' 2>/dev/null ||
24137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24138 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24139 /^X\(\/\/\)$/{ s//\1/; q; }
24140 /^X\(\/\).*/{ s//\1/; q; }
24143 test ! -n "$as_dirs" || mkdir
$as_dirs
24144 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24145 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24146 { (exit 1); exit 1; }; }; }
24150 if test "$ac_dir" != .
; then
24151 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24152 # A "../" for each directory in $ac_dir_suffix.
24153 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24155 ac_dir_suffix
= ac_top_builddir
=
24159 .
) # No --srcdir option. We are building in place.
24161 if test -z "$ac_top_builddir"; then
24164 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
24166 [\\/]* | ?
:[\\/]* ) # Absolute path.
24167 ac_srcdir
=$srcdir$ac_dir_suffix;
24168 ac_top_srcdir
=$srcdir ;;
24169 *) # Relative path.
24170 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
24171 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
24174 # Do not use `cd foo && pwd` to compute absolute paths, because
24175 # the directories may not exist.
24177 .
) ac_abs_builddir
="$ac_dir";;
24180 .
) ac_abs_builddir
=`pwd`;;
24181 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
24182 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
24185 case $ac_abs_builddir in
24186 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24188 case ${ac_top_builddir}.
in
24189 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
24190 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24191 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
24194 case $ac_abs_builddir in
24195 .
) ac_abs_srcdir
=$ac_srcdir;;
24198 .
) ac_abs_srcdir
=$ac_abs_builddir;;
24199 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
24200 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
24203 case $ac_abs_builddir in
24204 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
24206 case $ac_top_srcdir in
24207 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
24208 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
24209 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
24214 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24215 echo "$as_me: executing $ac_dest commands" >&6;}
24219 ### Make the necessary directories, if they don't exist.
24220 for dir
in etc lisp
; do
24221 test -d ${dir} || mkdir
${dir}
24224 # Build src/Makefile from ${srcdir}/src/Makefile.c
24225 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24226 # This must be done after src/config.h is built, since we rely on that file.
24228 # Now get this: Some word that is part of the ${srcdir} directory name
24229 # or the ${configuration} value might, just might, happen to be an
24230 # identifier like `sun4' or `i386' or something, and be predefined by
24231 # the C preprocessor to some helpful value like 1, or maybe the empty
24232 # string. Needless to say consequent macro substitutions are less
24233 # than conducive to the makefile finding the correct directory.
24234 undefs
="`echo $top_srcdir $configuration $canonical |
24235 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24236 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24239 echo creating src
/epaths.h
24240 ${MAKE-make} epaths-force
24242 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24243 # `..' to `. .' unless invoked with -traditional
24245 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24246 CPPFLAGS
="$CPPFLAGS -traditional"
24249 echo creating lib-src
/Makefile
24251 rm -f junk.c junk1.c junk2.c
24252 sed -e '/start of cpp stuff/q' \
24253 < Makefile.c
> junk1.c
24254 sed -e '1,/start of cpp stuff/d'\
24255 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24256 < Makefile.c
> junk.c
24257 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24258 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24259 cat junk1.c junk2.c
> Makefile.new
24260 rm -f junk.c junk1.c junk2.c
24261 chmod 444 Makefile.new
24262 mv -f Makefile.new Makefile
24265 echo creating src
/Makefile
24267 rm -f junk.c junk1.c junk2.c
24268 sed -e '/start of cpp stuff/q' \
24269 < Makefile.c
> junk1.c
24270 sed -e '1,/start of cpp stuff/d'\
24271 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24272 < Makefile.c
> junk.c
24273 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24274 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24275 cat junk1.c junk2.c
> Makefile.new
24276 rm -f junk.c junk1.c junk2.c
24277 chmod 444 Makefile.new
24278 mv -f Makefile.new Makefile
24281 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24282 echo creating src
/.gdbinit
24283 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24286 # This is how we know whether to re-run configure in certain cases.
24287 touch src
/config.stamp
24294 cat >>$CONFIG_STATUS <<\_ACEOF
24296 { (exit 0); exit 0; }
24298 chmod +x
$CONFIG_STATUS
24299 ac_clean_files
=$ac_clean_files_save
24302 # configure is writing to config.log, and then calls config.status.
24303 # config.status does its own redirection, appending to config.log.
24304 # Unfortunately, on DOS this fails, as config.log is still kept open
24305 # by configure, so config.status won't be able to write to it; its
24306 # output is simply discarded. So we exec the FD to /dev/null,
24307 # effectively closing config.log, so it can be properly (re)opened and
24308 # appended to by config.status. When coming back to configure, we
24309 # need to make the FD available again.
24310 if test "$no_create" != yes; then
24312 ac_config_status_args
=
24313 test "$silent" = yes &&
24314 ac_config_status_args
="$ac_config_status_args --quiet"
24316 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24318 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24319 # would make configure fail if this is the last instruction.
24320 $ac_cs_success ||
{ (exit 1); exit 1; }