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 m68k-
*-openbsd*) machine
=hp9000s300
;;
1761 mipsel-
*-openbsd*) machine
=pmax
;;
1762 ns32k-
*-openbsd*) machine
=ns32000
;;
1763 sparc-
*-openbsd*) machine
=sparc
;;
1764 vax-
*-openbsd*) machine
=vax
;;
1771 case "${canonical}" in
1772 i
[3456]86-*-lynxos*) machine
=intel386
;;
1773 powerpc-
*-lynxos*) machine
=powerpc
;;
1778 arm-acorn-riscix1.1
* )
1779 machine
=acorn opsys
=riscix1-1
1781 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1782 ## This name is riscix12 instead of riscix1.2
1783 ## to avoid a file name conflict on MSDOS.
1784 machine
=acorn opsys
=riscix12
1790 case "${canonical}" in
1791 i
[345]86-*-bsdi*) machine
=intel386
;;
1792 sparc-
*-bsdi*) machine
=sparc
;;
1793 powerpc-
*-bsdi*) machine
=macppc
;;
1795 case "${canonical}" in
1796 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1797 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1798 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1799 *-*-bsdi3* ) opsys
=bsdos3
;;
1800 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1805 ## Strictly speaking, we need the version of the alliant operating
1806 ## system to choose the right machine file, but currently the
1807 ## configuration name doesn't tell us enough to choose the right
1808 ## one; we need to give alliants their own operating system name to
1809 ## do this right. When someone cares, they can help us.
1811 machine
=alliant4 opsys
=bsd4-2
1814 machine
=alliant-2800 opsys
=bsd4-3
1817 ## Alpha (DEC) machines.
1819 machine
=alpha opsys
=osf1
1820 # This is needed to find X11R6.1 libraries for certain tests.
1821 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1822 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1823 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1824 # due to non-traditional preprocessing with the current compiler
1825 # defaults. OSF 4 can also have that compiler version, and there
1826 # seems always to have been a usable /usr/bin/cpp.
1827 NON_GNU_CPP
=/usr
/bin
/cpp
1828 case "${canonical}" in
1829 alpha
*-dec-osf[5-9]*)
1834 alpha
*-*-linux-gnu* )
1835 machine
=alpha opsys
=gnu-linux
1839 machine
=arm opsys
=gnu-linux
1844 machine
=altos opsys
=usg5-2
1849 machine
=amdahl opsys
=usg5-2-2
1852 ## Apollo, Domain/OS
1854 machine
=apollo opsys
=bsd4-3
1857 ## AT&T 3b2, 3b5, 3b15, 3b20
1859 machine
=att3b opsys
=usg5-2-2
1862 ## AT&T 3b1 - The Mighty Unix PC!
1864 machine
=7300 opsys
=usg5-2-2
1869 machine
=ibmrs6000 opsys
=aix3-2
1874 machine
=dpx2 opsys
=usg5-3
1879 machine
=sps7 opsys
=usg5-2
1882 ## CCI 5/32, 6/32 -- see "Tahoe".
1885 ## I don't know what configuration name to use for this; config.sub
1886 ## doesn't seem to know anything about it. Hey, Celerity users, get
1887 ## in touch with us!
1888 celerity-celerity-bsd
* )
1889 machine
=celerity opsys
=bsd4-2
1893 ## What operating systems does this chip run that Emacs has been
1897 ## We'll use the catch-all code at the bottom to guess the
1898 ## operating system.
1902 mips-compaq-nonstopux
* )
1903 machine
=nonstopux opsys
=nonstopux
1907 *-convex-bsd* |
*-convex-convexos* )
1908 machine
=convex opsys
=bsd4-3
1909 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1910 NON_GNU_CPP
="cc -E -P"
1914 i
[3456]86-cubix-sysv* )
1915 machine
=intel386 opsys
=usg5-3
1919 cydra
*-cydrome-sysv* )
1920 machine
=cydra5 opsys
=usg5-3
1923 ## Data General AViiON Machines
1924 ## DG changed naming conventions with the release of 5.4.4.10, they
1925 ## dropped the initial 5.4 but left the intervening R. Because of the
1926 ## R this shouldn't conflict with older versions of the OS (which I
1927 ## think were named like dgux4.*). In addition, DG new AViiONs series
1928 ## uses either Motorola M88k or Intel Pentium CPUs.
1929 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1930 machine
=aviion opsys
=dgux4
1932 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1933 ## This name is dgux5-4-3 instead of dgux5-4r3
1934 ## to avoid a file name conflict on MSDOS.
1935 machine
=aviion opsys
=dgux5-4-3
1937 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1938 machine
=aviion opsys
=dgux5-4r2
1941 machine
=aviion opsys
=dgux
1944 ## Data General AViiON Intel (x86) Machines
1945 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1946 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1947 i
[345]86-dg-dguxR4* )
1948 machine
=aviion-intel opsys
=dgux4
1952 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1953 machine
=pmax opsys
=bsd4-2
1955 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1956 machine
=pmax opsys
=bsd4-3
1959 machine
=pmax opsys
=ultrix4-3
1962 machine
=pmax opsys
=osf1
1964 mips-dec-mach_bsd4.3
* )
1965 machine
=pmax opsys
=mach-bsd4-3
1968 ## Motorola Delta machines
1969 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1970 machine
=delta opsys
=usg5-3
1971 if test -z "`type gnucc | grep 'not found'`"
1973 if test -s /etc
/167config
1974 then CC
="gnucc -m68040"
1975 else CC
="gnucc -m68881"
1978 if test -z "`type gcc | grep 'not found'`"
1984 m88k-motorola-sysv4
* )
1985 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1986 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1987 # I hope there are not other 4.0 versions for this machine
1988 # which really need usg5-4 instead.
1989 machine
=delta88k opsys
=usg5-4-2
1991 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1992 machine
=delta88k opsys
=usg5-3
1997 machine
=dual opsys
=usg5-2
1999 m68
*-dual-uniplus* )
2000 machine
=dual opsys
=unipl5-2
2005 machine
=elxsi opsys
=usg5-2
2010 machine
=ns16000 opsys
=umax
2013 ## The GEC 63 - apparently, this port isn't really finished yet.
2014 # I'm sure we finished off the last of the machines, though. -- fx
2016 ## Gould Power Node and NP1
2018 machine
=gould opsys
=bsd4-2
2021 machine
=gould opsys
=bsd4-3
2024 machine
=gould-np1 opsys
=bsd4-3
2027 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2028 ## as far as Emacs is concerned).
2030 # Build needs to be different on 7.0 and later releases
2031 case "`uname -r`" in
2032 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2033 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2035 NON_GNU_CPP
="/lib/cpp"
2037 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2039 machine
=nh3000 opsys
=cxux
2041 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2042 powerpc-harris-powerunix
)
2043 machine
=nh6000 opsys
=powerunix
2044 NON_GNU_CPP
="cc -Xo -E -P"
2046 ## SR2001/SR2201 running HI-UX/MPP
2047 hppa1.1
-hitachi-hiuxmpp* )
2048 machine
=sr2k opsys
=hiuxmpp
2050 hppa1.1
-hitachi-hiuxwe2* )
2051 machine
=sr2k opsys
=hiuxwe2
2054 xps
*-honeywell-sysv* )
2055 machine
=xps100 opsys
=usg5-2
2058 ## HP 9000 series 200 or 300
2060 machine
=hp9000s300 opsys
=bsd4-3
2062 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2064 case "`uname -r`" in
2065 ## Someone's system reports A.B8.05 for this.
2066 ## I wonder what other possibilities there are.
2067 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2068 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2069 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2070 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2071 *) machine
=hp9000s300 opsys
=hpux
;;
2075 ## HP 9000 series 700 and 800, running HP/UX
2077 machine
=hp800 opsys
=hpux
2080 machine
=hp800 opsys
=hpux8
2082 hppa
*-hp-hpux9shr* )
2083 machine
=hp800 opsys
=hpux9shr
2086 machine
=hp800 opsys
=hpux9
2088 hppa
*-hp-hpux10.2
* )
2089 machine
=hp800 opsys
=hpux10-20
2092 machine
=hp800 opsys
=hpux10
2094 hppa
*-hp-hpux1[1-9]* )
2095 machine
=hp800 opsys
=hpux11
2096 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2099 hppa
*-*-linux-gnu* )
2100 machine
=hp800 opsys
=gnu-linux
2103 ## HP 9000 series 700 and 800, running HP/UX
2105 ## Cross-compilation? Nah!
2106 case "`uname -r`" in
2107 ## Someone's system reports A.B8.05 for this.
2108 ## I wonder what other possibilities there are.
2109 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2110 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2111 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2112 *) machine
=hp800 opsys
=hpux10
;;
2116 machine
=hp800 opsys
=nextstep
2121 machine
=orion opsys
=bsd4-2
2123 clipper-orion-bsd
* )
2124 machine
=orion105 opsys
=bsd4-2
2128 i
[3456]86-ibm-aix1.1
* )
2129 machine
=ibmps2-aix opsys
=usg5-2-2
2131 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2132 machine
=ibmps2-aix opsys
=usg5-3
2135 machine
=ibm370aix opsys
=usg5-3
2138 machine
=ibms390 opsys
=gnu-linux
2140 s390x-
*-linux-gnu* )
2141 machine
=ibms390x opsys
=gnu-linux
2143 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2144 machine
=ibmrs6000 opsys
=aix3-1
2146 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2147 machine
=ibmrs6000 opsys
=aix3-2-5
2149 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2150 machine
=ibmrs6000 opsys
=aix4-1
2152 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2153 machine
=ibmrs6000 opsys
=aix4-2
2155 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2156 machine
=ibmrs6000 opsys
=aix4-2
2158 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2159 machine
=ibmrs6000 opsys
=aix4
2161 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2162 machine
=ibmrs6000 opsys
=aix4-1
2164 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2165 machine
=ibmrs6000 opsys
=aix3-2
2168 machine
=ibmrt opsys
=bsd4-3
2171 machine
=ibmrt opsys
=bsd4-2
2174 machine
=ibmrt opsys
=bsd4-3
2177 machine
=ibmrt opsys
=bsd4-2
2180 machine
=ibmrt opsys
=bsd4-3
2183 machine
=ibmrt opsys
=bsd4-3
2186 machine
=ibmrt-aix opsys
=usg5-2-2
2189 ## Integrated Solutions `Optimum V'
2191 machine
=isi-ov opsys
=bsd4-2
2194 machine
=isi-ov opsys
=bsd4-3
2197 ## Intel 386 machines where we do care about the manufacturer
2198 i
[3456]86-intsys-sysv* )
2199 machine
=is386 opsys
=usg5-2-2
2203 i
[3456]86-prime-sysv* )
2204 machine
=i386 opsys
=usg5-3
2207 ## Sequent Symmetry running Dynix
2208 i
[3456]86-sequent-bsd* )
2209 machine
=symmetry opsys
=bsd4-3
2212 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2213 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2214 machine
=sequent-ptx opsys
=ptx4
2215 NON_GNU_CPP
=/lib
/cpp
2218 ## Sequent Symmetry running DYNIX/ptx
2219 ## Use the old cpp rather than the newer ANSI one.
2220 i
[3456]86-sequent-ptx* )
2221 machine
=sequent-ptx opsys
=ptx
2222 NON_GNU_CPP
="/lib/cpp"
2225 ## ncr machine running svr4.3.
2226 i
[3456]86-ncr-sysv4.3
)
2227 machine
=ncr386 opsys
=usg5-4-3
2230 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2231 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2232 i
[3456]86-ncr-sysv* )
2233 machine
=ncr386 opsys
=usg5-4-2
2236 ## Intel Paragon OSF/1
2238 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2243 machine
=i860 opsys
=usg5-4
2244 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2245 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2248 ## Macintosh PowerPC
2249 powerpc
*-*-linux-gnu* )
2250 machine
=macppc opsys
=gnu-linux
2253 ## Masscomp machines
2254 m68
*-masscomp-rtu* )
2255 machine
=masscomp opsys
=rtu
2258 ## Megatest machines
2259 m68
*-megatest-bsd* )
2260 machine
=mega68 opsys
=bsd4-2
2263 ## Workstations sold by MIPS
2264 ## This is not necessarily all workstations using the MIPS processor -
2265 ## Irises are produced by SGI, and DECstations by DEC.
2267 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2268 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2269 ## it gives for choosing between the alternatives seems to be "Use
2270 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2271 ## the BSD world." I'll assume that these are instructions for
2272 ## handling two odd situations, and that every other situation
2273 ## should use mips.h and usg5-2-2, they being listed first.
2276 ## Fall through to the general code at the bottom to decide on the OS.
2278 mips-mips-riscos4
* )
2279 machine
=mips4 opsys
=bsd4-3
2280 NON_GNU_CC
="cc -systype bsd43"
2281 NON_GNU_CPP
="cc -systype bsd43 -E"
2283 mips-mips-riscos5
* )
2284 machine
=mips4 opsys
=riscos5
2285 NON_GNU_CC
="cc -systype bsd43"
2286 NON_GNU_CPP
="cc -systype bsd43 -E"
2289 machine
=mips opsys
=bsd4-3
2292 machine
=mips opsys
=usg5-2-2
2296 m68
*-next-* | m68k-
*-nextstep* )
2297 machine
=m68k opsys
=nextstep
2300 ## The complete machine from National Semiconductor
2302 machine
=ns32000 opsys
=usg5-2
2306 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2307 machine
=tower32 opsys
=usg5-2-2
2309 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2310 machine
=tower32v3 opsys
=usg5-3
2315 machine
=ews4800 opsys
=ux4800
2318 ## Nixdorf Targon 31
2319 m68
*-nixdorf-sysv* )
2320 machine
=targon31 opsys
=usg5-2-2
2325 machine
=nu opsys
=usg5-2
2330 machine
=plexus opsys
=usg5-2
2334 ## I don't really have any idea what sort of processor the Pyramid has,
2335 ## so I'm assuming it is its own architecture.
2336 pyramid-pyramid-bsd
* )
2337 machine
=pyramid opsys
=bsd4-2
2341 ns32k-sequent-bsd4.2
* )
2342 machine
=sequent opsys
=bsd4-2
2344 ns32k-sequent-bsd4.3
* )
2345 machine
=sequent opsys
=bsd4-3
2349 mips-siemens-sysv
* | mips-sni-sysv
*)
2350 machine
=mips-siemens opsys
=usg5-4
2351 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2352 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2355 ## Silicon Graphics machines
2356 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2358 machine
=irist opsys
=iris3-5
2360 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2361 machine
=irist opsys
=iris3-6
2365 machine
=iris4d opsys
=irix3-3
2368 machine
=iris4d opsys
=irix4-0
2371 machine
=iris4d opsys
=irix6-5
2372 # Without defining _LANGUAGE_C, things get masked out in the headers
2373 # so that, for instance, grepping for `free' in stdlib.h fails and
2374 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2375 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2376 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2379 machine
=iris4d opsys
=irix6-0
2380 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2381 # but presumably it does no harm.
2382 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2383 # -32 probably isn't necessary in later v.6s -- anyone know which?
2384 NON_GCC_TEST_OPTIONS
=-32
2386 mips-sgi-irix5.
[01]* )
2387 machine
=iris4d opsys
=irix5-0
2389 mips-sgi-irix5
* | mips-sgi-irix
* )
2390 machine
=iris4d opsys
=irix5-2
2395 machine
=news opsys
=bsd4-2
2398 machine
=news opsys
=bsd4-3
2400 m68
*-sony-newsos3* | m68
*-sony-news3*)
2401 machine
=news opsys
=bsd4-3
2403 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2404 machine
=news-risc opsys
=bsd4-3
2406 mips-sony-newsos6
* )
2407 machine
=news-r6 opsys
=newsos6
2410 machine
=news-risc opsys
=newsos5
2415 machine
=stride opsys
=usg5-2
2419 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2420 machine
=sparc opsys
=gnu-linux
2423 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2424 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2425 | rs6000-
*-solaris2*)
2426 case "${canonical}" in
2427 m68
*-sunos1* ) machine
=sun1
;;
2428 m68
*-sunos2* ) machine
=sun2
;;
2429 m68
* ) machine
=sun3
;;
2430 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2431 i
[3456]86-*-* ) machine
=intel386
;;
2432 powerpcle
* ) machine
=powerpcle
;;
2433 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2434 sparc
* ) machine
=sparc
;;
2437 case "${canonical}" in
2438 ## The Sun386 didn't get past 4.0.
2439 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2440 *-sunos4.0
* ) opsys
=sunos4-0
;;
2441 *-sunos4.1.
[3-9]*noshare
)
2442 ## This name is sunos413 instead of sunos4-1-3
2443 ## to avoid a file name conflict on MSDOS.
2445 NON_GNU_CPP
=/usr
/lib
/cpp
2446 NON_GCC_TEST_OPTIONS
=-Bstatic
2447 GCC_TEST_OPTIONS
=-static
2449 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2451 NON_GNU_CPP
=/usr
/lib
/cpp
2453 *-sunos4* |
*-sunos )
2455 NON_GCC_TEST_OPTIONS
=-Bstatic
2456 GCC_TEST_OPTIONS
=-static
2458 *-sunos5.3
* |
*-solaris2.3
* )
2460 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2462 *-sunos5.4
* |
*-solaris2.4
* )
2464 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2467 *-sunos5.5
* |
*-solaris2.5
* )
2469 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2472 *-sunos5.6
* |
*-solaris2.6
* )
2474 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2477 *-sunos5* |
*-solaris* )
2479 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2483 ## Watch out for a compiler that we know will not work.
2484 case "${canonical}" in
2485 *-solaris* |
*-sunos5* )
2486 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2487 ## /usr/ucb/cc doesn't work;
2488 ## we should find some other compiler that does work.
2496 machine
=sparc opsys
=nextstep
2500 m68
*-tadpole-sysv* )
2501 machine
=tad68k opsys
=usg5-3
2505 tahoe-tahoe-bsd4.2
* )
2506 machine
=tahoe opsys
=bsd4-2
2508 tahoe-tahoe-bsd4.3
* )
2509 machine
=tahoe opsys
=bsd4-3
2512 ## Tandem Integrity S2
2514 machine
=tandem-s2 opsys
=usg5-3
2518 m88k-tektronix-sysv3
* )
2519 machine
=tekxd88 opsys
=usg5-3
2522 ## Tektronix 16000 box (6130?)
2523 ns16k-tektronix-bsd
* )
2524 machine
=ns16000 opsys
=bsd4-2
2527 ## src/m/tek4300.h hints that this is a m68k machine.
2528 m68
*-tektronix-bsd* )
2529 machine
=tek4300 opsys
=bsd4-3
2533 ## We seem to have lost the machine-description file titan.h!
2535 machine
=titan opsys
=usg5-3
2538 ## Ustation E30 (SS5E)
2539 m68
*-unisys-uniplus* )
2540 machine
=ustation opsystem
=unipl5-2
2546 case "${canonical}" in
2547 *-bsd4.1
* ) opsys
=bsd4-1
;;
2548 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2549 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2550 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2551 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2552 *-vms* ) opsys
=vms
;;
2558 ns16k-whitechapel-
* )
2560 ## We don't know what sort of OS runs on these; we'll let the
2561 ## operating system guessing code below try.
2566 machine
=wicat opsys
=usg5-2
2571 machine
=ia64 opsys
=gnu-linux
2574 ## Intel 386 machines where we don't care about the manufacturer
2577 case "${canonical}" in
2578 *-cygwin ) opsys
=cygwin
;;
2579 *-darwin* ) opsys
=darwin
2580 CPP
="${CC-cc} -E -no-cpp-precomp"
2582 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2583 *-isc2.2
* ) opsys
=isc2-2
;;
2584 *-isc4.0
* ) opsys
=isc4-0
;;
2585 *-isc4.
* ) opsys
=isc4-1
2586 GCC_TEST_OPTIONS
=-posix
2587 NON_GCC_TEST_OPTIONS
=-Xp
2589 *-isc* ) opsys
=isc3-0
;;
2590 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2591 *-esix* ) opsys
=esix
;;
2592 *-xenix* ) opsys
=xenix
;;
2593 *-linux-gnu* ) opsys
=gnu-linux
;;
2594 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2595 *-sco3.2v5
* ) opsys
=sco5
2596 NON_GNU_CPP
=/lib
/cpp
2597 # Prevent -belf from being passed to $CPP.
2598 # /lib/cpp does not accept it.
2599 OVERRIDE_CPPFLAGS
=" "
2601 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2602 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2603 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2604 *-386bsd* ) opsys
=386bsd
;;
2605 *-nextstep* ) opsys
=nextstep
;;
2606 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2610 ## m68k Linux-based GNU system
2612 machine
=m68k opsys
=gnu-linux
2615 ## Mips Linux-based GNU system
2616 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2617 machine
=mips opsys
=gnu-linux
2621 sparc-fujitsu-sysv4
* )
2622 machine
=sparc opsys
=uxpds
2623 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2628 f301-fujitsu-uxpv4.1
)
2629 machine
=f301 opsys
=uxpv
2632 ## Darwin / Mac OS X
2633 powerpc-apple-darwin
* )
2634 machine
=powermac opsys
=darwin
2635 # Define CPP as follows to make autoconf work correctly.
2636 CPP
="${CC-cc} -E -no-cpp-precomp"
2637 # Use fink packages if available.
2638 if test -d /sw
/include
&& test -d /sw
/lib
; then
2639 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2640 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2641 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2645 ## AMD x86-64 Linux-based GNU system
2646 x86_64-
*-linux-gnu* )
2647 machine
=amdx86-64 opsys
=gnu-linux
2655 ### If the code above didn't choose an operating system, just choose
2656 ### an operating system based on the configuration name. You really
2657 ### only want to use this when you have no idea what the right
2658 ### operating system is; if you know what operating systems a machine
2659 ### runs, it's cleaner to make it explicit in the case statement
2661 if test x
"${opsys}" = x
; then
2662 case "${canonical}" in
2663 *-gnu* ) opsys
=gnu
;;
2664 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2665 *-bsd4.2
) opsys
=bsd4-2
;;
2666 *-bsd4.3
) opsys
=bsd4-3
;;
2667 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2668 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2669 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2670 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2671 *-sysv4.2uw
* ) opsys
=unixware
;;
2672 *-sysv5uw* ) opsys
=unixware
;;
2673 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2674 *-sysv4.1
* |
*-sysvr4.1
* )
2675 NON_GNU_CPP
=/usr
/lib
/cpp
2677 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2678 if [ x
$NON_GNU_CPP = x
]; then
2679 if [ -f /usr
/ccs
/lib
/cpp
]; then
2680 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2682 NON_GNU_CPP
=/lib
/cpp
2686 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2695 if test $unported = yes; then
2696 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2697 Check \`etc/MACHINES' for recognized configuration names." >&5
2698 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2699 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2700 { (exit 1); exit 1; }; }
2703 machfile
="m/${machine}.h"
2704 opsysfile
="s/${opsys}.h"
2707 #### Choose a compiler.
2708 test -n "$CC" && cc_specified
=yes
2710 # Save the value of CFLAGS that the user specified.
2711 SPECIFIED_CFLAGS
="$CFLAGS"
2714 "yes" ) CC
="gcc" GCC
=yes ;;
2715 "no" ) : ${CC=cc} ;;
2719 ac_cpp
='$CPP $CPPFLAGS'
2720 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2723 if test -n "$ac_tool_prefix"; then
2724 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2725 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2726 echo "$as_me:$LINENO: checking for $ac_word" >&5
2727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2728 if test "${ac_cv_prog_CC+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2731 if test -n "$CC"; then
2732 ac_cv_prog_CC
="$CC" # Let the user override the test.
2734 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2738 test -z "$as_dir" && as_dir
=.
2739 for ac_exec_ext
in '' $ac_executable_extensions; do
2740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2741 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 if test -n "$CC"; then
2752 echo "$as_me:$LINENO: result: $CC" >&5
2753 echo "${ECHO_T}$CC" >&6
2755 echo "$as_me:$LINENO: result: no" >&5
2756 echo "${ECHO_T}no" >&6
2760 if test -z "$ac_cv_prog_CC"; then
2762 # Extract the first word of "gcc", so it can be a program name with args.
2763 set dummy gcc
; ac_word
=$2
2764 echo "$as_me:$LINENO: checking for $ac_word" >&5
2765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2766 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2767 echo $ECHO_N "(cached) $ECHO_C" >&6
2769 if test -n "$ac_ct_CC"; then
2770 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2772 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2776 test -z "$as_dir" && as_dir
=.
2777 for ac_exec_ext
in '' $ac_executable_extensions; do
2778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2779 ac_cv_prog_ac_ct_CC
="gcc"
2780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2788 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2789 if test -n "$ac_ct_CC"; then
2790 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2791 echo "${ECHO_T}$ac_ct_CC" >&6
2793 echo "$as_me:$LINENO: result: no" >&5
2794 echo "${ECHO_T}no" >&6
2802 if test -z "$CC"; then
2803 if test -n "$ac_tool_prefix"; then
2804 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2805 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2806 echo "$as_me:$LINENO: checking for $ac_word" >&5
2807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2808 if test "${ac_cv_prog_CC+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2811 if test -n "$CC"; then
2812 ac_cv_prog_CC
="$CC" # Let the user override the test.
2814 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2818 test -z "$as_dir" && as_dir
=.
2819 for ac_exec_ext
in '' $ac_executable_extensions; do
2820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 if test -n "$CC"; then
2832 echo "$as_me:$LINENO: result: $CC" >&5
2833 echo "${ECHO_T}$CC" >&6
2835 echo "$as_me:$LINENO: result: no" >&5
2836 echo "${ECHO_T}no" >&6
2840 if test -z "$ac_cv_prog_CC"; then
2842 # Extract the first word of "cc", so it can be a program name with args.
2843 set dummy cc
; ac_word
=$2
2844 echo "$as_me:$LINENO: checking for $ac_word" >&5
2845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2846 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2849 if test -n "$ac_ct_CC"; then
2850 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2852 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2856 test -z "$as_dir" && as_dir
=.
2857 for ac_exec_ext
in '' $ac_executable_extensions; do
2858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859 ac_cv_prog_ac_ct_CC
="cc"
2860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2869 if test -n "$ac_ct_CC"; then
2870 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2871 echo "${ECHO_T}$ac_ct_CC" >&6
2873 echo "$as_me:$LINENO: result: no" >&5
2874 echo "${ECHO_T}no" >&6
2883 if test -z "$CC"; then
2884 # Extract the first word of "cc", so it can be a program name with args.
2885 set dummy cc
; ac_word
=$2
2886 echo "$as_me:$LINENO: checking for $ac_word" >&5
2887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2888 if test "${ac_cv_prog_CC+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 if test -n "$CC"; then
2892 ac_cv_prog_CC
="$CC" # Let the user override the test.
2895 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2899 test -z "$as_dir" && as_dir
=.
2900 for ac_exec_ext
in '' $ac_executable_extensions; do
2901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2902 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2903 ac_prog_rejected
=yes
2907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2913 if test $ac_prog_rejected = yes; then
2914 # We found a bogon in the path, so make sure we never use it.
2915 set dummy
$ac_cv_prog_CC
2917 if test $# != 0; then
2918 # We chose a different compiler from the bogus one.
2919 # However, it has the same basename, so the bogon will be chosen
2920 # first if we set CC to just the basename; use the full file name.
2922 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2928 if test -n "$CC"; then
2929 echo "$as_me:$LINENO: result: $CC" >&5
2930 echo "${ECHO_T}$CC" >&6
2932 echo "$as_me:$LINENO: result: no" >&5
2933 echo "${ECHO_T}no" >&6
2937 if test -z "$CC"; then
2938 if test -n "$ac_tool_prefix"; then
2941 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2942 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2943 echo "$as_me:$LINENO: checking for $ac_word" >&5
2944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2945 if test "${ac_cv_prog_CC+set}" = set; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 if test -n "$CC"; then
2949 ac_cv_prog_CC
="$CC" # Let the user override the test.
2951 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2955 test -z "$as_dir" && as_dir
=.
2956 for ac_exec_ext
in '' $ac_executable_extensions; do
2957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2958 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 if test -n "$CC"; then
2969 echo "$as_me:$LINENO: result: $CC" >&5
2970 echo "${ECHO_T}$CC" >&6
2972 echo "$as_me:$LINENO: result: no" >&5
2973 echo "${ECHO_T}no" >&6
2976 test -n "$CC" && break
2979 if test -z "$CC"; then
2983 # Extract the first word of "$ac_prog", so it can be a program name with args.
2984 set dummy
$ac_prog; ac_word
=$2
2985 echo "$as_me:$LINENO: checking for $ac_word" >&5
2986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2987 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 if test -n "$ac_ct_CC"; then
2991 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2993 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2997 test -z "$as_dir" && as_dir
=.
2998 for ac_exec_ext
in '' $ac_executable_extensions; do
2999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3000 ac_cv_prog_ac_ct_CC
="$ac_prog"
3001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3009 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3010 if test -n "$ac_ct_CC"; then
3011 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3012 echo "${ECHO_T}$ac_ct_CC" >&6
3014 echo "$as_me:$LINENO: result: no" >&5
3015 echo "${ECHO_T}no" >&6
3018 test -n "$ac_ct_CC" && break
3027 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3028 See \`config.log' for more details." >&5
3029 echo "$as_me: error: no acceptable C compiler found in \$PATH
3030 See \`config.log' for more details." >&2;}
3031 { (exit 1); exit 1; }; }
3033 # Provide some information about the compiler.
3034 echo "$as_me:$LINENO:" \
3035 "checking for C compiler version" >&5
3036 ac_compiler
=`set X $ac_compile; echo $2`
3037 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3038 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }
3042 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3043 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }
3047 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3048 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }
3053 cat >conftest.
$ac_ext <<_ACEOF
3056 cat confdefs.h
>>conftest.
$ac_ext
3057 cat >>conftest.
$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3068 ac_clean_files_save
=$ac_clean_files
3069 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3070 # Try to create an executable without -o first, disregard a.out.
3071 # It will help us diagnose broken compilers, and finding out an intuition
3073 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3074 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3075 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3076 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3077 (eval $ac_link_default) 2>&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; then
3081 # Find the output, starting from the most likely. This scheme is
3082 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3085 # Be careful to initialize this variable, since it used to be cached.
3086 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3088 # b.out is created by i960 compilers.
3089 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3091 test -f "$ac_file" ||
continue
3093 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3096 # This is the source file.
3099 # We found the default executable, but exeext='' is most
3103 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3104 # FIXME: I believe we export ac_cv_exeext for Libtool,
3105 # but it would be cool to find out if it's true. Does anybody
3106 # maintain Libtool? --akim.
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.
$ac_ext >&5
3117 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3118 See \`config.log' for more details." >&5
3119 echo "$as_me: error: C compiler cannot create executables
3120 See \`config.log' for more details." >&2;}
3121 { (exit 77); exit 77; }; }
3124 ac_exeext
=$ac_cv_exeext
3125 echo "$as_me:$LINENO: result: $ac_file" >&5
3126 echo "${ECHO_T}$ac_file" >&6
3128 # Check the compiler produces executables we can run. If not, either
3129 # the compiler is broken, or we cross compile.
3130 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3131 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3132 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3133 # If not cross compiling, check that we can run a simple program.
3134 if test "$cross_compiling" != yes; then
3135 if { ac_try
='./$ac_file'
3136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; }; then
3143 if test "$cross_compiling" = maybe
; then
3146 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3147 If you meant to cross compile, use \`--host'.
3148 See \`config.log' for more details." >&5
3149 echo "$as_me: error: cannot run C compiled programs.
3150 If you meant to cross compile, use \`--host'.
3151 See \`config.log' for more details." >&2;}
3152 { (exit 1); exit 1; }; }
3156 echo "$as_me:$LINENO: result: yes" >&5
3157 echo "${ECHO_T}yes" >&6
3159 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3160 ac_clean_files
=$ac_clean_files_save
3161 # Check the compiler produces executables we can run. If not, either
3162 # the compiler is broken, or we cross compile.
3163 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3164 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3165 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3166 echo "${ECHO_T}$cross_compiling" >&6
3168 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3169 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3171 (eval $ac_link) 2>&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; then
3175 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3176 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3177 # work properly (i.e., refer to `conftest.exe'), while it won't with
3179 for ac_file
in conftest.exe conftest conftest.
*; do
3180 test -f "$ac_file" ||
continue
3182 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3183 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3190 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3191 See \`config.log' for more details." >&5
3192 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3193 See \`config.log' for more details." >&2;}
3194 { (exit 1); exit 1; }; }
3197 rm -f conftest
$ac_cv_exeext
3198 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3199 echo "${ECHO_T}$ac_cv_exeext" >&6
3201 rm -f conftest.
$ac_ext
3202 EXEEXT
=$ac_cv_exeext
3204 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3205 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3206 if test "${ac_cv_objext+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 cat >conftest.
$ac_ext <<_ACEOF
3212 cat confdefs.h
>>conftest.
$ac_ext
3213 cat >>conftest.
$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3224 rm -f conftest.o conftest.obj
3225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3226 (eval $ac_compile) 2>&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); }; then
3230 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3232 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3233 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3238 echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.
$ac_ext >&5
3241 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3242 See \`config.log' for more details." >&5
3243 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3244 See \`config.log' for more details." >&2;}
3245 { (exit 1); exit 1; }; }
3248 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3250 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3251 echo "${ECHO_T}$ac_cv_objext" >&6
3252 OBJEXT
=$ac_cv_objext
3254 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3255 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3256 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3259 cat >conftest.
$ac_ext <<_ACEOF
3262 cat confdefs.h
>>conftest.
$ac_ext
3263 cat >>conftest.
$ac_ext <<_ACEOF
3264 /* end confdefs.h. */
3277 rm -f conftest.
$ac_objext
3278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3279 (eval $ac_compile) 2>conftest.er1
3281 grep -v '^ *+' conftest.er1
>conftest.err
3283 cat conftest.err
>&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } &&
3286 { ac_try
='test -z "$ac_c_werror_flag"
3287 || test ! -s conftest.err'
3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; } &&
3293 { ac_try
='test -s conftest.$ac_objext'
3294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }; }; then
3301 echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.
$ac_ext >&5
3306 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3307 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3310 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3311 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3312 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3313 ac_test_CFLAGS
=${CFLAGS+set}
3314 ac_save_CFLAGS
=$CFLAGS
3316 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3317 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3318 if test "${ac_cv_prog_cc_g+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 cat >conftest.
$ac_ext <<_ACEOF
3324 cat confdefs.h
>>conftest.
$ac_ext
3325 cat >>conftest.
$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3336 rm -f conftest.
$ac_objext
3337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3338 (eval $ac_compile) 2>conftest.er1
3340 grep -v '^ *+' conftest.er1
>conftest.err
3342 cat conftest.err
>&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); } &&
3345 { ac_try
='test -z "$ac_c_werror_flag"
3346 || test ! -s conftest.err'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; } &&
3352 { ac_try
='test -s conftest.$ac_objext'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; }; then
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.
$ac_ext >&5
3365 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3367 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3368 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3369 if test "$ac_test_CFLAGS" = set; then
3370 CFLAGS
=$ac_save_CFLAGS
3371 elif test $ac_cv_prog_cc_g = yes; then
3372 if test "$GCC" = yes; then
3378 if test "$GCC" = yes; then
3384 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3385 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3386 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3387 echo $ECHO_N "(cached) $ECHO_C" >&6
3389 ac_cv_prog_cc_stdc
=no
3391 cat >conftest.
$ac_ext <<_ACEOF
3394 cat confdefs.h
>>conftest.
$ac_ext
3395 cat >>conftest.
$ac_ext <<_ACEOF
3396 /* end confdefs.h. */
3399 #include <sys/types.h>
3400 #include <sys/stat.h>
3401 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3402 struct buf { int x; };
3403 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3404 static char *e (p, i)
3410 static char *f (char * (*g) (char **, int), char **p, ...)
3415 s = g (p, va_arg (v,int));
3420 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3421 function prototypes and stuff, but not '\xHH' hex character constants.
3422 These don't provoke an error unfortunately, instead are silently treated
3423 as 'x'. The following induces an error, until -std1 is added to get
3424 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3425 array size at least. It's necessary to write '\x00'==0 to get something
3426 that's true only with -std1. */
3427 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3429 int test (int i, double x);
3430 struct s1 {int (*f) (int a);};
3431 struct s2 {int (*f) (double a);};
3432 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3438 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3443 # Don't try gcc -ansi; that turns off useful extensions and
3444 # breaks some systems' header files.
3445 # AIX -qlanglvl=ansi
3446 # Ultrix and OSF/1 -std1
3447 # HP-UX 10.20 and later -Ae
3448 # HP-UX older versions -Aa -D_HPUX_SOURCE
3449 # SVR4 -Xc -D__EXTENSIONS__
3450 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3452 CC
="$ac_save_CC $ac_arg"
3453 rm -f conftest.
$ac_objext
3454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3455 (eval $ac_compile) 2>conftest.er1
3457 grep -v '^ *+' conftest.er1
>conftest.err
3459 cat conftest.err
>&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } &&
3462 { ac_try
='test -z "$ac_c_werror_flag"
3463 || test ! -s conftest.err'
3464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); }; } &&
3469 { ac_try
='test -s conftest.$ac_objext'
3470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); }; }; then
3475 ac_cv_prog_cc_stdc
=$ac_arg
3478 echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.
$ac_ext >&5
3482 rm -f conftest.err conftest.
$ac_objext
3484 rm -f conftest.
$ac_ext conftest.
$ac_objext
3489 case "x$ac_cv_prog_cc_stdc" in
3491 echo "$as_me:$LINENO: result: none needed" >&5
3492 echo "${ECHO_T}none needed" >&6 ;;
3494 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3495 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3496 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3499 # Some people use a C++ compiler to compile C. Since we use `exit',
3500 # in C++ we need to declare it. In case someone uses the same compiler
3501 # for both compiling C and C++ we need to have the C++ compiler decide
3502 # the declaration of exit, since it's the most demanding environment.
3503 cat >conftest.
$ac_ext <<_ACEOF
3508 rm -f conftest.
$ac_objext
3509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3510 (eval $ac_compile) 2>conftest.er1
3512 grep -v '^ *+' conftest.er1
>conftest.err
3514 cat conftest.err
>&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } &&
3517 { ac_try
='test -z "$ac_c_werror_flag"
3518 || test ! -s conftest.err'
3519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); }; } &&
3524 { ac_try
='test -s conftest.$ac_objext'
3525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; }; then
3530 for ac_declaration
in \
3532 'extern "C" void std::exit (int) throw (); using std::exit;' \
3533 'extern "C" void std::exit (int); using std::exit;' \
3534 'extern "C" void exit (int) throw ();' \
3535 'extern "C" void exit (int);' \
3538 cat >conftest.
$ac_ext <<_ACEOF
3541 cat confdefs.h
>>conftest.
$ac_ext
3542 cat >>conftest.
$ac_ext <<_ACEOF
3543 /* end confdefs.h. */
3554 rm -f conftest.
$ac_objext
3555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3556 (eval $ac_compile) 2>conftest.er1
3558 grep -v '^ *+' conftest.er1
>conftest.err
3560 cat conftest.err
>&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } &&
3563 { ac_try
='test -z "$ac_c_werror_flag"
3564 || test ! -s conftest.err'
3565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); }; } &&
3570 { ac_try
='test -s conftest.$ac_objext'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; }; then
3578 echo "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.
$ac_ext >&5
3583 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3584 cat >conftest.
$ac_ext <<_ACEOF
3587 cat confdefs.h
>>conftest.
$ac_ext
3588 cat >>conftest.
$ac_ext <<_ACEOF
3589 /* end confdefs.h. */
3599 rm -f conftest.
$ac_objext
3600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3601 (eval $ac_compile) 2>conftest.er1
3603 grep -v '^ *+' conftest.er1
>conftest.err
3605 cat conftest.err
>&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } &&
3608 { ac_try
='test -z "$ac_c_werror_flag"
3609 || test ! -s conftest.err'
3610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }; } &&
3615 { ac_try
='test -s conftest.$ac_objext'
3616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); }; }; then
3623 echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.
$ac_ext >&5
3627 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3630 if test -n "$ac_declaration"; then
3631 echo '#ifdef __cplusplus' >>confdefs.h
3632 echo $ac_declaration >>confdefs.h
3633 echo '#endif' >>confdefs.h
3637 echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.
$ac_ext >&5
3641 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3643 ac_cpp
='$CPP $CPPFLAGS'
3644 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3645 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3646 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3649 # On Suns, sometimes $CPP names a directory.
3650 if test -n "$CPP" && test -d "$CPP"; then
3654 #### Some systems specify a CPP to use unless we are using GCC.
3655 #### Now that we know whether we are using GCC, we can decide whether
3656 #### to use that one.
3657 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3662 #### Some systems specify a CC to use unless we are using GCC.
3663 #### Now that we know whether we are using GCC, we can decide whether
3664 #### to use that one.
3665 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3666 test x
$cc_specified != xyes
3671 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3673 CC
="$CC $GCC_TEST_OPTIONS"
3676 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3678 CC
="$CC $NON_GCC_TEST_OPTIONS"
3683 ac_cpp
='$CPP $CPPFLAGS'
3684 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3685 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3686 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3687 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3688 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3689 # On Suns, sometimes $CPP names a directory.
3690 if test -n "$CPP" && test -d "$CPP"; then
3693 if test -z "$CPP"; then
3694 if test "${ac_cv_prog_CPP+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3697 # Double quotes because CPP needs to be expanded
3698 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3701 for ac_c_preproc_warn_flag
in '' yes
3703 # Use a header file that comes with gcc, so configuring glibc
3704 # with a fresh cross-compiler works.
3705 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3706 # <limits.h> exists even on freestanding compilers.
3707 # On the NeXT, cc -E runs the code through the compiler's parser,
3708 # not just through cpp. "Syntax error" is here to catch this case.
3709 cat >conftest.
$ac_ext <<_ACEOF
3712 cat confdefs.h
>>conftest.
$ac_ext
3713 cat >>conftest.
$ac_ext <<_ACEOF
3714 /* end confdefs.h. */
3716 # include <limits.h>
3718 # include <assert.h>
3722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3723 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3725 grep -v '^ *+' conftest.er1
>conftest.err
3727 cat conftest.err
>&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } >/dev
/null
; then
3730 if test -s conftest.err
; then
3731 ac_cpp_err
=$ac_c_preproc_warn_flag
3732 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3739 if test -z "$ac_cpp_err"; then
3742 echo "$as_me: failed program was:" >&5
3743 sed 's/^/| /' conftest.
$ac_ext >&5
3745 # Broken: fails on valid input.
3748 rm -f conftest.err conftest.
$ac_ext
3750 # OK, works on sane cases. Now check whether non-existent headers
3751 # can be detected and how.
3752 cat >conftest.
$ac_ext <<_ACEOF
3755 cat confdefs.h
>>conftest.
$ac_ext
3756 cat >>conftest.
$ac_ext <<_ACEOF
3757 /* end confdefs.h. */
3758 #include <ac_nonexistent.h>
3760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3761 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3763 grep -v '^ *+' conftest.er1
>conftest.err
3765 cat conftest.err
>&5
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); } >/dev
/null
; then
3768 if test -s conftest.err
; then
3769 ac_cpp_err
=$ac_c_preproc_warn_flag
3770 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3777 if test -z "$ac_cpp_err"; then
3778 # Broken: success on invalid input.
3781 echo "$as_me: failed program was:" >&5
3782 sed 's/^/| /' conftest.
$ac_ext >&5
3784 # Passes both tests.
3788 rm -f conftest.err conftest.
$ac_ext
3791 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3792 rm -f conftest.err conftest.
$ac_ext
3793 if $ac_preproc_ok; then
3805 echo "$as_me:$LINENO: result: $CPP" >&5
3806 echo "${ECHO_T}$CPP" >&6
3808 for ac_c_preproc_warn_flag
in '' yes
3810 # Use a header file that comes with gcc, so configuring glibc
3811 # with a fresh cross-compiler works.
3812 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3813 # <limits.h> exists even on freestanding compilers.
3814 # On the NeXT, cc -E runs the code through the compiler's parser,
3815 # not just through cpp. "Syntax error" is here to catch this case.
3816 cat >conftest.
$ac_ext <<_ACEOF
3819 cat confdefs.h
>>conftest.
$ac_ext
3820 cat >>conftest.
$ac_ext <<_ACEOF
3821 /* end confdefs.h. */
3823 # include <limits.h>
3825 # include <assert.h>
3829 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3830 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3832 grep -v '^ *+' conftest.er1
>conftest.err
3834 cat conftest.err
>&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } >/dev
/null
; then
3837 if test -s conftest.err
; then
3838 ac_cpp_err
=$ac_c_preproc_warn_flag
3839 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3846 if test -z "$ac_cpp_err"; then
3849 echo "$as_me: failed program was:" >&5
3850 sed 's/^/| /' conftest.
$ac_ext >&5
3852 # Broken: fails on valid input.
3855 rm -f conftest.err conftest.
$ac_ext
3857 # OK, works on sane cases. Now check whether non-existent headers
3858 # can be detected and how.
3859 cat >conftest.
$ac_ext <<_ACEOF
3862 cat confdefs.h
>>conftest.
$ac_ext
3863 cat >>conftest.
$ac_ext <<_ACEOF
3864 /* end confdefs.h. */
3865 #include <ac_nonexistent.h>
3867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3868 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3870 grep -v '^ *+' conftest.er1
>conftest.err
3872 cat conftest.err
>&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); } >/dev
/null
; then
3875 if test -s conftest.err
; then
3876 ac_cpp_err
=$ac_c_preproc_warn_flag
3877 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3884 if test -z "$ac_cpp_err"; then
3885 # Broken: success on invalid input.
3888 echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.
$ac_ext >&5
3891 # Passes both tests.
3895 rm -f conftest.err conftest.
$ac_ext
3898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3899 rm -f conftest.err conftest.
$ac_ext
3900 if $ac_preproc_ok; then
3903 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3904 See \`config.log' for more details." >&5
3905 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3906 See \`config.log' for more details." >&2;}
3907 { (exit 1); exit 1; }; }
3911 ac_cpp
='$CPP $CPPFLAGS'
3912 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3913 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3914 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3917 echo "$as_me:$LINENO: checking for egrep" >&5
3918 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3919 if test "${ac_cv_prog_egrep+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3922 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3923 then ac_cv_prog_egrep
='grep -E'
3924 else ac_cv_prog_egrep
='egrep'
3927 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3928 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3929 EGREP
=$ac_cv_prog_egrep
3933 echo "$as_me:$LINENO: checking for AIX" >&5
3934 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3935 cat >conftest.
$ac_ext <<_ACEOF
3938 cat confdefs.h
>>conftest.
$ac_ext
3939 cat >>conftest.
$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3947 $EGREP "yes" >/dev
/null
2>&1; then
3948 echo "$as_me:$LINENO: result: yes" >&5
3949 echo "${ECHO_T}yes" >&6
3950 cat >>confdefs.h
<<\_ACEOF
3951 #define _ALL_SOURCE 1
3955 echo "$as_me:$LINENO: result: no" >&5
3956 echo "${ECHO_T}no" >&6
3962 cat >>confdefs.h
<<\_ACEOF
3963 #define _GNU_SOURCE 1
3968 ### Use -Wno-pointer-sign if the compiler supports it
3969 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3970 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3971 SAVE_CFLAGS
="$CFLAGS"
3972 CFLAGS
="$CFLAGS -Wno-pointer-sign"
3973 cat >conftest.
$ac_ext <<_ACEOF
3976 cat confdefs.h
>>conftest.
$ac_ext
3977 cat >>conftest.
$ac_ext <<_ACEOF
3978 /* end confdefs.h. */
3988 rm -f conftest.
$ac_objext
3989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3990 (eval $ac_compile) 2>conftest.er1
3992 grep -v '^ *+' conftest.er1
>conftest.err
3994 cat conftest.err
>&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); } &&
3997 { ac_try
='test -z "$ac_c_werror_flag"
3998 || test ! -s conftest.err'
3999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); }; } &&
4004 { ac_try
='test -s conftest.$ac_objext'
4005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); }; }; then
4012 echo "$as_me: failed program was:" >&5
4013 sed 's/^/| /' conftest.
$ac_ext >&5
4017 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4018 if test $has_option = yes; then
4019 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4021 echo "$as_me:$LINENO: result: $has_option" >&5
4022 echo "${ECHO_T}$has_option" >&6
4023 CFLAGS
="$SAVE_CFLAGS"
4027 #### Some other nice autoconf tests.
4029 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4030 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4032 if test "$LN_S" = "ln -s"; then
4033 echo "$as_me:$LINENO: result: yes" >&5
4034 echo "${ECHO_T}yes" >&6
4036 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4037 echo "${ECHO_T}no, using $LN_S" >&6
4041 ac_cpp
='$CPP $CPPFLAGS'
4042 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4043 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4044 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4045 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4046 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4047 # On Suns, sometimes $CPP names a directory.
4048 if test -n "$CPP" && test -d "$CPP"; then
4051 if test -z "$CPP"; then
4052 if test "${ac_cv_prog_CPP+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4055 # Double quotes because CPP needs to be expanded
4056 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4059 for ac_c_preproc_warn_flag
in '' yes
4061 # Use a header file that comes with gcc, so configuring glibc
4062 # with a fresh cross-compiler works.
4063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4064 # <limits.h> exists even on freestanding compilers.
4065 # On the NeXT, cc -E runs the code through the compiler's parser,
4066 # not just through cpp. "Syntax error" is here to catch this case.
4067 cat >conftest.
$ac_ext <<_ACEOF
4070 cat confdefs.h
>>conftest.
$ac_ext
4071 cat >>conftest.
$ac_ext <<_ACEOF
4072 /* end confdefs.h. */
4074 # include <limits.h>
4076 # include <assert.h>
4080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4081 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4083 grep -v '^ *+' conftest.er1
>conftest.err
4085 cat conftest.err
>&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); } >/dev
/null
; then
4088 if test -s conftest.err
; then
4089 ac_cpp_err
=$ac_c_preproc_warn_flag
4090 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4097 if test -z "$ac_cpp_err"; then
4100 echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.
$ac_ext >&5
4103 # Broken: fails on valid input.
4106 rm -f conftest.err conftest.
$ac_ext
4108 # OK, works on sane cases. Now check whether non-existent headers
4109 # can be detected and how.
4110 cat >conftest.
$ac_ext <<_ACEOF
4113 cat confdefs.h
>>conftest.
$ac_ext
4114 cat >>conftest.
$ac_ext <<_ACEOF
4115 /* end confdefs.h. */
4116 #include <ac_nonexistent.h>
4118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4119 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4121 grep -v '^ *+' conftest.er1
>conftest.err
4123 cat conftest.err
>&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } >/dev
/null
; then
4126 if test -s conftest.err
; then
4127 ac_cpp_err
=$ac_c_preproc_warn_flag
4128 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4135 if test -z "$ac_cpp_err"; then
4136 # Broken: success on invalid input.
4139 echo "$as_me: failed program was:" >&5
4140 sed 's/^/| /' conftest.
$ac_ext >&5
4142 # Passes both tests.
4146 rm -f conftest.err conftest.
$ac_ext
4149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4150 rm -f conftest.err conftest.
$ac_ext
4151 if $ac_preproc_ok; then
4163 echo "$as_me:$LINENO: result: $CPP" >&5
4164 echo "${ECHO_T}$CPP" >&6
4166 for ac_c_preproc_warn_flag
in '' yes
4168 # Use a header file that comes with gcc, so configuring glibc
4169 # with a fresh cross-compiler works.
4170 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4171 # <limits.h> exists even on freestanding compilers.
4172 # On the NeXT, cc -E runs the code through the compiler's parser,
4173 # not just through cpp. "Syntax error" is here to catch this case.
4174 cat >conftest.
$ac_ext <<_ACEOF
4177 cat confdefs.h
>>conftest.
$ac_ext
4178 cat >>conftest.
$ac_ext <<_ACEOF
4179 /* end confdefs.h. */
4181 # include <limits.h>
4183 # include <assert.h>
4187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4188 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4190 grep -v '^ *+' conftest.er1
>conftest.err
4192 cat conftest.err
>&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); } >/dev
/null
; then
4195 if test -s conftest.err
; then
4196 ac_cpp_err
=$ac_c_preproc_warn_flag
4197 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4204 if test -z "$ac_cpp_err"; then
4207 echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.
$ac_ext >&5
4210 # Broken: fails on valid input.
4213 rm -f conftest.err conftest.
$ac_ext
4215 # OK, works on sane cases. Now check whether non-existent headers
4216 # can be detected and how.
4217 cat >conftest.
$ac_ext <<_ACEOF
4220 cat confdefs.h
>>conftest.
$ac_ext
4221 cat >>conftest.
$ac_ext <<_ACEOF
4222 /* end confdefs.h. */
4223 #include <ac_nonexistent.h>
4225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4226 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4228 grep -v '^ *+' conftest.er1
>conftest.err
4230 cat conftest.err
>&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); } >/dev
/null
; then
4233 if test -s conftest.err
; then
4234 ac_cpp_err
=$ac_c_preproc_warn_flag
4235 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4242 if test -z "$ac_cpp_err"; then
4243 # Broken: success on invalid input.
4246 echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.
$ac_ext >&5
4249 # Passes both tests.
4253 rm -f conftest.err conftest.
$ac_ext
4256 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4257 rm -f conftest.err conftest.
$ac_ext
4258 if $ac_preproc_ok; then
4261 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4262 See \`config.log' for more details." >&5
4263 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4264 See \`config.log' for more details." >&2;}
4265 { (exit 1); exit 1; }; }
4269 ac_cpp
='$CPP $CPPFLAGS'
4270 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4271 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4272 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4274 # Find a good install program. We prefer a C program (faster),
4275 # so one script is as good as another. But avoid the broken or
4276 # incompatible versions:
4277 # SysV /etc/install, /usr/sbin/install
4278 # SunOS /usr/etc/install
4279 # IRIX /sbin/install
4281 # AmigaOS /C/install, which installs bootblocks on floppy discs
4282 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4283 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4284 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4285 # OS/2's system install, which has a completely different semantic
4286 # ./install, which can be erroneously created by make from ./install.sh.
4287 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4288 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4289 if test -z "$INSTALL"; then
4290 if test "${ac_cv_path_install+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4297 test -z "$as_dir" && as_dir
=.
4298 # Account for people who put trailing slashes in PATH elements.
4300 .
/ | .
// |
/cC
/* | \
4301 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4302 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4305 # OSF1 and SCO ODT 3.0 have their own names for install.
4306 # Don't use installbsd from OSF since it installs stuff as root
4308 for ac_prog
in ginstall scoinst
install; do
4309 for ac_exec_ext
in '' $ac_executable_extensions; do
4310 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4311 if test $ac_prog = install &&
4312 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4313 # AIX install. It has an incompatible calling convention.
4315 elif test $ac_prog = install &&
4316 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4317 # program-specific install script used by HP pwplus--don't use.
4320 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4332 if test "${ac_cv_path_install+set}" = set; then
4333 INSTALL
=$ac_cv_path_install
4335 # As a last resort, use the slow shell script. We don't cache a
4336 # path for INSTALL within a source directory, because that will
4337 # break other packages using the cache if that directory is
4338 # removed, or if the path is relative.
4339 INSTALL
=$ac_install_sh
4342 echo "$as_me:$LINENO: result: $INSTALL" >&5
4343 echo "${ECHO_T}$INSTALL" >&6
4345 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4346 # It thinks the first close brace ends the variable substitution.
4347 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4349 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4351 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4353 if test "x$RANLIB" = x
; then
4354 if test -n "$ac_tool_prefix"; then
4355 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4356 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4357 echo "$as_me:$LINENO: checking for $ac_word" >&5
4358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4359 if test "${ac_cv_prog_RANLIB+set}" = set; then
4360 echo $ECHO_N "(cached) $ECHO_C" >&6
4362 if test -n "$RANLIB"; then
4363 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4365 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4369 test -z "$as_dir" && as_dir
=.
4370 for ac_exec_ext
in '' $ac_executable_extensions; do
4371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4372 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4381 RANLIB
=$ac_cv_prog_RANLIB
4382 if test -n "$RANLIB"; then
4383 echo "$as_me:$LINENO: result: $RANLIB" >&5
4384 echo "${ECHO_T}$RANLIB" >&6
4386 echo "$as_me:$LINENO: result: no" >&5
4387 echo "${ECHO_T}no" >&6
4391 if test -z "$ac_cv_prog_RANLIB"; then
4392 ac_ct_RANLIB
=$RANLIB
4393 # Extract the first word of "ranlib", so it can be a program name with args.
4394 set dummy ranlib
; ac_word
=$2
4395 echo "$as_me:$LINENO: checking for $ac_word" >&5
4396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4397 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 if test -n "$ac_ct_RANLIB"; then
4401 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4403 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4407 test -z "$as_dir" && as_dir
=.
4408 for ac_exec_ext
in '' $ac_executable_extensions; do
4409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4410 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4420 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4421 if test -n "$ac_ct_RANLIB"; then
4422 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4423 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4425 echo "$as_me:$LINENO: result: no" >&5
4426 echo "${ECHO_T}no" >&6
4429 RANLIB
=$ac_ct_RANLIB
4431 RANLIB
="$ac_cv_prog_RANLIB"
4435 # Extract the first word of "install-info", so it can be a program name with args.
4436 set dummy install-info
; ac_word
=$2
4437 echo "$as_me:$LINENO: checking for $ac_word" >&5
4438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4439 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4442 case $INSTALL_INFO in
4444 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4447 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4451 test -z "$as_dir" && as_dir
=.
4452 for ac_exec_ext
in '' $ac_executable_extensions; do
4453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4454 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4464 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4466 if test -n "$INSTALL_INFO"; then
4467 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4468 echo "${ECHO_T}$INSTALL_INFO" >&6
4470 echo "$as_me:$LINENO: result: no" >&5
4471 echo "${ECHO_T}no" >&6
4474 # Extract the first word of "install-info", so it can be a program name with args.
4475 set dummy install-info
; ac_word
=$2
4476 echo "$as_me:$LINENO: checking for $ac_word" >&5
4477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4478 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4481 case $INSTALL_INFO in
4483 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4486 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4487 for as_dir
in /usr
/sbin
4490 test -z "$as_dir" && as_dir
=.
4491 for ac_exec_ext
in '' $ac_executable_extensions; do
4492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4493 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4505 if test -n "$INSTALL_INFO"; then
4506 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4507 echo "${ECHO_T}$INSTALL_INFO" >&6
4509 echo "$as_me:$LINENO: result: no" >&5
4510 echo "${ECHO_T}no" >&6
4513 # Extract the first word of "install-info", so it can be a program name with args.
4514 set dummy install-info
; ac_word
=$2
4515 echo "$as_me:$LINENO: checking for $ac_word" >&5
4516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4517 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4520 case $INSTALL_INFO in
4522 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4529 test -z "$as_dir" && as_dir
=.
4530 for ac_exec_ext
in '' $ac_executable_extensions; do
4531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4532 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4539 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4543 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4545 if test -n "$INSTALL_INFO"; then
4546 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4547 echo "${ECHO_T}$INSTALL_INFO" >&6
4549 echo "$as_me:$LINENO: result: no" >&5
4550 echo "${ECHO_T}no" >&6
4553 # Extract the first word of "gzip", so it can be a program name with args.
4554 set dummy
gzip; ac_word
=$2
4555 echo "$as_me:$LINENO: checking for $ac_word" >&5
4556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4557 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4558 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
4565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4569 test -z "$as_dir" && as_dir
=.
4570 for ac_exec_ext
in '' $ac_executable_extensions; do
4571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4572 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
4573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4582 GZIP_PROG
=$ac_cv_path_GZIP_PROG
4584 if test -n "$GZIP_PROG"; then
4585 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4586 echo "${ECHO_T}$GZIP_PROG" >&6
4588 echo "$as_me:$LINENO: result: no" >&5
4589 echo "${ECHO_T}no" >&6
4594 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4596 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4599 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4601 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4605 late_LDFLAGS
=$LDFLAGS
4606 if test "$GCC" = yes; then
4607 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
4609 LDFLAGS
="$LDFLAGS -znocombreloc"
4612 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4613 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4614 cat >conftest.
$ac_ext <<_ACEOF
4617 rm -f conftest.
$ac_objext conftest
$ac_exeext
4618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4619 (eval $ac_link) 2>conftest.er1
4621 grep -v '^ *+' conftest.er1
>conftest.err
4623 cat conftest.err
>&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); } &&
4626 { ac_try
='test -z "$ac_c_werror_flag"
4627 || test ! -s conftest.err'
4628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }; } &&
4633 { ac_try
='test -s conftest$ac_exeext'
4634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); }; }; then
4639 echo "$as_me:$LINENO: result: yes" >&5
4640 echo "${ECHO_T}yes" >&6
4642 echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.
$ac_ext >&5
4645 LDFLAGS
=$late_LDFLAGS
4646 echo "$as_me:$LINENO: result: no" >&5
4647 echo "${ECHO_T}no" >&6
4649 rm -f conftest.err conftest.
$ac_objext \
4650 conftest
$ac_exeext conftest.
$ac_ext
4652 #### Extract some information from the operating system and machine files.
4654 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4655 - which libraries the lib-src programs will want, and
4656 - whether the GNU malloc routines are usable..." >&5
4657 echo "$as_me: checking the machine- and system-dependent files to find out
4658 - which libraries the lib-src programs will want, and
4659 - whether the GNU malloc routines are usable..." >&6;}
4661 ### First figure out CFLAGS (which we use for running the compiler here)
4662 ### and REAL_CFLAGS (which we use for real compilation).
4663 ### The two are the same except on a few systems, where they are made
4664 ### different to work around various lossages. For example,
4665 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4666 ### as implying static linking.
4668 ### If the CFLAGS env var is specified, we use that value
4669 ### instead of the default.
4671 ### It's not important that this name contain the PID; you can't run
4672 ### two configures in the same directory and have anything work
4674 tempcname
="conftest.c"
4677 #include "'${srcdir}'/src/'${opsysfile}'"
4678 #include "'${srcdir}'/src/'${machfile}'"
4679 #ifndef LIBS_MACHINE
4680 #define LIBS_MACHINE
4685 #ifndef C_SWITCH_SYSTEM
4686 #define C_SWITCH_SYSTEM
4688 #ifndef C_SWITCH_MACHINE
4689 #define C_SWITCH_MACHINE
4691 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4692 configure___ c_switch_system=C_SWITCH_SYSTEM
4693 configure___ c_switch_machine=C_SWITCH_MACHINE
4696 #define LIB_X11_LIB -lX11
4699 #ifndef LIBX11_MACHINE
4700 #define LIBX11_MACHINE
4703 #ifndef LIBX11_SYSTEM
4704 #define LIBX11_SYSTEM
4706 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4709 configure___ unexec=UNEXEC
4711 configure___ unexec=unexec.o
4714 #ifdef SYSTEM_MALLOC
4715 configure___ system_malloc=yes
4717 configure___ system_malloc=no
4720 #ifdef USE_MMAP_FOR_BUFFERS
4721 configure___ use_mmap_for_buffers=yes
4723 configure___ use_mmap_for_buffers=no
4726 #ifndef C_DEBUG_SWITCH
4727 #define C_DEBUG_SWITCH -g
4730 #ifndef C_OPTIMIZE_SWITCH
4732 #define C_OPTIMIZE_SWITCH -O2
4734 #define C_OPTIMIZE_SWITCH -O
4738 #ifndef C_WARNINGS_SWITCH
4739 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4742 #ifndef LD_SWITCH_MACHINE
4743 #define LD_SWITCH_MACHINE
4746 #ifndef LD_SWITCH_SYSTEM
4747 #define LD_SWITCH_SYSTEM
4750 #ifndef LD_SWITCH_X_SITE_AUX
4751 #define LD_SWITCH_X_SITE_AUX
4754 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4755 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4757 #ifdef THIS_IS_CONFIGURE
4759 /* Get the CFLAGS for tests in configure. */
4761 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4763 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4766 #else /* not THIS_IS_CONFIGURE */
4768 /* Get the CFLAGS for real compilation. */
4770 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4772 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4775 #endif /* not THIS_IS_CONFIGURE */
4778 # The value of CPP is a quoted variable reference, so we need to do this
4779 # to get its actual value...
4780 CPP
=`eval "echo $CPP"`
4781 eval `${CPP} -Isrc ${tempcname} \
4782 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4783 if test "x$SPECIFIED_CFLAGS" = x
; then
4784 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4785 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4787 REAL_CFLAGS
="$CFLAGS"
4791 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4793 ### Make sure subsequent tests use flags consistent with the build flags.
4795 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4796 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4798 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4803 # Check whether --enable-largefile or --disable-largefile was given.
4804 if test "${enable_largefile+set}" = set; then
4805 enableval
="$enable_largefile"
4808 if test "$enable_largefile" != no
; then
4810 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4811 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4812 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4815 ac_cv_sys_largefile_CC
=no
4816 if test "$GCC" != yes; then
4819 # IRIX 6.2 and later do not support large files by default,
4820 # so use the C compiler's -n32 option if that helps.
4821 cat >conftest.
$ac_ext <<_ACEOF
4824 cat confdefs.h
>>conftest.
$ac_ext
4825 cat >>conftest.
$ac_ext <<_ACEOF
4826 /* end confdefs.h. */
4827 #include <sys/types.h>
4828 /* Check that off_t can represent 2**63 - 1 correctly.
4829 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4830 since some C++ compilers masquerading as C compilers
4831 incorrectly reject 9223372036854775807. */
4832 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4833 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4834 && LARGE_OFF_T % 2147483647 == 1)
4844 rm -f conftest.
$ac_objext
4845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4846 (eval $ac_compile) 2>conftest.er1
4848 grep -v '^ *+' conftest.er1
>conftest.err
4850 cat conftest.err
>&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } &&
4853 { ac_try
='test -z "$ac_c_werror_flag"
4854 || test ! -s conftest.err'
4855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); }; } &&
4860 { ac_try
='test -s conftest.$ac_objext'
4861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); }; }; then
4868 echo "$as_me: failed program was:" >&5
4869 sed 's/^/| /' conftest.
$ac_ext >&5
4872 rm -f conftest.err conftest.
$ac_objext
4874 rm -f conftest.
$ac_objext
4875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4876 (eval $ac_compile) 2>conftest.er1
4878 grep -v '^ *+' conftest.er1
>conftest.err
4880 cat conftest.err
>&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } &&
4883 { ac_try
='test -z "$ac_c_werror_flag"
4884 || test ! -s conftest.err'
4885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); }; } &&
4890 { ac_try
='test -s conftest.$ac_objext'
4891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); }; }; then
4896 ac_cv_sys_largefile_CC
=' -n32'; break
4898 echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.
$ac_ext >&5
4902 rm -f conftest.err conftest.
$ac_objext
4906 rm -f conftest.
$ac_ext
4909 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4910 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4911 if test "$ac_cv_sys_largefile_CC" != no
; then
4912 CC
=$CC$ac_cv_sys_largefile_CC
4915 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4916 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4917 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4921 ac_cv_sys_file_offset_bits
=no
4922 cat >conftest.
$ac_ext <<_ACEOF
4925 cat confdefs.h
>>conftest.
$ac_ext
4926 cat >>conftest.
$ac_ext <<_ACEOF
4927 /* end confdefs.h. */
4928 #include <sys/types.h>
4929 /* Check that off_t can represent 2**63 - 1 correctly.
4930 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4931 since some C++ compilers masquerading as C compilers
4932 incorrectly reject 9223372036854775807. */
4933 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4934 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4935 && LARGE_OFF_T % 2147483647 == 1)
4945 rm -f conftest.
$ac_objext
4946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4947 (eval $ac_compile) 2>conftest.er1
4949 grep -v '^ *+' conftest.er1
>conftest.err
4951 cat conftest.err
>&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); } &&
4954 { ac_try
='test -z "$ac_c_werror_flag"
4955 || test ! -s conftest.err'
4956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }; } &&
4961 { ac_try
='test -s conftest.$ac_objext'
4962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); }; }; then
4969 echo "$as_me: failed program was:" >&5
4970 sed 's/^/| /' conftest.
$ac_ext >&5
4973 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4974 cat >conftest.
$ac_ext <<_ACEOF
4977 cat confdefs.h
>>conftest.
$ac_ext
4978 cat >>conftest.
$ac_ext <<_ACEOF
4979 /* end confdefs.h. */
4980 #define _FILE_OFFSET_BITS 64
4981 #include <sys/types.h>
4982 /* Check that off_t can represent 2**63 - 1 correctly.
4983 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4984 since some C++ compilers masquerading as C compilers
4985 incorrectly reject 9223372036854775807. */
4986 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4987 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4988 && LARGE_OFF_T % 2147483647 == 1)
4998 rm -f conftest.
$ac_objext
4999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5000 (eval $ac_compile) 2>conftest.er1
5002 grep -v '^ *+' conftest.er1
>conftest.err
5004 cat conftest.err
>&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } &&
5007 { ac_try
='test -z "$ac_c_werror_flag"
5008 || test ! -s conftest.err'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; } &&
5014 { ac_try
='test -s conftest.$ac_objext'
5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; }; then
5020 ac_cv_sys_file_offset_bits
=64; break
5022 echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.
$ac_ext >&5
5026 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5030 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5031 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5032 if test "$ac_cv_sys_file_offset_bits" != no
; then
5034 cat >>confdefs.h
<<_ACEOF
5035 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5040 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5041 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5042 if test "${ac_cv_sys_large_files+set}" = set; then
5043 echo $ECHO_N "(cached) $ECHO_C" >&6
5046 ac_cv_sys_large_files
=no
5047 cat >conftest.
$ac_ext <<_ACEOF
5050 cat confdefs.h
>>conftest.
$ac_ext
5051 cat >>conftest.
$ac_ext <<_ACEOF
5052 /* end confdefs.h. */
5053 #include <sys/types.h>
5054 /* Check that off_t can represent 2**63 - 1 correctly.
5055 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5056 since some C++ compilers masquerading as C compilers
5057 incorrectly reject 9223372036854775807. */
5058 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5059 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5060 && LARGE_OFF_T % 2147483647 == 1)
5070 rm -f conftest.
$ac_objext
5071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5072 (eval $ac_compile) 2>conftest.er1
5074 grep -v '^ *+' conftest.er1
>conftest.err
5076 cat conftest.err
>&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); } &&
5079 { ac_try
='test -z "$ac_c_werror_flag"
5080 || test ! -s conftest.err'
5081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); }; } &&
5086 { ac_try
='test -s conftest.$ac_objext'
5087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); }; }; then
5094 echo "$as_me: failed program was:" >&5
5095 sed 's/^/| /' conftest.
$ac_ext >&5
5098 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5099 cat >conftest.
$ac_ext <<_ACEOF
5102 cat confdefs.h
>>conftest.
$ac_ext
5103 cat >>conftest.
$ac_ext <<_ACEOF
5104 /* end confdefs.h. */
5105 #define _LARGE_FILES 1
5106 #include <sys/types.h>
5107 /* Check that off_t can represent 2**63 - 1 correctly.
5108 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5109 since some C++ compilers masquerading as C compilers
5110 incorrectly reject 9223372036854775807. */
5111 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5112 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5113 && LARGE_OFF_T % 2147483647 == 1)
5123 rm -f conftest.
$ac_objext
5124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5125 (eval $ac_compile) 2>conftest.er1
5127 grep -v '^ *+' conftest.er1
>conftest.err
5129 cat conftest.err
>&5
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); } &&
5132 { ac_try
='test -z "$ac_c_werror_flag"
5133 || test ! -s conftest.err'
5134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); }; } &&
5139 { ac_try
='test -s conftest.$ac_objext'
5140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); }; }; then
5145 ac_cv_sys_large_files
=1; break
5147 echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.
$ac_ext >&5
5151 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5155 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5156 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5157 if test "$ac_cv_sys_large_files" != no
; then
5159 cat >>confdefs.h
<<_ACEOF
5160 #define _LARGE_FILES $ac_cv_sys_large_files
5172 if test "${with_sound}" != "no"; then
5173 # Sound support for GNU/Linux and the free BSDs.
5174 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5175 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5176 if test "${ac_cv_header_stdc+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5179 cat >conftest.
$ac_ext <<_ACEOF
5182 cat confdefs.h
>>conftest.
$ac_ext
5183 cat >>conftest.
$ac_ext <<_ACEOF
5184 /* end confdefs.h. */
5198 rm -f conftest.
$ac_objext
5199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5200 (eval $ac_compile) 2>conftest.er1
5202 grep -v '^ *+' conftest.er1
>conftest.err
5204 cat conftest.err
>&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } &&
5207 { ac_try
='test -z "$ac_c_werror_flag"
5208 || test ! -s conftest.err'
5209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); }; } &&
5214 { ac_try
='test -s conftest.$ac_objext'
5215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); }; }; then
5220 ac_cv_header_stdc
=yes
5222 echo "$as_me: failed program was:" >&5
5223 sed 's/^/| /' conftest.
$ac_ext >&5
5225 ac_cv_header_stdc
=no
5227 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5229 if test $ac_cv_header_stdc = yes; then
5230 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5231 cat >conftest.
$ac_ext <<_ACEOF
5234 cat confdefs.h
>>conftest.
$ac_ext
5235 cat >>conftest.
$ac_ext <<_ACEOF
5236 /* end confdefs.h. */
5240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5241 $EGREP "memchr" >/dev
/null
2>&1; then
5244 ac_cv_header_stdc
=no
5250 if test $ac_cv_header_stdc = yes; then
5251 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5252 cat >conftest.
$ac_ext <<_ACEOF
5255 cat confdefs.h
>>conftest.
$ac_ext
5256 cat >>conftest.
$ac_ext <<_ACEOF
5257 /* end confdefs.h. */
5261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5262 $EGREP "free" >/dev
/null
2>&1; then
5265 ac_cv_header_stdc
=no
5271 if test $ac_cv_header_stdc = yes; then
5272 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5273 if test "$cross_compiling" = yes; then
5276 cat >conftest.
$ac_ext <<_ACEOF
5279 cat confdefs.h
>>conftest.
$ac_ext
5280 cat >>conftest.
$ac_ext <<_ACEOF
5281 /* end confdefs.h. */
5283 #if ((' ' & 0x0FF) == 0x020)
5284 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5285 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5287 # define ISLOWER(c) \
5288 (('a' <= (c) && (c) <= 'i') \
5289 || ('j' <= (c) && (c) <= 'r') \
5290 || ('s' <= (c) && (c) <= 'z'))
5291 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5294 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5299 for (i = 0; i < 256; i++)
5300 if (XOR (islower (i), ISLOWER (i))
5301 || toupper (i) != TOUPPER (i))
5306 rm -f conftest
$ac_exeext
5307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5308 (eval $ac_link) 2>&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }; }; then
5319 echo "$as_me: program exited with status $ac_status" >&5
5320 echo "$as_me: failed program was:" >&5
5321 sed 's/^/| /' conftest.
$ac_ext >&5
5324 ac_cv_header_stdc
=no
5326 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5330 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5331 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5332 if test $ac_cv_header_stdc = yes; then
5334 cat >>confdefs.h
<<\_ACEOF
5335 #define STDC_HEADERS 1
5340 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5350 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5351 inttypes.h stdint.h unistd.h
5353 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5354 echo "$as_me:$LINENO: checking for $ac_header" >&5
5355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5357 echo $ECHO_N "(cached) $ECHO_C" >&6
5359 cat >conftest.
$ac_ext <<_ACEOF
5362 cat confdefs.h
>>conftest.
$ac_ext
5363 cat >>conftest.
$ac_ext <<_ACEOF
5364 /* end confdefs.h. */
5365 $ac_includes_default
5367 #include <$ac_header>
5369 rm -f conftest.
$ac_objext
5370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5371 (eval $ac_compile) 2>conftest.er1
5373 grep -v '^ *+' conftest.er1
>conftest.err
5375 cat conftest.err
>&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); } &&
5378 { ac_try
='test -z "$ac_c_werror_flag"
5379 || test ! -s conftest.err'
5380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); }; } &&
5385 { ac_try
='test -s conftest.$ac_objext'
5386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); }; }; then
5391 eval "$as_ac_Header=yes"
5393 echo "$as_me: failed program was:" >&5
5394 sed 's/^/| /' conftest.
$ac_ext >&5
5396 eval "$as_ac_Header=no"
5398 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5403 cat >>confdefs.h
<<_ACEOF
5404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5415 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5417 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5419 echo "$as_me:$LINENO: checking for $ac_header" >&5
5420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
5424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5427 # Is the header compilable?
5428 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5430 cat >conftest.
$ac_ext <<_ACEOF
5433 cat confdefs.h
>>conftest.
$ac_ext
5434 cat >>conftest.
$ac_ext <<_ACEOF
5435 /* end confdefs.h. */
5436 $ac_includes_default
5437 #include <$ac_header>
5439 rm -f conftest.
$ac_objext
5440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5441 (eval $ac_compile) 2>conftest.er1
5443 grep -v '^ *+' conftest.er1
>conftest.err
5445 cat conftest.err
>&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); } &&
5448 { ac_try
='test -z "$ac_c_werror_flag"
5449 || test ! -s conftest.err'
5450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); }; } &&
5455 { ac_try
='test -s conftest.$ac_objext'
5456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); }; }; then
5461 ac_header_compiler
=yes
5463 echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.
$ac_ext >&5
5466 ac_header_compiler
=no
5468 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5469 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5470 echo "${ECHO_T}$ac_header_compiler" >&6
5472 # Is the header present?
5473 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5474 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5475 cat >conftest.
$ac_ext <<_ACEOF
5478 cat confdefs.h
>>conftest.
$ac_ext
5479 cat >>conftest.
$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5481 #include <$ac_header>
5483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5484 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5486 grep -v '^ *+' conftest.er1
>conftest.err
5488 cat conftest.err
>&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); } >/dev
/null
; then
5491 if test -s conftest.err
; then
5492 ac_cpp_err
=$ac_c_preproc_warn_flag
5493 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5500 if test -z "$ac_cpp_err"; then
5501 ac_header_preproc
=yes
5503 echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.
$ac_ext >&5
5506 ac_header_preproc
=no
5508 rm -f conftest.err conftest.
$ac_ext
5509 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5510 echo "${ECHO_T}$ac_header_preproc" >&6
5512 # So? What about this header?
5513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5515 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5519 ac_header_preproc
=yes
5522 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5524 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5525 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5526 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5527 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5528 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5529 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5532 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5533 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5536 ## ------------------------------------------ ##
5537 ## Report this to the AC_PACKAGE_NAME lists. ##
5538 ## ------------------------------------------ ##
5541 sed "s/^/$as_me: WARNING: /" >&2
5544 echo "$as_me:$LINENO: checking for $ac_header" >&5
5545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5547 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 eval "$as_ac_Header=\$ac_header_preproc"
5551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5556 cat >>confdefs.h
<<_ACEOF
5557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5564 # Emulation library used on NetBSD.
5565 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5566 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5567 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5570 ac_check_lib_save_LIBS
=$LIBS
5571 LIBS
="-lossaudio $LIBS"
5572 cat >conftest.
$ac_ext <<_ACEOF
5575 cat confdefs.h
>>conftest.
$ac_ext
5576 cat >>conftest.
$ac_ext <<_ACEOF
5577 /* end confdefs.h. */
5579 /* Override any gcc2 internal prototype to avoid an error. */
5583 /* We use char because int might match the return type of a gcc2
5584 builtin and then its argument prototype would still apply. */
5594 rm -f conftest.
$ac_objext conftest
$ac_exeext
5595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5596 (eval $ac_link) 2>conftest.er1
5598 grep -v '^ *+' conftest.er1
>conftest.err
5600 cat conftest.err
>&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); } &&
5603 { ac_try
='test -z "$ac_c_werror_flag"
5604 || test ! -s conftest.err'
5605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); }; } &&
5610 { ac_try
='test -s conftest$ac_exeext'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; }; then
5616 ac_cv_lib_ossaudio__oss_ioctl
=yes
5618 echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.
$ac_ext >&5
5621 ac_cv_lib_ossaudio__oss_ioctl
=no
5623 rm -f conftest.err conftest.
$ac_objext \
5624 conftest
$ac_exeext conftest.
$ac_ext
5625 LIBS
=$ac_check_lib_save_LIBS
5627 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5628 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5629 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5638 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
5639 if test "X${with_pkg_config_prog}" != X
; then
5640 PKG_CONFIG
="${with_pkg_config_prog}"
5645 if test -z "$PKG_CONFIG"; then
5646 # Extract the first word of "pkg-config", so it can be a program name with args.
5647 set dummy pkg-config
; ac_word
=$2
5648 echo "$as_me:$LINENO: checking for $ac_word" >&5
5649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5650 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5655 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
5658 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5662 test -z "$as_dir" && as_dir
=.
5663 for ac_exec_ext
in '' $ac_executable_extensions; do
5664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5665 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5672 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
5676 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
5678 if test -n "$PKG_CONFIG"; then
5679 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5680 echo "${ECHO_T}$PKG_CONFIG" >&6
5682 echo "$as_me:$LINENO: result: no" >&5
5683 echo "${ECHO_T}no" >&6
5688 if test "$PKG_CONFIG" = "no" ; then
5691 PKG_CONFIG_MIN_VERSION
=0.9.0
5692 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5693 echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
5694 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6
5696 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5697 echo "$as_me:$LINENO: result: yes" >&5
5698 echo "${ECHO_T}yes" >&6
5701 echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
5702 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6
5703 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
5704 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
5705 echo "${ECHO_T}$ALSA_CFLAGS" >&6
5707 echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
5708 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6
5709 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"`
5710 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
5711 echo "${ECHO_T}$ALSA_LIBS" >&6
5713 echo "$as_me:$LINENO: result: no" >&5
5714 echo "${ECHO_T}no" >&6
5717 ## If we have a custom action on failure, don't print errors, but
5718 ## do set a variable so people can do so.
5719 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5726 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5727 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5731 if test $succeeded = yes; then
5737 if test $HAVE_ALSA = yes; then
5738 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
5739 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
5741 cat >>confdefs.h
<<\_ACEOF
5774 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5775 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5776 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5777 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
5780 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5782 echo "$as_me:$LINENO: checking for $ac_header" >&5
5783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5785 echo $ECHO_N "(cached) $ECHO_C" >&6
5787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5790 # Is the header compilable?
5791 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5793 cat >conftest.
$ac_ext <<_ACEOF
5796 cat confdefs.h
>>conftest.
$ac_ext
5797 cat >>conftest.
$ac_ext <<_ACEOF
5798 /* end confdefs.h. */
5799 $ac_includes_default
5800 #include <$ac_header>
5802 rm -f conftest.
$ac_objext
5803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5804 (eval $ac_compile) 2>conftest.er1
5806 grep -v '^ *+' conftest.er1
>conftest.err
5808 cat conftest.err
>&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } &&
5811 { ac_try
='test -z "$ac_c_werror_flag"
5812 || test ! -s conftest.err'
5813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); }; } &&
5818 { ac_try
='test -s conftest.$ac_objext'
5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; }; then
5824 ac_header_compiler
=yes
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.
$ac_ext >&5
5829 ac_header_compiler
=no
5831 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5832 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5833 echo "${ECHO_T}$ac_header_compiler" >&6
5835 # Is the header present?
5836 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5838 cat >conftest.
$ac_ext <<_ACEOF
5841 cat confdefs.h
>>conftest.
$ac_ext
5842 cat >>conftest.
$ac_ext <<_ACEOF
5843 /* end confdefs.h. */
5844 #include <$ac_header>
5846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5847 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5849 grep -v '^ *+' conftest.er1
>conftest.err
5851 cat conftest.err
>&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); } >/dev
/null
; then
5854 if test -s conftest.err
; then
5855 ac_cpp_err
=$ac_c_preproc_warn_flag
5856 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5863 if test -z "$ac_cpp_err"; then
5864 ac_header_preproc
=yes
5866 echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.
$ac_ext >&5
5869 ac_header_preproc
=no
5871 rm -f conftest.err conftest.
$ac_ext
5872 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5873 echo "${ECHO_T}$ac_header_preproc" >&6
5875 # So? What about this header?
5876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5882 ac_header_preproc
=yes
5885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5888 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5892 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5899 ## ------------------------------------------ ##
5900 ## Report this to the AC_PACKAGE_NAME lists. ##
5901 ## ------------------------------------------ ##
5904 sed "s/^/$as_me: WARNING: /" >&2
5907 echo "$as_me:$LINENO: checking for $ac_header" >&5
5908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5912 eval "$as_ac_Header=\$ac_header_preproc"
5914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5919 cat >>confdefs.h
<<_ACEOF
5920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5928 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5929 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5930 cat >conftest.
$ac_ext <<_ACEOF
5933 cat confdefs.h
>>conftest.
$ac_ext
5934 cat >>conftest.
$ac_ext <<_ACEOF
5935 /* end confdefs.h. */
5936 #include <sys/personality.h>
5940 personality (PER_LINUX32)
5945 rm -f conftest.
$ac_objext
5946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5947 (eval $ac_compile) 2>conftest.er1
5949 grep -v '^ *+' conftest.er1
>conftest.err
5951 cat conftest.err
>&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } &&
5954 { ac_try
='test -z "$ac_c_werror_flag"
5955 || test ! -s conftest.err'
5956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; } &&
5961 { ac_try
='test -s conftest.$ac_objext'
5962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); }; }; then
5967 emacs_cv_personality_linux32
=yes
5969 echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.
$ac_ext >&5
5972 emacs_cv_personality_linux32
=no
5974 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5975 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5976 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5978 if test $emacs_cv_personality_linux32 = yes; then
5980 cat >>confdefs.h
<<\_ACEOF
5981 #define HAVE_PERSONALITY_LINUX32 1
5987 for ac_header
in term.h
5989 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5990 echo "$as_me:$LINENO: checking for $ac_header" >&5
5991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 cat >conftest.
$ac_ext <<_ACEOF
5998 cat confdefs.h
>>conftest.
$ac_ext
5999 cat >>conftest.
$ac_ext <<_ACEOF
6000 /* end confdefs.h. */
6001 #include <$ac_header>
6003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6004 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6006 grep -v '^ *+' conftest.er1
>conftest.err
6008 cat conftest.err
>&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); } >/dev
/null
; then
6011 if test -s conftest.err
; then
6012 ac_cpp_err
=$ac_c_preproc_warn_flag
6013 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6020 if test -z "$ac_cpp_err"; then
6021 eval "$as_ac_Header=yes"
6023 echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.
$ac_ext >&5
6026 eval "$as_ac_Header=no"
6028 rm -f conftest.err conftest.
$ac_ext
6030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6033 cat >>confdefs.h
<<_ACEOF
6034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6041 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6042 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6043 if test "${ac_cv_header_stdc+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 cat >conftest.
$ac_ext <<_ACEOF
6049 cat confdefs.h
>>conftest.
$ac_ext
6050 cat >>conftest.
$ac_ext <<_ACEOF
6051 /* end confdefs.h. */
6065 rm -f conftest.
$ac_objext
6066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6067 (eval $ac_compile) 2>conftest.er1
6069 grep -v '^ *+' conftest.er1
>conftest.err
6071 cat conftest.err
>&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } &&
6074 { ac_try
='test -z "$ac_c_werror_flag"
6075 || test ! -s conftest.err'
6076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; } &&
6081 { ac_try
='test -s conftest.$ac_objext'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; }; then
6087 ac_cv_header_stdc
=yes
6089 echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.
$ac_ext >&5
6092 ac_cv_header_stdc
=no
6094 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6096 if test $ac_cv_header_stdc = yes; then
6097 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6098 cat >conftest.
$ac_ext <<_ACEOF
6101 cat confdefs.h
>>conftest.
$ac_ext
6102 cat >>conftest.
$ac_ext <<_ACEOF
6103 /* end confdefs.h. */
6107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6108 $EGREP "memchr" >/dev
/null
2>&1; then
6111 ac_cv_header_stdc
=no
6117 if test $ac_cv_header_stdc = yes; then
6118 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6119 cat >conftest.
$ac_ext <<_ACEOF
6122 cat confdefs.h
>>conftest.
$ac_ext
6123 cat >>conftest.
$ac_ext <<_ACEOF
6124 /* end confdefs.h. */
6128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6129 $EGREP "free" >/dev
/null
2>&1; then
6132 ac_cv_header_stdc
=no
6138 if test $ac_cv_header_stdc = yes; then
6139 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6140 if test "$cross_compiling" = yes; then
6143 cat >conftest.
$ac_ext <<_ACEOF
6146 cat confdefs.h
>>conftest.
$ac_ext
6147 cat >>conftest.
$ac_ext <<_ACEOF
6148 /* end confdefs.h. */
6150 #if ((' ' & 0x0FF) == 0x020)
6151 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6152 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6154 # define ISLOWER(c) \
6155 (('a' <= (c) && (c) <= 'i') \
6156 || ('j' <= (c) && (c) <= 'r') \
6157 || ('s' <= (c) && (c) <= 'z'))
6158 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6161 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6166 for (i = 0; i < 256; i++)
6167 if (XOR (islower (i), ISLOWER (i))
6168 || toupper (i) != TOUPPER (i))
6173 rm -f conftest
$ac_exeext
6174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6175 (eval $ac_link) 2>&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); }; }; then
6186 echo "$as_me: program exited with status $ac_status" >&5
6187 echo "$as_me: failed program was:" >&5
6188 sed 's/^/| /' conftest.
$ac_ext >&5
6191 ac_cv_header_stdc
=no
6193 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6197 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6198 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6199 if test $ac_cv_header_stdc = yes; then
6201 cat >>confdefs.h
<<\_ACEOF
6202 #define STDC_HEADERS 1
6207 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6208 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6209 if test "${ac_cv_header_time+set}" = set; then
6210 echo $ECHO_N "(cached) $ECHO_C" >&6
6212 cat >conftest.
$ac_ext <<_ACEOF
6215 cat confdefs.h
>>conftest.
$ac_ext
6216 cat >>conftest.
$ac_ext <<_ACEOF
6217 /* end confdefs.h. */
6218 #include <sys/types.h>
6219 #include <sys/time.h>
6225 if ((struct tm *) 0)
6231 rm -f conftest.
$ac_objext
6232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6233 (eval $ac_compile) 2>conftest.er1
6235 grep -v '^ *+' conftest.er1
>conftest.err
6237 cat conftest.err
>&5
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); } &&
6240 { ac_try
='test -z "$ac_c_werror_flag"
6241 || test ! -s conftest.err'
6242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); }; } &&
6247 { ac_try
='test -s conftest.$ac_objext'
6248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); }; }; then
6253 ac_cv_header_time
=yes
6255 echo "$as_me: failed program was:" >&5
6256 sed 's/^/| /' conftest.
$ac_ext >&5
6258 ac_cv_header_time
=no
6260 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6262 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6263 echo "${ECHO_T}$ac_cv_header_time" >&6
6264 if test $ac_cv_header_time = yes; then
6266 cat >>confdefs.h
<<\_ACEOF
6267 #define TIME_WITH_SYS_TIME 1
6272 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6273 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6274 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6277 cat >conftest.
$ac_ext <<_ACEOF
6280 cat confdefs.h
>>conftest.
$ac_ext
6281 cat >>conftest.
$ac_ext <<_ACEOF
6282 /* end confdefs.h. */
6283 $ac_includes_default
6288 char *p = (char *) sys_siglist;
6295 rm -f conftest.
$ac_objext
6296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6297 (eval $ac_compile) 2>conftest.er1
6299 grep -v '^ *+' conftest.er1
>conftest.err
6301 cat conftest.err
>&5
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); } &&
6304 { ac_try
='test -z "$ac_c_werror_flag"
6305 || test ! -s conftest.err'
6306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); }; } &&
6311 { ac_try
='test -s conftest.$ac_objext'
6312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; }; then
6317 ac_cv_have_decl_sys_siglist
=yes
6319 echo "$as_me: failed program was:" >&5
6320 sed 's/^/| /' conftest.
$ac_ext >&5
6322 ac_cv_have_decl_sys_siglist
=no
6324 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6326 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6327 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6328 if test $ac_cv_have_decl_sys_siglist = yes; then
6330 cat >>confdefs.h
<<_ACEOF
6331 #define HAVE_DECL_SYS_SIGLIST 1
6336 cat >>confdefs.h
<<_ACEOF
6337 #define HAVE_DECL_SYS_SIGLIST 0
6344 if test $ac_cv_have_decl_sys_siglist != yes; then
6345 # For Tru64, at least:
6346 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6347 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6348 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6351 cat >conftest.
$ac_ext <<_ACEOF
6354 cat confdefs.h
>>conftest.
$ac_ext
6355 cat >>conftest.
$ac_ext <<_ACEOF
6356 /* end confdefs.h. */
6357 $ac_includes_default
6361 #ifndef __sys_siglist
6362 char *p = (char *) __sys_siglist;
6369 rm -f conftest.
$ac_objext
6370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6371 (eval $ac_compile) 2>conftest.er1
6373 grep -v '^ *+' conftest.er1
>conftest.err
6375 cat conftest.err
>&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); } &&
6378 { ac_try
='test -z "$ac_c_werror_flag"
6379 || test ! -s conftest.err'
6380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); }; } &&
6385 { ac_try
='test -s conftest.$ac_objext'
6386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); }; }; then
6391 ac_cv_have_decl___sys_siglist
=yes
6393 echo "$as_me: failed program was:" >&5
6394 sed 's/^/| /' conftest.
$ac_ext >&5
6396 ac_cv_have_decl___sys_siglist
=no
6398 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6400 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6401 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6402 if test $ac_cv_have_decl___sys_siglist = yes; then
6404 cat >>confdefs.h
<<_ACEOF
6405 #define HAVE_DECL___SYS_SIGLIST 1
6410 cat >>confdefs.h
<<_ACEOF
6411 #define HAVE_DECL___SYS_SIGLIST 0
6418 if test $ac_cv_have_decl___sys_siglist = yes; then
6420 cat >>confdefs.h
<<\_ACEOF
6421 #define sys_siglist __sys_siglist
6426 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6427 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6428 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6431 cat >conftest.
$ac_ext <<_ACEOF
6434 cat confdefs.h
>>conftest.
$ac_ext
6435 cat >>conftest.
$ac_ext <<_ACEOF
6436 /* end confdefs.h. */
6437 #include <sys/types.h>
6438 #include <sys/wait.h>
6440 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6443 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6451 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6456 rm -f conftest.
$ac_objext
6457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6458 (eval $ac_compile) 2>conftest.er1
6460 grep -v '^ *+' conftest.er1
>conftest.err
6462 cat conftest.err
>&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } &&
6465 { ac_try
='test -z "$ac_c_werror_flag"
6466 || test ! -s conftest.err'
6467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); }; } &&
6472 { ac_try
='test -s conftest.$ac_objext'
6473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); }; }; then
6478 ac_cv_header_sys_wait_h
=yes
6480 echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.
$ac_ext >&5
6483 ac_cv_header_sys_wait_h
=no
6485 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6487 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6488 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6489 if test $ac_cv_header_sys_wait_h = yes; then
6491 cat >>confdefs.h
<<\_ACEOF
6492 #define HAVE_SYS_WAIT_H 1
6498 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6499 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6500 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6503 cat >conftest.
$ac_ext <<_ACEOF
6506 cat confdefs.h
>>conftest.
$ac_ext
6507 cat >>conftest.
$ac_ext <<_ACEOF
6508 /* end confdefs.h. */
6509 #ifdef TIME_WITH_SYS_TIME
6510 #include <sys/time.h>
6513 #ifdef HAVE_SYS_TIME_H
6514 #include <sys/time.h>
6525 static struct utimbuf x; x.actime = x.modtime;
6530 rm -f conftest.
$ac_objext
6531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6532 (eval $ac_compile) 2>conftest.er1
6534 grep -v '^ *+' conftest.er1
>conftest.err
6536 cat conftest.err
>&5
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); } &&
6539 { ac_try
='test -z "$ac_c_werror_flag"
6540 || test ! -s conftest.err'
6541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); }; } &&
6546 { ac_try
='test -s conftest.$ac_objext'
6547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); }; }; then
6552 emacs_cv_struct_utimbuf
=yes
6554 echo "$as_me: failed program was:" >&5
6555 sed 's/^/| /' conftest.
$ac_ext >&5
6557 emacs_cv_struct_utimbuf
=no
6559 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6561 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6562 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6563 if test $emacs_cv_struct_utimbuf = yes; then
6565 cat >>confdefs.h
<<\_ACEOF
6566 #define HAVE_STRUCT_UTIMBUF 1
6571 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6572 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6573 if test "${ac_cv_type_signal+set}" = set; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 cat >conftest.
$ac_ext <<_ACEOF
6579 cat confdefs.h
>>conftest.
$ac_ext
6580 cat >>conftest.
$ac_ext <<_ACEOF
6581 /* end confdefs.h. */
6582 #include <sys/types.h>
6588 extern "C" void (*signal (int, void (*)(int)))(int);
6590 void (*signal ()) ();
6601 rm -f conftest.
$ac_objext
6602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6603 (eval $ac_compile) 2>conftest.er1
6605 grep -v '^ *+' conftest.er1
>conftest.err
6607 cat conftest.err
>&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); } &&
6610 { ac_try
='test -z "$ac_c_werror_flag"
6611 || test ! -s conftest.err'
6612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; } &&
6617 { ac_try
='test -s conftest.$ac_objext'
6618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); }; }; then
6623 ac_cv_type_signal
=void
6625 echo "$as_me: failed program was:" >&5
6626 sed 's/^/| /' conftest.
$ac_ext >&5
6628 ac_cv_type_signal
=int
6630 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6632 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6633 echo "${ECHO_T}$ac_cv_type_signal" >&6
6635 cat >>confdefs.h
<<_ACEOF
6636 #define RETSIGTYPE $ac_cv_type_signal
6641 echo "$as_me:$LINENO: checking for speed_t" >&5
6642 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6643 if test "${emacs_cv_speed_t+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6646 cat >conftest.
$ac_ext <<_ACEOF
6649 cat confdefs.h
>>conftest.
$ac_ext
6650 cat >>conftest.
$ac_ext <<_ACEOF
6651 /* end confdefs.h. */
6652 #include <termios.h>
6661 rm -f conftest.
$ac_objext
6662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6663 (eval $ac_compile) 2>conftest.er1
6665 grep -v '^ *+' conftest.er1
>conftest.err
6667 cat conftest.err
>&5
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); } &&
6670 { ac_try
='test -z "$ac_c_werror_flag"
6671 || test ! -s conftest.err'
6672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); }; } &&
6677 { ac_try
='test -s conftest.$ac_objext'
6678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); }; }; then
6683 emacs_cv_speed_t
=yes
6685 echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.
$ac_ext >&5
6690 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6692 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6693 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6694 if test $emacs_cv_speed_t = yes; then
6696 cat >>confdefs.h
<<\_ACEOF
6697 #define HAVE_SPEED_T 1
6702 echo "$as_me:$LINENO: checking for struct timeval" >&5
6703 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6704 if test "${emacs_cv_struct_timeval+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6707 cat >conftest.
$ac_ext <<_ACEOF
6710 cat confdefs.h
>>conftest.
$ac_ext
6711 cat >>conftest.
$ac_ext <<_ACEOF
6712 /* end confdefs.h. */
6713 #ifdef TIME_WITH_SYS_TIME
6714 #include <sys/time.h>
6717 #ifdef HAVE_SYS_TIME_H
6718 #include <sys/time.h>
6726 static struct timeval x; x.tv_sec = x.tv_usec;
6731 rm -f conftest.
$ac_objext
6732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6733 (eval $ac_compile) 2>conftest.er1
6735 grep -v '^ *+' conftest.er1
>conftest.err
6737 cat conftest.err
>&5
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); } &&
6740 { ac_try
='test -z "$ac_c_werror_flag"
6741 || test ! -s conftest.err'
6742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); }; } &&
6747 { ac_try
='test -s conftest.$ac_objext'
6748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); }; }; then
6753 emacs_cv_struct_timeval
=yes
6755 echo "$as_me: failed program was:" >&5
6756 sed 's/^/| /' conftest.
$ac_ext >&5
6758 emacs_cv_struct_timeval
=no
6760 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6762 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6763 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6764 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6765 if test $emacs_cv_struct_timeval = yes; then
6767 cat >>confdefs.h
<<\_ACEOF
6768 #define HAVE_TIMEVAL 1
6773 echo "$as_me:$LINENO: checking for struct exception" >&5
6774 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6775 if test "${emacs_cv_struct_exception+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6778 cat >conftest.
$ac_ext <<_ACEOF
6781 cat confdefs.h
>>conftest.
$ac_ext
6782 cat >>conftest.
$ac_ext <<_ACEOF
6783 /* end confdefs.h. */
6788 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6793 rm -f conftest.
$ac_objext
6794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6795 (eval $ac_compile) 2>conftest.er1
6797 grep -v '^ *+' conftest.er1
>conftest.err
6799 cat conftest.err
>&5
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); } &&
6802 { ac_try
='test -z "$ac_c_werror_flag"
6803 || test ! -s conftest.err'
6804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); }; } &&
6809 { ac_try
='test -s conftest.$ac_objext'
6810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); }; }; then
6815 emacs_cv_struct_exception
=yes
6817 echo "$as_me: failed program was:" >&5
6818 sed 's/^/| /' conftest.
$ac_ext >&5
6820 emacs_cv_struct_exception
=no
6822 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6824 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6825 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6826 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6827 if test $emacs_cv_struct_exception != yes; then
6829 cat >>confdefs.h
<<\_ACEOF
6830 #define NO_MATHERR 1
6836 for ac_header
in sys
/socket.h
6838 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6840 echo "$as_me:$LINENO: checking for $ac_header" >&5
6841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6843 echo $ECHO_N "(cached) $ECHO_C" >&6
6845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6848 # Is the header compilable?
6849 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6851 cat >conftest.
$ac_ext <<_ACEOF
6854 cat confdefs.h
>>conftest.
$ac_ext
6855 cat >>conftest.
$ac_ext <<_ACEOF
6856 /* end confdefs.h. */
6857 $ac_includes_default
6858 #include <$ac_header>
6860 rm -f conftest.
$ac_objext
6861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6862 (eval $ac_compile) 2>conftest.er1
6864 grep -v '^ *+' conftest.er1
>conftest.err
6866 cat conftest.err
>&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } &&
6869 { ac_try
='test -z "$ac_c_werror_flag"
6870 || test ! -s conftest.err'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; } &&
6876 { ac_try
='test -s conftest.$ac_objext'
6877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); }; }; then
6882 ac_header_compiler
=yes
6884 echo "$as_me: failed program was:" >&5
6885 sed 's/^/| /' conftest.
$ac_ext >&5
6887 ac_header_compiler
=no
6889 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6890 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6891 echo "${ECHO_T}$ac_header_compiler" >&6
6893 # Is the header present?
6894 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6895 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6896 cat >conftest.
$ac_ext <<_ACEOF
6899 cat confdefs.h
>>conftest.
$ac_ext
6900 cat >>conftest.
$ac_ext <<_ACEOF
6901 /* end confdefs.h. */
6902 #include <$ac_header>
6904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6905 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6907 grep -v '^ *+' conftest.er1
>conftest.err
6909 cat conftest.err
>&5
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); } >/dev
/null
; then
6912 if test -s conftest.err
; then
6913 ac_cpp_err
=$ac_c_preproc_warn_flag
6914 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6921 if test -z "$ac_cpp_err"; then
6922 ac_header_preproc
=yes
6924 echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.
$ac_ext >&5
6927 ac_header_preproc
=no
6929 rm -f conftest.err conftest.
$ac_ext
6930 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6931 echo "${ECHO_T}$ac_header_preproc" >&6
6933 # So? What about this header?
6934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6936 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6937 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6939 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6940 ac_header_preproc
=yes
6943 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6944 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6945 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6946 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6947 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6948 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6949 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6950 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6953 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6954 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6957 ## ------------------------------------------ ##
6958 ## Report this to the AC_PACKAGE_NAME lists. ##
6959 ## ------------------------------------------ ##
6962 sed "s/^/$as_me: WARNING: /" >&2
6965 echo "$as_me:$LINENO: checking for $ac_header" >&5
6966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6968 echo $ECHO_N "(cached) $ECHO_C" >&6
6970 eval "$as_ac_Header=\$ac_header_preproc"
6972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6977 cat >>confdefs.h
<<_ACEOF
6978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6986 for ac_header
in net
/if.h
6988 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6989 echo "$as_me:$LINENO: checking for $ac_header" >&5
6990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 cat >conftest.
$ac_ext <<_ACEOF
6997 cat confdefs.h
>>conftest.
$ac_ext
6998 cat >>conftest.
$ac_ext <<_ACEOF
6999 /* end confdefs.h. */
7000 $ac_includes_default
7001 #if HAVE_SYS_SOCKET_H
7002 #include <sys/socket.h>
7005 #include <$ac_header>
7007 rm -f conftest.
$ac_objext
7008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7009 (eval $ac_compile) 2>conftest.er1
7011 grep -v '^ *+' conftest.er1
>conftest.err
7013 cat conftest.err
>&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); } &&
7016 { ac_try
='test -z "$ac_c_werror_flag"
7017 || test ! -s conftest.err'
7018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); }; } &&
7023 { ac_try
='test -s conftest.$ac_objext'
7024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); }; }; then
7029 eval "$as_ac_Header=yes"
7031 echo "$as_me: failed program was:" >&5
7032 sed 's/^/| /' conftest.
$ac_ext >&5
7034 eval "$as_ac_Header=no"
7036 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7041 cat >>confdefs.h
<<_ACEOF
7042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7050 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7051 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7052 if test "${ac_cv_struct_tm+set}" = set; then
7053 echo $ECHO_N "(cached) $ECHO_C" >&6
7055 cat >conftest.
$ac_ext <<_ACEOF
7058 cat confdefs.h
>>conftest.
$ac_ext
7059 cat >>conftest.
$ac_ext <<_ACEOF
7060 /* end confdefs.h. */
7061 #include <sys/types.h>
7067 struct tm *tp; tp->tm_sec;
7072 rm -f conftest.
$ac_objext
7073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7074 (eval $ac_compile) 2>conftest.er1
7076 grep -v '^ *+' conftest.er1
>conftest.err
7078 cat conftest.err
>&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } &&
7081 { ac_try
='test -z "$ac_c_werror_flag"
7082 || test ! -s conftest.err'
7083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); }; } &&
7088 { ac_try
='test -s conftest.$ac_objext'
7089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); }; }; then
7094 ac_cv_struct_tm
=time.h
7096 echo "$as_me: failed program was:" >&5
7097 sed 's/^/| /' conftest.
$ac_ext >&5
7099 ac_cv_struct_tm
=sys
/time.h
7101 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7103 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7104 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7105 if test $ac_cv_struct_tm = sys
/time.h
; then
7107 cat >>confdefs.h
<<\_ACEOF
7108 #define TM_IN_SYS_TIME 1
7113 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7114 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
7115 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7118 cat >conftest.
$ac_ext <<_ACEOF
7121 cat confdefs.h
>>conftest.
$ac_ext
7122 cat >>conftest.
$ac_ext <<_ACEOF
7123 /* end confdefs.h. */
7124 #include <sys/types.h>
7125 #include <$ac_cv_struct_tm>
7131 static struct tm ac_aggr;
7132 if (ac_aggr.tm_zone)
7138 rm -f conftest.
$ac_objext
7139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7140 (eval $ac_compile) 2>conftest.er1
7142 grep -v '^ *+' conftest.er1
>conftest.err
7144 cat conftest.err
>&5
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); } &&
7147 { ac_try
='test -z "$ac_c_werror_flag"
7148 || test ! -s conftest.err'
7149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); }; } &&
7154 { ac_try
='test -s conftest.$ac_objext'
7155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); }; }; then
7160 ac_cv_member_struct_tm_tm_zone
=yes
7162 echo "$as_me: failed program was:" >&5
7163 sed 's/^/| /' conftest.
$ac_ext >&5
7165 cat >conftest.
$ac_ext <<_ACEOF
7168 cat confdefs.h
>>conftest.
$ac_ext
7169 cat >>conftest.
$ac_ext <<_ACEOF
7170 /* end confdefs.h. */
7171 #include <sys/types.h>
7172 #include <$ac_cv_struct_tm>
7178 static struct tm ac_aggr;
7179 if (sizeof ac_aggr.tm_zone)
7185 rm -f conftest.
$ac_objext
7186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7187 (eval $ac_compile) 2>conftest.er1
7189 grep -v '^ *+' conftest.er1
>conftest.err
7191 cat conftest.err
>&5
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); } &&
7194 { ac_try
='test -z "$ac_c_werror_flag"
7195 || test ! -s conftest.err'
7196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); }; } &&
7201 { ac_try
='test -s conftest.$ac_objext'
7202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); }; }; then
7207 ac_cv_member_struct_tm_tm_zone
=yes
7209 echo "$as_me: failed program was:" >&5
7210 sed 's/^/| /' conftest.
$ac_ext >&5
7212 ac_cv_member_struct_tm_tm_zone
=no
7214 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7216 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7218 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7219 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7220 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7222 cat >>confdefs.h
<<_ACEOF
7223 #define HAVE_STRUCT_TM_TM_ZONE 1
7229 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7231 cat >>confdefs.h
<<\_ACEOF
7232 #define HAVE_TM_ZONE 1
7236 echo "$as_me:$LINENO: checking for tzname" >&5
7237 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7238 if test "${ac_cv_var_tzname+set}" = set; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 cat >conftest.
$ac_ext <<_ACEOF
7244 cat confdefs.h
>>conftest.
$ac_ext
7245 cat >>conftest.
$ac_ext <<_ACEOF
7246 /* end confdefs.h. */
7248 #ifndef tzname /* For SGI. */
7249 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7260 rm -f conftest.
$ac_objext conftest
$ac_exeext
7261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7262 (eval $ac_link) 2>conftest.er1
7264 grep -v '^ *+' conftest.er1
>conftest.err
7266 cat conftest.err
>&5
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); } &&
7269 { ac_try
='test -z "$ac_c_werror_flag"
7270 || test ! -s conftest.err'
7271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); }; } &&
7276 { ac_try
='test -s conftest$ac_exeext'
7277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); }; }; then
7282 ac_cv_var_tzname
=yes
7284 echo "$as_me: failed program was:" >&5
7285 sed 's/^/| /' conftest.
$ac_ext >&5
7289 rm -f conftest.err conftest.
$ac_objext \
7290 conftest
$ac_exeext conftest.
$ac_ext
7292 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7293 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7294 if test $ac_cv_var_tzname = yes; then
7296 cat >>confdefs.h
<<\_ACEOF
7297 #define HAVE_TZNAME 1
7303 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7304 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7305 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7308 cat >conftest.
$ac_ext <<_ACEOF
7311 cat confdefs.h
>>conftest.
$ac_ext
7312 cat >>conftest.
$ac_ext <<_ACEOF
7313 /* end confdefs.h. */
7319 static struct tm ac_aggr;
7320 if (ac_aggr.tm_gmtoff)
7326 rm -f conftest.
$ac_objext
7327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7328 (eval $ac_compile) 2>conftest.er1
7330 grep -v '^ *+' conftest.er1
>conftest.err
7332 cat conftest.err
>&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); } &&
7335 { ac_try
='test -z "$ac_c_werror_flag"
7336 || test ! -s conftest.err'
7337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); }; } &&
7342 { ac_try
='test -s conftest.$ac_objext'
7343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); }; }; then
7348 ac_cv_member_struct_tm_tm_gmtoff
=yes
7350 echo "$as_me: failed program was:" >&5
7351 sed 's/^/| /' conftest.
$ac_ext >&5
7353 cat >conftest.
$ac_ext <<_ACEOF
7356 cat confdefs.h
>>conftest.
$ac_ext
7357 cat >>conftest.
$ac_ext <<_ACEOF
7358 /* end confdefs.h. */
7364 static struct tm ac_aggr;
7365 if (sizeof ac_aggr.tm_gmtoff)
7371 rm -f conftest.
$ac_objext
7372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7373 (eval $ac_compile) 2>conftest.er1
7375 grep -v '^ *+' conftest.er1
>conftest.err
7377 cat conftest.err
>&5
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } &&
7380 { ac_try
='test -z "$ac_c_werror_flag"
7381 || test ! -s conftest.err'
7382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); }; } &&
7387 { ac_try
='test -s conftest.$ac_objext'
7388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); }; }; then
7393 ac_cv_member_struct_tm_tm_gmtoff
=yes
7395 echo "$as_me: failed program was:" >&5
7396 sed 's/^/| /' conftest.
$ac_ext >&5
7398 ac_cv_member_struct_tm_tm_gmtoff
=no
7400 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7402 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7404 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7405 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7406 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7408 cat >>confdefs.h
<<\_ACEOF
7409 #define HAVE_TM_GMTOFF 1
7414 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7415 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7416 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7419 cat >conftest.
$ac_ext <<_ACEOF
7422 cat confdefs.h
>>conftest.
$ac_ext
7423 cat >>conftest.
$ac_ext <<_ACEOF
7424 /* end confdefs.h. */
7425 $ac_includes_default
7426 #if HAVE_SYS_SOCKET_H
7427 #include <sys/socket.h>
7436 static struct ifreq ac_aggr;
7437 if (ac_aggr.ifr_flags)
7443 rm -f conftest.
$ac_objext
7444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7445 (eval $ac_compile) 2>conftest.er1
7447 grep -v '^ *+' conftest.er1
>conftest.err
7449 cat conftest.err
>&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } &&
7452 { ac_try
='test -z "$ac_c_werror_flag"
7453 || test ! -s conftest.err'
7454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); }; } &&
7459 { ac_try
='test -s conftest.$ac_objext'
7460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); }; }; then
7465 ac_cv_member_struct_ifreq_ifr_flags
=yes
7467 echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.
$ac_ext >&5
7470 cat >conftest.
$ac_ext <<_ACEOF
7473 cat confdefs.h
>>conftest.
$ac_ext
7474 cat >>conftest.
$ac_ext <<_ACEOF
7475 /* end confdefs.h. */
7476 $ac_includes_default
7477 #if HAVE_SYS_SOCKET_H
7478 #include <sys/socket.h>
7487 static struct ifreq ac_aggr;
7488 if (sizeof ac_aggr.ifr_flags)
7494 rm -f conftest.
$ac_objext
7495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7496 (eval $ac_compile) 2>conftest.er1
7498 grep -v '^ *+' conftest.er1
>conftest.err
7500 cat conftest.err
>&5
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); } &&
7503 { ac_try
='test -z "$ac_c_werror_flag"
7504 || test ! -s conftest.err'
7505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); }; } &&
7510 { ac_try
='test -s conftest.$ac_objext'
7511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); }; }; then
7516 ac_cv_member_struct_ifreq_ifr_flags
=yes
7518 echo "$as_me: failed program was:" >&5
7519 sed 's/^/| /' conftest.
$ac_ext >&5
7521 ac_cv_member_struct_ifreq_ifr_flags
=no
7523 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7525 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7527 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7528 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7529 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7531 cat >>confdefs.h
<<_ACEOF
7532 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7537 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7538 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7539 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
7542 cat >conftest.
$ac_ext <<_ACEOF
7545 cat confdefs.h
>>conftest.
$ac_ext
7546 cat >>conftest.
$ac_ext <<_ACEOF
7547 /* end confdefs.h. */
7548 $ac_includes_default
7549 #if HAVE_SYS_SOCKET_H
7550 #include <sys/socket.h>
7559 static struct ifreq ac_aggr;
7560 if (ac_aggr.ifr_hwaddr)
7566 rm -f conftest.
$ac_objext
7567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7568 (eval $ac_compile) 2>conftest.er1
7570 grep -v '^ *+' conftest.er1
>conftest.err
7572 cat conftest.err
>&5
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); } &&
7575 { ac_try
='test -z "$ac_c_werror_flag"
7576 || test ! -s conftest.err'
7577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); }; } &&
7582 { ac_try
='test -s conftest.$ac_objext'
7583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); }; }; then
7588 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7590 echo "$as_me: failed program was:" >&5
7591 sed 's/^/| /' conftest.
$ac_ext >&5
7593 cat >conftest.
$ac_ext <<_ACEOF
7596 cat confdefs.h
>>conftest.
$ac_ext
7597 cat >>conftest.
$ac_ext <<_ACEOF
7598 /* end confdefs.h. */
7599 $ac_includes_default
7600 #if HAVE_SYS_SOCKET_H
7601 #include <sys/socket.h>
7610 static struct ifreq ac_aggr;
7611 if (sizeof ac_aggr.ifr_hwaddr)
7617 rm -f conftest.
$ac_objext
7618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7619 (eval $ac_compile) 2>conftest.er1
7621 grep -v '^ *+' conftest.er1
>conftest.err
7623 cat conftest.err
>&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); } &&
7626 { ac_try
='test -z "$ac_c_werror_flag"
7627 || test ! -s conftest.err'
7628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); }; } &&
7633 { ac_try
='test -s conftest.$ac_objext'
7634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); }; }; then
7639 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7641 echo "$as_me: failed program was:" >&5
7642 sed 's/^/| /' conftest.
$ac_ext >&5
7644 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
7646 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7648 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7650 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7651 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7652 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7654 cat >>confdefs.h
<<_ACEOF
7655 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7660 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7661 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7662 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7665 cat >conftest.
$ac_ext <<_ACEOF
7668 cat confdefs.h
>>conftest.
$ac_ext
7669 cat >>conftest.
$ac_ext <<_ACEOF
7670 /* end confdefs.h. */
7671 $ac_includes_default
7672 #if HAVE_SYS_SOCKET_H
7673 #include <sys/socket.h>
7682 static struct ifreq ac_aggr;
7683 if (ac_aggr.ifr_netmask)
7689 rm -f conftest.
$ac_objext
7690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7691 (eval $ac_compile) 2>conftest.er1
7693 grep -v '^ *+' conftest.er1
>conftest.err
7695 cat conftest.err
>&5
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); } &&
7698 { ac_try
='test -z "$ac_c_werror_flag"
7699 || test ! -s conftest.err'
7700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); }; } &&
7705 { ac_try
='test -s conftest.$ac_objext'
7706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); }; }; then
7711 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7713 echo "$as_me: failed program was:" >&5
7714 sed 's/^/| /' conftest.
$ac_ext >&5
7716 cat >conftest.
$ac_ext <<_ACEOF
7719 cat confdefs.h
>>conftest.
$ac_ext
7720 cat >>conftest.
$ac_ext <<_ACEOF
7721 /* end confdefs.h. */
7722 $ac_includes_default
7723 #if HAVE_SYS_SOCKET_H
7724 #include <sys/socket.h>
7733 static struct ifreq ac_aggr;
7734 if (sizeof ac_aggr.ifr_netmask)
7740 rm -f conftest.
$ac_objext
7741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7742 (eval $ac_compile) 2>conftest.er1
7744 grep -v '^ *+' conftest.er1
>conftest.err
7746 cat conftest.err
>&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); } &&
7749 { ac_try
='test -z "$ac_c_werror_flag"
7750 || test ! -s conftest.err'
7751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; } &&
7756 { ac_try
='test -s conftest.$ac_objext'
7757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); }; }; then
7762 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7764 echo "$as_me: failed program was:" >&5
7765 sed 's/^/| /' conftest.
$ac_ext >&5
7767 ac_cv_member_struct_ifreq_ifr_netmask
=no
7769 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7771 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7773 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7774 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7775 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7777 cat >>confdefs.h
<<_ACEOF
7778 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7783 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7784 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7785 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7788 cat >conftest.
$ac_ext <<_ACEOF
7791 cat confdefs.h
>>conftest.
$ac_ext
7792 cat >>conftest.
$ac_ext <<_ACEOF
7793 /* end confdefs.h. */
7794 $ac_includes_default
7795 #if HAVE_SYS_SOCKET_H
7796 #include <sys/socket.h>
7805 static struct ifreq ac_aggr;
7806 if (ac_aggr.ifr_broadaddr)
7812 rm -f conftest.
$ac_objext
7813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7814 (eval $ac_compile) 2>conftest.er1
7816 grep -v '^ *+' conftest.er1
>conftest.err
7818 cat conftest.err
>&5
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); } &&
7821 { ac_try
='test -z "$ac_c_werror_flag"
7822 || test ! -s conftest.err'
7823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); }; } &&
7828 { ac_try
='test -s conftest.$ac_objext'
7829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); }; }; then
7834 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7836 echo "$as_me: failed program was:" >&5
7837 sed 's/^/| /' conftest.
$ac_ext >&5
7839 cat >conftest.
$ac_ext <<_ACEOF
7842 cat confdefs.h
>>conftest.
$ac_ext
7843 cat >>conftest.
$ac_ext <<_ACEOF
7844 /* end confdefs.h. */
7845 $ac_includes_default
7846 #if HAVE_SYS_SOCKET_H
7847 #include <sys/socket.h>
7856 static struct ifreq ac_aggr;
7857 if (sizeof ac_aggr.ifr_broadaddr)
7863 rm -f conftest.
$ac_objext
7864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7865 (eval $ac_compile) 2>conftest.er1
7867 grep -v '^ *+' conftest.er1
>conftest.err
7869 cat conftest.err
>&5
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); } &&
7872 { ac_try
='test -z "$ac_c_werror_flag"
7873 || test ! -s conftest.err'
7874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); }; } &&
7879 { ac_try
='test -s conftest.$ac_objext'
7880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); }; }; then
7885 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7887 echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.
$ac_ext >&5
7890 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7892 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7894 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7896 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7897 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7898 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7900 cat >>confdefs.h
<<_ACEOF
7901 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7906 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7907 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7908 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7911 cat >conftest.
$ac_ext <<_ACEOF
7914 cat confdefs.h
>>conftest.
$ac_ext
7915 cat >>conftest.
$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7917 $ac_includes_default
7918 #if HAVE_SYS_SOCKET_H
7919 #include <sys/socket.h>
7928 static struct ifreq ac_aggr;
7929 if (ac_aggr.ifr_addr)
7935 rm -f conftest.
$ac_objext
7936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7937 (eval $ac_compile) 2>conftest.er1
7939 grep -v '^ *+' conftest.er1
>conftest.err
7941 cat conftest.err
>&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); } &&
7944 { ac_try
='test -z "$ac_c_werror_flag"
7945 || test ! -s conftest.err'
7946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); }; } &&
7951 { ac_try
='test -s conftest.$ac_objext'
7952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); }; }; then
7957 ac_cv_member_struct_ifreq_ifr_addr
=yes
7959 echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.
$ac_ext >&5
7962 cat >conftest.
$ac_ext <<_ACEOF
7965 cat confdefs.h
>>conftest.
$ac_ext
7966 cat >>conftest.
$ac_ext <<_ACEOF
7967 /* end confdefs.h. */
7968 $ac_includes_default
7969 #if HAVE_SYS_SOCKET_H
7970 #include <sys/socket.h>
7979 static struct ifreq ac_aggr;
7980 if (sizeof ac_aggr.ifr_addr)
7986 rm -f conftest.
$ac_objext
7987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7988 (eval $ac_compile) 2>conftest.er1
7990 grep -v '^ *+' conftest.er1
>conftest.err
7992 cat conftest.err
>&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); } &&
7995 { ac_try
='test -z "$ac_c_werror_flag"
7996 || test ! -s conftest.err'
7997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); }; } &&
8002 { ac_try
='test -s conftest.$ac_objext'
8003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); }; }; then
8008 ac_cv_member_struct_ifreq_ifr_addr
=yes
8010 echo "$as_me: failed program was:" >&5
8011 sed 's/^/| /' conftest.
$ac_ext >&5
8013 ac_cv_member_struct_ifreq_ifr_addr
=no
8015 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8017 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8019 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8020 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
8021 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8023 cat >>confdefs.h
<<_ACEOF
8024 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8032 echo "$as_me:$LINENO: checking for function prototypes" >&5
8033 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8034 if test "$ac_cv_prog_cc_stdc" != no
; then
8035 echo "$as_me:$LINENO: result: yes" >&5
8036 echo "${ECHO_T}yes" >&6
8038 cat >>confdefs.h
<<\_ACEOF
8039 #define PROTOTYPES 1
8043 cat >>confdefs.h
<<\_ACEOF
8044 #define __PROTOTYPES 1
8048 echo "$as_me:$LINENO: result: no" >&5
8049 echo "${ECHO_T}no" >&6
8052 echo "$as_me:$LINENO: checking for working volatile" >&5
8053 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8054 if test "${ac_cv_c_volatile+set}" = set; then
8055 echo $ECHO_N "(cached) $ECHO_C" >&6
8057 cat >conftest.
$ac_ext <<_ACEOF
8060 cat confdefs.h
>>conftest.
$ac_ext
8061 cat >>conftest.
$ac_ext <<_ACEOF
8062 /* end confdefs.h. */
8074 rm -f conftest.
$ac_objext
8075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8076 (eval $ac_compile) 2>conftest.er1
8078 grep -v '^ *+' conftest.er1
>conftest.err
8080 cat conftest.err
>&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } &&
8083 { ac_try
='test -z "$ac_c_werror_flag"
8084 || test ! -s conftest.err'
8085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); }; } &&
8090 { ac_try
='test -s conftest.$ac_objext'
8091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); }; }; then
8096 ac_cv_c_volatile
=yes
8098 echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.
$ac_ext >&5
8103 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8105 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8106 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8107 if test $ac_cv_c_volatile = no
; then
8109 cat >>confdefs.h
<<\_ACEOF
8115 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8116 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8117 if test "${ac_cv_c_const+set}" = set; then
8118 echo $ECHO_N "(cached) $ECHO_C" >&6
8120 cat >conftest.
$ac_ext <<_ACEOF
8123 cat confdefs.h
>>conftest.
$ac_ext
8124 cat >>conftest.
$ac_ext <<_ACEOF
8125 /* end confdefs.h. */
8130 /* FIXME: Include the comments suggested by Paul. */
8132 /* Ultrix mips cc rejects this. */
8133 typedef int charset[2];
8135 /* SunOS 4.1.1 cc rejects this. */
8136 char const *const *ccp;
8138 /* NEC SVR4.0.2 mips cc rejects this. */
8139 struct point {int x, y;};
8140 static struct point const zero = {0,0};
8141 /* AIX XL C 1.02.0.0 rejects this.
8142 It does not let you subtract one const X* pointer from another in
8143 an arm of an if-expression whose if-part is not a constant
8145 const char *g = "string";
8146 ccp = &g + (g ? g-g : 0);
8147 /* HPUX 7.0 cc rejects these. */
8150 ccp = (char const *const *) p;
8151 { /* SCO 3.2v4 cc rejects this. */
8153 char const *s = 0 ? (char *) 0 : (char const *) 0;
8157 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8159 const int *foo = &x[0];
8162 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8163 typedef const int *iptr;
8167 { /* AIX XL C 1.02.0.0 rejects this saying
8168 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8169 struct s { int j; const int *ap[3]; };
8170 struct s *b; b->j = 5;
8172 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8181 rm -f conftest.
$ac_objext
8182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8183 (eval $ac_compile) 2>conftest.er1
8185 grep -v '^ *+' conftest.er1
>conftest.err
8187 cat conftest.err
>&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } &&
8190 { ac_try
='test -z "$ac_c_werror_flag"
8191 || test ! -s conftest.err'
8192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); }; } &&
8197 { ac_try
='test -s conftest.$ac_objext'
8198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); }; }; then
8205 echo "$as_me: failed program was:" >&5
8206 sed 's/^/| /' conftest.
$ac_ext >&5
8210 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8212 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8213 echo "${ECHO_T}$ac_cv_c_const" >&6
8214 if test $ac_cv_c_const = no
; then
8216 cat >>confdefs.h
<<\_ACEOF
8222 echo "$as_me:$LINENO: checking for void * support" >&5
8223 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8224 if test "${emacs_cv_void_star+set}" = set; then
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
8227 cat >conftest.
$ac_ext <<_ACEOF
8230 cat confdefs.h
>>conftest.
$ac_ext
8231 cat >>conftest.
$ac_ext <<_ACEOF
8232 /* end confdefs.h. */
8242 rm -f conftest.
$ac_objext
8243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8244 (eval $ac_compile) 2>conftest.er1
8246 grep -v '^ *+' conftest.er1
>conftest.err
8248 cat conftest.err
>&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } &&
8251 { ac_try
='test -z "$ac_c_werror_flag"
8252 || test ! -s conftest.err'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; } &&
8258 { ac_try
='test -s conftest.$ac_objext'
8259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); }; }; then
8264 emacs_cv_void_star
=yes
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.
$ac_ext >&5
8269 emacs_cv_void_star
=no
8271 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8273 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8274 echo "${ECHO_T}$emacs_cv_void_star" >&6
8275 if test $emacs_cv_void_star = yes; then
8276 cat >>confdefs.h
<<\_ACEOF
8277 #define POINTER_TYPE void
8281 cat >>confdefs.h
<<\_ACEOF
8282 #define POINTER_TYPE char
8291 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8292 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8293 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
8294 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8295 echo $ECHO_N "(cached) $ECHO_C" >&6
8297 cat >conftest.
make <<\_ACEOF
8299 @
echo 'ac_maketemp="$(MAKE)"'
8301 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8302 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8303 if test -n "$ac_maketemp"; then
8304 eval ac_cv_prog_make_
${ac_make}_set
=yes
8306 eval ac_cv_prog_make_
${ac_make}_set
=no
8310 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8311 echo "$as_me:$LINENO: result: yes" >&5
8312 echo "${ECHO_T}yes" >&6
8315 echo "$as_me:$LINENO: result: no" >&5
8316 echo "${ECHO_T}no" >&6
8317 SET_MAKE
="MAKE=${MAKE-make}"
8321 echo "$as_me:$LINENO: checking for long file names" >&5
8322 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8323 if test "${ac_cv_sys_long_file_names+set}" = set; then
8324 echo $ECHO_N "(cached) $ECHO_C" >&6
8326 ac_cv_sys_long_file_names
=yes
8327 # Test for long file names in all the places we know might matter:
8328 # . the current directory, where building will happen
8329 # $prefix/lib where we will be installing things
8330 # $exec_prefix/lib likewise
8331 # eval it to expand exec_prefix.
8332 # $TMPDIR if set, where it might want to write temporary files
8333 # if $TMPDIR is not set:
8334 # /tmp where it might want to write temporary files
8337 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8340 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
8342 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8343 test -d $ac_dir ||
continue
8344 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
8345 ac_xdir
=$ac_dir/cf$$
8346 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
8347 ac_tf1
=$ac_xdir/conftest9012345
8348 ac_tf2
=$ac_xdir/conftest9012346
8349 (echo 1 >$ac_tf1) 2>/dev
/null
8350 (echo 2 >$ac_tf2) 2>/dev
/null
8351 ac_val
=`cat $ac_tf1 2>/dev/null`
8352 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
8353 ac_cv_sys_long_file_names
=no
8354 rm -rf $ac_xdir 2>/dev
/null
8357 rm -rf $ac_xdir 2>/dev
/null
8360 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8361 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8362 if test $ac_cv_sys_long_file_names = yes; then
8364 cat >>confdefs.h
<<\_ACEOF
8365 #define HAVE_LONG_FILE_NAMES 1
8371 #### Choose a window system.
8373 echo "$as_me:$LINENO: checking for X" >&5
8374 echo $ECHO_N "checking for X... $ECHO_C" >&6
8377 # Check whether --with-x or --without-x was given.
8378 if test "${with_x+set}" = set; then
8382 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8383 if test "x$with_x" = xno
; then
8384 # The user explicitly disabled X.
8387 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
8388 # Both variables are already set.
8391 if test "${ac_cv_have_x+set}" = set; then
8392 echo $ECHO_N "(cached) $ECHO_C" >&6
8394 # One or both of the vars are not set, and there is no cached value.
8395 ac_x_includes
=no ac_x_libraries
=no
8397 if mkdir conftest.dir
; then
8399 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8400 cat >Imakefile
<<'_ACEOF'
8402 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8404 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8405 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8406 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8407 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8408 for ac_extension
in a so sl
; do
8409 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
8410 test -f $ac_im_libdir/libX11.
$ac_extension; then
8411 ac_im_usrlibdir
=$ac_im_libdir; break
8414 # Screen out bogus values from the imake configuration. They are
8415 # bogus both because they are the default anyway, and because
8416 # using them would break gcc on systems where it needs fixed includes.
8417 case $ac_im_incroot in
8419 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8421 case $ac_im_usrlibdir in
8423 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8430 # Standard set of common directories for X headers.
8431 # Check X11 before X11Rn because it is often a symlink to the current release.
8443 /usr/local/X11/include
8444 /usr/local/X11R6/include
8445 /usr/local/X11R5/include
8446 /usr/local/X11R4/include
8448 /usr/local/include/X11
8449 /usr/local/include/X11R6
8450 /usr/local/include/X11R5
8451 /usr/local/include/X11R4
8455 /usr/XFree86/include/X11
8459 /usr/unsupported/include
8461 /usr/local/x11r5/include
8462 /usr/lpp/Xamples/include
8464 /usr/openwin/include
8465 /usr/openwin/share/include'
8467 if test "$ac_x_includes" = no
; then
8468 # Guess where to find include files, by looking for Intrinsic.h.
8469 # First, try using that file with no special directory specified.
8470 cat >conftest.
$ac_ext <<_ACEOF
8473 cat confdefs.h
>>conftest.
$ac_ext
8474 cat >>conftest.
$ac_ext <<_ACEOF
8475 /* end confdefs.h. */
8476 #include <X11/Intrinsic.h>
8478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8479 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8481 grep -v '^ *+' conftest.er1
>conftest.err
8483 cat conftest.err
>&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } >/dev
/null
; then
8486 if test -s conftest.err
; then
8487 ac_cpp_err
=$ac_c_preproc_warn_flag
8488 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8495 if test -z "$ac_cpp_err"; then
8496 # We can compile using X headers with no special include directory.
8499 echo "$as_me: failed program was:" >&5
8500 sed 's/^/| /' conftest.
$ac_ext >&5
8502 for ac_dir
in $ac_x_header_dirs; do
8503 if test -r "$ac_dir/X11/Intrinsic.h"; then
8504 ac_x_includes
=$ac_dir
8509 rm -f conftest.err conftest.
$ac_ext
8510 fi # $ac_x_includes = no
8512 if test "$ac_x_libraries" = no
; then
8513 # Check for the libraries.
8514 # See if we find them without any special options.
8515 # Don't add to $LIBS permanently.
8518 cat >conftest.
$ac_ext <<_ACEOF
8521 cat confdefs.h
>>conftest.
$ac_ext
8522 cat >>conftest.
$ac_ext <<_ACEOF
8523 /* end confdefs.h. */
8524 #include <X11/Intrinsic.h>
8533 rm -f conftest.
$ac_objext conftest
$ac_exeext
8534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8535 (eval $ac_link) 2>conftest.er1
8537 grep -v '^ *+' conftest.er1
>conftest.err
8539 cat conftest.err
>&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); } &&
8542 { ac_try
='test -z "$ac_c_werror_flag"
8543 || test ! -s conftest.err'
8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; } &&
8549 { ac_try
='test -s conftest$ac_exeext'
8550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); }; }; then
8556 # We can link X programs with no special library path.
8559 echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.
$ac_ext >&5
8563 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8565 # Don't even attempt the hair of trying to link an X program!
8566 for ac_extension
in a so sl
; do
8567 if test -r $ac_dir/libXt.
$ac_extension; then
8568 ac_x_libraries
=$ac_dir
8574 rm -f conftest.err conftest.
$ac_objext \
8575 conftest
$ac_exeext conftest.
$ac_ext
8576 fi # $ac_x_libraries = no
8578 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8579 # Didn't find X anywhere. Cache the known absence of X.
8580 ac_cv_have_x
="have_x=no"
8582 # Record where we found X for the cache.
8583 ac_cv_have_x
="have_x=yes \
8584 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8589 eval "$ac_cv_have_x"
8592 if test "$have_x" != yes; then
8593 echo "$as_me:$LINENO: result: $have_x" >&5
8594 echo "${ECHO_T}$have_x" >&6
8597 # If each of the values was on the command line, it overrides each guess.
8598 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8599 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8600 # Update the cache value to reflect the command line values.
8601 ac_cv_have_x
="have_x=yes \
8602 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8603 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8604 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8607 if test "$no_x" = yes; then
8613 if test "${x_libraries}" != NONE
; then
8614 if test -n "${x_libraries}"; then
8615 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8616 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8618 x_default_search_path
=""
8619 x_search_path
=${x_libraries}
8620 if test -z "${x_search_path}"; then
8621 x_search_path
=/usr
/lib
8623 for x_library
in `echo ${x_search_path}: | \
8624 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8626 ${x_library}/X11/%L/%T/%N%C%S:\
8627 ${x_library}/X11/%l/%T/%N%C%S:\
8628 ${x_library}/X11/%T/%N%C%S:\
8629 ${x_library}/X11/%L/%T/%N%S:\
8630 ${x_library}/X11/%l/%T/%N%S:\
8631 ${x_library}/X11/%T/%N%S"
8632 if test x
"${x_default_search_path}" = x
; then
8633 x_default_search_path
=${x_search_path}
8635 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8639 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8640 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8643 if test x
"${x_includes}" = x
; then
8644 bitmapdir
=/usr
/include
/X11
/bitmaps
8646 # accumulate include directories that have X11 bitmap subdirectories
8648 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8649 if test -d "${bmd}/X11/bitmaps"; then
8650 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8652 if test -d "${bmd}/bitmaps"; then
8653 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8656 if test ${bmd_acc} != "dummyval"; then
8657 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8662 if test "${with_carbon}" != no
; then
8663 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8664 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8665 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8666 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8667 echo $ECHO_N "(cached) $ECHO_C" >&6
8669 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8670 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8672 # Is the header compilable?
8673 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8674 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8675 cat >conftest.
$ac_ext <<_ACEOF
8678 cat confdefs.h
>>conftest.
$ac_ext
8679 cat >>conftest.
$ac_ext <<_ACEOF
8680 /* end confdefs.h. */
8681 $ac_includes_default
8682 #include <Carbon/Carbon.h>
8684 rm -f conftest.
$ac_objext
8685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8686 (eval $ac_compile) 2>conftest.er1
8688 grep -v '^ *+' conftest.er1
>conftest.err
8690 cat conftest.err
>&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); } &&
8693 { ac_try
='test -z "$ac_c_werror_flag"
8694 || test ! -s conftest.err'
8695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; } &&
8700 { ac_try
='test -s conftest.$ac_objext'
8701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); }; }; then
8706 ac_header_compiler
=yes
8708 echo "$as_me: failed program was:" >&5
8709 sed 's/^/| /' conftest.
$ac_ext >&5
8711 ac_header_compiler
=no
8713 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8714 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8715 echo "${ECHO_T}$ac_header_compiler" >&6
8717 # Is the header present?
8718 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8719 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8720 cat >conftest.
$ac_ext <<_ACEOF
8723 cat confdefs.h
>>conftest.
$ac_ext
8724 cat >>conftest.
$ac_ext <<_ACEOF
8725 /* end confdefs.h. */
8726 #include <Carbon/Carbon.h>
8728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8729 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8731 grep -v '^ *+' conftest.er1
>conftest.err
8733 cat conftest.err
>&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); } >/dev
/null
; then
8736 if test -s conftest.err
; then
8737 ac_cpp_err
=$ac_c_preproc_warn_flag
8738 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8745 if test -z "$ac_cpp_err"; then
8746 ac_header_preproc
=yes
8748 echo "$as_me: failed program was:" >&5
8749 sed 's/^/| /' conftest.
$ac_ext >&5
8751 ac_header_preproc
=no
8753 rm -f conftest.err conftest.
$ac_ext
8754 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8755 echo "${ECHO_T}$ac_header_preproc" >&6
8757 # So? What about this header?
8758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8760 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8761 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8762 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8763 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8764 ac_header_preproc
=yes
8767 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8768 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8769 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8770 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8771 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8772 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8773 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8774 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8775 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8776 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8777 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8778 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8781 ## ------------------------------------------ ##
8782 ## Report this to the AC_PACKAGE_NAME lists. ##
8783 ## ------------------------------------------ ##
8786 sed "s/^/$as_me: WARNING: /" >&2
8789 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8790 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8791 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8792 echo $ECHO_N "(cached) $ECHO_C" >&6
8794 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
8796 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8797 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8800 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8806 if test "${window_system}" = x11
&& test "${HAVE_CARBON}" = yes; then
8807 if test "${with_carbon+set}" != set \
8808 && test "${carbon_appdir_x+set}" != set; then
8812 if test "${HAVE_CARBON}" = yes; then
8816 case "${window_system}" in
8820 case "${with_x_toolkit}" in
8821 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8822 motif
) USE_X_TOOLKIT
=MOTIF
;;
8824 USE_X_TOOLKIT
=none
;;
8825 no
) USE_X_TOOLKIT
=none
;;
8826 * ) USE_X_TOOLKIT
=maybe
;;
8836 ### If we're using X11, we should use the X menu package.
8839 yes ) HAVE_MENUS
=yes ;;
8842 if test "${opsys}" = "hpux9"; then
8843 case "${x_libraries}" in
8845 opsysfile
="s/hpux9-x11r4.h"
8850 if test "${opsys}" = "hpux9shr"; then
8851 case "${x_libraries}" in
8853 opsysfile
="s/hpux9shxr4.h"
8858 ### Compute the unexec source name from the object name.
8859 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
8861 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8862 # Assume not, until told otherwise.
8865 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8866 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8867 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8868 echo $ECHO_N "(cached) $ECHO_C" >&6
8870 cat >conftest.
$ac_ext <<_ACEOF
8873 cat confdefs.h
>>conftest.
$ac_ext
8874 cat >>conftest.
$ac_ext <<_ACEOF
8875 /* end confdefs.h. */
8876 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8878 #define malloc_get_state innocuous_malloc_get_state
8880 /* System header to define __stub macros and hopefully few prototypes,
8881 which can conflict with char malloc_get_state (); below.
8882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8883 <limits.h> exists even on freestanding compilers. */
8886 # include <limits.h>
8888 # include <assert.h>
8891 #undef malloc_get_state
8893 /* Override any gcc2 internal prototype to avoid an error. */
8898 /* We use char because int might match the return type of a gcc2
8899 builtin and then its argument prototype would still apply. */
8900 char malloc_get_state ();
8901 /* The GNU C library defines this for functions which it implements
8902 to always fail with ENOSYS. Some functions are actually named
8903 something starting with __ and the normal name is an alias. */
8904 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8907 char (*f) () = malloc_get_state;
8916 return f != malloc_get_state;
8921 rm -f conftest.
$ac_objext conftest
$ac_exeext
8922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8923 (eval $ac_link) 2>conftest.er1
8925 grep -v '^ *+' conftest.er1
>conftest.err
8927 cat conftest.err
>&5
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); } &&
8930 { ac_try
='test -z "$ac_c_werror_flag"
8931 || test ! -s conftest.err'
8932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); }; } &&
8937 { ac_try
='test -s conftest$ac_exeext'
8938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); }; }; then
8943 ac_cv_func_malloc_get_state
=yes
8945 echo "$as_me: failed program was:" >&5
8946 sed 's/^/| /' conftest.
$ac_ext >&5
8948 ac_cv_func_malloc_get_state
=no
8950 rm -f conftest.err conftest.
$ac_objext \
8951 conftest
$ac_exeext conftest.
$ac_ext
8953 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8954 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8955 if test $ac_cv_func_malloc_get_state = yes; then
8961 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8962 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8963 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8964 echo $ECHO_N "(cached) $ECHO_C" >&6
8966 cat >conftest.
$ac_ext <<_ACEOF
8969 cat confdefs.h
>>conftest.
$ac_ext
8970 cat >>conftest.
$ac_ext <<_ACEOF
8971 /* end confdefs.h. */
8972 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8974 #define malloc_set_state innocuous_malloc_set_state
8976 /* System header to define __stub macros and hopefully few prototypes,
8977 which can conflict with char malloc_set_state (); below.
8978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8979 <limits.h> exists even on freestanding compilers. */
8982 # include <limits.h>
8984 # include <assert.h>
8987 #undef malloc_set_state
8989 /* Override any gcc2 internal prototype to avoid an error. */
8994 /* We use char because int might match the return type of a gcc2
8995 builtin and then its argument prototype would still apply. */
8996 char malloc_set_state ();
8997 /* The GNU C library defines this for functions which it implements
8998 to always fail with ENOSYS. Some functions are actually named
8999 something starting with __ and the normal name is an alias. */
9000 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
9003 char (*f) () = malloc_set_state;
9012 return f != malloc_set_state;
9017 rm -f conftest.
$ac_objext conftest
$ac_exeext
9018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9019 (eval $ac_link) 2>conftest.er1
9021 grep -v '^ *+' conftest.er1
>conftest.err
9023 cat conftest.err
>&5
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); } &&
9026 { ac_try
='test -z "$ac_c_werror_flag"
9027 || test ! -s conftest.err'
9028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); }; } &&
9033 { ac_try
='test -s conftest$ac_exeext'
9034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); }; }; then
9039 ac_cv_func_malloc_set_state
=yes
9041 echo "$as_me: failed program was:" >&5
9042 sed 's/^/| /' conftest.
$ac_ext >&5
9044 ac_cv_func_malloc_set_state
=no
9046 rm -f conftest.err conftest.
$ac_objext \
9047 conftest
$ac_exeext conftest.
$ac_ext
9049 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9050 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
9051 if test $ac_cv_func_malloc_set_state = yes; then
9057 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9058 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
9059 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9060 echo $ECHO_N "(cached) $ECHO_C" >&6
9062 cat >conftest.
$ac_ext <<_ACEOF
9065 cat confdefs.h
>>conftest.
$ac_ext
9066 cat >>conftest.
$ac_ext <<_ACEOF
9067 /* end confdefs.h. */
9068 extern void (* __after_morecore_hook)();
9072 __after_morecore_hook = 0
9077 rm -f conftest.
$ac_objext conftest
$ac_exeext
9078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9079 (eval $ac_link) 2>conftest.er1
9081 grep -v '^ *+' conftest.er1
>conftest.err
9083 cat conftest.err
>&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); } &&
9086 { ac_try
='test -z "$ac_c_werror_flag"
9087 || test ! -s conftest.err'
9088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); }; } &&
9093 { ac_try
='test -s conftest$ac_exeext'
9094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); }; }; then
9099 emacs_cv_var___after_morecore_hook
=yes
9101 echo "$as_me: failed program was:" >&5
9102 sed 's/^/| /' conftest.
$ac_ext >&5
9104 emacs_cv_var___after_morecore_hook
=no
9106 rm -f conftest.err conftest.
$ac_objext \
9107 conftest
$ac_exeext conftest.
$ac_ext
9109 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9110 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
9111 if test $emacs_cv_var___after_morecore_hook = no
; then
9114 if test "${system_malloc}" = "yes"; then
9117 (The GNU allocators don't work with this system configuration.)"
9119 if test "$doug_lea_malloc" = "yes" ; then
9120 if test "$GNU_MALLOC" = yes ; then
9122 (Using Doug Lea's new malloc from the GNU C Library.)"
9125 cat >>confdefs.h
<<\_ACEOF
9126 #define DOUG_LEA_MALLOC 1
9131 if test x
"${REL_ALLOC}" = x
; then
9132 REL_ALLOC
=${GNU_MALLOC}
9138 for ac_header
in stdlib.h unistd.h
9140 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9142 echo "$as_me:$LINENO: checking for $ac_header" >&5
9143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9145 echo $ECHO_N "(cached) $ECHO_C" >&6
9147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9150 # Is the header compilable?
9151 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9152 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9153 cat >conftest.
$ac_ext <<_ACEOF
9156 cat confdefs.h
>>conftest.
$ac_ext
9157 cat >>conftest.
$ac_ext <<_ACEOF
9158 /* end confdefs.h. */
9159 $ac_includes_default
9160 #include <$ac_header>
9162 rm -f conftest.
$ac_objext
9163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9164 (eval $ac_compile) 2>conftest.er1
9166 grep -v '^ *+' conftest.er1
>conftest.err
9168 cat conftest.err
>&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); } &&
9171 { ac_try
='test -z "$ac_c_werror_flag"
9172 || test ! -s conftest.err'
9173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); }; } &&
9178 { ac_try
='test -s conftest.$ac_objext'
9179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); }; }; then
9184 ac_header_compiler
=yes
9186 echo "$as_me: failed program was:" >&5
9187 sed 's/^/| /' conftest.
$ac_ext >&5
9189 ac_header_compiler
=no
9191 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9192 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9193 echo "${ECHO_T}$ac_header_compiler" >&6
9195 # Is the header present?
9196 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9198 cat >conftest.
$ac_ext <<_ACEOF
9201 cat confdefs.h
>>conftest.
$ac_ext
9202 cat >>conftest.
$ac_ext <<_ACEOF
9203 /* end confdefs.h. */
9204 #include <$ac_header>
9206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9207 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9209 grep -v '^ *+' conftest.er1
>conftest.err
9211 cat conftest.err
>&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); } >/dev
/null
; then
9214 if test -s conftest.err
; then
9215 ac_cpp_err
=$ac_c_preproc_warn_flag
9216 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9223 if test -z "$ac_cpp_err"; then
9224 ac_header_preproc
=yes
9226 echo "$as_me: failed program was:" >&5
9227 sed 's/^/| /' conftest.
$ac_ext >&5
9229 ac_header_preproc
=no
9231 rm -f conftest.err conftest.
$ac_ext
9232 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9233 echo "${ECHO_T}$ac_header_preproc" >&6
9235 # So? What about this header?
9236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9238 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9239 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9241 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9242 ac_header_preproc
=yes
9245 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9246 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9247 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9248 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9249 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9250 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9251 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9252 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9255 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9256 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9259 ## ------------------------------------------ ##
9260 ## Report this to the AC_PACKAGE_NAME lists. ##
9261 ## ------------------------------------------ ##
9264 sed "s/^/$as_me: WARNING: /" >&2
9267 echo "$as_me:$LINENO: checking for $ac_header" >&5
9268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9270 echo $ECHO_N "(cached) $ECHO_C" >&6
9272 eval "$as_ac_Header=\$ac_header_preproc"
9274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9279 cat >>confdefs.h
<<_ACEOF
9280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9288 for ac_func
in getpagesize
9290 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9291 echo "$as_me:$LINENO: checking for $ac_func" >&5
9292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9293 if eval "test \"\${$as_ac_var+set}\" = set"; then
9294 echo $ECHO_N "(cached) $ECHO_C" >&6
9296 cat >conftest.
$ac_ext <<_ACEOF
9299 cat confdefs.h
>>conftest.
$ac_ext
9300 cat >>conftest.
$ac_ext <<_ACEOF
9301 /* end confdefs.h. */
9302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9304 #define $ac_func innocuous_$ac_func
9306 /* System header to define __stub macros and hopefully few prototypes,
9307 which can conflict with char $ac_func (); below.
9308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9309 <limits.h> exists even on freestanding compilers. */
9312 # include <limits.h>
9314 # include <assert.h>
9319 /* Override any gcc2 internal prototype to avoid an error. */
9324 /* We use char because int might match the return type of a gcc2
9325 builtin and then its argument prototype would still apply. */
9327 /* The GNU C library defines this for functions which it implements
9328 to always fail with ENOSYS. Some functions are actually named
9329 something starting with __ and the normal name is an alias. */
9330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9333 char (*f) () = $ac_func;
9342 return f != $ac_func;
9347 rm -f conftest.
$ac_objext conftest
$ac_exeext
9348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9349 (eval $ac_link) 2>conftest.er1
9351 grep -v '^ *+' conftest.er1
>conftest.err
9353 cat conftest.err
>&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); } &&
9356 { ac_try
='test -z "$ac_c_werror_flag"
9357 || test ! -s conftest.err'
9358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); }; } &&
9363 { ac_try
='test -s conftest$ac_exeext'
9364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); }; }; then
9369 eval "$as_ac_var=yes"
9371 echo "$as_me: failed program was:" >&5
9372 sed 's/^/| /' conftest.
$ac_ext >&5
9374 eval "$as_ac_var=no"
9376 rm -f conftest.err conftest.
$ac_objext \
9377 conftest
$ac_exeext conftest.
$ac_ext
9379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9380 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9381 if test `eval echo '${'$as_ac_var'}'` = yes; then
9382 cat >>confdefs.h
<<_ACEOF
9383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9389 echo "$as_me:$LINENO: checking for working mmap" >&5
9390 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9391 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9392 echo $ECHO_N "(cached) $ECHO_C" >&6
9394 if test "$cross_compiling" = yes; then
9395 ac_cv_func_mmap_fixed_mapped
=no
9397 cat >conftest.
$ac_ext <<_ACEOF
9400 cat confdefs.h
>>conftest.
$ac_ext
9401 cat >>conftest.
$ac_ext <<_ACEOF
9402 /* end confdefs.h. */
9403 $ac_includes_default
9404 /* malloc might have been renamed as rpl_malloc. */
9407 /* Thanks to Mike Haertel and Jim Avera for this test.
9408 Here is a matrix of mmap possibilities:
9409 mmap private not fixed
9410 mmap private fixed at somewhere currently unmapped
9411 mmap private fixed at somewhere already mapped
9412 mmap shared not fixed
9413 mmap shared fixed at somewhere currently unmapped
9414 mmap shared fixed at somewhere already mapped
9415 For private mappings, we should verify that changes cannot be read()
9416 back from the file, nor mmap's back from the file at a different
9417 address. (There have been systems where private was not correctly
9418 implemented like the infamous i386 svr4.0, and systems where the
9419 VM page cache was not coherent with the file system buffer cache
9420 like early versions of FreeBSD and possibly contemporary NetBSD.)
9421 For shared mappings, we should conversely verify that changes get
9422 propagated back to all the places they're supposed to be.
9424 Grep wants private fixed already mapped.
9425 The main things grep needs to know about mmap are:
9426 * does it exist and is it safe to write into the mmap'd area
9427 * how to use it (BSD variants) */
9430 #include <sys/mman.h>
9432 #if !STDC_HEADERS && !HAVE_STDLIB_H
9436 /* This mess was copied from the GNU getpagesize.h. */
9437 #if !HAVE_GETPAGESIZE
9438 /* Assume that all systems that can run configure have sys/param.h. */
9439 # if !HAVE_SYS_PARAM_H
9440 # define HAVE_SYS_PARAM_H 1
9443 # ifdef _SC_PAGESIZE
9444 # define getpagesize() sysconf(_SC_PAGESIZE)
9445 # else /* no _SC_PAGESIZE */
9446 # if HAVE_SYS_PARAM_H
9447 # include <sys/param.h>
9448 # ifdef EXEC_PAGESIZE
9449 # define getpagesize() EXEC_PAGESIZE
9450 # else /* no EXEC_PAGESIZE */
9452 # define getpagesize() NBPG * CLSIZE
9455 # endif /* no CLSIZE */
9456 # else /* no NBPG */
9458 # define getpagesize() NBPC
9459 # else /* no NBPC */
9461 # define getpagesize() PAGESIZE
9462 # endif /* PAGESIZE */
9463 # endif /* no NBPC */
9464 # endif /* no NBPG */
9465 # endif /* no EXEC_PAGESIZE */
9466 # else /* no HAVE_SYS_PARAM_H */
9467 # define getpagesize() 8192 /* punt totally */
9468 # endif /* no HAVE_SYS_PARAM_H */
9469 # endif /* no _SC_PAGESIZE */
9471 #endif /* no HAVE_GETPAGESIZE */
9476 char *data, *data2, *data3;
9480 pagesize = getpagesize ();
9482 /* First, make a file with some known garbage in it. */
9483 data = (char *) malloc (pagesize);
9486 for (i = 0; i < pagesize; ++i)
9487 *(data + i) = rand ();
9489 fd = creat ("conftest.mmap", 0600);
9492 if (write (fd, data, pagesize) != pagesize)
9496 /* Next, try to mmap the file at a fixed address which already has
9497 something else allocated at it. If we can, also make sure that
9498 we see the same garbage. */
9499 fd = open ("conftest.mmap", O_RDWR);
9502 data2 = (char *) malloc (2 * pagesize);
9505 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9506 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9507 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9509 for (i = 0; i < pagesize; ++i)
9510 if (*(data + i) != *(data2 + i))
9513 /* Finally, make sure that changes to the mapped area do not
9514 percolate back to the file as seen by read(). (This is a bug on
9515 some variants of i386 svr4.0.) */
9516 for (i = 0; i < pagesize; ++i)
9517 *(data2 + i) = *(data2 + i) + 1;
9518 data3 = (char *) malloc (pagesize);
9521 if (read (fd, data3, pagesize) != pagesize)
9523 for (i = 0; i < pagesize; ++i)
9524 if (*(data + i) != *(data3 + i))
9530 rm -f conftest
$ac_exeext
9531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9532 (eval $ac_link) 2>&5
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); }; }; then
9541 ac_cv_func_mmap_fixed_mapped
=yes
9543 echo "$as_me: program exited with status $ac_status" >&5
9544 echo "$as_me: failed program was:" >&5
9545 sed 's/^/| /' conftest.
$ac_ext >&5
9548 ac_cv_func_mmap_fixed_mapped
=no
9550 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9553 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9554 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9555 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9557 cat >>confdefs.h
<<\_ACEOF
9564 if test $use_mmap_for_buffers = yes; then
9568 LIBS
="$libsrc_libs $LIBS"
9571 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9572 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9573 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9574 echo $ECHO_N "(cached) $ECHO_C" >&6
9576 ac_check_lib_save_LIBS
=$LIBS
9578 cat >conftest.
$ac_ext <<_ACEOF
9581 cat confdefs.h
>>conftest.
$ac_ext
9582 cat >>conftest.
$ac_ext <<_ACEOF
9583 /* end confdefs.h. */
9585 /* Override any gcc2 internal prototype to avoid an error. */
9589 /* We use char because int might match the return type of a gcc2
9590 builtin and then its argument prototype would still apply. */
9600 rm -f conftest.
$ac_objext conftest
$ac_exeext
9601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9602 (eval $ac_link) 2>conftest.er1
9604 grep -v '^ *+' conftest.er1
>conftest.err
9606 cat conftest.err
>&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } &&
9609 { ac_try
='test -z "$ac_c_werror_flag"
9610 || test ! -s conftest.err'
9611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); }; } &&
9616 { ac_try
='test -s conftest$ac_exeext'
9617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); }; }; then
9622 ac_cv_lib_dnet_dnet_ntoa
=yes
9624 echo "$as_me: failed program was:" >&5
9625 sed 's/^/| /' conftest.
$ac_ext >&5
9627 ac_cv_lib_dnet_dnet_ntoa
=no
9629 rm -f conftest.err conftest.
$ac_objext \
9630 conftest
$ac_exeext conftest.
$ac_ext
9631 LIBS
=$ac_check_lib_save_LIBS
9633 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9634 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9635 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9636 cat >>confdefs.h
<<_ACEOF
9637 #define HAVE_LIBDNET 1
9645 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9646 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9647 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9650 ac_check_lib_save_LIBS
=$LIBS
9652 cat >conftest.
$ac_ext <<_ACEOF
9655 cat confdefs.h
>>conftest.
$ac_ext
9656 cat >>conftest.
$ac_ext <<_ACEOF
9657 /* end confdefs.h. */
9668 rm -f conftest.
$ac_objext conftest
$ac_exeext
9669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9670 (eval $ac_link) 2>conftest.er1
9672 grep -v '^ *+' conftest.er1
>conftest.err
9674 cat conftest.err
>&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); } &&
9677 { ac_try
='test -z "$ac_c_werror_flag"
9678 || test ! -s conftest.err'
9679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); }; } &&
9684 { ac_try
='test -s conftest$ac_exeext'
9685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); }; }; then
9690 ac_cv_lib_Xbsd_main
=yes
9692 echo "$as_me: failed program was:" >&5
9693 sed 's/^/| /' conftest.
$ac_ext >&5
9695 ac_cv_lib_Xbsd_main
=no
9697 rm -f conftest.err conftest.
$ac_objext \
9698 conftest
$ac_exeext conftest.
$ac_ext
9699 LIBS
=$ac_check_lib_save_LIBS
9701 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9702 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9703 if test $ac_cv_lib_Xbsd_main = yes; then
9704 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9709 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9710 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9711 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9712 echo $ECHO_N "(cached) $ECHO_C" >&6
9714 ac_check_lib_save_LIBS
=$LIBS
9715 LIBS
="-lpthreads $LIBS"
9716 cat >conftest.
$ac_ext <<_ACEOF
9719 cat confdefs.h
>>conftest.
$ac_ext
9720 cat >>conftest.
$ac_ext <<_ACEOF
9721 /* end confdefs.h. */
9723 /* Override any gcc2 internal prototype to avoid an error. */
9727 /* We use char because int might match the return type of a gcc2
9728 builtin and then its argument prototype would still apply. */
9738 rm -f conftest.
$ac_objext conftest
$ac_exeext
9739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9740 (eval $ac_link) 2>conftest.er1
9742 grep -v '^ *+' conftest.er1
>conftest.err
9744 cat conftest.err
>&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } &&
9747 { ac_try
='test -z "$ac_c_werror_flag"
9748 || test ! -s conftest.err'
9749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; } &&
9754 { ac_try
='test -s conftest$ac_exeext'
9755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); }; }; then
9760 ac_cv_lib_pthreads_cma_open
=yes
9762 echo "$as_me: failed program was:" >&5
9763 sed 's/^/| /' conftest.
$ac_ext >&5
9765 ac_cv_lib_pthreads_cma_open
=no
9767 rm -f conftest.err conftest.
$ac_objext \
9768 conftest
$ac_exeext conftest.
$ac_ext
9769 LIBS
=$ac_check_lib_save_LIBS
9771 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9772 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9773 if test $ac_cv_lib_pthreads_cma_open = yes; then
9774 cat >>confdefs.h
<<_ACEOF
9775 #define HAVE_LIBPTHREADS 1
9778 LIBS
="-lpthreads $LIBS"
9783 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9784 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9785 if test -d /usr
/X386
/include
; then
9787 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9791 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9792 echo "${ECHO_T}$HAVE_XFREE386" >&6
9797 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9798 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9799 if test "${gdb_cv_bigtoc+set}" = set; then
9800 echo $ECHO_N "(cached) $ECHO_C" >&6
9804 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9805 *) gdb_cv_bigtoc
=-bbigtoc ;;
9808 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9809 cat >conftest.
$ac_ext <<_ACEOF
9812 cat confdefs.h
>>conftest.
$ac_ext
9813 cat >>conftest.
$ac_ext <<_ACEOF
9814 /* end confdefs.h. */
9824 rm -f conftest.
$ac_objext conftest
$ac_exeext
9825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9826 (eval $ac_link) 2>conftest.er1
9828 grep -v '^ *+' conftest.er1
>conftest.err
9830 cat conftest.err
>&5
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); } &&
9833 { ac_try
='test -z "$ac_c_werror_flag"
9834 || test ! -s conftest.err'
9835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); }; } &&
9840 { ac_try
='test -s conftest$ac_exeext'
9841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); }; }; then
9848 echo "$as_me: failed program was:" >&5
9849 sed 's/^/| /' conftest.
$ac_ext >&5
9853 rm -f conftest.err conftest.
$ac_objext \
9854 conftest
$ac_exeext conftest.
$ac_ext
9857 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9858 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9862 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9863 # used for the tests that follow. We set them back to REAL_CFLAGS and
9864 # REAL_CPPFLAGS later on.
9866 REAL_CPPFLAGS
="$CPPFLAGS"
9868 if test "${HAVE_X11}" = "yes"; then
9869 DEFS
="$C_SWITCH_X_SITE $DEFS"
9870 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9872 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9873 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9875 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9876 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9877 # but it's more convenient here to set LD_RUN_PATH
9878 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9879 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9880 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9884 if test "${opsys}" = "gnu-linux"; then
9885 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9886 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9887 cat >conftest.
$ac_ext <<_ACEOF
9890 cat confdefs.h
>>conftest.
$ac_ext
9891 cat >>conftest.
$ac_ext <<_ACEOF
9892 /* end confdefs.h. */
9897 XOpenDisplay ("foo");
9902 rm -f conftest.
$ac_objext conftest
$ac_exeext
9903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9904 (eval $ac_link) 2>conftest.er1
9906 grep -v '^ *+' conftest.er1
>conftest.err
9908 cat conftest.err
>&5
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); } &&
9911 { ac_try
='test -z "$ac_c_werror_flag"
9912 || test ! -s conftest.err'
9913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); }; } &&
9918 { ac_try
='test -s conftest$ac_exeext'
9919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); }; }; then
9924 xlinux_first_failure
=no
9926 echo "$as_me: failed program was:" >&5
9927 sed 's/^/| /' conftest.
$ac_ext >&5
9929 xlinux_first_failure
=yes
9931 rm -f conftest.err conftest.
$ac_objext \
9932 conftest
$ac_exeext conftest.
$ac_ext
9933 if test "${xlinux_first_failure}" = "yes"; then
9934 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9935 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9936 OLD_CPPFLAGS
="$CPPFLAGS"
9938 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9939 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9940 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9941 LIBS
="$LIBS -b i486-linuxaout"
9942 cat >conftest.
$ac_ext <<_ACEOF
9945 cat confdefs.h
>>conftest.
$ac_ext
9946 cat >>conftest.
$ac_ext <<_ACEOF
9947 /* end confdefs.h. */
9952 XOpenDisplay ("foo");
9957 rm -f conftest.
$ac_objext conftest
$ac_exeext
9958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9959 (eval $ac_link) 2>conftest.er1
9961 grep -v '^ *+' conftest.er1
>conftest.err
9963 cat conftest.err
>&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); } &&
9966 { ac_try
='test -z "$ac_c_werror_flag"
9967 || test ! -s conftest.err'
9968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); }; } &&
9973 { ac_try
='test -s conftest$ac_exeext'
9974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); }; }; then
9979 xlinux_second_failure
=no
9981 echo "$as_me: failed program was:" >&5
9982 sed 's/^/| /' conftest.
$ac_ext >&5
9984 xlinux_second_failure
=yes
9986 rm -f conftest.err conftest.
$ac_objext \
9987 conftest
$ac_exeext conftest.
$ac_ext
9988 if test "${xlinux_second_failure}" = "yes"; then
9989 # If we get the same failure with -b, there is no use adding -b.
9990 # So take it out. This plays safe.
9991 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9992 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9993 CPPFLAGS
="$OLD_CPPFLAGS"
9995 echo "$as_me:$LINENO: result: no" >&5
9996 echo "${ECHO_T}no" >&6
9998 echo "$as_me:$LINENO: result: yes" >&5
9999 echo "${ECHO_T}yes" >&6
10002 echo "$as_me:$LINENO: result: no" >&5
10003 echo "${ECHO_T}no" >&6
10007 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10008 # header files included from there.
10009 echo "$as_me:$LINENO: checking for Xkb" >&5
10010 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
10011 cat >conftest.
$ac_ext <<_ACEOF
10014 cat confdefs.h
>>conftest.
$ac_ext
10015 cat >>conftest.
$ac_ext <<_ACEOF
10016 /* end confdefs.h. */
10017 #include <X11/Xlib.h>
10018 #include <X11/XKBlib.h>
10022 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10027 rm -f conftest.
$ac_objext conftest
$ac_exeext
10028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10029 (eval $ac_link) 2>conftest.er1
10031 grep -v '^ *+' conftest.er1
>conftest.err
10033 cat conftest.err
>&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); } &&
10036 { ac_try
='test -z "$ac_c_werror_flag"
10037 || test ! -s conftest.err'
10038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10039 (eval $ac_try) 2>&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); }; } &&
10043 { ac_try
='test -s conftest$ac_exeext'
10044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10045 (eval $ac_try) 2>&5
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); }; }; then
10051 echo "$as_me: failed program was:" >&5
10052 sed 's/^/| /' conftest.
$ac_ext >&5
10056 rm -f conftest.err conftest.
$ac_objext \
10057 conftest
$ac_exeext conftest.
$ac_ext
10058 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10059 echo "${ECHO_T}$emacs_xkb" >&6
10060 if test $emacs_xkb = yes; then
10062 cat >>confdefs.h
<<\_ACEOF
10063 #define HAVE_XKBGETKEYBOARD 1
10072 for ac_func
in XrmSetDatabase XScreenResourceString \
10073 XScreenNumberOfScreen XSetWMProtocols
10075 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10076 echo "$as_me:$LINENO: checking for $ac_func" >&5
10077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10078 if eval "test \"\${$as_ac_var+set}\" = set"; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
10081 cat >conftest.
$ac_ext <<_ACEOF
10084 cat confdefs.h
>>conftest.
$ac_ext
10085 cat >>conftest.
$ac_ext <<_ACEOF
10086 /* end confdefs.h. */
10087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10089 #define $ac_func innocuous_$ac_func
10091 /* System header to define __stub macros and hopefully few prototypes,
10092 which can conflict with char $ac_func (); below.
10093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10094 <limits.h> exists even on freestanding compilers. */
10097 # include <limits.h>
10099 # include <assert.h>
10104 /* Override any gcc2 internal prototype to avoid an error. */
10109 /* We use char because int might match the return type of a gcc2
10110 builtin and then its argument prototype would still apply. */
10112 /* The GNU C library defines this for functions which it implements
10113 to always fail with ENOSYS. Some functions are actually named
10114 something starting with __ and the normal name is an alias. */
10115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10118 char (*f) () = $ac_func;
10127 return f != $ac_func;
10132 rm -f conftest.
$ac_objext conftest
$ac_exeext
10133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10134 (eval $ac_link) 2>conftest.er1
10136 grep -v '^ *+' conftest.er1
>conftest.err
10138 cat conftest.err
>&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); } &&
10141 { ac_try
='test -z "$ac_c_werror_flag"
10142 || test ! -s conftest.err'
10143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144 (eval $ac_try) 2>&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }; } &&
10148 { ac_try
='test -s conftest$ac_exeext'
10149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150 (eval $ac_try) 2>&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); }; }; then
10154 eval "$as_ac_var=yes"
10156 echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.
$ac_ext >&5
10159 eval "$as_ac_var=no"
10161 rm -f conftest.err conftest.
$ac_objext \
10162 conftest
$ac_exeext conftest.
$ac_ext
10164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10165 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10166 if test `eval echo '${'$as_ac_var'}'` = yes; then
10167 cat >>confdefs.h
<<_ACEOF
10168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10176 if test "${window_system}" = "x11"; then
10177 echo "$as_me:$LINENO: checking X11 version 6" >&5
10178 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
10179 if test "${emacs_cv_x11_version_6+set}" = set; then
10180 echo $ECHO_N "(cached) $ECHO_C" >&6
10182 cat >conftest.
$ac_ext <<_ACEOF
10185 cat confdefs.h
>>conftest.
$ac_ext
10186 cat >>conftest.
$ac_ext <<_ACEOF
10187 /* end confdefs.h. */
10188 #include <X11/Xlib.h>
10192 #if XlibSpecificationRelease < 6
10200 rm -f conftest.
$ac_objext conftest
$ac_exeext
10201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10202 (eval $ac_link) 2>conftest.er1
10204 grep -v '^ *+' conftest.er1
>conftest.err
10206 cat conftest.err
>&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); } &&
10209 { ac_try
='test -z "$ac_c_werror_flag"
10210 || test ! -s conftest.err'
10211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10212 (eval $ac_try) 2>&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); }; } &&
10216 { ac_try
='test -s conftest$ac_exeext'
10217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218 (eval $ac_try) 2>&5
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; }; then
10222 emacs_cv_x11_version_6
=yes
10224 echo "$as_me: failed program was:" >&5
10225 sed 's/^/| /' conftest.
$ac_ext >&5
10227 emacs_cv_x11_version_6
=no
10229 rm -f conftest.err conftest.
$ac_objext \
10230 conftest
$ac_exeext conftest.
$ac_ext
10233 if test $emacs_cv_x11_version_6 = yes; then
10234 echo "$as_me:$LINENO: result: 6 or newer" >&5
10235 echo "${ECHO_T}6 or newer" >&6
10237 cat >>confdefs.h
<<\_ACEOF
10238 #define HAVE_X11R6 1
10242 echo "$as_me:$LINENO: result: before 6" >&5
10243 echo "${ECHO_T}before 6" >&6
10247 if test "${window_system}" = "x11"; then
10248 echo "$as_me:$LINENO: checking X11 version 5" >&5
10249 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10250 if test "${emacs_cv_x11_version_5+set}" = set; then
10251 echo $ECHO_N "(cached) $ECHO_C" >&6
10253 cat >conftest.
$ac_ext <<_ACEOF
10256 cat confdefs.h
>>conftest.
$ac_ext
10257 cat >>conftest.
$ac_ext <<_ACEOF
10258 /* end confdefs.h. */
10259 #include <X11/Xlib.h>
10263 #if XlibSpecificationRelease < 5
10271 rm -f conftest.
$ac_objext conftest
$ac_exeext
10272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10273 (eval $ac_link) 2>conftest.er1
10275 grep -v '^ *+' conftest.er1
>conftest.err
10277 cat conftest.err
>&5
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); } &&
10280 { ac_try
='test -z "$ac_c_werror_flag"
10281 || test ! -s conftest.err'
10282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10283 (eval $ac_try) 2>&5
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); }; } &&
10287 { ac_try
='test -s conftest$ac_exeext'
10288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10289 (eval $ac_try) 2>&5
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); }; }; then
10293 emacs_cv_x11_version_5
=yes
10295 echo "$as_me: failed program was:" >&5
10296 sed 's/^/| /' conftest.
$ac_ext >&5
10298 emacs_cv_x11_version_5
=no
10300 rm -f conftest.err conftest.
$ac_objext \
10301 conftest
$ac_exeext conftest.
$ac_ext
10304 if test $emacs_cv_x11_version_5 = yes; then
10305 echo "$as_me:$LINENO: result: 5 or newer" >&5
10306 echo "${ECHO_T}5 or newer" >&6
10309 cat >>confdefs.h
<<\_ACEOF
10310 #define HAVE_X11R5 1
10315 echo "$as_me:$LINENO: result: before 5" >&5
10316 echo "${ECHO_T}before 5" >&6
10321 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
10322 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10323 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10324 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10325 { (exit 1); exit 1; }; };
10329 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10331 if test "X${with_pkg_config_prog}" != X
; then
10332 PKG_CONFIG
="${with_pkg_config_prog}"
10337 if test -z "$PKG_CONFIG"; then
10338 # Extract the first word of "pkg-config", so it can be a program name with args.
10339 set dummy pkg-config
; ac_word
=$2
10340 echo "$as_me:$LINENO: checking for $ac_word" >&5
10341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10342 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10343 echo $ECHO_N "(cached) $ECHO_C" >&6
10345 case $PKG_CONFIG in
10347 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10350 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10351 for as_dir
in $PATH
10354 test -z "$as_dir" && as_dir
=.
10355 for ac_exec_ext
in '' $ac_executable_extensions; do
10356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10357 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10364 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10368 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10370 if test -n "$PKG_CONFIG"; then
10371 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10372 echo "${ECHO_T}$PKG_CONFIG" >&6
10374 echo "$as_me:$LINENO: result: no" >&5
10375 echo "${ECHO_T}no" >&6
10380 if test "$PKG_CONFIG" = "no" ; then
10381 { { echo "$as_me:$LINENO: error:
10382 *** 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
10383 echo "$as_me: error:
10384 *** 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;}
10385 { (exit 1); exit 1; }; }
10387 PKG_CONFIG_MIN_VERSION
=0.9.0
10388 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10389 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10390 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10392 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10393 echo "$as_me:$LINENO: result: yes" >&5
10394 echo "${ECHO_T}yes" >&6
10397 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10398 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10399 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10400 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10401 echo "${ECHO_T}$GTK_CFLAGS" >&6
10403 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10404 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10405 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
10406 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10407 echo "${ECHO_T}$GTK_LIBS" >&6
10409 echo "$as_me:$LINENO: result: no" >&5
10410 echo "${ECHO_T}no" >&6
10413 ## If we have a custom action on failure, don't print errors, but
10414 ## do set a variable so people can do so.
10415 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10416 echo $GTK_PKG_ERRORS
10422 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10423 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10427 if test $succeeded = yes; then
10430 { { 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
10431 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;}
10432 { (exit 1); exit 1; }; }
10437 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10438 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10439 LIBS
="$GTK_LIBS $LIBS"
10442 cat >>confdefs.h
<<\_ACEOF
10448 if test "$with_toolkit_scroll_bars" != no
; then
10449 with_toolkit_scroll_bars
=yes
10452 HAVE_GTK_MULTIDISPLAY
=no
10454 for ac_func
in gdk_display_open
10456 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10457 echo "$as_me:$LINENO: checking for $ac_func" >&5
10458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10459 if eval "test \"\${$as_ac_var+set}\" = set"; then
10460 echo $ECHO_N "(cached) $ECHO_C" >&6
10462 cat >conftest.
$ac_ext <<_ACEOF
10465 cat confdefs.h
>>conftest.
$ac_ext
10466 cat >>conftest.
$ac_ext <<_ACEOF
10467 /* end confdefs.h. */
10468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10470 #define $ac_func innocuous_$ac_func
10472 /* System header to define __stub macros and hopefully few prototypes,
10473 which can conflict with char $ac_func (); below.
10474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10475 <limits.h> exists even on freestanding compilers. */
10478 # include <limits.h>
10480 # include <assert.h>
10485 /* Override any gcc2 internal prototype to avoid an error. */
10490 /* We use char because int might match the return type of a gcc2
10491 builtin and then its argument prototype would still apply. */
10493 /* The GNU C library defines this for functions which it implements
10494 to always fail with ENOSYS. Some functions are actually named
10495 something starting with __ and the normal name is an alias. */
10496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10499 char (*f) () = $ac_func;
10508 return f != $ac_func;
10513 rm -f conftest.
$ac_objext conftest
$ac_exeext
10514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10515 (eval $ac_link) 2>conftest.er1
10517 grep -v '^ *+' conftest.er1
>conftest.err
10519 cat conftest.err
>&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } &&
10522 { ac_try
='test -z "$ac_c_werror_flag"
10523 || test ! -s conftest.err'
10524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10525 (eval $ac_try) 2>&5
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); }; } &&
10529 { ac_try
='test -s conftest$ac_exeext'
10530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10531 (eval $ac_try) 2>&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); }; }; then
10535 eval "$as_ac_var=yes"
10537 echo "$as_me: failed program was:" >&5
10538 sed 's/^/| /' conftest.
$ac_ext >&5
10540 eval "$as_ac_var=no"
10542 rm -f conftest.err conftest.
$ac_objext \
10543 conftest
$ac_exeext conftest.
$ac_ext
10545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10546 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10547 if test `eval echo '${'$as_ac_var'}'` = yes; then
10548 cat >>confdefs.h
<<_ACEOF
10549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10551 HAVE_GTK_MULTIDISPLAY
=yes
10555 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10557 cat >>confdefs.h
<<\_ACEOF
10558 #define HAVE_GTK_MULTIDISPLAY 1
10562 HAVE_GTK_FILE_SELECTION
=no
10564 for ac_func
in gtk_file_selection_new
10566 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10567 echo "$as_me:$LINENO: checking for $ac_func" >&5
10568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10569 if eval "test \"\${$as_ac_var+set}\" = set"; then
10570 echo $ECHO_N "(cached) $ECHO_C" >&6
10572 cat >conftest.
$ac_ext <<_ACEOF
10575 cat confdefs.h
>>conftest.
$ac_ext
10576 cat >>conftest.
$ac_ext <<_ACEOF
10577 /* end confdefs.h. */
10578 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10580 #define $ac_func innocuous_$ac_func
10582 /* System header to define __stub macros and hopefully few prototypes,
10583 which can conflict with char $ac_func (); below.
10584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10585 <limits.h> exists even on freestanding compilers. */
10588 # include <limits.h>
10590 # include <assert.h>
10595 /* Override any gcc2 internal prototype to avoid an error. */
10600 /* We use char because int might match the return type of a gcc2
10601 builtin and then its argument prototype would still apply. */
10603 /* The GNU C library defines this for functions which it implements
10604 to always fail with ENOSYS. Some functions are actually named
10605 something starting with __ and the normal name is an alias. */
10606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10609 char (*f) () = $ac_func;
10618 return f != $ac_func;
10623 rm -f conftest.
$ac_objext conftest
$ac_exeext
10624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10625 (eval $ac_link) 2>conftest.er1
10627 grep -v '^ *+' conftest.er1
>conftest.err
10629 cat conftest.err
>&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); } &&
10632 { ac_try
='test -z "$ac_c_werror_flag"
10633 || test ! -s conftest.err'
10634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10635 (eval $ac_try) 2>&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); }; } &&
10639 { ac_try
='test -s conftest$ac_exeext'
10640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10641 (eval $ac_try) 2>&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); }; }; then
10645 eval "$as_ac_var=yes"
10647 echo "$as_me: failed program was:" >&5
10648 sed 's/^/| /' conftest.
$ac_ext >&5
10650 eval "$as_ac_var=no"
10652 rm -f conftest.err conftest.
$ac_objext \
10653 conftest
$ac_exeext conftest.
$ac_ext
10655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10656 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10657 if test `eval echo '${'$as_ac_var'}'` = yes; then
10658 cat >>confdefs.h
<<_ACEOF
10659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10661 HAVE_GTK_FILE_SELECTION
=yes
10666 HAVE_GTK_FILE_CHOOSER
=no
10668 for ac_func
in gtk_file_chooser_dialog_new
10670 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10671 echo "$as_me:$LINENO: checking for $ac_func" >&5
10672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10673 if eval "test \"\${$as_ac_var+set}\" = set"; then
10674 echo $ECHO_N "(cached) $ECHO_C" >&6
10676 cat >conftest.
$ac_ext <<_ACEOF
10679 cat confdefs.h
>>conftest.
$ac_ext
10680 cat >>conftest.
$ac_ext <<_ACEOF
10681 /* end confdefs.h. */
10682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10684 #define $ac_func innocuous_$ac_func
10686 /* System header to define __stub macros and hopefully few prototypes,
10687 which can conflict with char $ac_func (); below.
10688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10689 <limits.h> exists even on freestanding compilers. */
10692 # include <limits.h>
10694 # include <assert.h>
10699 /* Override any gcc2 internal prototype to avoid an error. */
10704 /* We use char because int might match the return type of a gcc2
10705 builtin and then its argument prototype would still apply. */
10707 /* The GNU C library defines this for functions which it implements
10708 to always fail with ENOSYS. Some functions are actually named
10709 something starting with __ and the normal name is an alias. */
10710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10713 char (*f) () = $ac_func;
10722 return f != $ac_func;
10727 rm -f conftest.
$ac_objext conftest
$ac_exeext
10728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10729 (eval $ac_link) 2>conftest.er1
10731 grep -v '^ *+' conftest.er1
>conftest.err
10733 cat conftest.err
>&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); } &&
10736 { ac_try
='test -z "$ac_c_werror_flag"
10737 || test ! -s conftest.err'
10738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10739 (eval $ac_try) 2>&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); }; } &&
10743 { ac_try
='test -s conftest$ac_exeext'
10744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10745 (eval $ac_try) 2>&5
10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 (exit $ac_status); }; }; then
10749 eval "$as_ac_var=yes"
10751 echo "$as_me: failed program was:" >&5
10752 sed 's/^/| /' conftest.
$ac_ext >&5
10754 eval "$as_ac_var=no"
10756 rm -f conftest.err conftest.
$ac_objext \
10757 conftest
$ac_exeext conftest.
$ac_ext
10759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10760 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10761 if test `eval echo '${'$as_ac_var'}'` = yes; then
10762 cat >>confdefs.h
<<_ACEOF
10763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10765 HAVE_GTK_FILE_CHOOSER
=yes
10770 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10771 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10773 cat >>confdefs.h
<<\_ACEOF
10774 #define HAVE_GTK_FILE_BOTH 1
10779 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10780 HAVE_GTK_AND_PTHREAD
=no
10782 for ac_header
in pthread.h
10784 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10786 echo "$as_me:$LINENO: checking for $ac_header" >&5
10787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10794 # Is the header compilable?
10795 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10797 cat >conftest.
$ac_ext <<_ACEOF
10800 cat confdefs.h
>>conftest.
$ac_ext
10801 cat >>conftest.
$ac_ext <<_ACEOF
10802 /* end confdefs.h. */
10803 $ac_includes_default
10804 #include <$ac_header>
10806 rm -f conftest.
$ac_objext
10807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10808 (eval $ac_compile) 2>conftest.er1
10810 grep -v '^ *+' conftest.er1
>conftest.err
10812 cat conftest.err
>&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } &&
10815 { ac_try
='test -z "$ac_c_werror_flag"
10816 || test ! -s conftest.err'
10817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10818 (eval $ac_try) 2>&5
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); }; } &&
10822 { ac_try
='test -s conftest.$ac_objext'
10823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10824 (eval $ac_try) 2>&5
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); }; }; then
10828 ac_header_compiler
=yes
10830 echo "$as_me: failed program was:" >&5
10831 sed 's/^/| /' conftest.
$ac_ext >&5
10833 ac_header_compiler
=no
10835 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10836 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10837 echo "${ECHO_T}$ac_header_compiler" >&6
10839 # Is the header present?
10840 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10841 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10842 cat >conftest.
$ac_ext <<_ACEOF
10845 cat confdefs.h
>>conftest.
$ac_ext
10846 cat >>conftest.
$ac_ext <<_ACEOF
10847 /* end confdefs.h. */
10848 #include <$ac_header>
10850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10851 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10853 grep -v '^ *+' conftest.er1
>conftest.err
10855 cat conftest.err
>&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); } >/dev
/null
; then
10858 if test -s conftest.err
; then
10859 ac_cpp_err
=$ac_c_preproc_warn_flag
10860 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10867 if test -z "$ac_cpp_err"; then
10868 ac_header_preproc
=yes
10870 echo "$as_me: failed program was:" >&5
10871 sed 's/^/| /' conftest.
$ac_ext >&5
10873 ac_header_preproc
=no
10875 rm -f conftest.err conftest.
$ac_ext
10876 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10877 echo "${ECHO_T}$ac_header_preproc" >&6
10879 # So? What about this header?
10880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10882 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10885 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10886 ac_header_preproc
=yes
10889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10892 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10893 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10894 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10895 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10896 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10899 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10900 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10903 ## ------------------------------------------ ##
10904 ## Report this to the AC_PACKAGE_NAME lists. ##
10905 ## ------------------------------------------ ##
10908 sed "s/^/$as_me: WARNING: /" >&2
10911 echo "$as_me:$LINENO: checking for $ac_header" >&5
10912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
10916 eval "$as_ac_Header=\$ac_header_preproc"
10918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10923 cat >>confdefs.h
<<_ACEOF
10924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10931 if test "$ac_cv_header_pthread_h"; then
10932 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10933 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10934 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10935 echo $ECHO_N "(cached) $ECHO_C" >&6
10937 ac_check_lib_save_LIBS
=$LIBS
10938 LIBS
="-lpthread $LIBS"
10939 cat >conftest.
$ac_ext <<_ACEOF
10942 cat confdefs.h
>>conftest.
$ac_ext
10943 cat >>conftest.
$ac_ext <<_ACEOF
10944 /* end confdefs.h. */
10946 /* Override any gcc2 internal prototype to avoid an error. */
10950 /* We use char because int might match the return type of a gcc2
10951 builtin and then its argument prototype would still apply. */
10952 char pthread_self ();
10961 rm -f conftest.
$ac_objext conftest
$ac_exeext
10962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10963 (eval $ac_link) 2>conftest.er1
10965 grep -v '^ *+' conftest.er1
>conftest.err
10967 cat conftest.err
>&5
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); } &&
10970 { ac_try
='test -z "$ac_c_werror_flag"
10971 || test ! -s conftest.err'
10972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10973 (eval $ac_try) 2>&5
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); }; } &&
10977 { ac_try
='test -s conftest$ac_exeext'
10978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10979 (eval $ac_try) 2>&5
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); }; }; then
10983 ac_cv_lib_pthread_pthread_self
=yes
10985 echo "$as_me: failed program was:" >&5
10986 sed 's/^/| /' conftest.
$ac_ext >&5
10988 ac_cv_lib_pthread_pthread_self
=no
10990 rm -f conftest.err conftest.
$ac_objext \
10991 conftest
$ac_exeext conftest.
$ac_ext
10992 LIBS
=$ac_check_lib_save_LIBS
10994 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10995 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10996 if test $ac_cv_lib_pthread_pthread_self = yes; then
10997 HAVE_GTK_AND_PTHREAD
=yes
11001 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11002 GTK_LIBS
="$GTK_LIBS -lpthread"
11004 cat >>confdefs.h
<<\_ACEOF
11005 #define HAVE_GTK_AND_PTHREAD 1
11012 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
11013 if test x
"${HAVE_X11R5}" = xyes
; then
11014 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11015 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
11016 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11017 echo $ECHO_N "(cached) $ECHO_C" >&6
11019 cat >conftest.
$ac_ext <<_ACEOF
11022 cat confdefs.h
>>conftest.
$ac_ext
11023 cat >>conftest.
$ac_ext <<_ACEOF
11024 /* end confdefs.h. */
11026 #include <X11/Intrinsic.h>
11027 #include <X11/Xaw/Simple.h>
11036 rm -f conftest.
$ac_objext conftest
$ac_exeext
11037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11038 (eval $ac_link) 2>conftest.er1
11040 grep -v '^ *+' conftest.er1
>conftest.err
11042 cat conftest.err
>&5
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); } &&
11045 { ac_try
='test -z "$ac_c_werror_flag"
11046 || test ! -s conftest.err'
11047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11048 (eval $ac_try) 2>&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); }; } &&
11052 { ac_try
='test -s conftest$ac_exeext'
11053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11054 (eval $ac_try) 2>&5
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); }; }; then
11058 emacs_cv_x11_version_5_with_xaw
=yes
11060 echo "$as_me: failed program was:" >&5
11061 sed 's/^/| /' conftest.
$ac_ext >&5
11063 emacs_cv_x11_version_5_with_xaw
=no
11065 rm -f conftest.err conftest.
$ac_objext \
11066 conftest
$ac_exeext conftest.
$ac_ext
11069 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11070 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11071 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
11072 USE_X_TOOLKIT
=LUCID
11074 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11075 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
11083 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11085 if test "${USE_X_TOOLKIT}" != "none"; then
11086 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11087 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
11088 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11089 echo $ECHO_N "(cached) $ECHO_C" >&6
11091 cat >conftest.
$ac_ext <<_ACEOF
11094 cat confdefs.h
>>conftest.
$ac_ext
11095 cat >>conftest.
$ac_ext <<_ACEOF
11096 /* end confdefs.h. */
11097 #include <X11/Intrinsic.h>
11101 #if XtSpecificationRelease < 6
11109 rm -f conftest.
$ac_objext conftest
$ac_exeext
11110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11111 (eval $ac_link) 2>conftest.er1
11113 grep -v '^ *+' conftest.er1
>conftest.err
11115 cat conftest.err
>&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); } &&
11118 { ac_try
='test -z "$ac_c_werror_flag"
11119 || test ! -s conftest.err'
11120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11121 (eval $ac_try) 2>&5
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); }; } &&
11125 { ac_try
='test -s conftest$ac_exeext'
11126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11127 (eval $ac_try) 2>&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); }; }; then
11131 emacs_cv_x11_toolkit_version_6
=yes
11133 echo "$as_me: failed program was:" >&5
11134 sed 's/^/| /' conftest.
$ac_ext >&5
11136 emacs_cv_x11_toolkit_version_6
=no
11138 rm -f conftest.err conftest.
$ac_objext \
11139 conftest
$ac_exeext conftest.
$ac_ext
11142 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11143 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11144 echo "$as_me:$LINENO: result: 6 or newer" >&5
11145 echo "${ECHO_T}6 or newer" >&6
11147 cat >>confdefs.h
<<\_ACEOF
11148 #define HAVE_X11XTR6 1
11152 echo "$as_me:$LINENO: result: before 6" >&5
11153 echo "${ECHO_T}before 6" >&6
11157 if test x
$HAVE_X11XTR6 = xyes
; then
11158 LIBS
="-lXt -lSM -lICE $LIBS"
11163 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11164 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
11165 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11166 echo $ECHO_N "(cached) $ECHO_C" >&6
11168 ac_check_lib_save_LIBS
=$LIBS
11170 cat >conftest.
$ac_ext <<_ACEOF
11173 cat confdefs.h
>>conftest.
$ac_ext
11174 cat >>conftest.
$ac_ext <<_ACEOF
11175 /* end confdefs.h. */
11177 /* Override any gcc2 internal prototype to avoid an error. */
11181 /* We use char because int might match the return type of a gcc2
11182 builtin and then its argument prototype would still apply. */
11183 char XmuConvertStandardSelection ();
11187 XmuConvertStandardSelection ();
11192 rm -f conftest.
$ac_objext conftest
$ac_exeext
11193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11194 (eval $ac_link) 2>conftest.er1
11196 grep -v '^ *+' conftest.er1
>conftest.err
11198 cat conftest.err
>&5
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); } &&
11201 { ac_try
='test -z "$ac_c_werror_flag"
11202 || test ! -s conftest.err'
11203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11204 (eval $ac_try) 2>&5
11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); }; } &&
11208 { ac_try
='test -s conftest$ac_exeext'
11209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11210 (eval $ac_try) 2>&5
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); }; }; then
11214 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11216 echo "$as_me: failed program was:" >&5
11217 sed 's/^/| /' conftest.
$ac_ext >&5
11219 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11221 rm -f conftest.err conftest.
$ac_objext \
11222 conftest
$ac_exeext conftest.
$ac_ext
11223 LIBS
=$ac_check_lib_save_LIBS
11225 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11226 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
11227 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11228 cat >>confdefs.h
<<_ACEOF
11229 #define HAVE_LIBXMU 1
11236 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11239 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11240 if test "${HAVE_X11}" = "yes"; then
11241 if test "${USE_X_TOOLKIT}" != "none"; then
11243 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11244 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
11245 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11246 echo $ECHO_N "(cached) $ECHO_C" >&6
11248 ac_check_lib_save_LIBS
=$LIBS
11249 LIBS
="-lXext $LIBS"
11250 cat >conftest.
$ac_ext <<_ACEOF
11253 cat confdefs.h
>>conftest.
$ac_ext
11254 cat >>conftest.
$ac_ext <<_ACEOF
11255 /* end confdefs.h. */
11257 /* Override any gcc2 internal prototype to avoid an error. */
11261 /* We use char because int might match the return type of a gcc2
11262 builtin and then its argument prototype would still apply. */
11263 char XShapeQueryExtension ();
11267 XShapeQueryExtension ();
11272 rm -f conftest.
$ac_objext conftest
$ac_exeext
11273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11274 (eval $ac_link) 2>conftest.er1
11276 grep -v '^ *+' conftest.er1
>conftest.err
11278 cat conftest.err
>&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } &&
11281 { ac_try
='test -z "$ac_c_werror_flag"
11282 || 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_exeext'
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 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11296 echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.
$ac_ext >&5
11299 ac_cv_lib_Xext_XShapeQueryExtension
=no
11301 rm -f conftest.err conftest.
$ac_objext \
11302 conftest
$ac_exeext conftest.
$ac_ext
11303 LIBS
=$ac_check_lib_save_LIBS
11305 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11306 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11307 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11308 cat >>confdefs.h
<<_ACEOF
11309 #define HAVE_LIBXEXT 1
11312 LIBS
="-lXext $LIBS"
11319 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11320 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11321 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11322 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11323 echo $ECHO_N "(cached) $ECHO_C" >&6
11325 cat >conftest.
$ac_ext <<_ACEOF
11328 cat confdefs.h
>>conftest.
$ac_ext
11329 cat >>conftest.
$ac_ext <<_ACEOF
11330 /* end confdefs.h. */
11335 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11338 Motif version prior to 2.1.
11344 rm -f conftest.
$ac_objext
11345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11346 (eval $ac_compile) 2>conftest.er1
11348 grep -v '^ *+' conftest.er1
>conftest.err
11350 cat conftest.err
>&5
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); } &&
11353 { ac_try
='test -z "$ac_c_werror_flag"
11354 || test ! -s conftest.err'
11355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11356 (eval $ac_try) 2>&5
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); }; } &&
11360 { ac_try
='test -s conftest.$ac_objext'
11361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11362 (eval $ac_try) 2>&5
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); }; }; then
11366 emacs_cv_motif_version_2_1
=yes
11368 echo "$as_me: failed program was:" >&5
11369 sed 's/^/| /' conftest.
$ac_ext >&5
11371 emacs_cv_motif_version_2_1
=no
11373 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11375 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11376 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11377 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
11378 if test $emacs_cv_motif_version_2_1 = yes; then
11381 cat >>confdefs.h
<<\_ACEOF
11382 #define HAVE_MOTIF_2_1 1
11385 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11386 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11387 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11388 echo $ECHO_N "(cached) $ECHO_C" >&6
11390 ac_check_lib_save_LIBS
=$LIBS
11392 cat >conftest.
$ac_ext <<_ACEOF
11395 cat confdefs.h
>>conftest.
$ac_ext
11396 cat >>conftest.
$ac_ext <<_ACEOF
11397 /* end confdefs.h. */
11399 /* Override any gcc2 internal prototype to avoid an error. */
11403 /* We use char because int might match the return type of a gcc2
11404 builtin and then its argument prototype would still apply. */
11405 char XpCreateContext ();
11409 XpCreateContext ();
11414 rm -f conftest.
$ac_objext conftest
$ac_exeext
11415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11416 (eval $ac_link) 2>conftest.er1
11418 grep -v '^ *+' conftest.er1
>conftest.err
11420 cat conftest.err
>&5
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); } &&
11423 { ac_try
='test -z "$ac_c_werror_flag"
11424 || 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_exeext'
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 ac_cv_lib_Xp_XpCreateContext
=yes
11438 echo "$as_me: failed program was:" >&5
11439 sed 's/^/| /' conftest.
$ac_ext >&5
11441 ac_cv_lib_Xp_XpCreateContext
=no
11443 rm -f conftest.err conftest.
$ac_objext \
11444 conftest
$ac_exeext conftest.
$ac_ext
11445 LIBS
=$ac_check_lib_save_LIBS
11447 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11448 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11449 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11453 if test ${HAVE_LIBXP} = yes; then
11455 cat >>confdefs.h
<<\_ACEOF
11456 #define HAVE_LIBXP 1
11461 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11462 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11463 if test "${emacs_cv_lesstif+set}" = set; then
11464 echo $ECHO_N "(cached) $ECHO_C" >&6
11466 # We put this in CFLAGS temporarily to precede other -I options
11467 # that might be in CFLAGS temporarily.
11468 # We put this in CPPFLAGS where it precedes the other -I options.
11469 OLD_CPPFLAGS
=$CPPFLAGS
11471 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11472 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11473 cat >conftest.
$ac_ext <<_ACEOF
11476 cat confdefs.h
>>conftest.
$ac_ext
11477 cat >>conftest.
$ac_ext <<_ACEOF
11478 /* end confdefs.h. */
11479 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11488 rm -f conftest.
$ac_objext
11489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11490 (eval $ac_compile) 2>conftest.er1
11492 grep -v '^ *+' conftest.er1
>conftest.err
11494 cat conftest.err
>&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); } &&
11497 { ac_try
='test -z "$ac_c_werror_flag"
11498 || test ! -s conftest.err'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; } &&
11504 { ac_try
='test -s conftest.$ac_objext'
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 emacs_cv_lesstif
=yes
11512 echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.
$ac_ext >&5
11515 emacs_cv_lesstif
=no
11517 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11519 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11520 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11521 if test $emacs_cv_lesstif = yes; then
11522 # Make sure this -I option remains in CPPFLAGS after it is set
11523 # back to REAL_CPPFLAGS.
11524 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11525 # have those other -I options anyway. Ultimately, having this
11526 # directory ultimately in CPPFLAGS will be enough.
11527 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11528 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11531 CPPFLAGS
=$OLD_CPPFLAGS
11536 ### Is -lXaw3d available?
11538 if test "${HAVE_X11}" = "yes"; then
11539 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
11540 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11541 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11542 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11543 echo $ECHO_N "(cached) $ECHO_C" >&6
11545 cat >conftest.
$ac_ext <<_ACEOF
11548 cat confdefs.h
>>conftest.
$ac_ext
11549 cat >>conftest.
$ac_ext <<_ACEOF
11550 /* end confdefs.h. */
11551 #include <X11/Xaw3d/Scrollbar.h>
11553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11554 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11556 grep -v '^ *+' conftest.er1
>conftest.err
11558 cat conftest.err
>&5
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); } >/dev
/null
; then
11561 if test -s conftest.err
; then
11562 ac_cpp_err
=$ac_c_preproc_warn_flag
11563 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11570 if test -z "$ac_cpp_err"; then
11571 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
11573 echo "$as_me: failed program was:" >&5
11574 sed 's/^/| /' conftest.
$ac_ext >&5
11576 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
11578 rm -f conftest.err conftest.
$ac_ext
11580 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11581 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11582 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11583 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11584 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11585 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11586 echo $ECHO_N "(cached) $ECHO_C" >&6
11588 ac_check_lib_save_LIBS
=$LIBS
11589 LIBS
="-lXaw3d $LIBS"
11590 cat >conftest.
$ac_ext <<_ACEOF
11593 cat confdefs.h
>>conftest.
$ac_ext
11594 cat >>conftest.
$ac_ext <<_ACEOF
11595 /* end confdefs.h. */
11597 /* Override any gcc2 internal prototype to avoid an error. */
11601 /* We use char because int might match the return type of a gcc2
11602 builtin and then its argument prototype would still apply. */
11603 char XawScrollbarSetThumb ();
11607 XawScrollbarSetThumb ();
11612 rm -f conftest.
$ac_objext conftest
$ac_exeext
11613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11614 (eval $ac_link) 2>conftest.er1
11616 grep -v '^ *+' conftest.er1
>conftest.err
11618 cat conftest.err
>&5
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); } &&
11621 { ac_try
='test -z "$ac_c_werror_flag"
11622 || test ! -s conftest.err'
11623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11624 (eval $ac_try) 2>&5
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); }; } &&
11628 { ac_try
='test -s conftest$ac_exeext'
11629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11630 (eval $ac_try) 2>&5
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); }; }; then
11634 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11636 echo "$as_me: failed program was:" >&5
11637 sed 's/^/| /' conftest.
$ac_ext >&5
11639 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11641 rm -f conftest.err conftest.
$ac_objext \
11642 conftest
$ac_exeext conftest.
$ac_ext
11643 LIBS
=$ac_check_lib_save_LIBS
11645 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11646 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11647 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11654 if test "${HAVE_XAW3D}" = "yes"; then
11656 cat >>confdefs.h
<<\_ACEOF
11657 #define HAVE_XAW3D 1
11666 USE_TOOLKIT_SCROLL_BARS
=no
11667 if test "${with_toolkit_scroll_bars}" != "no"; then
11668 if test "${USE_X_TOOLKIT}" != "none"; then
11669 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11670 cat >>confdefs.h
<<\_ACEOF
11671 #define USE_TOOLKIT_SCROLL_BARS 1
11675 USE_TOOLKIT_SCROLL_BARS
=yes
11676 elif test "${HAVE_XAW3D}" = "yes"; then
11677 cat >>confdefs.h
<<\_ACEOF
11678 #define USE_TOOLKIT_SCROLL_BARS 1
11681 USE_TOOLKIT_SCROLL_BARS
=yes
11683 elif test "${HAVE_GTK}" = "yes"; then
11684 cat >>confdefs.h
<<\_ACEOF
11685 #define USE_TOOLKIT_SCROLL_BARS 1
11688 USE_TOOLKIT_SCROLL_BARS
=yes
11689 elif test "${HAVE_CARBON}" = "yes"; then
11690 cat >>confdefs.h
<<\_ACEOF
11691 #define USE_TOOLKIT_SCROLL_BARS 1
11694 USE_TOOLKIT_SCROLL_BARS
=yes
11698 cat >conftest.
$ac_ext <<_ACEOF
11701 cat confdefs.h
>>conftest.
$ac_ext
11702 cat >>conftest.
$ac_ext <<_ACEOF
11703 /* end confdefs.h. */
11705 #include <X11/Xlib.h>
11706 #include <X11/Xresource.h>
11715 rm -f conftest.
$ac_objext
11716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11717 (eval $ac_compile) 2>conftest.er1
11719 grep -v '^ *+' conftest.er1
>conftest.err
11721 cat conftest.err
>&5
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); } &&
11724 { ac_try
='test -z "$ac_c_werror_flag"
11725 || test ! -s conftest.err'
11726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11727 (eval $ac_try) 2>&5
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); }; } &&
11731 { ac_try
='test -s conftest.$ac_objext'
11732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11733 (eval $ac_try) 2>&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); }; }; then
11739 cat >>confdefs.h
<<\_ACEOF
11744 echo "$as_me: failed program was:" >&5
11745 sed 's/^/| /' conftest.
$ac_ext >&5
11749 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11752 if test "${with_xim}" != "no"; then
11754 cat >>confdefs.h
<<\_ACEOF
11761 if test "${HAVE_XIM}" != "no"; then
11762 late_CFLAGS
=$CFLAGS
11763 if test "$GCC" = yes; then
11764 CFLAGS
="$CFLAGS --pedantic-errors"
11766 cat >conftest.
$ac_ext <<_ACEOF
11769 cat confdefs.h
>>conftest.
$ac_ext
11770 cat >>conftest.
$ac_ext <<_ACEOF
11771 /* end confdefs.h. */
11773 #include <X11/Xlib.h>
11774 #include <X11/Xresource.h>
11783 XPointer *client_data;
11785 /* If we're not using GCC, it's probably not XFree86, and this is
11786 probably right, but we can't use something like --pedantic-errors. */
11787 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11788 char*, XIMProc, XPointer*);
11790 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11796 rm -f conftest.
$ac_objext
11797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11798 (eval $ac_compile) 2>conftest.er1
11800 grep -v '^ *+' conftest.er1
>conftest.err
11802 cat conftest.err
>&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } &&
11805 { ac_try
='test -z "$ac_c_werror_flag"
11806 || test ! -s conftest.err'
11807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11808 (eval $ac_try) 2>&5
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); }; } &&
11812 { ac_try
='test -s conftest.$ac_objext'
11813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11814 (eval $ac_try) 2>&5
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); }; }; then
11818 emacs_cv_arg6_star
=yes
11820 echo "$as_me: failed program was:" >&5
11821 sed 's/^/| /' conftest.
$ac_ext >&5
11824 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11826 if test "$emacs_cv_arg6_star" = yes; then
11827 cat >>confdefs.h
<<\_ACEOF
11828 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11832 cat >>confdefs.h
<<\_ACEOF
11833 #define XRegisterIMInstantiateCallback_arg6 XPointer
11837 CFLAGS
=$late_CFLAGS
11840 ### Use -lXpm if available, unless `--with-xpm=no'.
11842 if test "${HAVE_X11}" = "yes"; then
11843 if test "${with_xpm}" != "no"; then
11844 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11845 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11846 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11847 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11848 echo $ECHO_N "(cached) $ECHO_C" >&6
11850 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11851 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11853 # Is the header compilable?
11854 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11855 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11856 cat >conftest.
$ac_ext <<_ACEOF
11859 cat confdefs.h
>>conftest.
$ac_ext
11860 cat >>conftest.
$ac_ext <<_ACEOF
11861 /* end confdefs.h. */
11862 $ac_includes_default
11863 #include <X11/xpm.h>
11865 rm -f conftest.
$ac_objext
11866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11867 (eval $ac_compile) 2>conftest.er1
11869 grep -v '^ *+' conftest.er1
>conftest.err
11871 cat conftest.err
>&5
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); } &&
11874 { ac_try
='test -z "$ac_c_werror_flag"
11875 || test ! -s conftest.err'
11876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11877 (eval $ac_try) 2>&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); }; } &&
11881 { ac_try
='test -s conftest.$ac_objext'
11882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11883 (eval $ac_try) 2>&5
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); }; }; then
11887 ac_header_compiler
=yes
11889 echo "$as_me: failed program was:" >&5
11890 sed 's/^/| /' conftest.
$ac_ext >&5
11892 ac_header_compiler
=no
11894 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11895 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11896 echo "${ECHO_T}$ac_header_compiler" >&6
11898 # Is the header present?
11899 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11900 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11901 cat >conftest.
$ac_ext <<_ACEOF
11904 cat confdefs.h
>>conftest.
$ac_ext
11905 cat >>conftest.
$ac_ext <<_ACEOF
11906 /* end confdefs.h. */
11907 #include <X11/xpm.h>
11909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11910 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11912 grep -v '^ *+' conftest.er1
>conftest.err
11914 cat conftest.err
>&5
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); } >/dev
/null
; then
11917 if test -s conftest.err
; then
11918 ac_cpp_err
=$ac_c_preproc_warn_flag
11919 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11926 if test -z "$ac_cpp_err"; then
11927 ac_header_preproc
=yes
11929 echo "$as_me: failed program was:" >&5
11930 sed 's/^/| /' conftest.
$ac_ext >&5
11932 ac_header_preproc
=no
11934 rm -f conftest.err conftest.
$ac_ext
11935 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11936 echo "${ECHO_T}$ac_header_preproc" >&6
11938 # So? What about this header?
11939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11941 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11942 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11943 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11944 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11945 ac_header_preproc
=yes
11948 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11949 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11950 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11951 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11952 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11953 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11954 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11955 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11956 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11957 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11958 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11959 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11962 ## ------------------------------------------ ##
11963 ## Report this to the AC_PACKAGE_NAME lists. ##
11964 ## ------------------------------------------ ##
11967 sed "s/^/$as_me: WARNING: /" >&2
11970 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11971 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11972 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11973 echo $ECHO_N "(cached) $ECHO_C" >&6
11975 ac_cv_header_X11_xpm_h
=$ac_header_preproc
11977 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11978 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11981 if test $ac_cv_header_X11_xpm_h = yes; then
11982 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11983 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11984 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11985 echo $ECHO_N "(cached) $ECHO_C" >&6
11987 ac_check_lib_save_LIBS
=$LIBS
11988 LIBS
="-lXpm -lX11 $LIBS"
11989 cat >conftest.
$ac_ext <<_ACEOF
11992 cat confdefs.h
>>conftest.
$ac_ext
11993 cat >>conftest.
$ac_ext <<_ACEOF
11994 /* end confdefs.h. */
11996 /* Override any gcc2 internal prototype to avoid an error. */
12000 /* We use char because int might match the return type of a gcc2
12001 builtin and then its argument prototype would still apply. */
12002 char XpmReadFileToPixmap ();
12006 XpmReadFileToPixmap ();
12011 rm -f conftest.
$ac_objext conftest
$ac_exeext
12012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12013 (eval $ac_link) 2>conftest.er1
12015 grep -v '^ *+' conftest.er1
>conftest.err
12017 cat conftest.err
>&5
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); } &&
12020 { ac_try
='test -z "$ac_c_werror_flag"
12021 || test ! -s conftest.err'
12022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12023 (eval $ac_try) 2>&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); }; } &&
12027 { ac_try
='test -s conftest$ac_exeext'
12028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12029 (eval $ac_try) 2>&5
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); }; }; then
12033 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12035 echo "$as_me: failed program was:" >&5
12036 sed 's/^/| /' conftest.
$ac_ext >&5
12038 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12040 rm -f conftest.err conftest.
$ac_objext \
12041 conftest
$ac_exeext conftest.
$ac_ext
12042 LIBS
=$ac_check_lib_save_LIBS
12044 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12045 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
12046 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12053 if test "${HAVE_XPM}" = "yes"; then
12054 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12055 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
12056 cat >conftest.
$ac_ext <<_ACEOF
12059 cat confdefs.h
>>conftest.
$ac_ext
12060 cat >>conftest.
$ac_ext <<_ACEOF
12061 /* end confdefs.h. */
12062 #include "X11/xpm.h"
12063 #ifndef XpmReturnAllocPixels
12064 no_return_alloc_pixels
12068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12069 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
12077 if test "${HAVE_XPM}" = "yes"; then
12078 echo "$as_me:$LINENO: result: yes" >&5
12079 echo "${ECHO_T}yes" >&6
12081 echo "$as_me:$LINENO: result: no" >&5
12082 echo "${ECHO_T}no" >&6
12087 if test "${HAVE_XPM}" = "yes"; then
12089 cat >>confdefs.h
<<\_ACEOF
12096 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12098 if test "${HAVE_X11}" = "yes"; then
12099 if test "${with_jpeg}" != "no"; then
12100 if test "${ac_cv_header_jerror_h+set}" = set; then
12101 echo "$as_me:$LINENO: checking for jerror.h" >&5
12102 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12103 if test "${ac_cv_header_jerror_h+set}" = set; then
12104 echo $ECHO_N "(cached) $ECHO_C" >&6
12106 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12107 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12109 # Is the header compilable?
12110 echo "$as_me:$LINENO: checking jerror.h usability" >&5
12111 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
12112 cat >conftest.
$ac_ext <<_ACEOF
12115 cat confdefs.h
>>conftest.
$ac_ext
12116 cat >>conftest.
$ac_ext <<_ACEOF
12117 /* end confdefs.h. */
12118 $ac_includes_default
12119 #include <jerror.h>
12121 rm -f conftest.
$ac_objext
12122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12123 (eval $ac_compile) 2>conftest.er1
12125 grep -v '^ *+' conftest.er1
>conftest.err
12127 cat conftest.err
>&5
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); } &&
12130 { ac_try
='test -z "$ac_c_werror_flag"
12131 || test ! -s conftest.err'
12132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133 (eval $ac_try) 2>&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }; } &&
12137 { ac_try
='test -s conftest.$ac_objext'
12138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12139 (eval $ac_try) 2>&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); }; }; then
12143 ac_header_compiler
=yes
12145 echo "$as_me: failed program was:" >&5
12146 sed 's/^/| /' conftest.
$ac_ext >&5
12148 ac_header_compiler
=no
12150 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12151 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12152 echo "${ECHO_T}$ac_header_compiler" >&6
12154 # Is the header present?
12155 echo "$as_me:$LINENO: checking jerror.h presence" >&5
12156 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
12157 cat >conftest.
$ac_ext <<_ACEOF
12160 cat confdefs.h
>>conftest.
$ac_ext
12161 cat >>conftest.
$ac_ext <<_ACEOF
12162 /* end confdefs.h. */
12163 #include <jerror.h>
12165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12166 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12168 grep -v '^ *+' conftest.er1
>conftest.err
12170 cat conftest.err
>&5
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); } >/dev
/null
; then
12173 if test -s conftest.err
; then
12174 ac_cpp_err
=$ac_c_preproc_warn_flag
12175 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12182 if test -z "$ac_cpp_err"; then
12183 ac_header_preproc
=yes
12185 echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.
$ac_ext >&5
12188 ac_header_preproc
=no
12190 rm -f conftest.err conftest.
$ac_ext
12191 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12192 echo "${ECHO_T}$ac_header_preproc" >&6
12194 # So? What about this header?
12195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12197 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12198 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12199 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12200 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12201 ac_header_preproc
=yes
12204 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12205 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12206 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12207 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12208 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12209 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12210 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12211 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12212 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12213 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12214 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12215 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12218 ## ------------------------------------------ ##
12219 ## Report this to the AC_PACKAGE_NAME lists. ##
12220 ## ------------------------------------------ ##
12223 sed "s/^/$as_me: WARNING: /" >&2
12226 echo "$as_me:$LINENO: checking for jerror.h" >&5
12227 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12228 if test "${ac_cv_header_jerror_h+set}" = set; then
12229 echo $ECHO_N "(cached) $ECHO_C" >&6
12231 ac_cv_header_jerror_h
=$ac_header_preproc
12233 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12234 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12237 if test $ac_cv_header_jerror_h = yes; then
12238 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12239 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
12240 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12241 echo $ECHO_N "(cached) $ECHO_C" >&6
12243 ac_check_lib_save_LIBS
=$LIBS
12244 LIBS
="-ljpeg $LIBS"
12245 cat >conftest.
$ac_ext <<_ACEOF
12248 cat confdefs.h
>>conftest.
$ac_ext
12249 cat >>conftest.
$ac_ext <<_ACEOF
12250 /* end confdefs.h. */
12252 /* Override any gcc2 internal prototype to avoid an error. */
12256 /* We use char because int might match the return type of a gcc2
12257 builtin and then its argument prototype would still apply. */
12258 char jpeg_destroy_compress ();
12262 jpeg_destroy_compress ();
12267 rm -f conftest.
$ac_objext conftest
$ac_exeext
12268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12269 (eval $ac_link) 2>conftest.er1
12271 grep -v '^ *+' conftest.er1
>conftest.err
12273 cat conftest.err
>&5
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); } &&
12276 { ac_try
='test -z "$ac_c_werror_flag"
12277 || test ! -s conftest.err'
12278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12279 (eval $ac_try) 2>&5
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); }; } &&
12283 { ac_try
='test -s conftest$ac_exeext'
12284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12285 (eval $ac_try) 2>&5
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); }; }; then
12289 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12291 echo "$as_me: failed program was:" >&5
12292 sed 's/^/| /' conftest.
$ac_ext >&5
12294 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12296 rm -f conftest.err conftest.
$ac_objext \
12297 conftest
$ac_exeext conftest.
$ac_ext
12298 LIBS
=$ac_check_lib_save_LIBS
12300 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12301 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
12302 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12312 if test "${HAVE_JPEG}" = "yes"; then
12313 cat >>confdefs.h
<<\_ACEOF
12314 #define HAVE_JPEG 1
12317 cat >conftest.
$ac_ext <<_ACEOF
12320 cat confdefs.h
>>conftest.
$ac_ext
12321 cat >>conftest.
$ac_ext <<_ACEOF
12322 /* end confdefs.h. */
12323 #include <jpeglib.h>
12324 version=JPEG_LIB_VERSION
12327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12328 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
12329 cat >>confdefs.h
<<\_ACEOF
12330 #define HAVE_JPEG 1
12334 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12335 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12343 ### Use -lpng if available, unless `--with-png=no'.
12345 if test "${HAVE_X11}" = "yes"; then
12346 if test "${with_png}" != "no"; then
12347 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12348 # in /usr/include/libpng.
12351 for ac_header
in png.h libpng
/png.h
12353 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12355 echo "$as_me:$LINENO: checking for $ac_header" >&5
12356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12358 echo $ECHO_N "(cached) $ECHO_C" >&6
12360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12363 # Is the header compilable?
12364 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12366 cat >conftest.
$ac_ext <<_ACEOF
12369 cat confdefs.h
>>conftest.
$ac_ext
12370 cat >>conftest.
$ac_ext <<_ACEOF
12371 /* end confdefs.h. */
12372 $ac_includes_default
12373 #include <$ac_header>
12375 rm -f conftest.
$ac_objext
12376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12377 (eval $ac_compile) 2>conftest.er1
12379 grep -v '^ *+' conftest.er1
>conftest.err
12381 cat conftest.err
>&5
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); } &&
12384 { ac_try
='test -z "$ac_c_werror_flag"
12385 || test ! -s conftest.err'
12386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12387 (eval $ac_try) 2>&5
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); }; } &&
12391 { ac_try
='test -s conftest.$ac_objext'
12392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12393 (eval $ac_try) 2>&5
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); }; }; then
12397 ac_header_compiler
=yes
12399 echo "$as_me: failed program was:" >&5
12400 sed 's/^/| /' conftest.
$ac_ext >&5
12402 ac_header_compiler
=no
12404 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12405 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12406 echo "${ECHO_T}$ac_header_compiler" >&6
12408 # Is the header present?
12409 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12411 cat >conftest.
$ac_ext <<_ACEOF
12414 cat confdefs.h
>>conftest.
$ac_ext
12415 cat >>conftest.
$ac_ext <<_ACEOF
12416 /* end confdefs.h. */
12417 #include <$ac_header>
12419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12420 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12422 grep -v '^ *+' conftest.er1
>conftest.err
12424 cat conftest.err
>&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } >/dev
/null
; then
12427 if test -s conftest.err
; then
12428 ac_cpp_err
=$ac_c_preproc_warn_flag
12429 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12436 if test -z "$ac_cpp_err"; then
12437 ac_header_preproc
=yes
12439 echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.
$ac_ext >&5
12442 ac_header_preproc
=no
12444 rm -f conftest.err conftest.
$ac_ext
12445 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12446 echo "${ECHO_T}$ac_header_preproc" >&6
12448 # So? What about this header?
12449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12455 ac_header_preproc
=yes
12458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12472 ## ------------------------------------------ ##
12473 ## Report this to the AC_PACKAGE_NAME lists. ##
12474 ## ------------------------------------------ ##
12477 sed "s/^/$as_me: WARNING: /" >&2
12480 echo "$as_me:$LINENO: checking for $ac_header" >&5
12481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12483 echo $ECHO_N "(cached) $ECHO_C" >&6
12485 eval "$as_ac_Header=\$ac_header_preproc"
12487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12492 cat >>confdefs.h
<<_ACEOF
12493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12500 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12501 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12502 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12503 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12504 echo $ECHO_N "(cached) $ECHO_C" >&6
12506 ac_check_lib_save_LIBS
=$LIBS
12507 LIBS
="-lpng -lz -lm $LIBS"
12508 cat >conftest.
$ac_ext <<_ACEOF
12511 cat confdefs.h
>>conftest.
$ac_ext
12512 cat >>conftest.
$ac_ext <<_ACEOF
12513 /* end confdefs.h. */
12515 /* Override any gcc2 internal prototype to avoid an error. */
12519 /* We use char because int might match the return type of a gcc2
12520 builtin and then its argument prototype would still apply. */
12521 char png_get_channels ();
12525 png_get_channels ();
12530 rm -f conftest.
$ac_objext conftest
$ac_exeext
12531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12532 (eval $ac_link) 2>conftest.er1
12534 grep -v '^ *+' conftest.er1
>conftest.err
12536 cat conftest.err
>&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); } &&
12539 { ac_try
='test -z "$ac_c_werror_flag"
12540 || test ! -s conftest.err'
12541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542 (eval $ac_try) 2>&5
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; } &&
12546 { ac_try
='test -s conftest$ac_exeext'
12547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548 (eval $ac_try) 2>&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; }; then
12552 ac_cv_lib_png_png_get_channels
=yes
12554 echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.
$ac_ext >&5
12557 ac_cv_lib_png_png_get_channels
=no
12559 rm -f conftest.err conftest.
$ac_objext \
12560 conftest
$ac_exeext conftest.
$ac_ext
12561 LIBS
=$ac_check_lib_save_LIBS
12563 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12564 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12565 if test $ac_cv_lib_png_png_get_channels = yes; then
12572 if test "${HAVE_PNG}" = "yes"; then
12574 cat >>confdefs.h
<<\_ACEOF
12581 ### Use -ltiff if available, unless `--with-tiff=no'.
12583 if test "${HAVE_X11}" = "yes"; then
12584 if test "${with_tiff}" != "no"; then
12585 if test "${ac_cv_header_tiffio_h+set}" = set; then
12586 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12587 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12588 if test "${ac_cv_header_tiffio_h+set}" = set; then
12589 echo $ECHO_N "(cached) $ECHO_C" >&6
12591 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12592 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12594 # Is the header compilable?
12595 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12596 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12597 cat >conftest.
$ac_ext <<_ACEOF
12600 cat confdefs.h
>>conftest.
$ac_ext
12601 cat >>conftest.
$ac_ext <<_ACEOF
12602 /* end confdefs.h. */
12603 $ac_includes_default
12604 #include <tiffio.h>
12606 rm -f conftest.
$ac_objext
12607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12608 (eval $ac_compile) 2>conftest.er1
12610 grep -v '^ *+' conftest.er1
>conftest.err
12612 cat conftest.err
>&5
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); } &&
12615 { ac_try
='test -z "$ac_c_werror_flag"
12616 || test ! -s conftest.err'
12617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12618 (eval $ac_try) 2>&5
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; } &&
12622 { ac_try
='test -s conftest.$ac_objext'
12623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12624 (eval $ac_try) 2>&5
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); }; }; then
12628 ac_header_compiler
=yes
12630 echo "$as_me: failed program was:" >&5
12631 sed 's/^/| /' conftest.
$ac_ext >&5
12633 ac_header_compiler
=no
12635 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12636 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12637 echo "${ECHO_T}$ac_header_compiler" >&6
12639 # Is the header present?
12640 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12641 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12642 cat >conftest.
$ac_ext <<_ACEOF
12645 cat confdefs.h
>>conftest.
$ac_ext
12646 cat >>conftest.
$ac_ext <<_ACEOF
12647 /* end confdefs.h. */
12648 #include <tiffio.h>
12650 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12651 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12653 grep -v '^ *+' conftest.er1
>conftest.err
12655 cat conftest.err
>&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); } >/dev
/null
; then
12658 if test -s conftest.err
; then
12659 ac_cpp_err
=$ac_c_preproc_warn_flag
12660 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12667 if test -z "$ac_cpp_err"; then
12668 ac_header_preproc
=yes
12670 echo "$as_me: failed program was:" >&5
12671 sed 's/^/| /' conftest.
$ac_ext >&5
12673 ac_header_preproc
=no
12675 rm -f conftest.err conftest.
$ac_ext
12676 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12677 echo "${ECHO_T}$ac_header_preproc" >&6
12679 # So? What about this header?
12680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12682 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12683 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12684 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12685 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12686 ac_header_preproc
=yes
12689 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12690 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12691 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12692 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12693 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12694 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12695 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12696 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12697 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12698 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12699 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12700 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12703 ## ------------------------------------------ ##
12704 ## Report this to the AC_PACKAGE_NAME lists. ##
12705 ## ------------------------------------------ ##
12708 sed "s/^/$as_me: WARNING: /" >&2
12711 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12712 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12713 if test "${ac_cv_header_tiffio_h+set}" = set; then
12714 echo $ECHO_N "(cached) $ECHO_C" >&6
12716 ac_cv_header_tiffio_h
=$ac_header_preproc
12718 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12719 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12722 if test $ac_cv_header_tiffio_h = yes; then
12724 # At least one tiff package requires the jpeg library.
12725 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12726 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12727 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12728 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12729 echo $ECHO_N "(cached) $ECHO_C" >&6
12731 ac_check_lib_save_LIBS
=$LIBS
12732 LIBS
="-ltiff $tifflibs $LIBS"
12733 cat >conftest.
$ac_ext <<_ACEOF
12736 cat confdefs.h
>>conftest.
$ac_ext
12737 cat >>conftest.
$ac_ext <<_ACEOF
12738 /* end confdefs.h. */
12740 /* Override any gcc2 internal prototype to avoid an error. */
12744 /* We use char because int might match the return type of a gcc2
12745 builtin and then its argument prototype would still apply. */
12746 char TIFFGetVersion ();
12755 rm -f conftest.
$ac_objext conftest
$ac_exeext
12756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12757 (eval $ac_link) 2>conftest.er1
12759 grep -v '^ *+' conftest.er1
>conftest.err
12761 cat conftest.err
>&5
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); } &&
12764 { ac_try
='test -z "$ac_c_werror_flag"
12765 || test ! -s conftest.err'
12766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12767 (eval $ac_try) 2>&5
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); }; } &&
12771 { ac_try
='test -s conftest$ac_exeext'
12772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12773 (eval $ac_try) 2>&5
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); }; }; then
12777 ac_cv_lib_tiff_TIFFGetVersion
=yes
12779 echo "$as_me: failed program was:" >&5
12780 sed 's/^/| /' conftest.
$ac_ext >&5
12782 ac_cv_lib_tiff_TIFFGetVersion
=no
12784 rm -f conftest.err conftest.
$ac_objext \
12785 conftest
$ac_exeext conftest.
$ac_ext
12786 LIBS
=$ac_check_lib_save_LIBS
12788 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12789 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12790 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12799 if test "${HAVE_TIFF}" = "yes"; then
12801 cat >>confdefs.h
<<\_ACEOF
12802 #define HAVE_TIFF 1
12808 ### Use -lgif if available, unless `--with-gif=no'.
12810 if test "${HAVE_X11}" = "yes"; then
12811 if test "${with_gif}" != "no"; then
12812 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12813 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12814 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12815 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12816 echo $ECHO_N "(cached) $ECHO_C" >&6
12818 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12819 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12821 # Is the header compilable?
12822 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12823 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12824 cat >conftest.
$ac_ext <<_ACEOF
12827 cat confdefs.h
>>conftest.
$ac_ext
12828 cat >>conftest.
$ac_ext <<_ACEOF
12829 /* end confdefs.h. */
12830 $ac_includes_default
12831 #include <gif_lib.h>
12833 rm -f conftest.
$ac_objext
12834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12835 (eval $ac_compile) 2>conftest.er1
12837 grep -v '^ *+' conftest.er1
>conftest.err
12839 cat conftest.err
>&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); } &&
12842 { ac_try
='test -z "$ac_c_werror_flag"
12843 || test ! -s conftest.err'
12844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12845 (eval $ac_try) 2>&5
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); }; } &&
12849 { ac_try
='test -s conftest.$ac_objext'
12850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12851 (eval $ac_try) 2>&5
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); }; }; then
12855 ac_header_compiler
=yes
12857 echo "$as_me: failed program was:" >&5
12858 sed 's/^/| /' conftest.
$ac_ext >&5
12860 ac_header_compiler
=no
12862 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12863 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12864 echo "${ECHO_T}$ac_header_compiler" >&6
12866 # Is the header present?
12867 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12868 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12869 cat >conftest.
$ac_ext <<_ACEOF
12872 cat confdefs.h
>>conftest.
$ac_ext
12873 cat >>conftest.
$ac_ext <<_ACEOF
12874 /* end confdefs.h. */
12875 #include <gif_lib.h>
12877 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12878 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12880 grep -v '^ *+' conftest.er1
>conftest.err
12882 cat conftest.err
>&5
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); } >/dev
/null
; then
12885 if test -s conftest.err
; then
12886 ac_cpp_err
=$ac_c_preproc_warn_flag
12887 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12894 if test -z "$ac_cpp_err"; then
12895 ac_header_preproc
=yes
12897 echo "$as_me: failed program was:" >&5
12898 sed 's/^/| /' conftest.
$ac_ext >&5
12900 ac_header_preproc
=no
12902 rm -f conftest.err conftest.
$ac_ext
12903 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12904 echo "${ECHO_T}$ac_header_preproc" >&6
12906 # So? What about this header?
12907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12909 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12910 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12911 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12912 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12913 ac_header_preproc
=yes
12916 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12917 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12918 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12919 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12920 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12921 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12922 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12923 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12924 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12925 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12926 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12927 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12930 ## ------------------------------------------ ##
12931 ## Report this to the AC_PACKAGE_NAME lists. ##
12932 ## ------------------------------------------ ##
12935 sed "s/^/$as_me: WARNING: /" >&2
12938 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12939 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12940 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12941 echo $ECHO_N "(cached) $ECHO_C" >&6
12943 ac_cv_header_gif_lib_h
=$ac_header_preproc
12945 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12946 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12949 if test $ac_cv_header_gif_lib_h = yes; then
12950 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12951 # Earlier versions can crash Emacs.
12952 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12953 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12954 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12955 echo $ECHO_N "(cached) $ECHO_C" >&6
12957 ac_check_lib_save_LIBS
=$LIBS
12958 LIBS
="-lungif $LIBS"
12959 cat >conftest.
$ac_ext <<_ACEOF
12962 cat confdefs.h
>>conftest.
$ac_ext
12963 cat >>conftest.
$ac_ext <<_ACEOF
12964 /* end confdefs.h. */
12966 /* Override any gcc2 internal prototype to avoid an error. */
12970 /* We use char because int might match the return type of a gcc2
12971 builtin and then its argument prototype would still apply. */
12972 char EGifPutExtensionLast ();
12976 EGifPutExtensionLast ();
12981 rm -f conftest.
$ac_objext conftest
$ac_exeext
12982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12983 (eval $ac_link) 2>conftest.er1
12985 grep -v '^ *+' conftest.er1
>conftest.err
12987 cat conftest.err
>&5
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); } &&
12990 { ac_try
='test -z "$ac_c_werror_flag"
12991 || test ! -s conftest.err'
12992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12993 (eval $ac_try) 2>&5
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); }; } &&
12997 { ac_try
='test -s conftest$ac_exeext'
12998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12999 (eval $ac_try) 2>&5
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); }; }; then
13003 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
13005 echo "$as_me: failed program was:" >&5
13006 sed 's/^/| /' conftest.
$ac_ext >&5
13008 ac_cv_lib_ungif_EGifPutExtensionLast
=no
13010 rm -f conftest.err conftest.
$ac_objext \
13011 conftest
$ac_exeext conftest.
$ac_ext
13012 LIBS
=$ac_check_lib_save_LIBS
13014 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13015 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
13016 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13025 if test "${HAVE_GIF}" = "yes"; then
13027 cat >>confdefs.h
<<\_ACEOF
13034 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13035 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13036 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13037 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13038 echo $ECHO_N "(cached) $ECHO_C" >&6
13040 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13041 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13043 # Is the header compilable?
13044 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13045 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
13046 cat >conftest.
$ac_ext <<_ACEOF
13049 cat confdefs.h
>>conftest.
$ac_ext
13050 cat >>conftest.
$ac_ext <<_ACEOF
13051 /* end confdefs.h. */
13052 $ac_includes_default
13053 #include <malloc/malloc.h>
13055 rm -f conftest.
$ac_objext
13056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13057 (eval $ac_compile) 2>conftest.er1
13059 grep -v '^ *+' conftest.er1
>conftest.err
13061 cat conftest.err
>&5
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); } &&
13064 { ac_try
='test -z "$ac_c_werror_flag"
13065 || test ! -s conftest.err'
13066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067 (eval $ac_try) 2>&5
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); }; } &&
13071 { ac_try
='test -s conftest.$ac_objext'
13072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13073 (eval $ac_try) 2>&5
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); }; }; then
13077 ac_header_compiler
=yes
13079 echo "$as_me: failed program was:" >&5
13080 sed 's/^/| /' conftest.
$ac_ext >&5
13082 ac_header_compiler
=no
13084 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13085 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13086 echo "${ECHO_T}$ac_header_compiler" >&6
13088 # Is the header present?
13089 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13090 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
13091 cat >conftest.
$ac_ext <<_ACEOF
13094 cat confdefs.h
>>conftest.
$ac_ext
13095 cat >>conftest.
$ac_ext <<_ACEOF
13096 /* end confdefs.h. */
13097 #include <malloc/malloc.h>
13099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13100 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13102 grep -v '^ *+' conftest.er1
>conftest.err
13104 cat conftest.err
>&5
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); } >/dev
/null
; then
13107 if test -s conftest.err
; then
13108 ac_cpp_err
=$ac_c_preproc_warn_flag
13109 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13116 if test -z "$ac_cpp_err"; then
13117 ac_header_preproc
=yes
13119 echo "$as_me: failed program was:" >&5
13120 sed 's/^/| /' conftest.
$ac_ext >&5
13122 ac_header_preproc
=no
13124 rm -f conftest.err conftest.
$ac_ext
13125 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13126 echo "${ECHO_T}$ac_header_preproc" >&6
13128 # So? What about this header?
13129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13131 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13132 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13133 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13134 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13135 ac_header_preproc
=yes
13138 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13139 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13140 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13141 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13142 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13143 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13144 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13145 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13146 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13147 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13148 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13149 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13152 ## ------------------------------------------ ##
13153 ## Report this to the AC_PACKAGE_NAME lists. ##
13154 ## ------------------------------------------ ##
13157 sed "s/^/$as_me: WARNING: /" >&2
13160 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13161 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13162 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13163 echo $ECHO_N "(cached) $ECHO_C" >&6
13165 ac_cv_header_malloc_malloc_h
=$ac_header_preproc
13167 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13168 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13171 if test $ac_cv_header_malloc_malloc_h = yes; then
13173 cat >>confdefs.h
<<\_ACEOF
13174 #define HAVE_MALLOC_MALLOC_H 1
13181 ### Use Mac OS X Carbon API to implement GUI.
13182 if test "${HAVE_CARBON}" = "yes"; then
13184 cat >>confdefs.h
<<\_ACEOF
13185 #define HAVE_CARBON 1
13188 ## Specify the install directory
13190 if test "${carbon_appdir_x}" != ""; then
13191 case ${carbon_appdir_x} in
13192 y | ye |
yes) carbon_appdir
=/Applications
;;
13193 * ) carbon_appdir
=${carbon_appdir_x} ;;
13196 # We also have mouse menus.
13199 tmp_CFLAGS
="$CFLAGS"
13200 CFLAGS
="$CFLAGS -framework Carbon"
13201 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
13202 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
13203 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
13204 echo $ECHO_N "(cached) $ECHO_C" >&6
13206 cat >conftest.
$ac_ext <<_ACEOF
13209 cat confdefs.h
>>conftest.
$ac_ext
13210 cat >>conftest.
$ac_ext <<_ACEOF
13211 /* end confdefs.h. */
13212 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
13213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13214 #define CancelMenuTracking innocuous_CancelMenuTracking
13216 /* System header to define __stub macros and hopefully few prototypes,
13217 which can conflict with char CancelMenuTracking (); below.
13218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13219 <limits.h> exists even on freestanding compilers. */
13222 # include <limits.h>
13224 # include <assert.h>
13227 #undef CancelMenuTracking
13229 /* Override any gcc2 internal prototype to avoid an error. */
13234 /* We use char because int might match the return type of a gcc2
13235 builtin and then its argument prototype would still apply. */
13236 char CancelMenuTracking ();
13237 /* The GNU C library defines this for functions which it implements
13238 to always fail with ENOSYS. Some functions are actually named
13239 something starting with __ and the normal name is an alias. */
13240 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
13243 char (*f) () = CancelMenuTracking;
13252 return f != CancelMenuTracking;
13257 rm -f conftest.
$ac_objext conftest
$ac_exeext
13258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13259 (eval $ac_link) 2>conftest.er1
13261 grep -v '^ *+' conftest.er1
>conftest.err
13263 cat conftest.err
>&5
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); } &&
13266 { ac_try
='test -z "$ac_c_werror_flag"
13267 || test ! -s conftest.err'
13268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13269 (eval $ac_try) 2>&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); }; } &&
13273 { ac_try
='test -s conftest$ac_exeext'
13274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13275 (eval $ac_try) 2>&5
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }; }; then
13279 ac_cv_func_CancelMenuTracking
=yes
13281 echo "$as_me: failed program was:" >&5
13282 sed 's/^/| /' conftest.
$ac_ext >&5
13284 ac_cv_func_CancelMenuTracking
=no
13286 rm -f conftest.err conftest.
$ac_objext \
13287 conftest
$ac_exeext conftest.
$ac_ext
13289 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
13290 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
13291 if test $ac_cv_func_CancelMenuTracking = yes; then
13297 if test "$have_cmt" = yes; then
13299 cat >>confdefs.h
<<\_ACEOF
13300 #define HAVE_CANCELMENUTRACKING 1
13304 CFLAGS
="$tmp_CFLAGS"
13307 ### Use session management (-lSM -lICE) if available
13309 if test "${HAVE_X11}" = "yes"; then
13310 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13311 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13312 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13313 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13314 echo $ECHO_N "(cached) $ECHO_C" >&6
13316 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13317 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13319 # Is the header compilable?
13320 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13321 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13322 cat >conftest.
$ac_ext <<_ACEOF
13325 cat confdefs.h
>>conftest.
$ac_ext
13326 cat >>conftest.
$ac_ext <<_ACEOF
13327 /* end confdefs.h. */
13328 $ac_includes_default
13329 #include <X11/SM/SMlib.h>
13331 rm -f conftest.
$ac_objext
13332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13333 (eval $ac_compile) 2>conftest.er1
13335 grep -v '^ *+' conftest.er1
>conftest.err
13337 cat conftest.err
>&5
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); } &&
13340 { ac_try
='test -z "$ac_c_werror_flag"
13341 || test ! -s conftest.err'
13342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13343 (eval $ac_try) 2>&5
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); }; } &&
13347 { ac_try
='test -s conftest.$ac_objext'
13348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13349 (eval $ac_try) 2>&5
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); }; }; then
13353 ac_header_compiler
=yes
13355 echo "$as_me: failed program was:" >&5
13356 sed 's/^/| /' conftest.
$ac_ext >&5
13358 ac_header_compiler
=no
13360 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13361 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13362 echo "${ECHO_T}$ac_header_compiler" >&6
13364 # Is the header present?
13365 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13366 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13367 cat >conftest.
$ac_ext <<_ACEOF
13370 cat confdefs.h
>>conftest.
$ac_ext
13371 cat >>conftest.
$ac_ext <<_ACEOF
13372 /* end confdefs.h. */
13373 #include <X11/SM/SMlib.h>
13375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13376 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13378 grep -v '^ *+' conftest.er1
>conftest.err
13380 cat conftest.err
>&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } >/dev
/null
; then
13383 if test -s conftest.err
; then
13384 ac_cpp_err
=$ac_c_preproc_warn_flag
13385 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13392 if test -z "$ac_cpp_err"; then
13393 ac_header_preproc
=yes
13395 echo "$as_me: failed program was:" >&5
13396 sed 's/^/| /' conftest.
$ac_ext >&5
13398 ac_header_preproc
=no
13400 rm -f conftest.err conftest.
$ac_ext
13401 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13402 echo "${ECHO_T}$ac_header_preproc" >&6
13404 # So? What about this header?
13405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13407 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13408 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13409 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13410 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13411 ac_header_preproc
=yes
13414 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13415 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13416 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13417 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13418 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13419 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13420 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13421 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13422 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13423 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13424 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13425 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13428 ## ------------------------------------------ ##
13429 ## Report this to the AC_PACKAGE_NAME lists. ##
13430 ## ------------------------------------------ ##
13433 sed "s/^/$as_me: WARNING: /" >&2
13436 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13437 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13438 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13439 echo $ECHO_N "(cached) $ECHO_C" >&6
13441 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
13443 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13444 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13447 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13448 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13449 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
13450 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13451 echo $ECHO_N "(cached) $ECHO_C" >&6
13453 ac_check_lib_save_LIBS
=$LIBS
13454 LIBS
="-lSM -lICE $LIBS"
13455 cat >conftest.
$ac_ext <<_ACEOF
13458 cat confdefs.h
>>conftest.
$ac_ext
13459 cat >>conftest.
$ac_ext <<_ACEOF
13460 /* end confdefs.h. */
13462 /* Override any gcc2 internal prototype to avoid an error. */
13466 /* We use char because int might match the return type of a gcc2
13467 builtin and then its argument prototype would still apply. */
13468 char SmcOpenConnection ();
13472 SmcOpenConnection ();
13477 rm -f conftest.
$ac_objext conftest
$ac_exeext
13478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13479 (eval $ac_link) 2>conftest.er1
13481 grep -v '^ *+' conftest.er1
>conftest.err
13483 cat conftest.err
>&5
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); } &&
13486 { ac_try
='test -z "$ac_c_werror_flag"
13487 || test ! -s conftest.err'
13488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13489 (eval $ac_try) 2>&5
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; } &&
13493 { ac_try
='test -s conftest$ac_exeext'
13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495 (eval $ac_try) 2>&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; }; then
13499 ac_cv_lib_SM_SmcOpenConnection
=yes
13501 echo "$as_me: failed program was:" >&5
13502 sed 's/^/| /' conftest.
$ac_ext >&5
13504 ac_cv_lib_SM_SmcOpenConnection
=no
13506 rm -f conftest.err conftest.
$ac_objext \
13507 conftest
$ac_exeext conftest.
$ac_ext
13508 LIBS
=$ac_check_lib_save_LIBS
13510 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13511 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13512 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13520 if test "${HAVE_X_SM}" = "yes"; then
13522 cat >>confdefs.h
<<\_ACEOF
13523 #define HAVE_X_SM 1
13528 *) LIBS
="-lSM -lICE $LIBS" ;;
13533 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13534 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13535 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13536 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13537 echo $ECHO_N "(cached) $ECHO_C" >&6
13539 cat >conftest.
$ac_ext <<_ACEOF
13542 cat confdefs.h
>>conftest.
$ac_ext
13543 cat >>conftest.
$ac_ext <<_ACEOF
13544 /* end confdefs.h. */
13554 rm -f conftest.
$ac_objext conftest
$ac_exeext
13555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13556 (eval $ac_link) 2>conftest.er1
13558 grep -v '^ *+' conftest.er1
>conftest.err
13560 cat conftest.err
>&5
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); } &&
13563 { ac_try
='test -z "$ac_c_werror_flag"
13564 || test ! -s conftest.err'
13565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13566 (eval $ac_try) 2>&5
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); }; } &&
13570 { ac_try
='test -s conftest$ac_exeext'
13571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13572 (eval $ac_try) 2>&5
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); }; }; then
13576 emacs_cv_netdb_declares_h_errno
=yes
13578 echo "$as_me: failed program was:" >&5
13579 sed 's/^/| /' conftest.
$ac_ext >&5
13581 emacs_cv_netdb_declares_h_errno
=no
13583 rm -f conftest.err conftest.
$ac_objext \
13584 conftest
$ac_exeext conftest.
$ac_ext
13586 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13587 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13588 if test $emacs_cv_netdb_declares_h_errno = yes; then
13590 cat >>confdefs.h
<<\_ACEOF
13591 #define HAVE_H_ERRNO 1
13596 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13597 # for constant arguments. Useless!
13598 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13599 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13600 if test "${ac_cv_working_alloca_h+set}" = set; then
13601 echo $ECHO_N "(cached) $ECHO_C" >&6
13603 cat >conftest.
$ac_ext <<_ACEOF
13606 cat confdefs.h
>>conftest.
$ac_ext
13607 cat >>conftest.
$ac_ext <<_ACEOF
13608 /* end confdefs.h. */
13609 #include <alloca.h>
13613 char *p = (char *) alloca (2 * sizeof (int));
13618 rm -f conftest.
$ac_objext conftest
$ac_exeext
13619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13620 (eval $ac_link) 2>conftest.er1
13622 grep -v '^ *+' conftest.er1
>conftest.err
13624 cat conftest.err
>&5
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); } &&
13627 { ac_try
='test -z "$ac_c_werror_flag"
13628 || test ! -s conftest.err'
13629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13630 (eval $ac_try) 2>&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); }; } &&
13634 { ac_try
='test -s conftest$ac_exeext'
13635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13636 (eval $ac_try) 2>&5
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); }; }; then
13640 ac_cv_working_alloca_h
=yes
13642 echo "$as_me: failed program was:" >&5
13643 sed 's/^/| /' conftest.
$ac_ext >&5
13645 ac_cv_working_alloca_h
=no
13647 rm -f conftest.err conftest.
$ac_objext \
13648 conftest
$ac_exeext conftest.
$ac_ext
13650 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13651 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13652 if test $ac_cv_working_alloca_h = yes; then
13654 cat >>confdefs.h
<<\_ACEOF
13655 #define HAVE_ALLOCA_H 1
13660 echo "$as_me:$LINENO: checking for alloca" >&5
13661 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13662 if test "${ac_cv_func_alloca_works+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. */
13672 # define alloca __builtin_alloca
13675 # include <malloc.h>
13676 # define alloca _alloca
13679 # include <alloca.h>
13684 # ifndef alloca /* predefined by HP cc +Olibcalls */
13695 char *p = (char *) alloca (1);
13700 rm -f conftest.
$ac_objext conftest
$ac_exeext
13701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13702 (eval $ac_link) 2>conftest.er1
13704 grep -v '^ *+' conftest.er1
>conftest.err
13706 cat conftest.err
>&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } &&
13709 { ac_try
='test -z "$ac_c_werror_flag"
13710 || test ! -s conftest.err'
13711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13712 (eval $ac_try) 2>&5
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); }; } &&
13716 { ac_try
='test -s conftest$ac_exeext'
13717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13718 (eval $ac_try) 2>&5
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); }; }; then
13722 ac_cv_func_alloca_works
=yes
13724 echo "$as_me: failed program was:" >&5
13725 sed 's/^/| /' conftest.
$ac_ext >&5
13727 ac_cv_func_alloca_works
=no
13729 rm -f conftest.err conftest.
$ac_objext \
13730 conftest
$ac_exeext conftest.
$ac_ext
13732 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13733 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13735 if test $ac_cv_func_alloca_works = yes; then
13737 cat >>confdefs.h
<<\_ACEOF
13738 #define HAVE_ALLOCA 1
13742 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13743 # that cause trouble. Some versions do not even contain alloca or
13744 # contain a buggy version. If you still want to use their alloca,
13745 # use ar to extract alloca.o from them instead of compiling alloca.c.
13747 ALLOCA
=alloca.
$ac_objext
13749 cat >>confdefs.h
<<\_ACEOF
13754 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13755 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13756 if test "${ac_cv_os_cray+set}" = set; then
13757 echo $ECHO_N "(cached) $ECHO_C" >&6
13759 cat >conftest.
$ac_ext <<_ACEOF
13762 cat confdefs.h
>>conftest.
$ac_ext
13763 cat >>conftest.
$ac_ext <<_ACEOF
13764 /* end confdefs.h. */
13765 #if defined(CRAY) && ! defined(CRAY2)
13772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13773 $EGREP "webecray" >/dev
/null
2>&1; then
13781 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13782 echo "${ECHO_T}$ac_cv_os_cray" >&6
13783 if test $ac_cv_os_cray = yes; then
13784 for ac_func
in _getb67 GETB67 getb67
; do
13785 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13786 echo "$as_me:$LINENO: checking for $ac_func" >&5
13787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13788 if eval "test \"\${$as_ac_var+set}\" = set"; then
13789 echo $ECHO_N "(cached) $ECHO_C" >&6
13791 cat >conftest.
$ac_ext <<_ACEOF
13794 cat confdefs.h
>>conftest.
$ac_ext
13795 cat >>conftest.
$ac_ext <<_ACEOF
13796 /* end confdefs.h. */
13797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13799 #define $ac_func innocuous_$ac_func
13801 /* System header to define __stub macros and hopefully few prototypes,
13802 which can conflict with char $ac_func (); below.
13803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13804 <limits.h> exists even on freestanding compilers. */
13807 # include <limits.h>
13809 # include <assert.h>
13814 /* Override any gcc2 internal prototype to avoid an error. */
13819 /* We use char because int might match the return type of a gcc2
13820 builtin and then its argument prototype would still apply. */
13822 /* The GNU C library defines this for functions which it implements
13823 to always fail with ENOSYS. Some functions are actually named
13824 something starting with __ and the normal name is an alias. */
13825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13828 char (*f) () = $ac_func;
13837 return f != $ac_func;
13842 rm -f conftest.
$ac_objext conftest
$ac_exeext
13843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13844 (eval $ac_link) 2>conftest.er1
13846 grep -v '^ *+' conftest.er1
>conftest.err
13848 cat conftest.err
>&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); } &&
13851 { ac_try
='test -z "$ac_c_werror_flag"
13852 || test ! -s conftest.err'
13853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13854 (eval $ac_try) 2>&5
13856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 (exit $ac_status); }; } &&
13858 { ac_try
='test -s conftest$ac_exeext'
13859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13860 (eval $ac_try) 2>&5
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; }; then
13864 eval "$as_ac_var=yes"
13866 echo "$as_me: failed program was:" >&5
13867 sed 's/^/| /' conftest.
$ac_ext >&5
13869 eval "$as_ac_var=no"
13871 rm -f conftest.err conftest.
$ac_objext \
13872 conftest
$ac_exeext conftest.
$ac_ext
13874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13875 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13876 if test `eval echo '${'$as_ac_var'}'` = yes; then
13878 cat >>confdefs.h
<<_ACEOF
13879 #define CRAY_STACKSEG_END $ac_func
13888 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13889 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13890 if test "${ac_cv_c_stack_direction+set}" = set; then
13891 echo $ECHO_N "(cached) $ECHO_C" >&6
13893 if test "$cross_compiling" = yes; then
13894 ac_cv_c_stack_direction
=0
13896 cat >conftest.
$ac_ext <<_ACEOF
13899 cat confdefs.h
>>conftest.
$ac_ext
13900 cat >>conftest.
$ac_ext <<_ACEOF
13901 /* end confdefs.h. */
13903 find_stack_direction ()
13905 static char *addr = 0;
13910 return find_stack_direction ();
13913 return (&dummy > addr) ? 1 : -1;
13919 exit (find_stack_direction () < 0);
13922 rm -f conftest
$ac_exeext
13923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13924 (eval $ac_link) 2>&5
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13929 (eval $ac_try) 2>&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); }; }; then
13933 ac_cv_c_stack_direction
=1
13935 echo "$as_me: program exited with status $ac_status" >&5
13936 echo "$as_me: failed program was:" >&5
13937 sed 's/^/| /' conftest.
$ac_ext >&5
13939 ( exit $ac_status )
13940 ac_cv_c_stack_direction
=-1
13942 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13945 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13946 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13948 cat >>confdefs.h
<<_ACEOF
13949 #define STACK_DIRECTION $ac_cv_c_stack_direction
13956 # fmod, logb, and frexp are found in -lm on most systems.
13957 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13959 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13960 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13961 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13962 echo $ECHO_N "(cached) $ECHO_C" >&6
13964 ac_check_lib_save_LIBS
=$LIBS
13966 cat >conftest.
$ac_ext <<_ACEOF
13969 cat confdefs.h
>>conftest.
$ac_ext
13970 cat >>conftest.
$ac_ext <<_ACEOF
13971 /* end confdefs.h. */
13973 /* Override any gcc2 internal prototype to avoid an error. */
13977 /* We use char because int might match the return type of a gcc2
13978 builtin and then its argument prototype would still apply. */
13988 rm -f conftest.
$ac_objext conftest
$ac_exeext
13989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13990 (eval $ac_link) 2>conftest.er1
13992 grep -v '^ *+' conftest.er1
>conftest.err
13994 cat conftest.err
>&5
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); } &&
13997 { ac_try
='test -z "$ac_c_werror_flag"
13998 || test ! -s conftest.err'
13999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14000 (eval $ac_try) 2>&5
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); }; } &&
14004 { ac_try
='test -s conftest$ac_exeext'
14005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14006 (eval $ac_try) 2>&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); }; }; then
14010 ac_cv_lib_m_sqrt
=yes
14012 echo "$as_me: failed program was:" >&5
14013 sed 's/^/| /' conftest.
$ac_ext >&5
14015 ac_cv_lib_m_sqrt
=no
14017 rm -f conftest.err conftest.
$ac_objext \
14018 conftest
$ac_exeext conftest.
$ac_ext
14019 LIBS
=$ac_check_lib_save_LIBS
14021 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
14022 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
14023 if test $ac_cv_lib_m_sqrt = yes; then
14024 cat >>confdefs.h
<<_ACEOF
14025 #define HAVE_LIBM 1
14033 # Check for mail-locking functions in a "mail" library. Probably this should
14034 # have the same check as for liblockfile below.
14036 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
14037 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
14038 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14039 echo $ECHO_N "(cached) $ECHO_C" >&6
14041 ac_check_lib_save_LIBS
=$LIBS
14042 LIBS
="-lmail $LIBS"
14043 cat >conftest.
$ac_ext <<_ACEOF
14046 cat confdefs.h
>>conftest.
$ac_ext
14047 cat >>conftest.
$ac_ext <<_ACEOF
14048 /* end confdefs.h. */
14050 /* Override any gcc2 internal prototype to avoid an error. */
14054 /* We use char because int might match the return type of a gcc2
14055 builtin and then its argument prototype would still apply. */
14065 rm -f conftest.
$ac_objext conftest
$ac_exeext
14066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14067 (eval $ac_link) 2>conftest.er1
14069 grep -v '^ *+' conftest.er1
>conftest.err
14071 cat conftest.err
>&5
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 (exit $ac_status); } &&
14074 { ac_try
='test -z "$ac_c_werror_flag"
14075 || test ! -s conftest.err'
14076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14077 (eval $ac_try) 2>&5
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); }; } &&
14081 { ac_try
='test -s conftest$ac_exeext'
14082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14083 (eval $ac_try) 2>&5
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); }; }; then
14087 ac_cv_lib_mail_maillock
=yes
14089 echo "$as_me: failed program was:" >&5
14090 sed 's/^/| /' conftest.
$ac_ext >&5
14092 ac_cv_lib_mail_maillock
=no
14094 rm -f conftest.err conftest.
$ac_objext \
14095 conftest
$ac_exeext conftest.
$ac_ext
14096 LIBS
=$ac_check_lib_save_LIBS
14098 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14099 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
14100 if test $ac_cv_lib_mail_maillock = yes; then
14101 cat >>confdefs.h
<<_ACEOF
14102 #define HAVE_LIBMAIL 1
14105 LIBS
="-lmail $LIBS"
14110 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14111 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
14112 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14113 echo $ECHO_N "(cached) $ECHO_C" >&6
14115 ac_check_lib_save_LIBS
=$LIBS
14116 LIBS
="-llockfile $LIBS"
14117 cat >conftest.
$ac_ext <<_ACEOF
14120 cat confdefs.h
>>conftest.
$ac_ext
14121 cat >>conftest.
$ac_ext <<_ACEOF
14122 /* end confdefs.h. */
14124 /* Override any gcc2 internal prototype to avoid an error. */
14128 /* We use char because int might match the return type of a gcc2
14129 builtin and then its argument prototype would still apply. */
14139 rm -f conftest.
$ac_objext conftest
$ac_exeext
14140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14141 (eval $ac_link) 2>conftest.er1
14143 grep -v '^ *+' conftest.er1
>conftest.err
14145 cat conftest.err
>&5
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); } &&
14148 { ac_try
='test -z "$ac_c_werror_flag"
14149 || test ! -s conftest.err'
14150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14151 (eval $ac_try) 2>&5
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); }; } &&
14155 { ac_try
='test -s conftest$ac_exeext'
14156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14157 (eval $ac_try) 2>&5
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); }; }; then
14161 ac_cv_lib_lockfile_maillock
=yes
14163 echo "$as_me: failed program was:" >&5
14164 sed 's/^/| /' conftest.
$ac_ext >&5
14166 ac_cv_lib_lockfile_maillock
=no
14168 rm -f conftest.err conftest.
$ac_objext \
14169 conftest
$ac_exeext conftest.
$ac_ext
14170 LIBS
=$ac_check_lib_save_LIBS
14172 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14173 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
14174 if test $ac_cv_lib_lockfile_maillock = yes; then
14175 cat >>confdefs.h
<<_ACEOF
14176 #define HAVE_LIBLOCKFILE 1
14179 LIBS
="-llockfile $LIBS"
14183 # If we have the shared liblockfile, assume we must use it for mail
14184 # locking (e.g. Debian). If we couldn't link against liblockfile
14185 # (no liblockfile.a installed), ensure that we don't need to.
14186 if test "$ac_cv_lib_lockfile_maillock" = no
; then
14187 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14188 set dummy liblockfile.so
; ac_word
=$2
14189 echo "$as_me:$LINENO: checking for $ac_word" >&5
14190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14191 if test "${ac_cv_prog_liblockfile+set}" = set; then
14192 echo $ECHO_N "(cached) $ECHO_C" >&6
14194 if test -n "$liblockfile"; then
14195 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
14197 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14198 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14199 for as_dir
in $as_dummy
14202 test -z "$as_dir" && as_dir
=.
14203 for ac_exec_ext
in '' $ac_executable_extensions; do
14204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14205 ac_cv_prog_liblockfile
="yes"
14206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14212 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
14215 liblockfile
=$ac_cv_prog_liblockfile
14216 if test -n "$liblockfile"; then
14217 echo "$as_me:$LINENO: result: $liblockfile" >&5
14218 echo "${ECHO_T}$liblockfile" >&6
14220 echo "$as_me:$LINENO: result: no" >&5
14221 echo "${ECHO_T}no" >&6
14224 if test $ac_cv_prog_liblockfile = yes; then
14225 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14226 This probably means that movemail could lose mail.
14227 There may be a \`development' package to install containing liblockfile." >&5
14228 echo "$as_me: error: Shared liblockfile found but can't link against it.
14229 This probably means that movemail could lose mail.
14230 There may be a \`development' package to install containing liblockfile." >&2;}
14231 { (exit 1); exit 1; }; }
14236 for ac_func
in touchlock
14238 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14239 echo "$as_me:$LINENO: checking for $ac_func" >&5
14240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14241 if eval "test \"\${$as_ac_var+set}\" = set"; then
14242 echo $ECHO_N "(cached) $ECHO_C" >&6
14244 cat >conftest.
$ac_ext <<_ACEOF
14247 cat confdefs.h
>>conftest.
$ac_ext
14248 cat >>conftest.
$ac_ext <<_ACEOF
14249 /* end confdefs.h. */
14250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14252 #define $ac_func innocuous_$ac_func
14254 /* System header to define __stub macros and hopefully few prototypes,
14255 which can conflict with char $ac_func (); below.
14256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14257 <limits.h> exists even on freestanding compilers. */
14260 # include <limits.h>
14262 # include <assert.h>
14267 /* Override any gcc2 internal prototype to avoid an error. */
14272 /* We use char because int might match the return type of a gcc2
14273 builtin and then its argument prototype would still apply. */
14275 /* The GNU C library defines this for functions which it implements
14276 to always fail with ENOSYS. Some functions are actually named
14277 something starting with __ and the normal name is an alias. */
14278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14281 char (*f) () = $ac_func;
14290 return f != $ac_func;
14295 rm -f conftest.
$ac_objext conftest
$ac_exeext
14296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14297 (eval $ac_link) 2>conftest.er1
14299 grep -v '^ *+' conftest.er1
>conftest.err
14301 cat conftest.err
>&5
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); } &&
14304 { ac_try
='test -z "$ac_c_werror_flag"
14305 || test ! -s conftest.err'
14306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14307 (eval $ac_try) 2>&5
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); }; } &&
14311 { ac_try
='test -s conftest$ac_exeext'
14312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14313 (eval $ac_try) 2>&5
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); }; }; then
14317 eval "$as_ac_var=yes"
14319 echo "$as_me: failed program was:" >&5
14320 sed 's/^/| /' conftest.
$ac_ext >&5
14322 eval "$as_ac_var=no"
14324 rm -f conftest.err conftest.
$ac_objext \
14325 conftest
$ac_exeext conftest.
$ac_ext
14327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14328 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14329 if test `eval echo '${'$as_ac_var'}'` = yes; then
14330 cat >>confdefs.h
<<_ACEOF
14331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14338 for ac_header
in maillock.h
14340 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14342 echo "$as_me:$LINENO: checking for $ac_header" >&5
14343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14345 echo $ECHO_N "(cached) $ECHO_C" >&6
14347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14350 # Is the header compilable?
14351 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14353 cat >conftest.
$ac_ext <<_ACEOF
14356 cat confdefs.h
>>conftest.
$ac_ext
14357 cat >>conftest.
$ac_ext <<_ACEOF
14358 /* end confdefs.h. */
14359 $ac_includes_default
14360 #include <$ac_header>
14362 rm -f conftest.
$ac_objext
14363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14364 (eval $ac_compile) 2>conftest.er1
14366 grep -v '^ *+' conftest.er1
>conftest.err
14368 cat conftest.err
>&5
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); } &&
14371 { ac_try
='test -z "$ac_c_werror_flag"
14372 || test ! -s conftest.err'
14373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14374 (eval $ac_try) 2>&5
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); }; } &&
14378 { ac_try
='test -s conftest.$ac_objext'
14379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14380 (eval $ac_try) 2>&5
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); }; }; then
14384 ac_header_compiler
=yes
14386 echo "$as_me: failed program was:" >&5
14387 sed 's/^/| /' conftest.
$ac_ext >&5
14389 ac_header_compiler
=no
14391 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14392 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14393 echo "${ECHO_T}$ac_header_compiler" >&6
14395 # Is the header present?
14396 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14398 cat >conftest.
$ac_ext <<_ACEOF
14401 cat confdefs.h
>>conftest.
$ac_ext
14402 cat >>conftest.
$ac_ext <<_ACEOF
14403 /* end confdefs.h. */
14404 #include <$ac_header>
14406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14407 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14409 grep -v '^ *+' conftest.er1
>conftest.err
14411 cat conftest.err
>&5
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); } >/dev
/null
; then
14414 if test -s conftest.err
; then
14415 ac_cpp_err
=$ac_c_preproc_warn_flag
14416 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14423 if test -z "$ac_cpp_err"; then
14424 ac_header_preproc
=yes
14426 echo "$as_me: failed program was:" >&5
14427 sed 's/^/| /' conftest.
$ac_ext >&5
14429 ac_header_preproc
=no
14431 rm -f conftest.err conftest.
$ac_ext
14432 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14433 echo "${ECHO_T}$ac_header_preproc" >&6
14435 # So? What about this header?
14436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14441 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14442 ac_header_preproc
=yes
14445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14448 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14449 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14450 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14451 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14452 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14455 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14456 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14459 ## ------------------------------------------ ##
14460 ## Report this to the AC_PACKAGE_NAME lists. ##
14461 ## ------------------------------------------ ##
14464 sed "s/^/$as_me: WARNING: /" >&2
14467 echo "$as_me:$LINENO: checking for $ac_header" >&5
14468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14470 echo $ECHO_N "(cached) $ECHO_C" >&6
14472 eval "$as_ac_Header=\$ac_header_preproc"
14474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14479 cat >>confdefs.h
<<_ACEOF
14480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14556 for ac_func
in gethostname getdomainname dup2 \
14557 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
14558 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14559 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
14560 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14561 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14562 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14563 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
14564 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14566 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14567 echo "$as_me:$LINENO: checking for $ac_func" >&5
14568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14569 if eval "test \"\${$as_ac_var+set}\" = set"; then
14570 echo $ECHO_N "(cached) $ECHO_C" >&6
14572 cat >conftest.
$ac_ext <<_ACEOF
14575 cat confdefs.h
>>conftest.
$ac_ext
14576 cat >>conftest.
$ac_ext <<_ACEOF
14577 /* end confdefs.h. */
14578 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14580 #define $ac_func innocuous_$ac_func
14582 /* System header to define __stub macros and hopefully few prototypes,
14583 which can conflict with char $ac_func (); below.
14584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14585 <limits.h> exists even on freestanding compilers. */
14588 # include <limits.h>
14590 # include <assert.h>
14595 /* Override any gcc2 internal prototype to avoid an error. */
14600 /* We use char because int might match the return type of a gcc2
14601 builtin and then its argument prototype would still apply. */
14603 /* The GNU C library defines this for functions which it implements
14604 to always fail with ENOSYS. Some functions are actually named
14605 something starting with __ and the normal name is an alias. */
14606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14609 char (*f) () = $ac_func;
14618 return f != $ac_func;
14623 rm -f conftest.
$ac_objext conftest
$ac_exeext
14624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14625 (eval $ac_link) 2>conftest.er1
14627 grep -v '^ *+' conftest.er1
>conftest.err
14629 cat conftest.err
>&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); } &&
14632 { ac_try
='test -z "$ac_c_werror_flag"
14633 || test ! -s conftest.err'
14634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14635 (eval $ac_try) 2>&5
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); }; } &&
14639 { ac_try
='test -s conftest$ac_exeext'
14640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14641 (eval $ac_try) 2>&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); }; }; then
14645 eval "$as_ac_var=yes"
14647 echo "$as_me: failed program was:" >&5
14648 sed 's/^/| /' conftest.
$ac_ext >&5
14650 eval "$as_ac_var=no"
14652 rm -f conftest.err conftest.
$ac_objext \
14653 conftest
$ac_exeext conftest.
$ac_ext
14655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14656 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14657 if test `eval echo '${'$as_ac_var'}'` = yes; then
14658 cat >>confdefs.h
<<_ACEOF
14659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14667 for ac_header
in sys
/un.h
14669 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14671 echo "$as_me:$LINENO: checking for $ac_header" >&5
14672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14674 echo $ECHO_N "(cached) $ECHO_C" >&6
14676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14679 # Is the header compilable?
14680 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14682 cat >conftest.
$ac_ext <<_ACEOF
14685 cat confdefs.h
>>conftest.
$ac_ext
14686 cat >>conftest.
$ac_ext <<_ACEOF
14687 /* end confdefs.h. */
14688 $ac_includes_default
14689 #include <$ac_header>
14691 rm -f conftest.
$ac_objext
14692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14693 (eval $ac_compile) 2>conftest.er1
14695 grep -v '^ *+' conftest.er1
>conftest.err
14697 cat conftest.err
>&5
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); } &&
14700 { ac_try
='test -z "$ac_c_werror_flag"
14701 || test ! -s conftest.err'
14702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14703 (eval $ac_try) 2>&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); }; } &&
14707 { ac_try
='test -s conftest.$ac_objext'
14708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14709 (eval $ac_try) 2>&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); }; }; then
14713 ac_header_compiler
=yes
14715 echo "$as_me: failed program was:" >&5
14716 sed 's/^/| /' conftest.
$ac_ext >&5
14718 ac_header_compiler
=no
14720 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14721 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14722 echo "${ECHO_T}$ac_header_compiler" >&6
14724 # Is the header present?
14725 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14726 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14727 cat >conftest.
$ac_ext <<_ACEOF
14730 cat confdefs.h
>>conftest.
$ac_ext
14731 cat >>conftest.
$ac_ext <<_ACEOF
14732 /* end confdefs.h. */
14733 #include <$ac_header>
14735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14736 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14738 grep -v '^ *+' conftest.er1
>conftest.err
14740 cat conftest.err
>&5
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); } >/dev
/null
; then
14743 if test -s conftest.err
; then
14744 ac_cpp_err
=$ac_c_preproc_warn_flag
14745 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14752 if test -z "$ac_cpp_err"; then
14753 ac_header_preproc
=yes
14755 echo "$as_me: failed program was:" >&5
14756 sed 's/^/| /' conftest.
$ac_ext >&5
14758 ac_header_preproc
=no
14760 rm -f conftest.err conftest.
$ac_ext
14761 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14762 echo "${ECHO_T}$ac_header_preproc" >&6
14764 # So? What about this header?
14765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14767 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14768 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14770 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14771 ac_header_preproc
=yes
14774 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14775 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14776 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14777 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14778 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14779 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14780 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14781 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14783 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14784 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14785 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14788 ## ------------------------------------------ ##
14789 ## Report this to the AC_PACKAGE_NAME lists. ##
14790 ## ------------------------------------------ ##
14793 sed "s/^/$as_me: WARNING: /" >&2
14796 echo "$as_me:$LINENO: checking for $ac_header" >&5
14797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14799 echo $ECHO_N "(cached) $ECHO_C" >&6
14801 eval "$as_ac_Header=\$ac_header_preproc"
14803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14807 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14808 cat >>confdefs.h
<<_ACEOF
14809 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14820 for ac_header
in stdlib.h sys
/time.h unistd.h
14822 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14824 echo "$as_me:$LINENO: checking for $ac_header" >&5
14825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14827 echo $ECHO_N "(cached) $ECHO_C" >&6
14829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14830 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14832 # Is the header compilable?
14833 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14834 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14835 cat >conftest.
$ac_ext <<_ACEOF
14838 cat confdefs.h
>>conftest.
$ac_ext
14839 cat >>conftest.
$ac_ext <<_ACEOF
14840 /* end confdefs.h. */
14841 $ac_includes_default
14842 #include <$ac_header>
14844 rm -f conftest.
$ac_objext
14845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14846 (eval $ac_compile) 2>conftest.er1
14848 grep -v '^ *+' conftest.er1
>conftest.err
14850 cat conftest.err
>&5
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); } &&
14853 { ac_try
='test -z "$ac_c_werror_flag"
14854 || test ! -s conftest.err'
14855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14856 (eval $ac_try) 2>&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); }; } &&
14860 { ac_try
='test -s conftest.$ac_objext'
14861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14862 (eval $ac_try) 2>&5
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); }; }; then
14866 ac_header_compiler
=yes
14868 echo "$as_me: failed program was:" >&5
14869 sed 's/^/| /' conftest.
$ac_ext >&5
14871 ac_header_compiler
=no
14873 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14874 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14875 echo "${ECHO_T}$ac_header_compiler" >&6
14877 # Is the header present?
14878 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14879 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14880 cat >conftest.
$ac_ext <<_ACEOF
14883 cat confdefs.h
>>conftest.
$ac_ext
14884 cat >>conftest.
$ac_ext <<_ACEOF
14885 /* end confdefs.h. */
14886 #include <$ac_header>
14888 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14889 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14891 grep -v '^ *+' conftest.er1
>conftest.err
14893 cat conftest.err
>&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); } >/dev
/null
; then
14896 if test -s conftest.err
; then
14897 ac_cpp_err
=$ac_c_preproc_warn_flag
14898 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14905 if test -z "$ac_cpp_err"; then
14906 ac_header_preproc
=yes
14908 echo "$as_me: failed program was:" >&5
14909 sed 's/^/| /' conftest.
$ac_ext >&5
14911 ac_header_preproc
=no
14913 rm -f conftest.err conftest.
$ac_ext
14914 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14915 echo "${ECHO_T}$ac_header_preproc" >&6
14917 # So? What about this header?
14918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14920 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14921 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14923 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14924 ac_header_preproc
=yes
14927 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14928 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14929 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14930 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14931 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14932 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14933 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14934 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14937 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14938 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14941 ## ------------------------------------------ ##
14942 ## Report this to the AC_PACKAGE_NAME lists. ##
14943 ## ------------------------------------------ ##
14946 sed "s/^/$as_me: WARNING: /" >&2
14949 echo "$as_me:$LINENO: checking for $ac_header" >&5
14950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14952 echo $ECHO_N "(cached) $ECHO_C" >&6
14954 eval "$as_ac_Header=\$ac_header_preproc"
14956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14961 cat >>confdefs.h
<<_ACEOF
14962 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14970 for ac_func
in alarm
14972 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14973 echo "$as_me:$LINENO: checking for $ac_func" >&5
14974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14975 if eval "test \"\${$as_ac_var+set}\" = set"; then
14976 echo $ECHO_N "(cached) $ECHO_C" >&6
14978 cat >conftest.
$ac_ext <<_ACEOF
14981 cat confdefs.h
>>conftest.
$ac_ext
14982 cat >>conftest.
$ac_ext <<_ACEOF
14983 /* end confdefs.h. */
14984 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14986 #define $ac_func innocuous_$ac_func
14988 /* System header to define __stub macros and hopefully few prototypes,
14989 which can conflict with char $ac_func (); below.
14990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14991 <limits.h> exists even on freestanding compilers. */
14994 # include <limits.h>
14996 # include <assert.h>
15001 /* Override any gcc2 internal prototype to avoid an error. */
15006 /* We use char because int might match the return type of a gcc2
15007 builtin and then its argument prototype would still apply. */
15009 /* The GNU C library defines this for functions which it implements
15010 to always fail with ENOSYS. Some functions are actually named
15011 something starting with __ and the normal name is an alias. */
15012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15015 char (*f) () = $ac_func;
15024 return f != $ac_func;
15029 rm -f conftest.
$ac_objext conftest
$ac_exeext
15030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15031 (eval $ac_link) 2>conftest.er1
15033 grep -v '^ *+' conftest.er1
>conftest.err
15035 cat conftest.err
>&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } &&
15038 { ac_try
='test -z "$ac_c_werror_flag"
15039 || test ! -s conftest.err'
15040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15041 (eval $ac_try) 2>&5
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); }; } &&
15045 { ac_try
='test -s conftest$ac_exeext'
15046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15047 (eval $ac_try) 2>&5
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); }; }; then
15051 eval "$as_ac_var=yes"
15053 echo "$as_me: failed program was:" >&5
15054 sed 's/^/| /' conftest.
$ac_ext >&5
15056 eval "$as_ac_var=no"
15058 rm -f conftest.err conftest.
$ac_objext \
15059 conftest
$ac_exeext conftest.
$ac_ext
15061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15062 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15063 if test `eval echo '${'$as_ac_var'}'` = yes; then
15064 cat >>confdefs.h
<<_ACEOF
15065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15071 echo "$as_me:$LINENO: checking for working mktime" >&5
15072 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
15073 if test "${ac_cv_func_working_mktime+set}" = set; then
15074 echo $ECHO_N "(cached) $ECHO_C" >&6
15076 if test "$cross_compiling" = yes; then
15077 ac_cv_func_working_mktime
=no
15079 cat >conftest.
$ac_ext <<_ACEOF
15082 cat confdefs.h
>>conftest.
$ac_ext
15083 cat >>conftest.
$ac_ext <<_ACEOF
15084 /* end confdefs.h. */
15085 /* Test program from Paul Eggert and Tony Leneis. */
15086 #if TIME_WITH_SYS_TIME
15087 # include <sys/time.h>
15090 # if HAVE_SYS_TIME_H
15091 # include <sys/time.h>
15098 # include <stdlib.h>
15102 # include <unistd.h>
15106 # define alarm(X) /* empty */
15109 /* Work around redefinition to rpl_putenv by other config tests. */
15112 static time_t time_t_max;
15113 static time_t time_t_min;
15115 /* Values we'll use to set the TZ environment variable. */
15116 static char *tz_strings[] = {
15117 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15118 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15120 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15122 /* Fail if mktime fails to convert a date in the spring-forward gap.
15123 Based on a problem report from Andreas Jaeger. */
15125 spring_forward_gap ()
15127 /* glibc (up to about 1998-10-07) failed this test. */
15130 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15131 instead of "TZ=America/Vancouver" in order to detect the bug even
15132 on systems that don't support the Olson extension, or don't have the
15133 full zoneinfo tables installed. */
15134 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15143 if (mktime (&tm) == (time_t)-1)
15152 if ((lt = localtime (&now)) && mktime (lt) != now)
15160 mktime_test1 (now);
15161 mktime_test1 ((time_t) (time_t_max - now));
15162 mktime_test1 ((time_t) (time_t_min + now));
15168 /* Based on code from Ariel Faigon. */
15178 if (tm.tm_mon != 2 || tm.tm_mday != 31)
15188 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15189 now = mktime (&tm);
15190 if (now != (time_t) -1)
15192 struct tm *lt = localtime (&now);
15194 && lt->tm_year == tm.tm_year
15195 && lt->tm_mon == tm.tm_mon
15196 && lt->tm_mday == tm.tm_mday
15197 && lt->tm_hour == tm.tm_hour
15198 && lt->tm_min == tm.tm_min
15199 && lt->tm_sec == tm.tm_sec
15200 && lt->tm_yday == tm.tm_yday
15201 && lt->tm_wday == tm.tm_wday
15202 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15203 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15214 /* This test makes some buggy mktime implementations loop.
15215 Give up after 60 seconds; a mktime slower than that
15216 isn't worth using anyway. */
15219 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15222 if ((time_t) -1 < 0)
15223 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15225 delta = time_t_max / 997; /* a suitable prime number */
15226 for (i = 0; i < N_STRINGS; i++)
15229 putenv (tz_strings[i]);
15231 for (t = 0; t <= time_t_max - delta; t += delta)
15233 mktime_test ((time_t) 1);
15234 mktime_test ((time_t) (60 * 60));
15235 mktime_test ((time_t) (60 * 60 * 24));
15237 for (j = 1; 0 < j; j *= 2)
15239 bigtime_test (j - 1);
15242 spring_forward_gap ();
15246 rm -f conftest
$ac_exeext
15247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15248 (eval $ac_link) 2>&5
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15253 (eval $ac_try) 2>&5
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); }; }; then
15257 ac_cv_func_working_mktime
=yes
15259 echo "$as_me: program exited with status $ac_status" >&5
15260 echo "$as_me: failed program was:" >&5
15261 sed 's/^/| /' conftest.
$ac_ext >&5
15263 ( exit $ac_status )
15264 ac_cv_func_working_mktime
=no
15266 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15269 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15270 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
15271 if test $ac_cv_func_working_mktime = no
; then
15273 "mktime.$ac_objext" | \
15274 *" mktime.$ac_objext" | \
15275 "mktime.$ac_objext "* | \
15276 *" mktime.$ac_objext "* ) ;;
15277 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
15282 if test "$ac_cv_func_working_mktime" = no
; then
15284 cat >>confdefs.h
<<\_ACEOF
15285 #define BROKEN_MKTIME 1
15290 ac_have_func
=no
# yes means we've found a way to get the load average.
15292 # Make sure getloadavg.c is where it belongs, at configure-time.
15293 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15294 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15295 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15296 { (exit 1); exit 1; }; }
15300 # Check for getloadavg, but be sure not to touch the cache variable.
15301 (echo "$as_me:$LINENO: checking for getloadavg" >&5
15302 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
15303 if test "${ac_cv_func_getloadavg+set}" = set; then
15304 echo $ECHO_N "(cached) $ECHO_C" >&6
15306 cat >conftest.
$ac_ext <<_ACEOF
15309 cat confdefs.h
>>conftest.
$ac_ext
15310 cat >>conftest.
$ac_ext <<_ACEOF
15311 /* end confdefs.h. */
15312 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15314 #define getloadavg innocuous_getloadavg
15316 /* System header to define __stub macros and hopefully few prototypes,
15317 which can conflict with char getloadavg (); below.
15318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15319 <limits.h> exists even on freestanding compilers. */
15322 # include <limits.h>
15324 # include <assert.h>
15329 /* Override any gcc2 internal prototype to avoid an error. */
15334 /* We use char because int might match the return type of a gcc2
15335 builtin and then its argument prototype would still apply. */
15336 char getloadavg ();
15337 /* The GNU C library defines this for functions which it implements
15338 to always fail with ENOSYS. Some functions are actually named
15339 something starting with __ and the normal name is an alias. */
15340 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15343 char (*f) () = getloadavg;
15352 return f != getloadavg;
15357 rm -f conftest.
$ac_objext conftest
$ac_exeext
15358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15359 (eval $ac_link) 2>conftest.er1
15361 grep -v '^ *+' conftest.er1
>conftest.err
15363 cat conftest.err
>&5
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); } &&
15366 { ac_try
='test -z "$ac_c_werror_flag"
15367 || test ! -s conftest.err'
15368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15369 (eval $ac_try) 2>&5
15371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372 (exit $ac_status); }; } &&
15373 { ac_try
='test -s conftest$ac_exeext'
15374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15375 (eval $ac_try) 2>&5
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); }; }; then
15379 ac_cv_func_getloadavg
=yes
15381 echo "$as_me: failed program was:" >&5
15382 sed 's/^/| /' conftest.
$ac_ext >&5
15384 ac_cv_func_getloadavg
=no
15386 rm -f conftest.err conftest.
$ac_objext \
15387 conftest
$ac_exeext conftest.
$ac_ext
15389 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15390 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15391 if test $ac_cv_func_getloadavg = yes; then
15396 ) && ac_have_func
=yes
15398 # On HPUX9, an unprivileged user can get load averages through this function.
15400 for ac_func
in pstat_getdynamic
15402 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15403 echo "$as_me:$LINENO: checking for $ac_func" >&5
15404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15405 if eval "test \"\${$as_ac_var+set}\" = set"; then
15406 echo $ECHO_N "(cached) $ECHO_C" >&6
15408 cat >conftest.
$ac_ext <<_ACEOF
15411 cat confdefs.h
>>conftest.
$ac_ext
15412 cat >>conftest.
$ac_ext <<_ACEOF
15413 /* end confdefs.h. */
15414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15416 #define $ac_func innocuous_$ac_func
15418 /* System header to define __stub macros and hopefully few prototypes,
15419 which can conflict with char $ac_func (); below.
15420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15421 <limits.h> exists even on freestanding compilers. */
15424 # include <limits.h>
15426 # include <assert.h>
15431 /* Override any gcc2 internal prototype to avoid an error. */
15436 /* We use char because int might match the return type of a gcc2
15437 builtin and then its argument prototype would still apply. */
15439 /* The GNU C library defines this for functions which it implements
15440 to always fail with ENOSYS. Some functions are actually named
15441 something starting with __ and the normal name is an alias. */
15442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15445 char (*f) () = $ac_func;
15454 return f != $ac_func;
15459 rm -f conftest.
$ac_objext conftest
$ac_exeext
15460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15461 (eval $ac_link) 2>conftest.er1
15463 grep -v '^ *+' conftest.er1
>conftest.err
15465 cat conftest.err
>&5
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); } &&
15468 { ac_try
='test -z "$ac_c_werror_flag"
15469 || test ! -s conftest.err'
15470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15471 (eval $ac_try) 2>&5
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); }; } &&
15475 { ac_try
='test -s conftest$ac_exeext'
15476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15477 (eval $ac_try) 2>&5
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); }; }; then
15481 eval "$as_ac_var=yes"
15483 echo "$as_me: failed program was:" >&5
15484 sed 's/^/| /' conftest.
$ac_ext >&5
15486 eval "$as_ac_var=no"
15488 rm -f conftest.err conftest.
$ac_objext \
15489 conftest
$ac_exeext conftest.
$ac_ext
15491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15492 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15493 if test `eval echo '${'$as_ac_var'}'` = yes; then
15494 cat >>confdefs.h
<<_ACEOF
15495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15502 # Solaris has libkstat which does not require root.
15504 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15505 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15506 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15507 echo $ECHO_N "(cached) $ECHO_C" >&6
15509 ac_check_lib_save_LIBS
=$LIBS
15510 LIBS
="-lkstat $LIBS"
15511 cat >conftest.
$ac_ext <<_ACEOF
15514 cat confdefs.h
>>conftest.
$ac_ext
15515 cat >>conftest.
$ac_ext <<_ACEOF
15516 /* end confdefs.h. */
15518 /* Override any gcc2 internal prototype to avoid an error. */
15522 /* We use char because int might match the return type of a gcc2
15523 builtin and then its argument prototype would still apply. */
15524 char kstat_open ();
15533 rm -f conftest.
$ac_objext conftest
$ac_exeext
15534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15535 (eval $ac_link) 2>conftest.er1
15537 grep -v '^ *+' conftest.er1
>conftest.err
15539 cat conftest.err
>&5
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); } &&
15542 { ac_try
='test -z "$ac_c_werror_flag"
15543 || test ! -s conftest.err'
15544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15545 (eval $ac_try) 2>&5
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); }; } &&
15549 { ac_try
='test -s conftest$ac_exeext'
15550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15551 (eval $ac_try) 2>&5
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); }; }; then
15555 ac_cv_lib_kstat_kstat_open
=yes
15557 echo "$as_me: failed program was:" >&5
15558 sed 's/^/| /' conftest.
$ac_ext >&5
15560 ac_cv_lib_kstat_kstat_open
=no
15562 rm -f conftest.err conftest.
$ac_objext \
15563 conftest
$ac_exeext conftest.
$ac_ext
15564 LIBS
=$ac_check_lib_save_LIBS
15566 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15567 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15568 if test $ac_cv_lib_kstat_kstat_open = yes; then
15569 cat >>confdefs.h
<<_ACEOF
15570 #define HAVE_LIBKSTAT 1
15573 LIBS
="-lkstat $LIBS"
15577 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
15579 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15580 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15581 # to get the right answer into the cache.
15582 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15583 if test $ac_have_func = no
; then
15584 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15585 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15586 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15587 echo $ECHO_N "(cached) $ECHO_C" >&6
15589 ac_check_lib_save_LIBS
=$LIBS
15591 cat >conftest.
$ac_ext <<_ACEOF
15594 cat confdefs.h
>>conftest.
$ac_ext
15595 cat >>conftest.
$ac_ext <<_ACEOF
15596 /* end confdefs.h. */
15598 /* Override any gcc2 internal prototype to avoid an error. */
15602 /* We use char because int might match the return type of a gcc2
15603 builtin and then its argument prototype would still apply. */
15613 rm -f conftest.
$ac_objext conftest
$ac_exeext
15614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15615 (eval $ac_link) 2>conftest.er1
15617 grep -v '^ *+' conftest.er1
>conftest.err
15619 cat conftest.err
>&5
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); } &&
15622 { ac_try
='test -z "$ac_c_werror_flag"
15623 || test ! -s conftest.err'
15624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15625 (eval $ac_try) 2>&5
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); }; } &&
15629 { ac_try
='test -s conftest$ac_exeext'
15630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15631 (eval $ac_try) 2>&5
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); }; }; then
15635 ac_cv_lib_elf_elf_begin
=yes
15637 echo "$as_me: failed program was:" >&5
15638 sed 's/^/| /' conftest.
$ac_ext >&5
15640 ac_cv_lib_elf_elf_begin
=no
15642 rm -f conftest.err conftest.
$ac_objext \
15643 conftest
$ac_exeext conftest.
$ac_ext
15644 LIBS
=$ac_check_lib_save_LIBS
15646 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15647 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15648 if test $ac_cv_lib_elf_elf_begin = yes; then
15653 if test $ac_have_func = no
; then
15654 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15655 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15656 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15657 echo $ECHO_N "(cached) $ECHO_C" >&6
15659 ac_check_lib_save_LIBS
=$LIBS
15661 cat >conftest.
$ac_ext <<_ACEOF
15664 cat confdefs.h
>>conftest.
$ac_ext
15665 cat >>conftest.
$ac_ext <<_ACEOF
15666 /* end confdefs.h. */
15668 /* Override any gcc2 internal prototype to avoid an error. */
15672 /* We use char because int might match the return type of a gcc2
15673 builtin and then its argument prototype would still apply. */
15683 rm -f conftest.
$ac_objext conftest
$ac_exeext
15684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15685 (eval $ac_link) 2>conftest.er1
15687 grep -v '^ *+' conftest.er1
>conftest.err
15689 cat conftest.err
>&5
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); } &&
15692 { ac_try
='test -z "$ac_c_werror_flag"
15693 || test ! -s conftest.err'
15694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15695 (eval $ac_try) 2>&5
15697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698 (exit $ac_status); }; } &&
15699 { ac_try
='test -s conftest$ac_exeext'
15700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15701 (eval $ac_try) 2>&5
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); }; }; then
15705 ac_cv_lib_kvm_kvm_open
=yes
15707 echo "$as_me: failed program was:" >&5
15708 sed 's/^/| /' conftest.
$ac_ext >&5
15710 ac_cv_lib_kvm_kvm_open
=no
15712 rm -f conftest.err conftest.
$ac_objext \
15713 conftest
$ac_exeext conftest.
$ac_ext
15714 LIBS
=$ac_check_lib_save_LIBS
15716 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15717 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15718 if test $ac_cv_lib_kvm_kvm_open = yes; then
15722 # Check for the 4.4BSD definition of getloadavg.
15723 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15724 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15725 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15726 echo $ECHO_N "(cached) $ECHO_C" >&6
15728 ac_check_lib_save_LIBS
=$LIBS
15729 LIBS
="-lutil $LIBS"
15730 cat >conftest.
$ac_ext <<_ACEOF
15733 cat confdefs.h
>>conftest.
$ac_ext
15734 cat >>conftest.
$ac_ext <<_ACEOF
15735 /* end confdefs.h. */
15737 /* Override any gcc2 internal prototype to avoid an error. */
15741 /* We use char because int might match the return type of a gcc2
15742 builtin and then its argument prototype would still apply. */
15743 char getloadavg ();
15752 rm -f conftest.
$ac_objext conftest
$ac_exeext
15753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15754 (eval $ac_link) 2>conftest.er1
15756 grep -v '^ *+' conftest.er1
>conftest.err
15758 cat conftest.err
>&5
15759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760 (exit $ac_status); } &&
15761 { ac_try
='test -z "$ac_c_werror_flag"
15762 || test ! -s conftest.err'
15763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15764 (eval $ac_try) 2>&5
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); }; } &&
15768 { ac_try
='test -s conftest$ac_exeext'
15769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15770 (eval $ac_try) 2>&5
15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); }; }; then
15774 ac_cv_lib_util_getloadavg
=yes
15776 echo "$as_me: failed program was:" >&5
15777 sed 's/^/| /' conftest.
$ac_ext >&5
15779 ac_cv_lib_util_getloadavg
=no
15781 rm -f conftest.err conftest.
$ac_objext \
15782 conftest
$ac_exeext conftest.
$ac_ext
15783 LIBS
=$ac_check_lib_save_LIBS
15785 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15786 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15787 if test $ac_cv_lib_util_getloadavg = yes; then
15788 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
15793 if test $ac_have_func = no
; then
15794 # There is a commonly available library for RS/6000 AIX.
15795 # Since it is not a standard part of AIX, it might be installed locally.
15796 ac_getloadavg_LIBS
=$LIBS
15797 LIBS
="-L/usr/local/lib $LIBS"
15798 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15799 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15800 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15801 echo $ECHO_N "(cached) $ECHO_C" >&6
15803 ac_check_lib_save_LIBS
=$LIBS
15804 LIBS
="-lgetloadavg $LIBS"
15805 cat >conftest.
$ac_ext <<_ACEOF
15808 cat confdefs.h
>>conftest.
$ac_ext
15809 cat >>conftest.
$ac_ext <<_ACEOF
15810 /* end confdefs.h. */
15812 /* Override any gcc2 internal prototype to avoid an error. */
15816 /* We use char because int might match the return type of a gcc2
15817 builtin and then its argument prototype would still apply. */
15818 char getloadavg ();
15827 rm -f conftest.
$ac_objext conftest
$ac_exeext
15828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15829 (eval $ac_link) 2>conftest.er1
15831 grep -v '^ *+' conftest.er1
>conftest.err
15833 cat conftest.err
>&5
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); } &&
15836 { ac_try
='test -z "$ac_c_werror_flag"
15837 || test ! -s conftest.err'
15838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15839 (eval $ac_try) 2>&5
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); }; } &&
15843 { ac_try
='test -s conftest$ac_exeext'
15844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845 (eval $ac_try) 2>&5
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; }; then
15849 ac_cv_lib_getloadavg_getloadavg
=yes
15851 echo "$as_me: failed program was:" >&5
15852 sed 's/^/| /' conftest.
$ac_ext >&5
15854 ac_cv_lib_getloadavg_getloadavg
=no
15856 rm -f conftest.err conftest.
$ac_objext \
15857 conftest
$ac_exeext conftest.
$ac_ext
15858 LIBS
=$ac_check_lib_save_LIBS
15860 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15861 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15862 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15863 LIBS
="-lgetloadavg $LIBS"
15865 LIBS
=$ac_getloadavg_LIBS
15870 # Make sure it is really in the library, if we think we found it,
15871 # otherwise set up the replacement function.
15873 for ac_func
in getloadavg
15875 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15876 echo "$as_me:$LINENO: checking for $ac_func" >&5
15877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15878 if eval "test \"\${$as_ac_var+set}\" = set"; then
15879 echo $ECHO_N "(cached) $ECHO_C" >&6
15881 cat >conftest.
$ac_ext <<_ACEOF
15884 cat confdefs.h
>>conftest.
$ac_ext
15885 cat >>conftest.
$ac_ext <<_ACEOF
15886 /* end confdefs.h. */
15887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15889 #define $ac_func innocuous_$ac_func
15891 /* System header to define __stub macros and hopefully few prototypes,
15892 which can conflict with char $ac_func (); below.
15893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15894 <limits.h> exists even on freestanding compilers. */
15897 # include <limits.h>
15899 # include <assert.h>
15904 /* Override any gcc2 internal prototype to avoid an error. */
15909 /* We use char because int might match the return type of a gcc2
15910 builtin and then its argument prototype would still apply. */
15912 /* The GNU C library defines this for functions which it implements
15913 to always fail with ENOSYS. Some functions are actually named
15914 something starting with __ and the normal name is an alias. */
15915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15918 char (*f) () = $ac_func;
15927 return f != $ac_func;
15932 rm -f conftest.
$ac_objext conftest
$ac_exeext
15933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15934 (eval $ac_link) 2>conftest.er1
15936 grep -v '^ *+' conftest.er1
>conftest.err
15938 cat conftest.err
>&5
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); } &&
15941 { ac_try
='test -z "$ac_c_werror_flag"
15942 || test ! -s conftest.err'
15943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944 (eval $ac_try) 2>&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; } &&
15948 { ac_try
='test -s conftest$ac_exeext'
15949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950 (eval $ac_try) 2>&5
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; }; then
15954 eval "$as_ac_var=yes"
15956 echo "$as_me: failed program was:" >&5
15957 sed 's/^/| /' conftest.
$ac_ext >&5
15959 eval "$as_ac_var=no"
15961 rm -f conftest.err conftest.
$ac_objext \
15962 conftest
$ac_exeext conftest.
$ac_ext
15964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15965 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15966 if test `eval echo '${'$as_ac_var'}'` = yes; then
15967 cat >>confdefs.h
<<_ACEOF
15968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15973 "getloadavg.$ac_objext" | \
15974 *" getloadavg.$ac_objext" | \
15975 "getloadavg.$ac_objext "* | \
15976 *" getloadavg.$ac_objext "* ) ;;
15977 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
15981 cat >>confdefs.h
<<\_ACEOF
15982 #define C_GETLOADAVG 1
15985 # Figure out what our getloadavg.c needs.
15987 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15988 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15989 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15990 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15991 echo $ECHO_N "(cached) $ECHO_C" >&6
15993 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15994 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15996 # Is the header compilable?
15997 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15998 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15999 cat >conftest.
$ac_ext <<_ACEOF
16002 cat confdefs.h
>>conftest.
$ac_ext
16003 cat >>conftest.
$ac_ext <<_ACEOF
16004 /* end confdefs.h. */
16005 $ac_includes_default
16006 #include <sys/dg_sys_info.h>
16008 rm -f conftest.
$ac_objext
16009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16010 (eval $ac_compile) 2>conftest.er1
16012 grep -v '^ *+' conftest.er1
>conftest.err
16014 cat conftest.err
>&5
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); } &&
16017 { ac_try
='test -z "$ac_c_werror_flag"
16018 || test ! -s conftest.err'
16019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16020 (eval $ac_try) 2>&5
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); }; } &&
16024 { ac_try
='test -s conftest.$ac_objext'
16025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16026 (eval $ac_try) 2>&5
16028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029 (exit $ac_status); }; }; then
16030 ac_header_compiler
=yes
16032 echo "$as_me: failed program was:" >&5
16033 sed 's/^/| /' conftest.
$ac_ext >&5
16035 ac_header_compiler
=no
16037 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16038 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16039 echo "${ECHO_T}$ac_header_compiler" >&6
16041 # Is the header present?
16042 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16043 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
16044 cat >conftest.
$ac_ext <<_ACEOF
16047 cat confdefs.h
>>conftest.
$ac_ext
16048 cat >>conftest.
$ac_ext <<_ACEOF
16049 /* end confdefs.h. */
16050 #include <sys/dg_sys_info.h>
16052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16053 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16055 grep -v '^ *+' conftest.er1
>conftest.err
16057 cat conftest.err
>&5
16058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); } >/dev
/null
; then
16060 if test -s conftest.err
; then
16061 ac_cpp_err
=$ac_c_preproc_warn_flag
16062 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16069 if test -z "$ac_cpp_err"; then
16070 ac_header_preproc
=yes
16072 echo "$as_me: failed program was:" >&5
16073 sed 's/^/| /' conftest.
$ac_ext >&5
16075 ac_header_preproc
=no
16077 rm -f conftest.err conftest.
$ac_ext
16078 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16079 echo "${ECHO_T}$ac_header_preproc" >&6
16081 # So? What about this header?
16082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16084 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16085 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16086 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16087 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16088 ac_header_preproc
=yes
16091 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16092 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16093 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16094 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16095 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16096 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16097 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16098 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16099 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16100 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16101 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16102 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16105 ## ------------------------------------------ ##
16106 ## Report this to the AC_PACKAGE_NAME lists. ##
16107 ## ------------------------------------------ ##
16110 sed "s/^/$as_me: WARNING: /" >&2
16113 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16114 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16115 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16116 echo $ECHO_N "(cached) $ECHO_C" >&6
16118 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
16120 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16121 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16124 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16127 cat >>confdefs.h
<<\_ACEOF
16132 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16133 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
16134 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16135 echo $ECHO_N "(cached) $ECHO_C" >&6
16137 ac_check_lib_save_LIBS
=$LIBS
16139 cat >conftest.
$ac_ext <<_ACEOF
16142 cat confdefs.h
>>conftest.
$ac_ext
16143 cat >>conftest.
$ac_ext <<_ACEOF
16144 /* end confdefs.h. */
16146 /* Override any gcc2 internal prototype to avoid an error. */
16150 /* We use char because int might match the return type of a gcc2
16151 builtin and then its argument prototype would still apply. */
16152 char dg_sys_info ();
16161 rm -f conftest.
$ac_objext conftest
$ac_exeext
16162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16163 (eval $ac_link) 2>conftest.er1
16165 grep -v '^ *+' conftest.er1
>conftest.err
16167 cat conftest.err
>&5
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); } &&
16170 { ac_try
='test -z "$ac_c_werror_flag"
16171 || test ! -s conftest.err'
16172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16173 (eval $ac_try) 2>&5
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); }; } &&
16177 { ac_try
='test -s conftest$ac_exeext'
16178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16179 (eval $ac_try) 2>&5
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); }; }; then
16183 ac_cv_lib_dgc_dg_sys_info
=yes
16185 echo "$as_me: failed program was:" >&5
16186 sed 's/^/| /' conftest.
$ac_ext >&5
16188 ac_cv_lib_dgc_dg_sys_info
=no
16190 rm -f conftest.err conftest.
$ac_objext \
16191 conftest
$ac_exeext conftest.
$ac_ext
16192 LIBS
=$ac_check_lib_save_LIBS
16194 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16195 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
16196 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16197 cat >>confdefs.h
<<_ACEOF
16198 #define HAVE_LIBDGC 1
16209 if test "${ac_cv_header_locale_h+set}" = set; then
16210 echo "$as_me:$LINENO: checking for locale.h" >&5
16211 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16212 if test "${ac_cv_header_locale_h+set}" = set; then
16213 echo $ECHO_N "(cached) $ECHO_C" >&6
16215 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16216 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16218 # Is the header compilable?
16219 echo "$as_me:$LINENO: checking locale.h usability" >&5
16220 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
16221 cat >conftest.
$ac_ext <<_ACEOF
16224 cat confdefs.h
>>conftest.
$ac_ext
16225 cat >>conftest.
$ac_ext <<_ACEOF
16226 /* end confdefs.h. */
16227 $ac_includes_default
16228 #include <locale.h>
16230 rm -f conftest.
$ac_objext
16231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16232 (eval $ac_compile) 2>conftest.er1
16234 grep -v '^ *+' conftest.er1
>conftest.err
16236 cat conftest.err
>&5
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); } &&
16239 { ac_try
='test -z "$ac_c_werror_flag"
16240 || test ! -s conftest.err'
16241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16242 (eval $ac_try) 2>&5
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); }; } &&
16246 { ac_try
='test -s conftest.$ac_objext'
16247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16248 (eval $ac_try) 2>&5
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); }; }; then
16252 ac_header_compiler
=yes
16254 echo "$as_me: failed program was:" >&5
16255 sed 's/^/| /' conftest.
$ac_ext >&5
16257 ac_header_compiler
=no
16259 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16260 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16261 echo "${ECHO_T}$ac_header_compiler" >&6
16263 # Is the header present?
16264 echo "$as_me:$LINENO: checking locale.h presence" >&5
16265 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
16266 cat >conftest.
$ac_ext <<_ACEOF
16269 cat confdefs.h
>>conftest.
$ac_ext
16270 cat >>conftest.
$ac_ext <<_ACEOF
16271 /* end confdefs.h. */
16272 #include <locale.h>
16274 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16275 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16277 grep -v '^ *+' conftest.er1
>conftest.err
16279 cat conftest.err
>&5
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); } >/dev
/null
; then
16282 if test -s conftest.err
; then
16283 ac_cpp_err
=$ac_c_preproc_warn_flag
16284 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16291 if test -z "$ac_cpp_err"; then
16292 ac_header_preproc
=yes
16294 echo "$as_me: failed program was:" >&5
16295 sed 's/^/| /' conftest.
$ac_ext >&5
16297 ac_header_preproc
=no
16299 rm -f conftest.err conftest.
$ac_ext
16300 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16301 echo "${ECHO_T}$ac_header_preproc" >&6
16303 # So? What about this header?
16304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16306 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16307 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16308 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16309 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16310 ac_header_preproc
=yes
16313 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16314 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16315 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16316 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16317 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16318 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16319 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16320 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16321 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16322 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16323 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16324 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16327 ## ------------------------------------------ ##
16328 ## Report this to the AC_PACKAGE_NAME lists. ##
16329 ## ------------------------------------------ ##
16332 sed "s/^/$as_me: WARNING: /" >&2
16335 echo "$as_me:$LINENO: checking for locale.h" >&5
16336 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16337 if test "${ac_cv_header_locale_h+set}" = set; then
16338 echo $ECHO_N "(cached) $ECHO_C" >&6
16340 ac_cv_header_locale_h
=$ac_header_preproc
16342 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16343 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16349 for ac_func
in setlocale
16351 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16352 echo "$as_me:$LINENO: checking for $ac_func" >&5
16353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16354 if eval "test \"\${$as_ac_var+set}\" = set"; then
16355 echo $ECHO_N "(cached) $ECHO_C" >&6
16357 cat >conftest.
$ac_ext <<_ACEOF
16360 cat confdefs.h
>>conftest.
$ac_ext
16361 cat >>conftest.
$ac_ext <<_ACEOF
16362 /* end confdefs.h. */
16363 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16365 #define $ac_func innocuous_$ac_func
16367 /* System header to define __stub macros and hopefully few prototypes,
16368 which can conflict with char $ac_func (); below.
16369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16370 <limits.h> exists even on freestanding compilers. */
16373 # include <limits.h>
16375 # include <assert.h>
16380 /* Override any gcc2 internal prototype to avoid an error. */
16385 /* We use char because int might match the return type of a gcc2
16386 builtin and then its argument prototype would still apply. */
16388 /* The GNU C library defines this for functions which it implements
16389 to always fail with ENOSYS. Some functions are actually named
16390 something starting with __ and the normal name is an alias. */
16391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16394 char (*f) () = $ac_func;
16403 return f != $ac_func;
16408 rm -f conftest.
$ac_objext conftest
$ac_exeext
16409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16410 (eval $ac_link) 2>conftest.er1
16412 grep -v '^ *+' conftest.er1
>conftest.err
16414 cat conftest.err
>&5
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); } &&
16417 { ac_try
='test -z "$ac_c_werror_flag"
16418 || test ! -s conftest.err'
16419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16420 (eval $ac_try) 2>&5
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); }; } &&
16424 { ac_try
='test -s conftest$ac_exeext'
16425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16426 (eval $ac_try) 2>&5
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); }; }; then
16430 eval "$as_ac_var=yes"
16432 echo "$as_me: failed program was:" >&5
16433 sed 's/^/| /' conftest.
$ac_ext >&5
16435 eval "$as_ac_var=no"
16437 rm -f conftest.err conftest.
$ac_objext \
16438 conftest
$ac_exeext conftest.
$ac_ext
16440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16441 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16442 if test `eval echo '${'$as_ac_var'}'` = yes; then
16443 cat >>confdefs.h
<<_ACEOF
16444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16451 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16452 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16453 # Irix 4.0.5F has the header but not the library.
16454 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
16457 cat >>confdefs.h
<<\_ACEOF
16463 if test $ac_have_func = no
; then
16464 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16465 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16466 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16467 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16468 echo $ECHO_N "(cached) $ECHO_C" >&6
16470 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16471 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16473 # Is the header compilable?
16474 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16475 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16476 cat >conftest.
$ac_ext <<_ACEOF
16479 cat confdefs.h
>>conftest.
$ac_ext
16480 cat >>conftest.
$ac_ext <<_ACEOF
16481 /* end confdefs.h. */
16482 $ac_includes_default
16483 #include <inq_stats/cpustats.h>
16485 rm -f conftest.
$ac_objext
16486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16487 (eval $ac_compile) 2>conftest.er1
16489 grep -v '^ *+' conftest.er1
>conftest.err
16491 cat conftest.err
>&5
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); } &&
16494 { ac_try
='test -z "$ac_c_werror_flag"
16495 || test ! -s conftest.err'
16496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497 (eval $ac_try) 2>&5
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); }; } &&
16501 { ac_try
='test -s conftest.$ac_objext'
16502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16503 (eval $ac_try) 2>&5
16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); }; }; then
16507 ac_header_compiler
=yes
16509 echo "$as_me: failed program was:" >&5
16510 sed 's/^/| /' conftest.
$ac_ext >&5
16512 ac_header_compiler
=no
16514 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16515 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16516 echo "${ECHO_T}$ac_header_compiler" >&6
16518 # Is the header present?
16519 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16520 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16521 cat >conftest.
$ac_ext <<_ACEOF
16524 cat confdefs.h
>>conftest.
$ac_ext
16525 cat >>conftest.
$ac_ext <<_ACEOF
16526 /* end confdefs.h. */
16527 #include <inq_stats/cpustats.h>
16529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16530 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16532 grep -v '^ *+' conftest.er1
>conftest.err
16534 cat conftest.err
>&5
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); } >/dev
/null
; then
16537 if test -s conftest.err
; then
16538 ac_cpp_err
=$ac_c_preproc_warn_flag
16539 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16546 if test -z "$ac_cpp_err"; then
16547 ac_header_preproc
=yes
16549 echo "$as_me: failed program was:" >&5
16550 sed 's/^/| /' conftest.
$ac_ext >&5
16552 ac_header_preproc
=no
16554 rm -f conftest.err conftest.
$ac_ext
16555 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16556 echo "${ECHO_T}$ac_header_preproc" >&6
16558 # So? What about this header?
16559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16561 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16562 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16563 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16564 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16565 ac_header_preproc
=yes
16568 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16569 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16570 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16571 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16572 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16573 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16574 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16575 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16576 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16577 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16578 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16579 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16582 ## ------------------------------------------ ##
16583 ## Report this to the AC_PACKAGE_NAME lists. ##
16584 ## ------------------------------------------ ##
16587 sed "s/^/$as_me: WARNING: /" >&2
16590 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16591 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16592 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16593 echo $ECHO_N "(cached) $ECHO_C" >&6
16595 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
16597 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16598 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16601 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16604 cat >>confdefs.h
<<\_ACEOF
16609 cat >>confdefs.h
<<\_ACEOF
16618 if test $ac_have_func = no
; then
16619 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16620 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16621 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16622 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16623 echo $ECHO_N "(cached) $ECHO_C" >&6
16625 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16626 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16628 # Is the header compilable?
16629 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16630 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16631 cat >conftest.
$ac_ext <<_ACEOF
16634 cat confdefs.h
>>conftest.
$ac_ext
16635 cat >>conftest.
$ac_ext <<_ACEOF
16636 /* end confdefs.h. */
16637 $ac_includes_default
16638 #include <sys/cpustats.h>
16640 rm -f conftest.
$ac_objext
16641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16642 (eval $ac_compile) 2>conftest.er1
16644 grep -v '^ *+' conftest.er1
>conftest.err
16646 cat conftest.err
>&5
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); } &&
16649 { ac_try
='test -z "$ac_c_werror_flag"
16650 || test ! -s conftest.err'
16651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16652 (eval $ac_try) 2>&5
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); }; } &&
16656 { ac_try
='test -s conftest.$ac_objext'
16657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658 (eval $ac_try) 2>&5
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; }; then
16662 ac_header_compiler
=yes
16664 echo "$as_me: failed program was:" >&5
16665 sed 's/^/| /' conftest.
$ac_ext >&5
16667 ac_header_compiler
=no
16669 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16670 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16671 echo "${ECHO_T}$ac_header_compiler" >&6
16673 # Is the header present?
16674 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16675 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16676 cat >conftest.
$ac_ext <<_ACEOF
16679 cat confdefs.h
>>conftest.
$ac_ext
16680 cat >>conftest.
$ac_ext <<_ACEOF
16681 /* end confdefs.h. */
16682 #include <sys/cpustats.h>
16684 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16685 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16687 grep -v '^ *+' conftest.er1
>conftest.err
16689 cat conftest.err
>&5
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); } >/dev
/null
; then
16692 if test -s conftest.err
; then
16693 ac_cpp_err
=$ac_c_preproc_warn_flag
16694 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16701 if test -z "$ac_cpp_err"; then
16702 ac_header_preproc
=yes
16704 echo "$as_me: failed program was:" >&5
16705 sed 's/^/| /' conftest.
$ac_ext >&5
16707 ac_header_preproc
=no
16709 rm -f conftest.err conftest.
$ac_ext
16710 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16711 echo "${ECHO_T}$ac_header_preproc" >&6
16713 # So? What about this header?
16714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16716 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16717 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16718 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16719 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16720 ac_header_preproc
=yes
16723 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16724 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16725 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16726 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16727 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16728 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16729 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16730 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16731 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16732 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16733 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16734 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16737 ## ------------------------------------------ ##
16738 ## Report this to the AC_PACKAGE_NAME lists. ##
16739 ## ------------------------------------------ ##
16742 sed "s/^/$as_me: WARNING: /" >&2
16745 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16746 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16747 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16748 echo $ECHO_N "(cached) $ECHO_C" >&6
16750 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
16752 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16753 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16756 if test $ac_cv_header_sys_cpustats_h = yes; then
16757 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
16766 if test $ac_have_func = no
; then
16768 for ac_header
in mach
/mach.h
16770 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16772 echo "$as_me:$LINENO: checking for $ac_header" >&5
16773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16775 echo $ECHO_N "(cached) $ECHO_C" >&6
16777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16780 # Is the header compilable?
16781 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16782 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16783 cat >conftest.
$ac_ext <<_ACEOF
16786 cat confdefs.h
>>conftest.
$ac_ext
16787 cat >>conftest.
$ac_ext <<_ACEOF
16788 /* end confdefs.h. */
16789 $ac_includes_default
16790 #include <$ac_header>
16792 rm -f conftest.
$ac_objext
16793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16794 (eval $ac_compile) 2>conftest.er1
16796 grep -v '^ *+' conftest.er1
>conftest.err
16798 cat conftest.err
>&5
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); } &&
16801 { ac_try
='test -z "$ac_c_werror_flag"
16802 || test ! -s conftest.err'
16803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16804 (eval $ac_try) 2>&5
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); }; } &&
16808 { ac_try
='test -s conftest.$ac_objext'
16809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810 (eval $ac_try) 2>&5
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; }; then
16814 ac_header_compiler
=yes
16816 echo "$as_me: failed program was:" >&5
16817 sed 's/^/| /' conftest.
$ac_ext >&5
16819 ac_header_compiler
=no
16821 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16822 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16823 echo "${ECHO_T}$ac_header_compiler" >&6
16825 # Is the header present?
16826 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16827 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16828 cat >conftest.
$ac_ext <<_ACEOF
16831 cat confdefs.h
>>conftest.
$ac_ext
16832 cat >>conftest.
$ac_ext <<_ACEOF
16833 /* end confdefs.h. */
16834 #include <$ac_header>
16836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16837 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16839 grep -v '^ *+' conftest.er1
>conftest.err
16841 cat conftest.err
>&5
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); } >/dev
/null
; then
16844 if test -s conftest.err
; then
16845 ac_cpp_err
=$ac_c_preproc_warn_flag
16846 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16853 if test -z "$ac_cpp_err"; then
16854 ac_header_preproc
=yes
16856 echo "$as_me: failed program was:" >&5
16857 sed 's/^/| /' conftest.
$ac_ext >&5
16859 ac_header_preproc
=no
16861 rm -f conftest.err conftest.
$ac_ext
16862 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16863 echo "${ECHO_T}$ac_header_preproc" >&6
16865 # So? What about this header?
16866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16868 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16869 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16871 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16872 ac_header_preproc
=yes
16875 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16876 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16877 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16878 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16879 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16880 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16881 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16882 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16885 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16886 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16889 ## ------------------------------------------ ##
16890 ## Report this to the AC_PACKAGE_NAME lists. ##
16891 ## ------------------------------------------ ##
16894 sed "s/^/$as_me: WARNING: /" >&2
16897 echo "$as_me:$LINENO: checking for $ac_header" >&5
16898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16900 echo $ECHO_N "(cached) $ECHO_C" >&6
16902 eval "$as_ac_Header=\$ac_header_preproc"
16904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16909 cat >>confdefs.h
<<_ACEOF
16910 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16920 for ac_header
in nlist.h
16922 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16924 echo "$as_me:$LINENO: checking for $ac_header" >&5
16925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16927 echo $ECHO_N "(cached) $ECHO_C" >&6
16929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16932 # Is the header compilable?
16933 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16934 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16935 cat >conftest.
$ac_ext <<_ACEOF
16938 cat confdefs.h
>>conftest.
$ac_ext
16939 cat >>conftest.
$ac_ext <<_ACEOF
16940 /* end confdefs.h. */
16941 $ac_includes_default
16942 #include <$ac_header>
16944 rm -f conftest.
$ac_objext
16945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16946 (eval $ac_compile) 2>conftest.er1
16948 grep -v '^ *+' conftest.er1
>conftest.err
16950 cat conftest.err
>&5
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); } &&
16953 { ac_try
='test -z "$ac_c_werror_flag"
16954 || test ! -s conftest.err'
16955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16956 (eval $ac_try) 2>&5
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); }; } &&
16960 { ac_try
='test -s conftest.$ac_objext'
16961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16962 (eval $ac_try) 2>&5
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); }; }; then
16966 ac_header_compiler
=yes
16968 echo "$as_me: failed program was:" >&5
16969 sed 's/^/| /' conftest.
$ac_ext >&5
16971 ac_header_compiler
=no
16973 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16974 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16975 echo "${ECHO_T}$ac_header_compiler" >&6
16977 # Is the header present?
16978 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16979 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16980 cat >conftest.
$ac_ext <<_ACEOF
16983 cat confdefs.h
>>conftest.
$ac_ext
16984 cat >>conftest.
$ac_ext <<_ACEOF
16985 /* end confdefs.h. */
16986 #include <$ac_header>
16988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16989 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16991 grep -v '^ *+' conftest.er1
>conftest.err
16993 cat conftest.err
>&5
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); } >/dev
/null
; then
16996 if test -s conftest.err
; then
16997 ac_cpp_err
=$ac_c_preproc_warn_flag
16998 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17005 if test -z "$ac_cpp_err"; then
17006 ac_header_preproc
=yes
17008 echo "$as_me: failed program was:" >&5
17009 sed 's/^/| /' conftest.
$ac_ext >&5
17011 ac_header_preproc
=no
17013 rm -f conftest.err conftest.
$ac_ext
17014 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17015 echo "${ECHO_T}$ac_header_preproc" >&6
17017 # So? What about this header?
17018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17021 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17023 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17024 ac_header_preproc
=yes
17027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17028 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17030 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17031 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17032 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17033 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17034 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17037 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17038 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17041 ## ------------------------------------------ ##
17042 ## Report this to the AC_PACKAGE_NAME lists. ##
17043 ## ------------------------------------------ ##
17046 sed "s/^/$as_me: WARNING: /" >&2
17049 echo "$as_me:$LINENO: checking for $ac_header" >&5
17050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17052 echo $ECHO_N "(cached) $ECHO_C" >&6
17054 eval "$as_ac_Header=\$ac_header_preproc"
17056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17061 cat >>confdefs.h
<<_ACEOF
17062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17064 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17065 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
17066 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17067 echo $ECHO_N "(cached) $ECHO_C" >&6
17069 cat >conftest.
$ac_ext <<_ACEOF
17072 cat confdefs.h
>>conftest.
$ac_ext
17073 cat >>conftest.
$ac_ext <<_ACEOF
17074 /* end confdefs.h. */
17080 static struct nlist ac_aggr;
17081 if (ac_aggr.n_un.n_name)
17087 rm -f conftest.
$ac_objext
17088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17089 (eval $ac_compile) 2>conftest.er1
17091 grep -v '^ *+' conftest.er1
>conftest.err
17093 cat conftest.err
>&5
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); } &&
17096 { ac_try
='test -z "$ac_c_werror_flag"
17097 || test ! -s conftest.err'
17098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17099 (eval $ac_try) 2>&5
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); }; } &&
17103 { ac_try
='test -s conftest.$ac_objext'
17104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17105 (eval $ac_try) 2>&5
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); }; }; then
17109 ac_cv_member_struct_nlist_n_un_n_name
=yes
17111 echo "$as_me: failed program was:" >&5
17112 sed 's/^/| /' conftest.
$ac_ext >&5
17114 cat >conftest.
$ac_ext <<_ACEOF
17117 cat confdefs.h
>>conftest.
$ac_ext
17118 cat >>conftest.
$ac_ext <<_ACEOF
17119 /* end confdefs.h. */
17125 static struct nlist ac_aggr;
17126 if (sizeof ac_aggr.n_un.n_name)
17132 rm -f conftest.
$ac_objext
17133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17134 (eval $ac_compile) 2>conftest.er1
17136 grep -v '^ *+' conftest.er1
>conftest.err
17138 cat conftest.err
>&5
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); } &&
17141 { ac_try
='test -z "$ac_c_werror_flag"
17142 || test ! -s conftest.err'
17143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17144 (eval $ac_try) 2>&5
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); }; } &&
17148 { ac_try
='test -s conftest.$ac_objext'
17149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17150 (eval $ac_try) 2>&5
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); }; }; then
17154 ac_cv_member_struct_nlist_n_un_n_name
=yes
17156 echo "$as_me: failed program was:" >&5
17157 sed 's/^/| /' conftest.
$ac_ext >&5
17159 ac_cv_member_struct_nlist_n_un_n_name
=no
17161 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17163 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17165 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17166 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
17167 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17169 cat >>confdefs.h
<<_ACEOF
17170 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17174 cat >>confdefs.h
<<\_ACEOF
17175 #define NLIST_NAME_UNION 1
17189 # Some definitions of getloadavg require that the program be installed setgid.
17190 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17191 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
17192 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17193 echo $ECHO_N "(cached) $ECHO_C" >&6
17195 cat >conftest.
$ac_ext <<_ACEOF
17198 cat confdefs.h
>>conftest.
$ac_ext
17199 cat >>conftest.
$ac_ext <<_ACEOF
17200 /* end confdefs.h. */
17201 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17202 #ifdef LDAV_PRIVILEGED
17203 Yowza Am I SETGID yet
17206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17207 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
17208 ac_cv_func_getloadavg_setgid
=yes
17210 ac_cv_func_getloadavg_setgid
=no
17215 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17216 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
17217 if test $ac_cv_func_getloadavg_setgid = yes; then
17220 cat >>confdefs.h
<<\_ACEOF
17221 #define GETLOADAVG_PRIVILEGED 1
17228 if test $ac_cv_func_getloadavg_setgid = yes; then
17229 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17230 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
17231 if test "${ac_cv_group_kmem+set}" = set; then
17232 echo $ECHO_N "(cached) $ECHO_C" >&6
17234 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17235 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
17236 # If we got an error (system does not support symlinks), try without -L.
17237 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
17238 ac_cv_group_kmem
=`echo $ac_ls_output \
17239 | sed -ne 's/[ ][ ]*/ /g;
17240 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17244 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17245 echo "${ECHO_T}$ac_cv_group_kmem" >&6
17246 KMEM_GROUP
=$ac_cv_group_kmem
17248 if test "x$ac_save_LIBS" = x
; then
17249 GETLOADAVG_LIBS
=$LIBS
17251 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17257 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17258 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17259 if test "${ac_cv_sys_largefile_source+set}" = set; then
17260 echo $ECHO_N "(cached) $ECHO_C" >&6
17263 ac_cv_sys_largefile_source
=no
17264 cat >conftest.
$ac_ext <<_ACEOF
17267 cat confdefs.h
>>conftest.
$ac_ext
17268 cat >>conftest.
$ac_ext <<_ACEOF
17269 /* end confdefs.h. */
17279 rm -f conftest.
$ac_objext
17280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17281 (eval $ac_compile) 2>conftest.er1
17283 grep -v '^ *+' conftest.er1
>conftest.err
17285 cat conftest.err
>&5
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); } &&
17288 { ac_try
='test -z "$ac_c_werror_flag"
17289 || test ! -s conftest.err'
17290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17291 (eval $ac_try) 2>&5
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); }; } &&
17295 { ac_try
='test -s conftest.$ac_objext'
17296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17297 (eval $ac_try) 2>&5
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); }; }; then
17303 echo "$as_me: failed program was:" >&5
17304 sed 's/^/| /' conftest.
$ac_ext >&5
17307 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17308 cat >conftest.
$ac_ext <<_ACEOF
17311 cat confdefs.h
>>conftest.
$ac_ext
17312 cat >>conftest.
$ac_ext <<_ACEOF
17313 /* end confdefs.h. */
17314 #define _LARGEFILE_SOURCE 1
17324 rm -f conftest.
$ac_objext
17325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17326 (eval $ac_compile) 2>conftest.er1
17328 grep -v '^ *+' conftest.er1
>conftest.err
17330 cat conftest.err
>&5
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); } &&
17333 { ac_try
='test -z "$ac_c_werror_flag"
17334 || test ! -s conftest.err'
17335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17336 (eval $ac_try) 2>&5
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); }; } &&
17340 { ac_try
='test -s conftest.$ac_objext'
17341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17342 (eval $ac_try) 2>&5
17344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345 (exit $ac_status); }; }; then
17346 ac_cv_sys_largefile_source
=1; break
17348 echo "$as_me: failed program was:" >&5
17349 sed 's/^/| /' conftest.
$ac_ext >&5
17352 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17356 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17357 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17358 if test "$ac_cv_sys_largefile_source" != no
; then
17360 cat >>confdefs.h
<<_ACEOF
17361 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17367 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17368 # in glibc 2.1.3, but that breaks too many other things.
17369 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17370 echo "$as_me:$LINENO: checking for fseeko" >&5
17371 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17372 if test "${ac_cv_func_fseeko+set}" = set; then
17373 echo $ECHO_N "(cached) $ECHO_C" >&6
17375 cat >conftest.
$ac_ext <<_ACEOF
17378 cat confdefs.h
>>conftest.
$ac_ext
17379 cat >>conftest.
$ac_ext <<_ACEOF
17380 /* end confdefs.h. */
17385 return fseeko && fseeko (stdin, 0, 0);
17390 rm -f conftest.
$ac_objext conftest
$ac_exeext
17391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17392 (eval $ac_link) 2>conftest.er1
17394 grep -v '^ *+' conftest.er1
>conftest.err
17396 cat conftest.err
>&5
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); } &&
17399 { ac_try
='test -z "$ac_c_werror_flag"
17400 || test ! -s conftest.err'
17401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17402 (eval $ac_try) 2>&5
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); }; } &&
17406 { ac_try
='test -s conftest$ac_exeext'
17407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17408 (eval $ac_try) 2>&5
17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411 (exit $ac_status); }; }; then
17412 ac_cv_func_fseeko
=yes
17414 echo "$as_me: failed program was:" >&5
17415 sed 's/^/| /' conftest.
$ac_ext >&5
17417 ac_cv_func_fseeko
=no
17419 rm -f conftest.err conftest.
$ac_objext \
17420 conftest
$ac_exeext conftest.
$ac_ext
17422 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17423 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17424 if test $ac_cv_func_fseeko = yes; then
17426 cat >>confdefs.h
<<\_ACEOF
17427 #define HAVE_FSEEKO 1
17433 # Configure getopt.
17434 # getopt.m4 serial 10
17436 # The getopt module assume you want GNU getopt, with getopt_long etc,
17437 # rather than vanilla POSIX getopt. This means your your code should
17438 # always include <getopt.h> for the getopt prototypes.
17450 # Prerequisites of lib/getopt*.
17457 for ac_header
in getopt.h
17459 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17461 echo "$as_me:$LINENO: checking for $ac_header" >&5
17462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17464 echo $ECHO_N "(cached) $ECHO_C" >&6
17466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17469 # Is the header compilable?
17470 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17472 cat >conftest.
$ac_ext <<_ACEOF
17475 cat confdefs.h
>>conftest.
$ac_ext
17476 cat >>conftest.
$ac_ext <<_ACEOF
17477 /* end confdefs.h. */
17478 $ac_includes_default
17479 #include <$ac_header>
17481 rm -f conftest.
$ac_objext
17482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17483 (eval $ac_compile) 2>conftest.er1
17485 grep -v '^ *+' conftest.er1
>conftest.err
17487 cat conftest.err
>&5
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); } &&
17490 { ac_try
='test -z "$ac_c_werror_flag"
17491 || test ! -s conftest.err'
17492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17493 (eval $ac_try) 2>&5
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); }; } &&
17497 { ac_try
='test -s conftest.$ac_objext'
17498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17499 (eval $ac_try) 2>&5
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); }; }; then
17503 ac_header_compiler
=yes
17505 echo "$as_me: failed program was:" >&5
17506 sed 's/^/| /' conftest.
$ac_ext >&5
17508 ac_header_compiler
=no
17510 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17511 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17512 echo "${ECHO_T}$ac_header_compiler" >&6
17514 # Is the header present?
17515 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17516 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17517 cat >conftest.
$ac_ext <<_ACEOF
17520 cat confdefs.h
>>conftest.
$ac_ext
17521 cat >>conftest.
$ac_ext <<_ACEOF
17522 /* end confdefs.h. */
17523 #include <$ac_header>
17525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17526 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17528 grep -v '^ *+' conftest.er1
>conftest.err
17530 cat conftest.err
>&5
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); } >/dev
/null
; then
17533 if test -s conftest.err
; then
17534 ac_cpp_err
=$ac_c_preproc_warn_flag
17535 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17542 if test -z "$ac_cpp_err"; then
17543 ac_header_preproc
=yes
17545 echo "$as_me: failed program was:" >&5
17546 sed 's/^/| /' conftest.
$ac_ext >&5
17548 ac_header_preproc
=no
17550 rm -f conftest.err conftest.
$ac_ext
17551 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17552 echo "${ECHO_T}$ac_header_preproc" >&6
17554 # So? What about this header?
17555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17561 ac_header_preproc
=yes
17564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17567 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17571 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17578 ## ------------------------------------------ ##
17579 ## Report this to the AC_PACKAGE_NAME lists. ##
17580 ## ------------------------------------------ ##
17583 sed "s/^/$as_me: WARNING: /" >&2
17586 echo "$as_me:$LINENO: checking for $ac_header" >&5
17587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17589 echo $ECHO_N "(cached) $ECHO_C" >&6
17591 eval "$as_ac_Header=\$ac_header_preproc"
17593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17598 cat >>confdefs.h
<<_ACEOF
17599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17608 if test -z "$GETOPT_H"; then
17610 for ac_func
in getopt_long_only
17612 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17613 echo "$as_me:$LINENO: checking for $ac_func" >&5
17614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17615 if eval "test \"\${$as_ac_var+set}\" = set"; then
17616 echo $ECHO_N "(cached) $ECHO_C" >&6
17618 cat >conftest.
$ac_ext <<_ACEOF
17621 cat confdefs.h
>>conftest.
$ac_ext
17622 cat >>conftest.
$ac_ext <<_ACEOF
17623 /* end confdefs.h. */
17624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17626 #define $ac_func innocuous_$ac_func
17628 /* System header to define __stub macros and hopefully few prototypes,
17629 which can conflict with char $ac_func (); below.
17630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17631 <limits.h> exists even on freestanding compilers. */
17634 # include <limits.h>
17636 # include <assert.h>
17641 /* Override any gcc2 internal prototype to avoid an error. */
17646 /* We use char because int might match the return type of a gcc2
17647 builtin and then its argument prototype would still apply. */
17649 /* The GNU C library defines this for functions which it implements
17650 to always fail with ENOSYS. Some functions are actually named
17651 something starting with __ and the normal name is an alias. */
17652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17655 char (*f) () = $ac_func;
17664 return f != $ac_func;
17669 rm -f conftest.
$ac_objext conftest
$ac_exeext
17670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17671 (eval $ac_link) 2>conftest.er1
17673 grep -v '^ *+' conftest.er1
>conftest.err
17675 cat conftest.err
>&5
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); } &&
17678 { ac_try
='test -z "$ac_c_werror_flag"
17679 || test ! -s conftest.err'
17680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17681 (eval $ac_try) 2>&5
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); }; } &&
17685 { ac_try
='test -s conftest$ac_exeext'
17686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17687 (eval $ac_try) 2>&5
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); }; }; then
17691 eval "$as_ac_var=yes"
17693 echo "$as_me: failed program was:" >&5
17694 sed 's/^/| /' conftest.
$ac_ext >&5
17696 eval "$as_ac_var=no"
17698 rm -f conftest.err conftest.
$ac_objext \
17699 conftest
$ac_exeext conftest.
$ac_ext
17701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17702 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17703 if test `eval echo '${'$as_ac_var'}'` = yes; then
17704 cat >>confdefs.h
<<_ACEOF
17705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17715 if test -z "$GETOPT_H"; then
17716 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17717 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17718 if test "${ac_cv_have_decl_optreset+set}" = set; then
17719 echo $ECHO_N "(cached) $ECHO_C" >&6
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 char *p = (char *) optreset;
17740 rm -f conftest.
$ac_objext
17741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17742 (eval $ac_compile) 2>conftest.er1
17744 grep -v '^ *+' conftest.er1
>conftest.err
17746 cat conftest.err
>&5
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); } &&
17749 { ac_try
='test -z "$ac_c_werror_flag"
17750 || test ! -s conftest.err'
17751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17752 (eval $ac_try) 2>&5
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); }; } &&
17756 { ac_try
='test -s conftest.$ac_objext'
17757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17758 (eval $ac_try) 2>&5
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }; }; then
17762 ac_cv_have_decl_optreset
=yes
17764 echo "$as_me: failed program was:" >&5
17765 sed 's/^/| /' conftest.
$ac_ext >&5
17767 ac_cv_have_decl_optreset
=no
17769 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17771 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17772 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17773 if test $ac_cv_have_decl_optreset = yes; then
17779 if test -z "$GETOPT_H"; then
17780 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17781 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17782 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17783 echo $ECHO_N "(cached) $ECHO_C" >&6
17785 if test "$cross_compiling" = yes; then
17786 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17787 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17788 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17789 echo $ECHO_N "(cached) $ECHO_C" >&6
17791 cat >conftest.
$ac_ext <<_ACEOF
17794 cat confdefs.h
>>conftest.
$ac_ext
17795 cat >>conftest.
$ac_ext <<_ACEOF
17796 /* end confdefs.h. */
17797 #include <getopt.h>
17802 #ifndef getopt_clip
17803 char *p = (char *) getopt_clip;
17810 rm -f conftest.
$ac_objext
17811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17812 (eval $ac_compile) 2>conftest.er1
17814 grep -v '^ *+' conftest.er1
>conftest.err
17816 cat conftest.err
>&5
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); } &&
17819 { ac_try
='test -z "$ac_c_werror_flag"
17820 || test ! -s conftest.err'
17821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17822 (eval $ac_try) 2>&5
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); }; } &&
17826 { ac_try
='test -s conftest.$ac_objext'
17827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828 (eval $ac_try) 2>&5
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); }; }; then
17832 ac_cv_have_decl_getopt_clip
=yes
17834 echo "$as_me: failed program was:" >&5
17835 sed 's/^/| /' conftest.
$ac_ext >&5
17837 ac_cv_have_decl_getopt_clip
=no
17839 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17841 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17842 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17843 if test $ac_cv_have_decl_getopt_clip = yes; then
17844 gl_cv_func_gnu_getopt
=no
17846 gl_cv_func_gnu_getopt
=yes
17850 cat >conftest.
$ac_ext <<_ACEOF
17853 cat confdefs.h
>>conftest.
$ac_ext
17854 cat >>conftest.
$ac_ext <<_ACEOF
17855 /* end confdefs.h. */
17856 #include <getopt.h>
17862 myargv[0] = "conftest";
17865 return getopt (2, myargv, "+a") != '?';
17871 rm -f conftest
$ac_exeext
17872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17873 (eval $ac_link) 2>&5
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17878 (eval $ac_try) 2>&5
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); }; }; then
17882 gl_cv_func_gnu_getopt
=yes
17884 echo "$as_me: program exited with status $ac_status" >&5
17885 echo "$as_me: failed program was:" >&5
17886 sed 's/^/| /' conftest.
$ac_ext >&5
17888 ( exit $ac_status )
17889 gl_cv_func_gnu_getopt
=no
17891 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17894 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17895 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17896 if test "$gl_cv_func_gnu_getopt" = "no"; then
17903 if test -n "$GETOPT_H"; then
17908 cat >>confdefs.h
<<\_ACEOF
17909 #define __GETOPT_PREFIX rpl_
17915 GETOPTOBJS
='getopt.o getopt1.o'
17922 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17923 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17924 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17925 echo $ECHO_N "(cached) $ECHO_C" >&6
17927 # Use it with a single arg.
17928 cat >conftest.
$ac_ext <<_ACEOF
17931 cat confdefs.h
>>conftest.
$ac_ext
17932 cat >>conftest.
$ac_ext <<_ACEOF
17933 /* end confdefs.h. */
17934 $ac_includes_default
17943 rm -f conftest.
$ac_objext
17944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17945 (eval $ac_compile) 2>conftest.er1
17947 grep -v '^ *+' conftest.er1
>conftest.err
17949 cat conftest.err
>&5
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); } &&
17952 { ac_try
='test -z "$ac_c_werror_flag"
17953 || test ! -s conftest.err'
17954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17955 (eval $ac_try) 2>&5
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); }; } &&
17959 { ac_try
='test -s conftest.$ac_objext'
17960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17961 (eval $ac_try) 2>&5
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); }; }; then
17965 ac_cv_func_getpgrp_void
=no
17967 echo "$as_me: failed program was:" >&5
17968 sed 's/^/| /' conftest.
$ac_ext >&5
17970 ac_cv_func_getpgrp_void
=yes
17972 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17975 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17976 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17977 if test $ac_cv_func_getpgrp_void = yes; then
17979 cat >>confdefs.h
<<\_ACEOF
17980 #define GETPGRP_VOID 1
17987 for ac_func
in strftime
17989 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17990 echo "$as_me:$LINENO: checking for $ac_func" >&5
17991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17992 if eval "test \"\${$as_ac_var+set}\" = set"; then
17993 echo $ECHO_N "(cached) $ECHO_C" >&6
17995 cat >conftest.
$ac_ext <<_ACEOF
17998 cat confdefs.h
>>conftest.
$ac_ext
17999 cat >>conftest.
$ac_ext <<_ACEOF
18000 /* end confdefs.h. */
18001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18003 #define $ac_func innocuous_$ac_func
18005 /* System header to define __stub macros and hopefully few prototypes,
18006 which can conflict with char $ac_func (); below.
18007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18008 <limits.h> exists even on freestanding compilers. */
18011 # include <limits.h>
18013 # include <assert.h>
18018 /* Override any gcc2 internal prototype to avoid an error. */
18023 /* We use char because int might match the return type of a gcc2
18024 builtin and then its argument prototype would still apply. */
18026 /* The GNU C library defines this for functions which it implements
18027 to always fail with ENOSYS. Some functions are actually named
18028 something starting with __ and the normal name is an alias. */
18029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18032 char (*f) () = $ac_func;
18041 return f != $ac_func;
18046 rm -f conftest.
$ac_objext conftest
$ac_exeext
18047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18048 (eval $ac_link) 2>conftest.er1
18050 grep -v '^ *+' conftest.er1
>conftest.err
18052 cat conftest.err
>&5
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); } &&
18055 { ac_try
='test -z "$ac_c_werror_flag"
18056 || test ! -s conftest.err'
18057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18058 (eval $ac_try) 2>&5
18060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); }; } &&
18062 { ac_try
='test -s conftest$ac_exeext'
18063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18064 (eval $ac_try) 2>&5
18066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067 (exit $ac_status); }; }; then
18068 eval "$as_ac_var=yes"
18070 echo "$as_me: failed program was:" >&5
18071 sed 's/^/| /' conftest.
$ac_ext >&5
18073 eval "$as_ac_var=no"
18075 rm -f conftest.err conftest.
$ac_objext \
18076 conftest
$ac_exeext conftest.
$ac_ext
18078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18079 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18080 if test `eval echo '${'$as_ac_var'}'` = yes; then
18081 cat >>confdefs.h
<<_ACEOF
18082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18086 # strftime is in -lintl on SCO UNIX.
18087 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18088 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
18089 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18090 echo $ECHO_N "(cached) $ECHO_C" >&6
18092 ac_check_lib_save_LIBS
=$LIBS
18093 LIBS
="-lintl $LIBS"
18094 cat >conftest.
$ac_ext <<_ACEOF
18097 cat confdefs.h
>>conftest.
$ac_ext
18098 cat >>conftest.
$ac_ext <<_ACEOF
18099 /* end confdefs.h. */
18101 /* Override any gcc2 internal prototype to avoid an error. */
18105 /* We use char because int might match the return type of a gcc2
18106 builtin and then its argument prototype would still apply. */
18116 rm -f conftest.
$ac_objext conftest
$ac_exeext
18117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18118 (eval $ac_link) 2>conftest.er1
18120 grep -v '^ *+' conftest.er1
>conftest.err
18122 cat conftest.err
>&5
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); } &&
18125 { ac_try
='test -z "$ac_c_werror_flag"
18126 || test ! -s conftest.err'
18127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18128 (eval $ac_try) 2>&5
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); }; } &&
18132 { ac_try
='test -s conftest$ac_exeext'
18133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18134 (eval $ac_try) 2>&5
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); }; }; then
18138 ac_cv_lib_intl_strftime
=yes
18140 echo "$as_me: failed program was:" >&5
18141 sed 's/^/| /' conftest.
$ac_ext >&5
18143 ac_cv_lib_intl_strftime
=no
18145 rm -f conftest.err conftest.
$ac_objext \
18146 conftest
$ac_exeext conftest.
$ac_ext
18147 LIBS
=$ac_check_lib_save_LIBS
18149 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18150 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18151 if test $ac_cv_lib_intl_strftime = yes; then
18152 cat >>confdefs.h
<<\_ACEOF
18153 #define HAVE_STRFTIME 1
18156 LIBS
="-lintl $LIBS"
18165 for ac_func
in grantpt
18167 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18168 echo "$as_me:$LINENO: checking for $ac_func" >&5
18169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18170 if eval "test \"\${$as_ac_var+set}\" = set"; then
18171 echo $ECHO_N "(cached) $ECHO_C" >&6
18173 cat >conftest.
$ac_ext <<_ACEOF
18176 cat confdefs.h
>>conftest.
$ac_ext
18177 cat >>conftest.
$ac_ext <<_ACEOF
18178 /* end confdefs.h. */
18179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18181 #define $ac_func innocuous_$ac_func
18183 /* System header to define __stub macros and hopefully few prototypes,
18184 which can conflict with char $ac_func (); below.
18185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18186 <limits.h> exists even on freestanding compilers. */
18189 # include <limits.h>
18191 # include <assert.h>
18196 /* Override any gcc2 internal prototype to avoid an error. */
18201 /* We use char because int might match the return type of a gcc2
18202 builtin and then its argument prototype would still apply. */
18204 /* The GNU C library defines this for functions which it implements
18205 to always fail with ENOSYS. Some functions are actually named
18206 something starting with __ and the normal name is an alias. */
18207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18210 char (*f) () = $ac_func;
18219 return f != $ac_func;
18224 rm -f conftest.
$ac_objext conftest
$ac_exeext
18225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18226 (eval $ac_link) 2>conftest.er1
18228 grep -v '^ *+' conftest.er1
>conftest.err
18230 cat conftest.err
>&5
18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); } &&
18233 { ac_try
='test -z "$ac_c_werror_flag"
18234 || test ! -s conftest.err'
18235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18236 (eval $ac_try) 2>&5
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); }; } &&
18240 { ac_try
='test -s conftest$ac_exeext'
18241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18242 (eval $ac_try) 2>&5
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); }; }; then
18246 eval "$as_ac_var=yes"
18248 echo "$as_me: failed program was:" >&5
18249 sed 's/^/| /' conftest.
$ac_ext >&5
18251 eval "$as_ac_var=no"
18253 rm -f conftest.err conftest.
$ac_objext \
18254 conftest
$ac_exeext conftest.
$ac_ext
18256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18257 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18258 if test `eval echo '${'$as_ac_var'}'` = yes; then
18259 cat >>confdefs.h
<<_ACEOF
18260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18267 # PTY-related GNU extensions.
18269 for ac_func
in getpt
18271 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18272 echo "$as_me:$LINENO: checking for $ac_func" >&5
18273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18274 if eval "test \"\${$as_ac_var+set}\" = set"; then
18275 echo $ECHO_N "(cached) $ECHO_C" >&6
18277 cat >conftest.
$ac_ext <<_ACEOF
18280 cat confdefs.h
>>conftest.
$ac_ext
18281 cat >>conftest.
$ac_ext <<_ACEOF
18282 /* end confdefs.h. */
18283 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18285 #define $ac_func innocuous_$ac_func
18287 /* System header to define __stub macros and hopefully few prototypes,
18288 which can conflict with char $ac_func (); below.
18289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18290 <limits.h> exists even on freestanding compilers. */
18293 # include <limits.h>
18295 # include <assert.h>
18300 /* Override any gcc2 internal prototype to avoid an error. */
18305 /* We use char because int might match the return type of a gcc2
18306 builtin and then its argument prototype would still apply. */
18308 /* The GNU C library defines this for functions which it implements
18309 to always fail with ENOSYS. Some functions are actually named
18310 something starting with __ and the normal name is an alias. */
18311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18314 char (*f) () = $ac_func;
18323 return f != $ac_func;
18328 rm -f conftest.
$ac_objext conftest
$ac_exeext
18329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18330 (eval $ac_link) 2>conftest.er1
18332 grep -v '^ *+' conftest.er1
>conftest.err
18334 cat conftest.err
>&5
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); } &&
18337 { ac_try
='test -z "$ac_c_werror_flag"
18338 || test ! -s conftest.err'
18339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18340 (eval $ac_try) 2>&5
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); }; } &&
18344 { ac_try
='test -s conftest$ac_exeext'
18345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18346 (eval $ac_try) 2>&5
18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 (exit $ac_status); }; }; then
18350 eval "$as_ac_var=yes"
18352 echo "$as_me: failed program was:" >&5
18353 sed 's/^/| /' conftest.
$ac_ext >&5
18355 eval "$as_ac_var=no"
18357 rm -f conftest.err conftest.
$ac_objext \
18358 conftest
$ac_exeext conftest.
$ac_ext
18360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18361 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18362 if test `eval echo '${'$as_ac_var'}'` = yes; then
18363 cat >>confdefs.h
<<_ACEOF
18364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18371 # Check this now, so that we will NOT find the above functions in ncurses.
18372 # That is because we have not set up to link ncurses in lib-src.
18373 # It's better to believe a function is not available
18374 # than to expect to find it in ncurses.
18376 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18377 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18378 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18379 echo $ECHO_N "(cached) $ECHO_C" >&6
18381 ac_check_lib_save_LIBS
=$LIBS
18382 LIBS
="-lncurses $LIBS"
18383 cat >conftest.
$ac_ext <<_ACEOF
18386 cat confdefs.h
>>conftest.
$ac_ext
18387 cat >>conftest.
$ac_ext <<_ACEOF
18388 /* end confdefs.h. */
18390 /* Override any gcc2 internal prototype to avoid an error. */
18394 /* We use char because int might match the return type of a gcc2
18395 builtin and then its argument prototype would still apply. */
18405 rm -f conftest.
$ac_objext conftest
$ac_exeext
18406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18407 (eval $ac_link) 2>conftest.er1
18409 grep -v '^ *+' conftest.er1
>conftest.err
18411 cat conftest.err
>&5
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); } &&
18414 { ac_try
='test -z "$ac_c_werror_flag"
18415 || test ! -s conftest.err'
18416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18417 (eval $ac_try) 2>&5
18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); }; } &&
18421 { ac_try
='test -s conftest$ac_exeext'
18422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18423 (eval $ac_try) 2>&5
18425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426 (exit $ac_status); }; }; then
18427 ac_cv_lib_ncurses_tparm
=yes
18429 echo "$as_me: failed program was:" >&5
18430 sed 's/^/| /' conftest.
$ac_ext >&5
18432 ac_cv_lib_ncurses_tparm
=no
18434 rm -f conftest.err conftest.
$ac_objext \
18435 conftest
$ac_exeext conftest.
$ac_ext
18436 LIBS
=$ac_check_lib_save_LIBS
18438 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18439 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18440 if test $ac_cv_lib_ncurses_tparm = yes; then
18441 cat >>confdefs.h
<<_ACEOF
18442 #define HAVE_LIBNCURSES 1
18445 LIBS
="-lncurses $LIBS"
18450 # Do we need the Hesiod library to provide the support routines?
18451 if test "$with_hesiod" = yes ; then
18452 # Don't set $LIBS here -- see comments above.
18454 echo "$as_me:$LINENO: checking for res_send" >&5
18455 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
18456 if test "${ac_cv_func_res_send+set}" = set; then
18457 echo $ECHO_N "(cached) $ECHO_C" >&6
18459 cat >conftest.
$ac_ext <<_ACEOF
18462 cat confdefs.h
>>conftest.
$ac_ext
18463 cat >>conftest.
$ac_ext <<_ACEOF
18464 /* end confdefs.h. */
18465 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18467 #define res_send innocuous_res_send
18469 /* System header to define __stub macros and hopefully few prototypes,
18470 which can conflict with char res_send (); below.
18471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18472 <limits.h> exists even on freestanding compilers. */
18475 # include <limits.h>
18477 # include <assert.h>
18482 /* Override any gcc2 internal prototype to avoid an error. */
18487 /* We use char because int might match the return type of a gcc2
18488 builtin and then its argument prototype would still apply. */
18490 /* The GNU C library defines this for functions which it implements
18491 to always fail with ENOSYS. Some functions are actually named
18492 something starting with __ and the normal name is an alias. */
18493 #if defined (__stub_res_send) || defined (__stub___res_send)
18496 char (*f) () = res_send;
18505 return f != res_send;
18510 rm -f conftest.
$ac_objext conftest
$ac_exeext
18511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18512 (eval $ac_link) 2>conftest.er1
18514 grep -v '^ *+' conftest.er1
>conftest.err
18516 cat conftest.err
>&5
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); } &&
18519 { ac_try
='test -z "$ac_c_werror_flag"
18520 || test ! -s conftest.err'
18521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18522 (eval $ac_try) 2>&5
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); }; } &&
18526 { ac_try
='test -s conftest$ac_exeext'
18527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18528 (eval $ac_try) 2>&5
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); }; }; then
18532 ac_cv_func_res_send
=yes
18534 echo "$as_me: failed program was:" >&5
18535 sed 's/^/| /' conftest.
$ac_ext >&5
18537 ac_cv_func_res_send
=no
18539 rm -f conftest.err conftest.
$ac_objext \
18540 conftest
$ac_exeext conftest.
$ac_ext
18542 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18543 echo "${ECHO_T}$ac_cv_func_res_send" >&6
18544 if test $ac_cv_func_res_send = yes; then
18547 echo "$as_me:$LINENO: checking for __res_send" >&5
18548 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18549 if test "${ac_cv_func___res_send+set}" = set; then
18550 echo $ECHO_N "(cached) $ECHO_C" >&6
18552 cat >conftest.
$ac_ext <<_ACEOF
18555 cat confdefs.h
>>conftest.
$ac_ext
18556 cat >>conftest.
$ac_ext <<_ACEOF
18557 /* end confdefs.h. */
18558 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18560 #define __res_send innocuous___res_send
18562 /* System header to define __stub macros and hopefully few prototypes,
18563 which can conflict with char __res_send (); below.
18564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18565 <limits.h> exists even on freestanding compilers. */
18568 # include <limits.h>
18570 # include <assert.h>
18575 /* Override any gcc2 internal prototype to avoid an error. */
18580 /* We use char because int might match the return type of a gcc2
18581 builtin and then its argument prototype would still apply. */
18582 char __res_send ();
18583 /* The GNU C library defines this for functions which it implements
18584 to always fail with ENOSYS. Some functions are actually named
18585 something starting with __ and the normal name is an alias. */
18586 #if defined (__stub___res_send) || defined (__stub_____res_send)
18589 char (*f) () = __res_send;
18598 return f != __res_send;
18603 rm -f conftest.
$ac_objext conftest
$ac_exeext
18604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18605 (eval $ac_link) 2>conftest.er1
18607 grep -v '^ *+' conftest.er1
>conftest.err
18609 cat conftest.err
>&5
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); } &&
18612 { ac_try
='test -z "$ac_c_werror_flag"
18613 || test ! -s conftest.err'
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); }; } &&
18619 { ac_try
='test -s conftest$ac_exeext'
18620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18621 (eval $ac_try) 2>&5
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); }; }; then
18625 ac_cv_func___res_send
=yes
18627 echo "$as_me: failed program was:" >&5
18628 sed 's/^/| /' conftest.
$ac_ext >&5
18630 ac_cv_func___res_send
=no
18632 rm -f conftest.err conftest.
$ac_objext \
18633 conftest
$ac_exeext conftest.
$ac_ext
18635 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18636 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18637 if test $ac_cv_func___res_send = yes; then
18640 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18641 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18642 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18643 echo $ECHO_N "(cached) $ECHO_C" >&6
18645 ac_check_lib_save_LIBS
=$LIBS
18646 LIBS
="-lresolv $LIBS"
18647 cat >conftest.
$ac_ext <<_ACEOF
18650 cat confdefs.h
>>conftest.
$ac_ext
18651 cat >>conftest.
$ac_ext <<_ACEOF
18652 /* end confdefs.h. */
18654 /* Override any gcc2 internal prototype to avoid an error. */
18658 /* We use char because int might match the return type of a gcc2
18659 builtin and then its argument prototype would still apply. */
18669 rm -f conftest.
$ac_objext conftest
$ac_exeext
18670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18671 (eval $ac_link) 2>conftest.er1
18673 grep -v '^ *+' conftest.er1
>conftest.err
18675 cat conftest.err
>&5
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); } &&
18678 { ac_try
='test -z "$ac_c_werror_flag"
18679 || test ! -s conftest.err'
18680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18681 (eval $ac_try) 2>&5
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); }; } &&
18685 { ac_try
='test -s conftest$ac_exeext'
18686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18687 (eval $ac_try) 2>&5
18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); }; }; then
18691 ac_cv_lib_resolv_res_send
=yes
18693 echo "$as_me: failed program was:" >&5
18694 sed 's/^/| /' conftest.
$ac_ext >&5
18696 ac_cv_lib_resolv_res_send
=no
18698 rm -f conftest.err conftest.
$ac_objext \
18699 conftest
$ac_exeext conftest.
$ac_ext
18700 LIBS
=$ac_check_lib_save_LIBS
18702 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18703 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18704 if test $ac_cv_lib_resolv_res_send = yes; then
18707 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18708 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18709 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18710 echo $ECHO_N "(cached) $ECHO_C" >&6
18712 ac_check_lib_save_LIBS
=$LIBS
18713 LIBS
="-lresolv $LIBS"
18714 cat >conftest.
$ac_ext <<_ACEOF
18717 cat confdefs.h
>>conftest.
$ac_ext
18718 cat >>conftest.
$ac_ext <<_ACEOF
18719 /* end confdefs.h. */
18721 /* Override any gcc2 internal prototype to avoid an error. */
18725 /* We use char because int might match the return type of a gcc2
18726 builtin and then its argument prototype would still apply. */
18727 char __res_send ();
18736 rm -f conftest.
$ac_objext conftest
$ac_exeext
18737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18738 (eval $ac_link) 2>conftest.er1
18740 grep -v '^ *+' conftest.er1
>conftest.err
18742 cat conftest.err
>&5
18743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744 (exit $ac_status); } &&
18745 { ac_try
='test -z "$ac_c_werror_flag"
18746 || test ! -s conftest.err'
18747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18748 (eval $ac_try) 2>&5
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); }; } &&
18752 { ac_try
='test -s conftest$ac_exeext'
18753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18754 (eval $ac_try) 2>&5
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); }; }; then
18758 ac_cv_lib_resolv___res_send
=yes
18760 echo "$as_me: failed program was:" >&5
18761 sed 's/^/| /' conftest.
$ac_ext >&5
18763 ac_cv_lib_resolv___res_send
=no
18765 rm -f conftest.err conftest.
$ac_objext \
18766 conftest
$ac_exeext conftest.
$ac_ext
18767 LIBS
=$ac_check_lib_save_LIBS
18769 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18770 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18771 if test $ac_cv_lib_resolv___res_send = yes; then
18781 if test "$resolv" = yes ; then
18784 cat >>confdefs.h
<<\_ACEOF
18785 #define HAVE_LIBRESOLV 1
18791 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18792 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18793 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18794 echo $ECHO_N "(cached) $ECHO_C" >&6
18796 cat >conftest.
$ac_ext <<_ACEOF
18799 cat confdefs.h
>>conftest.
$ac_ext
18800 cat >>conftest.
$ac_ext <<_ACEOF
18801 /* end confdefs.h. */
18802 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18804 #define hes_getmailhost innocuous_hes_getmailhost
18806 /* System header to define __stub macros and hopefully few prototypes,
18807 which can conflict with char hes_getmailhost (); below.
18808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18809 <limits.h> exists even on freestanding compilers. */
18812 # include <limits.h>
18814 # include <assert.h>
18817 #undef hes_getmailhost
18819 /* Override any gcc2 internal prototype to avoid an error. */
18824 /* We use char because int might match the return type of a gcc2
18825 builtin and then its argument prototype would still apply. */
18826 char hes_getmailhost ();
18827 /* The GNU C library defines this for functions which it implements
18828 to always fail with ENOSYS. Some functions are actually named
18829 something starting with __ and the normal name is an alias. */
18830 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18833 char (*f) () = hes_getmailhost;
18842 return f != hes_getmailhost;
18847 rm -f conftest.
$ac_objext conftest
$ac_exeext
18848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18849 (eval $ac_link) 2>conftest.er1
18851 grep -v '^ *+' conftest.er1
>conftest.err
18853 cat conftest.err
>&5
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); } &&
18856 { ac_try
='test -z "$ac_c_werror_flag"
18857 || test ! -s conftest.err'
18858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18859 (eval $ac_try) 2>&5
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); }; } &&
18863 { ac_try
='test -s conftest$ac_exeext'
18864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18865 (eval $ac_try) 2>&5
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); }; }; then
18869 ac_cv_func_hes_getmailhost
=yes
18871 echo "$as_me: failed program was:" >&5
18872 sed 's/^/| /' conftest.
$ac_ext >&5
18874 ac_cv_func_hes_getmailhost
=no
18876 rm -f conftest.err conftest.
$ac_objext \
18877 conftest
$ac_exeext conftest.
$ac_ext
18879 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18880 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18881 if test $ac_cv_func_hes_getmailhost = yes; then
18884 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18885 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18886 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18887 echo $ECHO_N "(cached) $ECHO_C" >&6
18889 ac_check_lib_save_LIBS
=$LIBS
18890 LIBS
="-lhesiod $RESOLVLIB $LIBS"
18891 cat >conftest.
$ac_ext <<_ACEOF
18894 cat confdefs.h
>>conftest.
$ac_ext
18895 cat >>conftest.
$ac_ext <<_ACEOF
18896 /* end confdefs.h. */
18898 /* Override any gcc2 internal prototype to avoid an error. */
18902 /* We use char because int might match the return type of a gcc2
18903 builtin and then its argument prototype would still apply. */
18904 char hes_getmailhost ();
18908 hes_getmailhost ();
18913 rm -f conftest.
$ac_objext conftest
$ac_exeext
18914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18915 (eval $ac_link) 2>conftest.er1
18917 grep -v '^ *+' conftest.er1
>conftest.err
18919 cat conftest.err
>&5
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); } &&
18922 { ac_try
='test -z "$ac_c_werror_flag"
18923 || test ! -s conftest.err'
18924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18925 (eval $ac_try) 2>&5
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); }; } &&
18929 { ac_try
='test -s conftest$ac_exeext'
18930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18931 (eval $ac_try) 2>&5
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); }; }; then
18935 ac_cv_lib_hesiod_hes_getmailhost
=yes
18937 echo "$as_me: failed program was:" >&5
18938 sed 's/^/| /' conftest.
$ac_ext >&5
18940 ac_cv_lib_hesiod_hes_getmailhost
=no
18942 rm -f conftest.err conftest.
$ac_objext \
18943 conftest
$ac_exeext conftest.
$ac_ext
18944 LIBS
=$ac_check_lib_save_LIBS
18946 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18947 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18948 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18950 cat >>confdefs.h
<<\_ACEOF
18951 #define HAVE_LIBHESIOD 1
18962 # These tell us which Kerberos-related libraries to use.
18963 if test "${with_kerberos+set}" = set; then
18965 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18966 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18967 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18968 echo $ECHO_N "(cached) $ECHO_C" >&6
18970 ac_check_lib_save_LIBS
=$LIBS
18971 LIBS
="-lcom_err $LIBS"
18972 cat >conftest.
$ac_ext <<_ACEOF
18975 cat confdefs.h
>>conftest.
$ac_ext
18976 cat >>conftest.
$ac_ext <<_ACEOF
18977 /* end confdefs.h. */
18979 /* Override any gcc2 internal prototype to avoid an error. */
18983 /* We use char because int might match the return type of a gcc2
18984 builtin and then its argument prototype would still apply. */
18994 rm -f conftest.
$ac_objext conftest
$ac_exeext
18995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18996 (eval $ac_link) 2>conftest.er1
18998 grep -v '^ *+' conftest.er1
>conftest.err
19000 cat conftest.err
>&5
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); } &&
19003 { ac_try
='test -z "$ac_c_werror_flag"
19004 || test ! -s conftest.err'
19005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19006 (eval $ac_try) 2>&5
19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); }; } &&
19010 { ac_try
='test -s conftest$ac_exeext'
19011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19012 (eval $ac_try) 2>&5
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); }; }; then
19016 ac_cv_lib_com_err_com_err
=yes
19018 echo "$as_me: failed program was:" >&5
19019 sed 's/^/| /' conftest.
$ac_ext >&5
19021 ac_cv_lib_com_err_com_err
=no
19023 rm -f conftest.err conftest.
$ac_objext \
19024 conftest
$ac_exeext conftest.
$ac_ext
19025 LIBS
=$ac_check_lib_save_LIBS
19027 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19028 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
19029 if test $ac_cv_lib_com_err_com_err = yes; then
19030 cat >>confdefs.h
<<_ACEOF
19031 #define HAVE_LIBCOM_ERR 1
19034 LIBS
="-lcom_err $LIBS"
19039 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19040 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
19041 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19042 echo $ECHO_N "(cached) $ECHO_C" >&6
19044 ac_check_lib_save_LIBS
=$LIBS
19045 LIBS
="-lk5crypto $LIBS"
19046 cat >conftest.
$ac_ext <<_ACEOF
19049 cat confdefs.h
>>conftest.
$ac_ext
19050 cat >>conftest.
$ac_ext <<_ACEOF
19051 /* end confdefs.h. */
19053 /* Override any gcc2 internal prototype to avoid an error. */
19057 /* We use char because int might match the return type of a gcc2
19058 builtin and then its argument prototype would still apply. */
19059 char mit_des_cbc_encrypt ();
19063 mit_des_cbc_encrypt ();
19068 rm -f conftest.
$ac_objext conftest
$ac_exeext
19069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19070 (eval $ac_link) 2>conftest.er1
19072 grep -v '^ *+' conftest.er1
>conftest.err
19074 cat conftest.err
>&5
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); } &&
19077 { ac_try
='test -z "$ac_c_werror_flag"
19078 || test ! -s conftest.err'
19079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19080 (eval $ac_try) 2>&5
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); }; } &&
19084 { ac_try
='test -s conftest$ac_exeext'
19085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19086 (eval $ac_try) 2>&5
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); }; }; then
19090 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
19092 echo "$as_me: failed program was:" >&5
19093 sed 's/^/| /' conftest.
$ac_ext >&5
19095 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
19097 rm -f conftest.err conftest.
$ac_objext \
19098 conftest
$ac_exeext conftest.
$ac_ext
19099 LIBS
=$ac_check_lib_save_LIBS
19101 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19102 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
19103 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19104 cat >>confdefs.h
<<_ACEOF
19105 #define HAVE_LIBK5CRYPTO 1
19108 LIBS
="-lk5crypto $LIBS"
19113 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19114 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
19115 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19116 echo $ECHO_N "(cached) $ECHO_C" >&6
19118 ac_check_lib_save_LIBS
=$LIBS
19119 LIBS
="-lcrypto $LIBS"
19120 cat >conftest.
$ac_ext <<_ACEOF
19123 cat confdefs.h
>>conftest.
$ac_ext
19124 cat >>conftest.
$ac_ext <<_ACEOF
19125 /* end confdefs.h. */
19127 /* Override any gcc2 internal prototype to avoid an error. */
19131 /* We use char because int might match the return type of a gcc2
19132 builtin and then its argument prototype would still apply. */
19133 char mit_des_cbc_encrypt ();
19137 mit_des_cbc_encrypt ();
19142 rm -f conftest.
$ac_objext conftest
$ac_exeext
19143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19144 (eval $ac_link) 2>conftest.er1
19146 grep -v '^ *+' conftest.er1
>conftest.err
19148 cat conftest.err
>&5
19149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150 (exit $ac_status); } &&
19151 { ac_try
='test -z "$ac_c_werror_flag"
19152 || test ! -s conftest.err'
19153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19154 (eval $ac_try) 2>&5
19156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); }; } &&
19158 { ac_try
='test -s conftest$ac_exeext'
19159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19160 (eval $ac_try) 2>&5
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); }; }; then
19164 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
19166 echo "$as_me: failed program was:" >&5
19167 sed 's/^/| /' conftest.
$ac_ext >&5
19169 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
19171 rm -f conftest.err conftest.
$ac_objext \
19172 conftest
$ac_exeext conftest.
$ac_ext
19173 LIBS
=$ac_check_lib_save_LIBS
19175 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19176 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
19177 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19178 cat >>confdefs.h
<<_ACEOF
19179 #define HAVE_LIBCRYPTO 1
19182 LIBS
="-lcrypto $LIBS"
19187 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19188 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
19189 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19190 echo $ECHO_N "(cached) $ECHO_C" >&6
19192 ac_check_lib_save_LIBS
=$LIBS
19193 LIBS
="-lkrb5 $LIBS"
19194 cat >conftest.
$ac_ext <<_ACEOF
19197 cat confdefs.h
>>conftest.
$ac_ext
19198 cat >>conftest.
$ac_ext <<_ACEOF
19199 /* end confdefs.h. */
19201 /* Override any gcc2 internal prototype to avoid an error. */
19205 /* We use char because int might match the return type of a gcc2
19206 builtin and then its argument prototype would still apply. */
19207 char krb5_init_context ();
19211 krb5_init_context ();
19216 rm -f conftest.
$ac_objext conftest
$ac_exeext
19217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19218 (eval $ac_link) 2>conftest.er1
19220 grep -v '^ *+' conftest.er1
>conftest.err
19222 cat conftest.err
>&5
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); } &&
19225 { ac_try
='test -z "$ac_c_werror_flag"
19226 || test ! -s conftest.err'
19227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19228 (eval $ac_try) 2>&5
19230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231 (exit $ac_status); }; } &&
19232 { ac_try
='test -s conftest$ac_exeext'
19233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19234 (eval $ac_try) 2>&5
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); }; }; then
19238 ac_cv_lib_krb5_krb5_init_context
=yes
19240 echo "$as_me: failed program was:" >&5
19241 sed 's/^/| /' conftest.
$ac_ext >&5
19243 ac_cv_lib_krb5_krb5_init_context
=no
19245 rm -f conftest.err conftest.
$ac_objext \
19246 conftest
$ac_exeext conftest.
$ac_ext
19247 LIBS
=$ac_check_lib_save_LIBS
19249 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19250 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
19251 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19252 cat >>confdefs.h
<<_ACEOF
19253 #define HAVE_LIBKRB5 1
19256 LIBS
="-lkrb5 $LIBS"
19260 if test "${with_kerberos5+set}" != set; then
19262 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19263 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
19264 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19265 echo $ECHO_N "(cached) $ECHO_C" >&6
19267 ac_check_lib_save_LIBS
=$LIBS
19268 LIBS
="-ldes425 $LIBS"
19269 cat >conftest.
$ac_ext <<_ACEOF
19272 cat confdefs.h
>>conftest.
$ac_ext
19273 cat >>conftest.
$ac_ext <<_ACEOF
19274 /* end confdefs.h. */
19276 /* Override any gcc2 internal prototype to avoid an error. */
19280 /* We use char because int might match the return type of a gcc2
19281 builtin and then its argument prototype would still apply. */
19282 char des_cbc_encrypt ();
19286 des_cbc_encrypt ();
19291 rm -f conftest.
$ac_objext conftest
$ac_exeext
19292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19293 (eval $ac_link) 2>conftest.er1
19295 grep -v '^ *+' conftest.er1
>conftest.err
19297 cat conftest.err
>&5
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); } &&
19300 { ac_try
='test -z "$ac_c_werror_flag"
19301 || test ! -s conftest.err'
19302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19303 (eval $ac_try) 2>&5
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); }; } &&
19307 { ac_try
='test -s conftest$ac_exeext'
19308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19309 (eval $ac_try) 2>&5
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); }; }; then
19313 ac_cv_lib_des425_des_cbc_encrypt
=yes
19315 echo "$as_me: failed program was:" >&5
19316 sed 's/^/| /' conftest.
$ac_ext >&5
19318 ac_cv_lib_des425_des_cbc_encrypt
=no
19320 rm -f conftest.err conftest.
$ac_objext \
19321 conftest
$ac_exeext conftest.
$ac_ext
19322 LIBS
=$ac_check_lib_save_LIBS
19324 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19325 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
19326 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19327 cat >>confdefs.h
<<_ACEOF
19328 #define HAVE_LIBDES425 1
19331 LIBS
="-ldes425 $LIBS"
19335 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19336 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
19337 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19338 echo $ECHO_N "(cached) $ECHO_C" >&6
19340 ac_check_lib_save_LIBS
=$LIBS
19342 cat >conftest.
$ac_ext <<_ACEOF
19345 cat confdefs.h
>>conftest.
$ac_ext
19346 cat >>conftest.
$ac_ext <<_ACEOF
19347 /* end confdefs.h. */
19349 /* Override any gcc2 internal prototype to avoid an error. */
19353 /* We use char because int might match the return type of a gcc2
19354 builtin and then its argument prototype would still apply. */
19355 char des_cbc_encrypt ();
19359 des_cbc_encrypt ();
19364 rm -f conftest.
$ac_objext conftest
$ac_exeext
19365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19366 (eval $ac_link) 2>conftest.er1
19368 grep -v '^ *+' conftest.er1
>conftest.err
19370 cat conftest.err
>&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); } &&
19373 { ac_try
='test -z "$ac_c_werror_flag"
19374 || 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_des_des_cbc_encrypt
=yes
19388 echo "$as_me: failed program was:" >&5
19389 sed 's/^/| /' conftest.
$ac_ext >&5
19391 ac_cv_lib_des_des_cbc_encrypt
=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_des_des_cbc_encrypt" >&5
19398 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19399 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19400 cat >>confdefs.h
<<_ACEOF
19401 #define HAVE_LIBDES 1
19411 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19412 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19413 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19414 echo $ECHO_N "(cached) $ECHO_C" >&6
19416 ac_check_lib_save_LIBS
=$LIBS
19417 LIBS
="-lkrb4 $LIBS"
19418 cat >conftest.
$ac_ext <<_ACEOF
19421 cat confdefs.h
>>conftest.
$ac_ext
19422 cat >>conftest.
$ac_ext <<_ACEOF
19423 /* end confdefs.h. */
19425 /* Override any gcc2 internal prototype to avoid an error. */
19429 /* We use char because int might match the return type of a gcc2
19430 builtin and then its argument prototype would still apply. */
19431 char krb_get_cred ();
19440 rm -f conftest.
$ac_objext conftest
$ac_exeext
19441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19442 (eval $ac_link) 2>conftest.er1
19444 grep -v '^ *+' conftest.er1
>conftest.err
19446 cat conftest.err
>&5
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); } &&
19449 { ac_try
='test -z "$ac_c_werror_flag"
19450 || test ! -s conftest.err'
19451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19452 (eval $ac_try) 2>&5
19454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455 (exit $ac_status); }; } &&
19456 { ac_try
='test -s conftest$ac_exeext'
19457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19458 (eval $ac_try) 2>&5
19460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461 (exit $ac_status); }; }; then
19462 ac_cv_lib_krb4_krb_get_cred
=yes
19464 echo "$as_me: failed program was:" >&5
19465 sed 's/^/| /' conftest.
$ac_ext >&5
19467 ac_cv_lib_krb4_krb_get_cred
=no
19469 rm -f conftest.err conftest.
$ac_objext \
19470 conftest
$ac_exeext conftest.
$ac_ext
19471 LIBS
=$ac_check_lib_save_LIBS
19473 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19474 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19475 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19476 cat >>confdefs.h
<<_ACEOF
19477 #define HAVE_LIBKRB4 1
19480 LIBS
="-lkrb4 $LIBS"
19484 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19485 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19486 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19487 echo $ECHO_N "(cached) $ECHO_C" >&6
19489 ac_check_lib_save_LIBS
=$LIBS
19491 cat >conftest.
$ac_ext <<_ACEOF
19494 cat confdefs.h
>>conftest.
$ac_ext
19495 cat >>conftest.
$ac_ext <<_ACEOF
19496 /* end confdefs.h. */
19498 /* Override any gcc2 internal prototype to avoid an error. */
19502 /* We use char because int might match the return type of a gcc2
19503 builtin and then its argument prototype would still apply. */
19504 char krb_get_cred ();
19513 rm -f conftest.
$ac_objext conftest
$ac_exeext
19514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19515 (eval $ac_link) 2>conftest.er1
19517 grep -v '^ *+' conftest.er1
>conftest.err
19519 cat conftest.err
>&5
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); } &&
19522 { ac_try
='test -z "$ac_c_werror_flag"
19523 || test ! -s conftest.err'
19524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19525 (eval $ac_try) 2>&5
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); }; } &&
19529 { ac_try
='test -s conftest$ac_exeext'
19530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19531 (eval $ac_try) 2>&5
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); }; }; then
19535 ac_cv_lib_krb_krb_get_cred
=yes
19537 echo "$as_me: failed program was:" >&5
19538 sed 's/^/| /' conftest.
$ac_ext >&5
19540 ac_cv_lib_krb_krb_get_cred
=no
19542 rm -f conftest.err conftest.
$ac_objext \
19543 conftest
$ac_exeext conftest.
$ac_ext
19544 LIBS
=$ac_check_lib_save_LIBS
19546 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19547 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19548 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19549 cat >>confdefs.h
<<_ACEOF
19550 #define HAVE_LIBKRB 1
19561 if test "${with_kerberos5+set}" = set; then
19563 for ac_header
in krb5.h
19565 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19567 echo "$as_me:$LINENO: checking for $ac_header" >&5
19568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19570 echo $ECHO_N "(cached) $ECHO_C" >&6
19572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19575 # Is the header compilable?
19576 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19577 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19578 cat >conftest.
$ac_ext <<_ACEOF
19581 cat confdefs.h
>>conftest.
$ac_ext
19582 cat >>conftest.
$ac_ext <<_ACEOF
19583 /* end confdefs.h. */
19584 $ac_includes_default
19585 #include <$ac_header>
19587 rm -f conftest.
$ac_objext
19588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19589 (eval $ac_compile) 2>conftest.er1
19591 grep -v '^ *+' conftest.er1
>conftest.err
19593 cat conftest.err
>&5
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); } &&
19596 { ac_try
='test -z "$ac_c_werror_flag"
19597 || 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
19714 for ac_header
in des.h
19716 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19718 echo "$as_me:$LINENO: checking for $ac_header" >&5
19719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19721 echo $ECHO_N "(cached) $ECHO_C" >&6
19723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19726 # Is the header compilable?
19727 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19728 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19729 cat >conftest.
$ac_ext <<_ACEOF
19732 cat confdefs.h
>>conftest.
$ac_ext
19733 cat >>conftest.
$ac_ext <<_ACEOF
19734 /* end confdefs.h. */
19735 $ac_includes_default
19736 #include <$ac_header>
19738 rm -f conftest.
$ac_objext
19739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19740 (eval $ac_compile) 2>conftest.er1
19742 grep -v '^ *+' conftest.er1
>conftest.err
19744 cat conftest.err
>&5
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); } &&
19747 { ac_try
='test -z "$ac_c_werror_flag"
19748 || test ! -s conftest.err'
19749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19750 (eval $ac_try) 2>&5
19752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753 (exit $ac_status); }; } &&
19754 { ac_try
='test -s conftest.$ac_objext'
19755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19756 (eval $ac_try) 2>&5
19758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759 (exit $ac_status); }; }; then
19760 ac_header_compiler
=yes
19762 echo "$as_me: failed program was:" >&5
19763 sed 's/^/| /' conftest.
$ac_ext >&5
19765 ac_header_compiler
=no
19767 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19768 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19769 echo "${ECHO_T}$ac_header_compiler" >&6
19771 # Is the header present?
19772 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19773 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19774 cat >conftest.
$ac_ext <<_ACEOF
19777 cat confdefs.h
>>conftest.
$ac_ext
19778 cat >>conftest.
$ac_ext <<_ACEOF
19779 /* end confdefs.h. */
19780 #include <$ac_header>
19782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19783 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19785 grep -v '^ *+' conftest.er1
>conftest.err
19787 cat conftest.err
>&5
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); } >/dev
/null
; then
19790 if test -s conftest.err
; then
19791 ac_cpp_err
=$ac_c_preproc_warn_flag
19792 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19799 if test -z "$ac_cpp_err"; then
19800 ac_header_preproc
=yes
19802 echo "$as_me: failed program was:" >&5
19803 sed 's/^/| /' conftest.
$ac_ext >&5
19805 ac_header_preproc
=no
19807 rm -f conftest.err conftest.
$ac_ext
19808 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19809 echo "${ECHO_T}$ac_header_preproc" >&6
19811 # So? What about this header?
19812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19814 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19815 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19817 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19818 ac_header_preproc
=yes
19821 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19822 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19823 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19824 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19825 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19826 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19827 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19828 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19831 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19832 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19835 ## ------------------------------------------ ##
19836 ## Report this to the AC_PACKAGE_NAME lists. ##
19837 ## ------------------------------------------ ##
19840 sed "s/^/$as_me: WARNING: /" >&2
19843 echo "$as_me:$LINENO: checking for $ac_header" >&5
19844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19846 echo $ECHO_N "(cached) $ECHO_C" >&6
19848 eval "$as_ac_Header=\$ac_header_preproc"
19850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19855 cat >>confdefs.h
<<_ACEOF
19856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19861 for ac_header
in kerberosIV
/des.h
19863 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19865 echo "$as_me:$LINENO: checking for $ac_header" >&5
19866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19868 echo $ECHO_N "(cached) $ECHO_C" >&6
19870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19873 # Is the header compilable?
19874 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19875 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19876 cat >conftest.
$ac_ext <<_ACEOF
19879 cat confdefs.h
>>conftest.
$ac_ext
19880 cat >>conftest.
$ac_ext <<_ACEOF
19881 /* end confdefs.h. */
19882 $ac_includes_default
19883 #include <$ac_header>
19885 rm -f conftest.
$ac_objext
19886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19887 (eval $ac_compile) 2>conftest.er1
19889 grep -v '^ *+' conftest.er1
>conftest.err
19891 cat conftest.err
>&5
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); } &&
19894 { ac_try
='test -z "$ac_c_werror_flag"
19895 || test ! -s conftest.err'
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); }; } &&
19901 { ac_try
='test -s conftest.$ac_objext'
19902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19903 (eval $ac_try) 2>&5
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); }; }; then
19907 ac_header_compiler
=yes
19909 echo "$as_me: failed program was:" >&5
19910 sed 's/^/| /' conftest.
$ac_ext >&5
19912 ac_header_compiler
=no
19914 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19915 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19916 echo "${ECHO_T}$ac_header_compiler" >&6
19918 # Is the header present?
19919 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19921 cat >conftest.
$ac_ext <<_ACEOF
19924 cat confdefs.h
>>conftest.
$ac_ext
19925 cat >>conftest.
$ac_ext <<_ACEOF
19926 /* end confdefs.h. */
19927 #include <$ac_header>
19929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19930 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19932 grep -v '^ *+' conftest.er1
>conftest.err
19934 cat conftest.err
>&5
19935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936 (exit $ac_status); } >/dev
/null
; then
19937 if test -s conftest.err
; then
19938 ac_cpp_err
=$ac_c_preproc_warn_flag
19939 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19946 if test -z "$ac_cpp_err"; then
19947 ac_header_preproc
=yes
19949 echo "$as_me: failed program was:" >&5
19950 sed 's/^/| /' conftest.
$ac_ext >&5
19952 ac_header_preproc
=no
19954 rm -f conftest.err conftest.
$ac_ext
19955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19956 echo "${ECHO_T}$ac_header_preproc" >&6
19958 # So? What about this header?
19959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19961 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19964 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19965 ac_header_preproc
=yes
19968 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19969 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19970 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19971 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19972 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19973 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19974 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19975 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19978 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19979 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19982 ## ------------------------------------------ ##
19983 ## Report this to the AC_PACKAGE_NAME lists. ##
19984 ## ------------------------------------------ ##
19987 sed "s/^/$as_me: WARNING: /" >&2
19990 echo "$as_me:$LINENO: checking for $ac_header" >&5
19991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19993 echo $ECHO_N "(cached) $ECHO_C" >&6
19995 eval "$as_ac_Header=\$ac_header_preproc"
19997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20002 cat >>confdefs.h
<<_ACEOF
20003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20008 for ac_header
in kerberos
/des.h
20010 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20012 echo "$as_me:$LINENO: checking for $ac_header" >&5
20013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20015 echo $ECHO_N "(cached) $ECHO_C" >&6
20017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20020 # Is the header compilable?
20021 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20023 cat >conftest.
$ac_ext <<_ACEOF
20026 cat confdefs.h
>>conftest.
$ac_ext
20027 cat >>conftest.
$ac_ext <<_ACEOF
20028 /* end confdefs.h. */
20029 $ac_includes_default
20030 #include <$ac_header>
20032 rm -f conftest.
$ac_objext
20033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20034 (eval $ac_compile) 2>conftest.er1
20036 grep -v '^ *+' conftest.er1
>conftest.err
20038 cat conftest.err
>&5
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); } &&
20041 { ac_try
='test -z "$ac_c_werror_flag"
20042 || test ! -s conftest.err'
20043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20044 (eval $ac_try) 2>&5
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); }; } &&
20048 { ac_try
='test -s conftest.$ac_objext'
20049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20050 (eval $ac_try) 2>&5
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); }; }; then
20054 ac_header_compiler
=yes
20056 echo "$as_me: failed program was:" >&5
20057 sed 's/^/| /' conftest.
$ac_ext >&5
20059 ac_header_compiler
=no
20061 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20062 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20063 echo "${ECHO_T}$ac_header_compiler" >&6
20065 # Is the header present?
20066 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20067 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20068 cat >conftest.
$ac_ext <<_ACEOF
20071 cat confdefs.h
>>conftest.
$ac_ext
20072 cat >>conftest.
$ac_ext <<_ACEOF
20073 /* end confdefs.h. */
20074 #include <$ac_header>
20076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20077 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20079 grep -v '^ *+' conftest.er1
>conftest.err
20081 cat conftest.err
>&5
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); } >/dev
/null
; then
20084 if test -s conftest.err
; then
20085 ac_cpp_err
=$ac_c_preproc_warn_flag
20086 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20093 if test -z "$ac_cpp_err"; then
20094 ac_header_preproc
=yes
20096 echo "$as_me: failed program was:" >&5
20097 sed 's/^/| /' conftest.
$ac_ext >&5
20099 ac_header_preproc
=no
20101 rm -f conftest.err conftest.
$ac_ext
20102 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20103 echo "${ECHO_T}$ac_header_preproc" >&6
20105 # So? What about this header?
20106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20112 ac_header_preproc
=yes
20115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20122 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20129 ## ------------------------------------------ ##
20130 ## Report this to the AC_PACKAGE_NAME lists. ##
20131 ## ------------------------------------------ ##
20134 sed "s/^/$as_me: WARNING: /" >&2
20137 echo "$as_me:$LINENO: checking for $ac_header" >&5
20138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20140 echo $ECHO_N "(cached) $ECHO_C" >&6
20142 eval "$as_ac_Header=\$ac_header_preproc"
20144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20149 cat >>confdefs.h
<<_ACEOF
20150 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20166 for ac_header
in krb.h
20168 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20170 echo "$as_me:$LINENO: checking for $ac_header" >&5
20171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20173 echo $ECHO_N "(cached) $ECHO_C" >&6
20175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20178 # Is the header compilable?
20179 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20180 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20181 cat >conftest.
$ac_ext <<_ACEOF
20184 cat confdefs.h
>>conftest.
$ac_ext
20185 cat >>conftest.
$ac_ext <<_ACEOF
20186 /* end confdefs.h. */
20187 $ac_includes_default
20188 #include <$ac_header>
20190 rm -f conftest.
$ac_objext
20191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20192 (eval $ac_compile) 2>conftest.er1
20194 grep -v '^ *+' conftest.er1
>conftest.err
20196 cat conftest.err
>&5
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); } &&
20199 { ac_try
='test -z "$ac_c_werror_flag"
20200 || test ! -s conftest.err'
20201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20202 (eval $ac_try) 2>&5
20204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205 (exit $ac_status); }; } &&
20206 { ac_try
='test -s conftest.$ac_objext'
20207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20208 (eval $ac_try) 2>&5
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); }; }; then
20212 ac_header_compiler
=yes
20214 echo "$as_me: failed program was:" >&5
20215 sed 's/^/| /' conftest.
$ac_ext >&5
20217 ac_header_compiler
=no
20219 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20220 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20221 echo "${ECHO_T}$ac_header_compiler" >&6
20223 # Is the header present?
20224 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20225 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20226 cat >conftest.
$ac_ext <<_ACEOF
20229 cat confdefs.h
>>conftest.
$ac_ext
20230 cat >>conftest.
$ac_ext <<_ACEOF
20231 /* end confdefs.h. */
20232 #include <$ac_header>
20234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20235 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20237 grep -v '^ *+' conftest.er1
>conftest.err
20239 cat conftest.err
>&5
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); } >/dev
/null
; then
20242 if test -s conftest.err
; then
20243 ac_cpp_err
=$ac_c_preproc_warn_flag
20244 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20251 if test -z "$ac_cpp_err"; then
20252 ac_header_preproc
=yes
20254 echo "$as_me: failed program was:" >&5
20255 sed 's/^/| /' conftest.
$ac_ext >&5
20257 ac_header_preproc
=no
20259 rm -f conftest.err conftest.
$ac_ext
20260 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20261 echo "${ECHO_T}$ac_header_preproc" >&6
20263 # So? What about this header?
20264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20270 ac_header_preproc
=yes
20273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20276 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20280 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20287 ## ------------------------------------------ ##
20288 ## Report this to the AC_PACKAGE_NAME lists. ##
20289 ## ------------------------------------------ ##
20292 sed "s/^/$as_me: WARNING: /" >&2
20295 echo "$as_me:$LINENO: checking for $ac_header" >&5
20296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20298 echo $ECHO_N "(cached) $ECHO_C" >&6
20300 eval "$as_ac_Header=\$ac_header_preproc"
20302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20307 cat >>confdefs.h
<<_ACEOF
20308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20313 for ac_header
in kerberosIV
/krb.h
20315 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20317 echo "$as_me:$LINENO: checking for $ac_header" >&5
20318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20320 echo $ECHO_N "(cached) $ECHO_C" >&6
20322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20325 # Is the header compilable?
20326 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20327 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20328 cat >conftest.
$ac_ext <<_ACEOF
20331 cat confdefs.h
>>conftest.
$ac_ext
20332 cat >>conftest.
$ac_ext <<_ACEOF
20333 /* end confdefs.h. */
20334 $ac_includes_default
20335 #include <$ac_header>
20337 rm -f conftest.
$ac_objext
20338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20339 (eval $ac_compile) 2>conftest.er1
20341 grep -v '^ *+' conftest.er1
>conftest.err
20343 cat conftest.err
>&5
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); } &&
20346 { ac_try
='test -z "$ac_c_werror_flag"
20347 || test ! -s conftest.err'
20348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20349 (eval $ac_try) 2>&5
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); }; } &&
20353 { ac_try
='test -s conftest.$ac_objext'
20354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20355 (eval $ac_try) 2>&5
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); }; }; then
20359 ac_header_compiler
=yes
20361 echo "$as_me: failed program was:" >&5
20362 sed 's/^/| /' conftest.
$ac_ext >&5
20364 ac_header_compiler
=no
20366 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20367 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20368 echo "${ECHO_T}$ac_header_compiler" >&6
20370 # Is the header present?
20371 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20372 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20373 cat >conftest.
$ac_ext <<_ACEOF
20376 cat confdefs.h
>>conftest.
$ac_ext
20377 cat >>conftest.
$ac_ext <<_ACEOF
20378 /* end confdefs.h. */
20379 #include <$ac_header>
20381 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20382 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20384 grep -v '^ *+' conftest.er1
>conftest.err
20386 cat conftest.err
>&5
20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 (exit $ac_status); } >/dev
/null
; then
20389 if test -s conftest.err
; then
20390 ac_cpp_err
=$ac_c_preproc_warn_flag
20391 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20398 if test -z "$ac_cpp_err"; then
20399 ac_header_preproc
=yes
20401 echo "$as_me: failed program was:" >&5
20402 sed 's/^/| /' conftest.
$ac_ext >&5
20404 ac_header_preproc
=no
20406 rm -f conftest.err conftest.
$ac_ext
20407 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20408 echo "${ECHO_T}$ac_header_preproc" >&6
20410 # So? What about this header?
20411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20413 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20414 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20416 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20417 ac_header_preproc
=yes
20420 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20421 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20422 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20423 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20424 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20425 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20426 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20427 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20430 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20431 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20434 ## ------------------------------------------ ##
20435 ## Report this to the AC_PACKAGE_NAME lists. ##
20436 ## ------------------------------------------ ##
20439 sed "s/^/$as_me: WARNING: /" >&2
20442 echo "$as_me:$LINENO: checking for $ac_header" >&5
20443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20445 echo $ECHO_N "(cached) $ECHO_C" >&6
20447 eval "$as_ac_Header=\$ac_header_preproc"
20449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20454 cat >>confdefs.h
<<_ACEOF
20455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20460 for ac_header
in kerberos
/krb.h
20462 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20464 echo "$as_me:$LINENO: checking for $ac_header" >&5
20465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20467 echo $ECHO_N "(cached) $ECHO_C" >&6
20469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20472 # Is the header compilable?
20473 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20474 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20475 cat >conftest.
$ac_ext <<_ACEOF
20478 cat confdefs.h
>>conftest.
$ac_ext
20479 cat >>conftest.
$ac_ext <<_ACEOF
20480 /* end confdefs.h. */
20481 $ac_includes_default
20482 #include <$ac_header>
20484 rm -f conftest.
$ac_objext
20485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20486 (eval $ac_compile) 2>conftest.er1
20488 grep -v '^ *+' conftest.er1
>conftest.err
20490 cat conftest.err
>&5
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); } &&
20493 { ac_try
='test -z "$ac_c_werror_flag"
20494 || test ! -s conftest.err'
20495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20496 (eval $ac_try) 2>&5
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); }; } &&
20500 { ac_try
='test -s conftest.$ac_objext'
20501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20502 (eval $ac_try) 2>&5
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); }; }; then
20506 ac_header_compiler
=yes
20508 echo "$as_me: failed program was:" >&5
20509 sed 's/^/| /' conftest.
$ac_ext >&5
20511 ac_header_compiler
=no
20513 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20514 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20515 echo "${ECHO_T}$ac_header_compiler" >&6
20517 # Is the header present?
20518 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20519 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20520 cat >conftest.
$ac_ext <<_ACEOF
20523 cat confdefs.h
>>conftest.
$ac_ext
20524 cat >>conftest.
$ac_ext <<_ACEOF
20525 /* end confdefs.h. */
20526 #include <$ac_header>
20528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20529 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20531 grep -v '^ *+' conftest.er1
>conftest.err
20533 cat conftest.err
>&5
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); } >/dev
/null
; then
20536 if test -s conftest.err
; then
20537 ac_cpp_err
=$ac_c_preproc_warn_flag
20538 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20545 if test -z "$ac_cpp_err"; then
20546 ac_header_preproc
=yes
20548 echo "$as_me: failed program was:" >&5
20549 sed 's/^/| /' conftest.
$ac_ext >&5
20551 ac_header_preproc
=no
20553 rm -f conftest.err conftest.
$ac_ext
20554 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20555 echo "${ECHO_T}$ac_header_preproc" >&6
20557 # So? What about this header?
20558 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20560 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20561 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20563 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20564 ac_header_preproc
=yes
20567 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20568 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20569 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20570 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20571 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20572 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20573 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20574 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20576 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20577 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20578 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20581 ## ------------------------------------------ ##
20582 ## Report this to the AC_PACKAGE_NAME lists. ##
20583 ## ------------------------------------------ ##
20586 sed "s/^/$as_me: WARNING: /" >&2
20589 echo "$as_me:$LINENO: checking for $ac_header" >&5
20590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20592 echo $ECHO_N "(cached) $ECHO_C" >&6
20594 eval "$as_ac_Header=\$ac_header_preproc"
20596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20601 cat >>confdefs.h
<<_ACEOF
20602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20619 for ac_header
in com_err.h
20621 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20623 echo "$as_me:$LINENO: checking for $ac_header" >&5
20624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20626 echo $ECHO_N "(cached) $ECHO_C" >&6
20628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20631 # Is the header compilable?
20632 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20633 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20634 cat >conftest.
$ac_ext <<_ACEOF
20637 cat confdefs.h
>>conftest.
$ac_ext
20638 cat >>conftest.
$ac_ext <<_ACEOF
20639 /* end confdefs.h. */
20640 $ac_includes_default
20641 #include <$ac_header>
20643 rm -f conftest.
$ac_objext
20644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20645 (eval $ac_compile) 2>conftest.er1
20647 grep -v '^ *+' conftest.er1
>conftest.err
20649 cat conftest.err
>&5
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); } &&
20652 { ac_try
='test -z "$ac_c_werror_flag"
20653 || test ! -s conftest.err'
20654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20655 (eval $ac_try) 2>&5
20657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658 (exit $ac_status); }; } &&
20659 { ac_try
='test -s conftest.$ac_objext'
20660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20661 (eval $ac_try) 2>&5
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); }; }; then
20665 ac_header_compiler
=yes
20667 echo "$as_me: failed program was:" >&5
20668 sed 's/^/| /' conftest.
$ac_ext >&5
20670 ac_header_compiler
=no
20672 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20673 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20674 echo "${ECHO_T}$ac_header_compiler" >&6
20676 # Is the header present?
20677 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20678 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20679 cat >conftest.
$ac_ext <<_ACEOF
20682 cat confdefs.h
>>conftest.
$ac_ext
20683 cat >>conftest.
$ac_ext <<_ACEOF
20684 /* end confdefs.h. */
20685 #include <$ac_header>
20687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20688 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20690 grep -v '^ *+' conftest.er1
>conftest.err
20692 cat conftest.err
>&5
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); } >/dev
/null
; then
20695 if test -s conftest.err
; then
20696 ac_cpp_err
=$ac_c_preproc_warn_flag
20697 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20704 if test -z "$ac_cpp_err"; then
20705 ac_header_preproc
=yes
20707 echo "$as_me: failed program was:" >&5
20708 sed 's/^/| /' conftest.
$ac_ext >&5
20710 ac_header_preproc
=no
20712 rm -f conftest.err conftest.
$ac_ext
20713 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20714 echo "${ECHO_T}$ac_header_preproc" >&6
20716 # So? What about this header?
20717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20722 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20723 ac_header_preproc
=yes
20726 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20728 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20729 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20730 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20731 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20732 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20733 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20736 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20737 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20740 ## ------------------------------------------ ##
20741 ## Report this to the AC_PACKAGE_NAME lists. ##
20742 ## ------------------------------------------ ##
20745 sed "s/^/$as_me: WARNING: /" >&2
20748 echo "$as_me:$LINENO: checking for $ac_header" >&5
20749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20751 echo $ECHO_N "(cached) $ECHO_C" >&6
20753 eval "$as_ac_Header=\$ac_header_preproc"
20755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20760 cat >>confdefs.h
<<_ACEOF
20761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20770 # Solaris requires -lintl if you want strerror (which calls dgettext)
20771 # to return localized messages.
20773 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20774 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20775 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20776 echo $ECHO_N "(cached) $ECHO_C" >&6
20778 ac_check_lib_save_LIBS
=$LIBS
20779 LIBS
="-lintl $LIBS"
20780 cat >conftest.
$ac_ext <<_ACEOF
20783 cat confdefs.h
>>conftest.
$ac_ext
20784 cat >>conftest.
$ac_ext <<_ACEOF
20785 /* end confdefs.h. */
20787 /* Override any gcc2 internal prototype to avoid an error. */
20791 /* We use char because int might match the return type of a gcc2
20792 builtin and then its argument prototype would still apply. */
20802 rm -f conftest.
$ac_objext conftest
$ac_exeext
20803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20804 (eval $ac_link) 2>conftest.er1
20806 grep -v '^ *+' conftest.er1
>conftest.err
20808 cat conftest.err
>&5
20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810 (exit $ac_status); } &&
20811 { ac_try
='test -z "$ac_c_werror_flag"
20812 || test ! -s conftest.err'
20813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20814 (eval $ac_try) 2>&5
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); }; } &&
20818 { ac_try
='test -s conftest$ac_exeext'
20819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20820 (eval $ac_try) 2>&5
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); }; }; then
20824 ac_cv_lib_intl_dgettext
=yes
20826 echo "$as_me: failed program was:" >&5
20827 sed 's/^/| /' conftest.
$ac_ext >&5
20829 ac_cv_lib_intl_dgettext
=no
20831 rm -f conftest.err conftest.
$ac_objext \
20832 conftest
$ac_exeext conftest.
$ac_ext
20833 LIBS
=$ac_check_lib_save_LIBS
20835 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20836 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20837 if test $ac_cv_lib_intl_dgettext = yes; then
20838 cat >>confdefs.h
<<_ACEOF
20839 #define HAVE_LIBINTL 1
20842 LIBS
="-lintl $LIBS"
20847 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20848 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20849 if test "${emacs_cv_localtime_cache+set}" = set; then
20850 echo $ECHO_N "(cached) $ECHO_C" >&6
20852 if test x
$ac_cv_func_tzset = xyes
; then
20853 if test "$cross_compiling" = yes; then
20854 # If we have tzset, assume the worst when cross-compiling.
20855 emacs_cv_localtime_cache
=yes
20857 cat >conftest.
$ac_ext <<_ACEOF
20860 cat confdefs.h
>>conftest.
$ac_ext
20861 cat >>conftest.
$ac_ext <<_ACEOF
20862 /* end confdefs.h. */
20864 extern char **environ;
20868 for (to = from = environ; (*to = *from); from++)
20869 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20872 char TZ_GMT0[] = "TZ=GMT0";
20873 char TZ_PST8[] = "TZ=PST8";
20876 time_t now = time ((time_t *) 0);
20877 int hour_GMT0, hour_unset;
20878 if (putenv (TZ_GMT0) != 0)
20880 hour_GMT0 = localtime (&now)->tm_hour;
20882 hour_unset = localtime (&now)->tm_hour;
20883 if (putenv (TZ_PST8) != 0)
20885 if (localtime (&now)->tm_hour == hour_GMT0)
20888 if (localtime (&now)->tm_hour != hour_unset)
20893 rm -f conftest
$ac_exeext
20894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20895 (eval $ac_link) 2>&5
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20900 (eval $ac_try) 2>&5
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); }; }; then
20904 emacs_cv_localtime_cache
=no
20906 echo "$as_me: program exited with status $ac_status" >&5
20907 echo "$as_me: failed program was:" >&5
20908 sed 's/^/| /' conftest.
$ac_ext >&5
20910 ( exit $ac_status )
20911 emacs_cv_localtime_cache
=yes
20913 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20916 # If we lack tzset, report that localtime does not cache TZ,
20917 # since we can't invalidate the cache if we don't have tzset.
20918 emacs_cv_localtime_cache
=no
20921 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20922 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20923 if test $emacs_cv_localtime_cache = yes; then
20925 cat >>confdefs.h
<<\_ACEOF
20926 #define LOCALTIME_CACHE 1
20931 if test "x$HAVE_TIMEVAL" = xyes
; then
20933 for ac_func
in gettimeofday
20935 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20936 echo "$as_me:$LINENO: checking for $ac_func" >&5
20937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20938 if eval "test \"\${$as_ac_var+set}\" = set"; then
20939 echo $ECHO_N "(cached) $ECHO_C" >&6
20941 cat >conftest.
$ac_ext <<_ACEOF
20944 cat confdefs.h
>>conftest.
$ac_ext
20945 cat >>conftest.
$ac_ext <<_ACEOF
20946 /* end confdefs.h. */
20947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20949 #define $ac_func innocuous_$ac_func
20951 /* System header to define __stub macros and hopefully few prototypes,
20952 which can conflict with char $ac_func (); below.
20953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20954 <limits.h> exists even on freestanding compilers. */
20957 # include <limits.h>
20959 # include <assert.h>
20964 /* Override any gcc2 internal prototype to avoid an error. */
20969 /* We use char because int might match the return type of a gcc2
20970 builtin and then its argument prototype would still apply. */
20972 /* The GNU C library defines this for functions which it implements
20973 to always fail with ENOSYS. Some functions are actually named
20974 something starting with __ and the normal name is an alias. */
20975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20978 char (*f) () = $ac_func;
20987 return f != $ac_func;
20992 rm -f conftest.
$ac_objext conftest
$ac_exeext
20993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20994 (eval $ac_link) 2>conftest.er1
20996 grep -v '^ *+' conftest.er1
>conftest.err
20998 cat conftest.err
>&5
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); } &&
21001 { ac_try
='test -z "$ac_c_werror_flag"
21002 || test ! -s conftest.err'
21003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21004 (eval $ac_try) 2>&5
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); }; } &&
21008 { ac_try
='test -s conftest$ac_exeext'
21009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21010 (eval $ac_try) 2>&5
21012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013 (exit $ac_status); }; }; then
21014 eval "$as_ac_var=yes"
21016 echo "$as_me: failed program was:" >&5
21017 sed 's/^/| /' conftest.
$ac_ext >&5
21019 eval "$as_ac_var=no"
21021 rm -f conftest.err conftest.
$ac_objext \
21022 conftest
$ac_exeext conftest.
$ac_ext
21024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21025 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21026 if test `eval echo '${'$as_ac_var'}'` = yes; then
21027 cat >>confdefs.h
<<_ACEOF
21028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21034 if test $ac_cv_func_gettimeofday = yes; then
21035 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21036 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
21037 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21038 echo $ECHO_N "(cached) $ECHO_C" >&6
21040 cat >conftest.
$ac_ext <<_ACEOF
21043 cat confdefs.h
>>conftest.
$ac_ext
21044 cat >>conftest.
$ac_ext <<_ACEOF
21045 /* end confdefs.h. */
21047 #ifdef TIME_WITH_SYS_TIME
21048 #include <sys/time.h>
21051 #ifdef HAVE_SYS_TIME_H
21052 #include <sys/time.h>
21060 struct timeval time;
21061 gettimeofday (&time, 0);
21066 rm -f conftest.
$ac_objext
21067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21068 (eval $ac_compile) 2>conftest.er1
21070 grep -v '^ *+' conftest.er1
>conftest.err
21072 cat conftest.err
>&5
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); } &&
21075 { ac_try
='test -z "$ac_c_werror_flag"
21076 || test ! -s conftest.err'
21077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21078 (eval $ac_try) 2>&5
21080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081 (exit $ac_status); }; } &&
21082 { ac_try
='test -s conftest.$ac_objext'
21083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21084 (eval $ac_try) 2>&5
21086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087 (exit $ac_status); }; }; then
21088 emacs_cv_gettimeofday_two_arguments
=yes
21090 echo "$as_me: failed program was:" >&5
21091 sed 's/^/| /' conftest.
$ac_ext >&5
21093 emacs_cv_gettimeofday_two_arguments
=no
21095 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21097 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21098 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
21099 if test $emacs_cv_gettimeofday_two_arguments = no
; then
21101 cat >>confdefs.h
<<\_ACEOF
21102 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21109 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21110 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21111 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21112 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21113 echo $ECHO_N "(cached) $ECHO_C" >&6
21115 cat >conftest.
$ac_ext <<_ACEOF
21118 cat confdefs.h
>>conftest.
$ac_ext
21119 cat >>conftest.
$ac_ext <<_ACEOF
21120 /* end confdefs.h. */
21121 #include <sys/types.h>
21122 #include <$ac_cv_struct_tm>
21128 static struct tm ac_aggr;
21129 if (ac_aggr.tm_zone)
21135 rm -f conftest.
$ac_objext
21136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21137 (eval $ac_compile) 2>conftest.er1
21139 grep -v '^ *+' conftest.er1
>conftest.err
21141 cat conftest.err
>&5
21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 (exit $ac_status); } &&
21144 { ac_try
='test -z "$ac_c_werror_flag"
21145 || test ! -s conftest.err'
21146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21147 (eval $ac_try) 2>&5
21149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150 (exit $ac_status); }; } &&
21151 { ac_try
='test -s conftest.$ac_objext'
21152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21153 (eval $ac_try) 2>&5
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156 (exit $ac_status); }; }; then
21157 ac_cv_member_struct_tm_tm_zone
=yes
21159 echo "$as_me: failed program was:" >&5
21160 sed 's/^/| /' conftest.
$ac_ext >&5
21162 cat >conftest.
$ac_ext <<_ACEOF
21165 cat confdefs.h
>>conftest.
$ac_ext
21166 cat >>conftest.
$ac_ext <<_ACEOF
21167 /* end confdefs.h. */
21168 #include <sys/types.h>
21169 #include <$ac_cv_struct_tm>
21175 static struct tm ac_aggr;
21176 if (sizeof ac_aggr.tm_zone)
21182 rm -f conftest.
$ac_objext
21183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21184 (eval $ac_compile) 2>conftest.er1
21186 grep -v '^ *+' conftest.er1
>conftest.err
21188 cat conftest.err
>&5
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); } &&
21191 { ac_try
='test -z "$ac_c_werror_flag"
21192 || test ! -s conftest.err'
21193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21194 (eval $ac_try) 2>&5
21196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197 (exit $ac_status); }; } &&
21198 { ac_try
='test -s conftest.$ac_objext'
21199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21200 (eval $ac_try) 2>&5
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); }; }; then
21204 ac_cv_member_struct_tm_tm_zone
=yes
21206 echo "$as_me: failed program was:" >&5
21207 sed 's/^/| /' conftest.
$ac_ext >&5
21209 ac_cv_member_struct_tm_tm_zone
=no
21211 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21213 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21215 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21216 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21217 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21219 cat >>confdefs.h
<<_ACEOF
21220 #define HAVE_STRUCT_TM_TM_ZONE 1
21226 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21228 cat >>confdefs.h
<<\_ACEOF
21229 #define HAVE_TM_ZONE 1
21233 echo "$as_me:$LINENO: checking for tzname" >&5
21234 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21235 if test "${ac_cv_var_tzname+set}" = set; then
21236 echo $ECHO_N "(cached) $ECHO_C" >&6
21238 cat >conftest.
$ac_ext <<_ACEOF
21241 cat confdefs.h
>>conftest.
$ac_ext
21242 cat >>conftest.
$ac_ext <<_ACEOF
21243 /* end confdefs.h. */
21245 #ifndef tzname /* For SGI. */
21246 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21257 rm -f conftest.
$ac_objext conftest
$ac_exeext
21258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21259 (eval $ac_link) 2>conftest.er1
21261 grep -v '^ *+' conftest.er1
>conftest.err
21263 cat conftest.err
>&5
21264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265 (exit $ac_status); } &&
21266 { ac_try
='test -z "$ac_c_werror_flag"
21267 || test ! -s conftest.err'
21268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21269 (eval $ac_try) 2>&5
21271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272 (exit $ac_status); }; } &&
21273 { ac_try
='test -s conftest$ac_exeext'
21274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21275 (eval $ac_try) 2>&5
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); }; }; then
21279 ac_cv_var_tzname
=yes
21281 echo "$as_me: failed program was:" >&5
21282 sed 's/^/| /' conftest.
$ac_ext >&5
21284 ac_cv_var_tzname
=no
21286 rm -f conftest.err conftest.
$ac_objext \
21287 conftest
$ac_exeext conftest.
$ac_ext
21289 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21290 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21291 if test $ac_cv_var_tzname = yes; then
21293 cat >>confdefs.h
<<\_ACEOF
21294 #define HAVE_TZNAME 1
21301 if test "$ac_cv_func_gettimeofday" = yes; then
21302 echo "$as_me:$LINENO: checking for struct timezone" >&5
21303 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
21304 if test "${emacs_cv_struct_timezone+set}" = set; then
21305 echo $ECHO_N "(cached) $ECHO_C" >&6
21307 cat >conftest.
$ac_ext <<_ACEOF
21310 cat confdefs.h
>>conftest.
$ac_ext
21311 cat >>conftest.
$ac_ext <<_ACEOF
21312 /* end confdefs.h. */
21313 #include <sys/time.h>
21317 struct timezone tz;
21322 rm -f conftest.
$ac_objext
21323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21324 (eval $ac_compile) 2>conftest.er1
21326 grep -v '^ *+' conftest.er1
>conftest.err
21328 cat conftest.err
>&5
21329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330 (exit $ac_status); } &&
21331 { ac_try
='test -z "$ac_c_werror_flag"
21332 || test ! -s conftest.err'
21333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21334 (eval $ac_try) 2>&5
21336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337 (exit $ac_status); }; } &&
21338 { ac_try
='test -s conftest.$ac_objext'
21339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21340 (eval $ac_try) 2>&5
21342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343 (exit $ac_status); }; }; then
21344 if test "$cross_compiling" = yes; then
21345 emacs_cv_struct_timezone
=yes
21347 cat >conftest.
$ac_ext <<_ACEOF
21350 cat confdefs.h
>>conftest.
$ac_ext
21351 cat >>conftest.
$ac_ext <<_ACEOF
21352 /* end confdefs.h. */
21354 #ifdef TIME_WITH_SYS_TIME
21355 #include <sys/time.h>
21358 #ifdef HAVE_SYS_TIME_H
21359 #include <sys/time.h>
21365 struct timeval time;
21366 struct timezone dummy;
21367 exit (gettimeofday (&time, &dummy));
21370 rm -f conftest
$ac_exeext
21371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21372 (eval $ac_link) 2>&5
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21377 (eval $ac_try) 2>&5
21379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380 (exit $ac_status); }; }; then
21381 emacs_cv_struct_timezone
=yes
21383 echo "$as_me: program exited with status $ac_status" >&5
21384 echo "$as_me: failed program was:" >&5
21385 sed 's/^/| /' conftest.
$ac_ext >&5
21387 ( exit $ac_status )
21388 emacs_cv_struct_timezone
=no
21390 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21393 echo "$as_me: failed program was:" >&5
21394 sed 's/^/| /' conftest.
$ac_ext >&5
21396 emacs_cv_struct_timezone
=no
21398 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21400 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21401 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
21405 echo "$as_me:$LINENO: checking for socket" >&5
21406 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21407 if test "${ac_cv_func_socket+set}" = set; then
21408 echo $ECHO_N "(cached) $ECHO_C" >&6
21410 cat >conftest.
$ac_ext <<_ACEOF
21413 cat confdefs.h
>>conftest.
$ac_ext
21414 cat >>conftest.
$ac_ext <<_ACEOF
21415 /* end confdefs.h. */
21416 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21418 #define socket innocuous_socket
21420 /* System header to define __stub macros and hopefully few prototypes,
21421 which can conflict with char socket (); below.
21422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21423 <limits.h> exists even on freestanding compilers. */
21426 # include <limits.h>
21428 # include <assert.h>
21433 /* Override any gcc2 internal prototype to avoid an error. */
21438 /* We use char because int might match the return type of a gcc2
21439 builtin and then its argument prototype would still apply. */
21441 /* The GNU C library defines this for functions which it implements
21442 to always fail with ENOSYS. Some functions are actually named
21443 something starting with __ and the normal name is an alias. */
21444 #if defined (__stub_socket) || defined (__stub___socket)
21447 char (*f) () = socket;
21456 return f != socket;
21461 rm -f conftest.
$ac_objext conftest
$ac_exeext
21462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21463 (eval $ac_link) 2>conftest.er1
21465 grep -v '^ *+' conftest.er1
>conftest.err
21467 cat conftest.err
>&5
21468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469 (exit $ac_status); } &&
21470 { ac_try
='test -z "$ac_c_werror_flag"
21471 || test ! -s conftest.err'
21472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21473 (eval $ac_try) 2>&5
21475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476 (exit $ac_status); }; } &&
21477 { ac_try
='test -s conftest$ac_exeext'
21478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21479 (eval $ac_try) 2>&5
21481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482 (exit $ac_status); }; }; then
21483 ac_cv_func_socket
=yes
21485 echo "$as_me: failed program was:" >&5
21486 sed 's/^/| /' conftest.
$ac_ext >&5
21488 ac_cv_func_socket
=no
21490 rm -f conftest.err conftest.
$ac_objext \
21491 conftest
$ac_exeext conftest.
$ac_ext
21493 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21494 echo "${ECHO_T}$ac_cv_func_socket" >&6
21495 if test $ac_cv_func_socket = yes; then
21501 if test $ok_so_far = yes; then
21502 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21503 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21504 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21505 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21506 echo $ECHO_N "(cached) $ECHO_C" >&6
21508 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21509 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21511 # Is the header compilable?
21512 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21513 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21514 cat >conftest.
$ac_ext <<_ACEOF
21517 cat confdefs.h
>>conftest.
$ac_ext
21518 cat >>conftest.
$ac_ext <<_ACEOF
21519 /* end confdefs.h. */
21520 $ac_includes_default
21521 #include <netinet/in.h>
21523 rm -f conftest.
$ac_objext
21524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21525 (eval $ac_compile) 2>conftest.er1
21527 grep -v '^ *+' conftest.er1
>conftest.err
21529 cat conftest.err
>&5
21530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531 (exit $ac_status); } &&
21532 { ac_try
='test -z "$ac_c_werror_flag"
21533 || test ! -s conftest.err'
21534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21535 (eval $ac_try) 2>&5
21537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538 (exit $ac_status); }; } &&
21539 { ac_try
='test -s conftest.$ac_objext'
21540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21541 (eval $ac_try) 2>&5
21543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544 (exit $ac_status); }; }; then
21545 ac_header_compiler
=yes
21547 echo "$as_me: failed program was:" >&5
21548 sed 's/^/| /' conftest.
$ac_ext >&5
21550 ac_header_compiler
=no
21552 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21553 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21554 echo "${ECHO_T}$ac_header_compiler" >&6
21556 # Is the header present?
21557 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21558 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21559 cat >conftest.
$ac_ext <<_ACEOF
21562 cat confdefs.h
>>conftest.
$ac_ext
21563 cat >>conftest.
$ac_ext <<_ACEOF
21564 /* end confdefs.h. */
21565 #include <netinet/in.h>
21567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21568 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21570 grep -v '^ *+' conftest.er1
>conftest.err
21572 cat conftest.err
>&5
21573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574 (exit $ac_status); } >/dev
/null
; then
21575 if test -s conftest.err
; then
21576 ac_cpp_err
=$ac_c_preproc_warn_flag
21577 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21584 if test -z "$ac_cpp_err"; then
21585 ac_header_preproc
=yes
21587 echo "$as_me: failed program was:" >&5
21588 sed 's/^/| /' conftest.
$ac_ext >&5
21590 ac_header_preproc
=no
21592 rm -f conftest.err conftest.
$ac_ext
21593 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21594 echo "${ECHO_T}$ac_header_preproc" >&6
21596 # So? What about this header?
21597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21599 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21600 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21601 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21602 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21603 ac_header_preproc
=yes
21606 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21607 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21608 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21609 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21610 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21611 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21612 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21613 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21614 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21615 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21616 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21617 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21620 ## ------------------------------------------ ##
21621 ## Report this to the AC_PACKAGE_NAME lists. ##
21622 ## ------------------------------------------ ##
21625 sed "s/^/$as_me: WARNING: /" >&2
21628 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21629 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21630 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21631 echo $ECHO_N "(cached) $ECHO_C" >&6
21633 ac_cv_header_netinet_in_h
=$ac_header_preproc
21635 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21636 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21639 if test $ac_cv_header_netinet_in_h = yes; then
21647 if test $ok_so_far = yes; then
21648 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21649 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21650 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21651 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21652 echo $ECHO_N "(cached) $ECHO_C" >&6
21654 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21655 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21657 # Is the header compilable?
21658 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21659 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21660 cat >conftest.
$ac_ext <<_ACEOF
21663 cat confdefs.h
>>conftest.
$ac_ext
21664 cat >>conftest.
$ac_ext <<_ACEOF
21665 /* end confdefs.h. */
21666 $ac_includes_default
21667 #include <arpa/inet.h>
21669 rm -f conftest.
$ac_objext
21670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21671 (eval $ac_compile) 2>conftest.er1
21673 grep -v '^ *+' conftest.er1
>conftest.err
21675 cat conftest.err
>&5
21676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677 (exit $ac_status); } &&
21678 { ac_try
='test -z "$ac_c_werror_flag"
21679 || test ! -s conftest.err'
21680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21681 (eval $ac_try) 2>&5
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); }; } &&
21685 { ac_try
='test -s conftest.$ac_objext'
21686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21687 (eval $ac_try) 2>&5
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); }; }; then
21691 ac_header_compiler
=yes
21693 echo "$as_me: failed program was:" >&5
21694 sed 's/^/| /' conftest.
$ac_ext >&5
21696 ac_header_compiler
=no
21698 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21700 echo "${ECHO_T}$ac_header_compiler" >&6
21702 # Is the header present?
21703 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21704 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21705 cat >conftest.
$ac_ext <<_ACEOF
21708 cat confdefs.h
>>conftest.
$ac_ext
21709 cat >>conftest.
$ac_ext <<_ACEOF
21710 /* end confdefs.h. */
21711 #include <arpa/inet.h>
21713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21714 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21716 grep -v '^ *+' conftest.er1
>conftest.err
21718 cat conftest.err
>&5
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); } >/dev
/null
; then
21721 if test -s conftest.err
; then
21722 ac_cpp_err
=$ac_c_preproc_warn_flag
21723 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21730 if test -z "$ac_cpp_err"; then
21731 ac_header_preproc
=yes
21733 echo "$as_me: failed program was:" >&5
21734 sed 's/^/| /' conftest.
$ac_ext >&5
21736 ac_header_preproc
=no
21738 rm -f conftest.err conftest.
$ac_ext
21739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21740 echo "${ECHO_T}$ac_header_preproc" >&6
21742 # So? What about this header?
21743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21745 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21746 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21747 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21748 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21749 ac_header_preproc
=yes
21752 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21753 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21754 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21755 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21756 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21757 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21758 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21759 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21760 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21761 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21762 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21763 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21766 ## ------------------------------------------ ##
21767 ## Report this to the AC_PACKAGE_NAME lists. ##
21768 ## ------------------------------------------ ##
21771 sed "s/^/$as_me: WARNING: /" >&2
21774 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21775 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21776 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21777 echo $ECHO_N "(cached) $ECHO_C" >&6
21779 ac_cv_header_arpa_inet_h
=$ac_header_preproc
21781 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21782 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21785 if test $ac_cv_header_arpa_inet_h = yes; then
21793 if test $ok_so_far = yes; then
21795 cat >>confdefs.h
<<\_ACEOF
21796 #define HAVE_INET_SOCKETS 1
21802 for ac_header
in sys
/ioctl.h
21804 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21806 echo "$as_me:$LINENO: checking for $ac_header" >&5
21807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21809 echo $ECHO_N "(cached) $ECHO_C" >&6
21811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21812 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21814 # Is the header compilable?
21815 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21816 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21817 cat >conftest.
$ac_ext <<_ACEOF
21820 cat confdefs.h
>>conftest.
$ac_ext
21821 cat >>conftest.
$ac_ext <<_ACEOF
21822 /* end confdefs.h. */
21823 $ac_includes_default
21824 #include <$ac_header>
21826 rm -f conftest.
$ac_objext
21827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21828 (eval $ac_compile) 2>conftest.er1
21830 grep -v '^ *+' conftest.er1
>conftest.err
21832 cat conftest.err
>&5
21833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21834 (exit $ac_status); } &&
21835 { ac_try
='test -z "$ac_c_werror_flag"
21836 || test ! -s conftest.err'
21837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21838 (eval $ac_try) 2>&5
21840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841 (exit $ac_status); }; } &&
21842 { ac_try
='test -s conftest.$ac_objext'
21843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21844 (eval $ac_try) 2>&5
21846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847 (exit $ac_status); }; }; then
21848 ac_header_compiler
=yes
21850 echo "$as_me: failed program was:" >&5
21851 sed 's/^/| /' conftest.
$ac_ext >&5
21853 ac_header_compiler
=no
21855 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21857 echo "${ECHO_T}$ac_header_compiler" >&6
21859 # Is the header present?
21860 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21862 cat >conftest.
$ac_ext <<_ACEOF
21865 cat confdefs.h
>>conftest.
$ac_ext
21866 cat >>conftest.
$ac_ext <<_ACEOF
21867 /* end confdefs.h. */
21868 #include <$ac_header>
21870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21871 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21873 grep -v '^ *+' conftest.er1
>conftest.err
21875 cat conftest.err
>&5
21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877 (exit $ac_status); } >/dev
/null
; then
21878 if test -s conftest.err
; then
21879 ac_cpp_err
=$ac_c_preproc_warn_flag
21880 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21887 if test -z "$ac_cpp_err"; then
21888 ac_header_preproc
=yes
21890 echo "$as_me: failed program was:" >&5
21891 sed 's/^/| /' conftest.
$ac_ext >&5
21893 ac_header_preproc
=no
21895 rm -f conftest.err conftest.
$ac_ext
21896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21897 echo "${ECHO_T}$ac_header_preproc" >&6
21899 # So? What about this header?
21900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21905 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21906 ac_header_preproc
=yes
21909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21912 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21913 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21914 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21915 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21916 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21919 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21920 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21923 ## ------------------------------------------ ##
21924 ## Report this to the AC_PACKAGE_NAME lists. ##
21925 ## ------------------------------------------ ##
21928 sed "s/^/$as_me: WARNING: /" >&2
21931 echo "$as_me:$LINENO: checking for $ac_header" >&5
21932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21934 echo $ECHO_N "(cached) $ECHO_C" >&6
21936 eval "$as_ac_Header=\$ac_header_preproc"
21938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21943 cat >>confdefs.h
<<_ACEOF
21944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21952 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
21954 cat >>confdefs.h
<<\_ACEOF
21955 #define HAVE_AIX_SMT_EXP 1
21960 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21961 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21962 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
21963 echo "$as_me:$LINENO: result: yes" >&5
21964 echo "${ECHO_T}yes" >&6
21966 cat >>confdefs.h
<<\_ACEOF
21967 #define HAVE_DEV_PTMX 1
21971 echo "$as_me:$LINENO: result: no" >&5
21972 echo "${ECHO_T}no" >&6
21975 echo "$as_me:$LINENO: checking for pid_t" >&5
21976 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21977 if test "${ac_cv_type_pid_t+set}" = set; then
21978 echo $ECHO_N "(cached) $ECHO_C" >&6
21980 cat >conftest.
$ac_ext <<_ACEOF
21983 cat confdefs.h
>>conftest.
$ac_ext
21984 cat >>conftest.
$ac_ext <<_ACEOF
21985 /* end confdefs.h. */
21986 $ac_includes_default
21992 if (sizeof (pid_t))
21998 rm -f conftest.
$ac_objext
21999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22000 (eval $ac_compile) 2>conftest.er1
22002 grep -v '^ *+' conftest.er1
>conftest.err
22004 cat conftest.err
>&5
22005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006 (exit $ac_status); } &&
22007 { ac_try
='test -z "$ac_c_werror_flag"
22008 || test ! -s conftest.err'
22009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22010 (eval $ac_try) 2>&5
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); }; } &&
22014 { ac_try
='test -s conftest.$ac_objext'
22015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22016 (eval $ac_try) 2>&5
22018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019 (exit $ac_status); }; }; then
22020 ac_cv_type_pid_t
=yes
22022 echo "$as_me: failed program was:" >&5
22023 sed 's/^/| /' conftest.
$ac_ext >&5
22025 ac_cv_type_pid_t
=no
22027 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22029 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22030 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22031 if test $ac_cv_type_pid_t = yes; then
22035 cat >>confdefs.h
<<_ACEOF
22043 for ac_header
in unistd.h vfork.h
22045 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22047 echo "$as_me:$LINENO: checking for $ac_header" >&5
22048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22050 echo $ECHO_N "(cached) $ECHO_C" >&6
22052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22055 # Is the header compilable?
22056 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22057 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22058 cat >conftest.
$ac_ext <<_ACEOF
22061 cat confdefs.h
>>conftest.
$ac_ext
22062 cat >>conftest.
$ac_ext <<_ACEOF
22063 /* end confdefs.h. */
22064 $ac_includes_default
22065 #include <$ac_header>
22067 rm -f conftest.
$ac_objext
22068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22069 (eval $ac_compile) 2>conftest.er1
22071 grep -v '^ *+' conftest.er1
>conftest.err
22073 cat conftest.err
>&5
22074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22075 (exit $ac_status); } &&
22076 { ac_try
='test -z "$ac_c_werror_flag"
22077 || test ! -s conftest.err'
22078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22079 (eval $ac_try) 2>&5
22081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22082 (exit $ac_status); }; } &&
22083 { ac_try
='test -s conftest.$ac_objext'
22084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22085 (eval $ac_try) 2>&5
22087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22088 (exit $ac_status); }; }; then
22089 ac_header_compiler
=yes
22091 echo "$as_me: failed program was:" >&5
22092 sed 's/^/| /' conftest.
$ac_ext >&5
22094 ac_header_compiler
=no
22096 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22097 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22098 echo "${ECHO_T}$ac_header_compiler" >&6
22100 # Is the header present?
22101 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22102 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22103 cat >conftest.
$ac_ext <<_ACEOF
22106 cat confdefs.h
>>conftest.
$ac_ext
22107 cat >>conftest.
$ac_ext <<_ACEOF
22108 /* end confdefs.h. */
22109 #include <$ac_header>
22111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22112 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
22114 grep -v '^ *+' conftest.er1
>conftest.err
22116 cat conftest.err
>&5
22117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118 (exit $ac_status); } >/dev
/null
; then
22119 if test -s conftest.err
; then
22120 ac_cpp_err
=$ac_c_preproc_warn_flag
22121 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
22128 if test -z "$ac_cpp_err"; then
22129 ac_header_preproc
=yes
22131 echo "$as_me: failed program was:" >&5
22132 sed 's/^/| /' conftest.
$ac_ext >&5
22134 ac_header_preproc
=no
22136 rm -f conftest.err conftest.
$ac_ext
22137 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22138 echo "${ECHO_T}$ac_header_preproc" >&6
22140 # So? What about this header?
22141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22143 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22144 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22146 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22147 ac_header_preproc
=yes
22150 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22151 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22152 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22153 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22154 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22155 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22156 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22157 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22160 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22161 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22164 ## ------------------------------------------ ##
22165 ## Report this to the AC_PACKAGE_NAME lists. ##
22166 ## ------------------------------------------ ##
22169 sed "s/^/$as_me: WARNING: /" >&2
22172 echo "$as_me:$LINENO: checking for $ac_header" >&5
22173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22175 echo $ECHO_N "(cached) $ECHO_C" >&6
22177 eval "$as_ac_Header=\$ac_header_preproc"
22179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22184 cat >>confdefs.h
<<_ACEOF
22185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22194 for ac_func
in fork vfork
22196 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22197 echo "$as_me:$LINENO: checking for $ac_func" >&5
22198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22199 if eval "test \"\${$as_ac_var+set}\" = set"; then
22200 echo $ECHO_N "(cached) $ECHO_C" >&6
22202 cat >conftest.
$ac_ext <<_ACEOF
22205 cat confdefs.h
>>conftest.
$ac_ext
22206 cat >>conftest.
$ac_ext <<_ACEOF
22207 /* end confdefs.h. */
22208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22210 #define $ac_func innocuous_$ac_func
22212 /* System header to define __stub macros and hopefully few prototypes,
22213 which can conflict with char $ac_func (); below.
22214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22215 <limits.h> exists even on freestanding compilers. */
22218 # include <limits.h>
22220 # include <assert.h>
22225 /* Override any gcc2 internal prototype to avoid an error. */
22230 /* We use char because int might match the return type of a gcc2
22231 builtin and then its argument prototype would still apply. */
22233 /* The GNU C library defines this for functions which it implements
22234 to always fail with ENOSYS. Some functions are actually named
22235 something starting with __ and the normal name is an alias. */
22236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22239 char (*f) () = $ac_func;
22248 return f != $ac_func;
22253 rm -f conftest.
$ac_objext conftest
$ac_exeext
22254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22255 (eval $ac_link) 2>conftest.er1
22257 grep -v '^ *+' conftest.er1
>conftest.err
22259 cat conftest.err
>&5
22260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261 (exit $ac_status); } &&
22262 { ac_try
='test -z "$ac_c_werror_flag"
22263 || test ! -s conftest.err'
22264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22265 (eval $ac_try) 2>&5
22267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268 (exit $ac_status); }; } &&
22269 { ac_try
='test -s conftest$ac_exeext'
22270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22271 (eval $ac_try) 2>&5
22273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274 (exit $ac_status); }; }; then
22275 eval "$as_ac_var=yes"
22277 echo "$as_me: failed program was:" >&5
22278 sed 's/^/| /' conftest.
$ac_ext >&5
22280 eval "$as_ac_var=no"
22282 rm -f conftest.err conftest.
$ac_objext \
22283 conftest
$ac_exeext conftest.
$ac_ext
22285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22286 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22287 if test `eval echo '${'$as_ac_var'}'` = yes; then
22288 cat >>confdefs.h
<<_ACEOF
22289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22295 if test "x$ac_cv_func_fork" = xyes
; then
22296 echo "$as_me:$LINENO: checking for working fork" >&5
22297 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
22298 if test "${ac_cv_func_fork_works+set}" = set; then
22299 echo $ECHO_N "(cached) $ECHO_C" >&6
22301 if test "$cross_compiling" = yes; then
22302 ac_cv_func_fork_works
=cross
22304 cat >conftest.
$ac_ext <<_ACEOF
22305 /* By Ruediger Kuhlmann. */
22306 #include <sys/types.h>
22308 # include <unistd.h>
22310 /* Some systems only have a dummy stub for fork() */
22318 rm -f conftest
$ac_exeext
22319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22320 (eval $ac_link) 2>&5
22322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22325 (eval $ac_try) 2>&5
22327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328 (exit $ac_status); }; }; then
22329 ac_cv_func_fork_works
=yes
22331 echo "$as_me: program exited with status $ac_status" >&5
22332 echo "$as_me: failed program was:" >&5
22333 sed 's/^/| /' conftest.
$ac_ext >&5
22335 ( exit $ac_status )
22336 ac_cv_func_fork_works
=no
22338 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22341 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22342 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
22345 ac_cv_func_fork_works
=$ac_cv_func_fork
22347 if test "x$ac_cv_func_fork_works" = xcross
; then
22349 *-*-amigaos* |
*-*-msdosdjgpp*)
22350 # Override, as these systems have only a dummy fork() stub
22351 ac_cv_func_fork_works
=no
22354 ac_cv_func_fork_works
=yes
22357 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22358 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22360 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22361 if test "x$ac_cv_func_vfork" = xyes
; then
22362 echo "$as_me:$LINENO: checking for working vfork" >&5
22363 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
22364 if test "${ac_cv_func_vfork_works+set}" = set; then
22365 echo $ECHO_N "(cached) $ECHO_C" >&6
22367 if test "$cross_compiling" = yes; then
22368 ac_cv_func_vfork_works
=cross
22370 cat >conftest.
$ac_ext <<_ACEOF
22373 cat confdefs.h
>>conftest.
$ac_ext
22374 cat >>conftest.
$ac_ext <<_ACEOF
22375 /* end confdefs.h. */
22376 /* Thanks to Paul Eggert for this test. */
22378 #include <stdlib.h>
22379 #include <sys/types.h>
22380 #include <sys/stat.h>
22381 #include <sys/wait.h>
22383 # include <unistd.h>
22386 # include <vfork.h>
22388 /* On some sparc systems, changes by the child to local and incoming
22389 argument registers are propagated back to the parent. The compiler
22390 is told about this with #include <vfork.h>, but some compilers
22391 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22392 static variable whose address is put into a register that is
22393 clobbered by the vfork. */
22396 sparc_address_test (int arg)
22398 sparc_address_test (arg) int arg;
22401 static pid_t child;
22419 pid_t parent = getpid ();
22422 sparc_address_test (0);
22427 /* Here is another test for sparc vfork register problems. This
22428 test uses lots of local variables, at least as many local
22429 variables as main has allocated so far including compiler
22430 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22431 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22432 reuse the register of parent for one of the local variables,
22433 since it will think that parent can't possibly be used any more
22434 in this routine. Assigning to the local variable will thus
22435 munge parent in the parent process. */
22437 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22438 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22439 /* Convince the compiler that p..p7 are live; otherwise, it might
22440 use the same hardware register for all 8 local variables. */
22441 if (p != p1 || p != p2 || p != p3 || p != p4
22442 || p != p5 || p != p6 || p != p7)
22445 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22446 from child file descriptors. If the child closes a descriptor
22447 before it execs or exits, this munges the parent's descriptor
22448 as well. Test for this by closing stdout in the child. */
22449 _exit(close(fileno(stdout)) != 0);
22454 while (wait(&status) != child)
22457 /* Was there some problem with vforking? */
22460 /* Did the child fail? (This shouldn't happen.) */
22463 /* Did the vfork/compiler bug occur? */
22464 || parent != getpid()
22466 /* Did the file descriptor bug occur? */
22467 || fstat(fileno(stdout), &st) != 0
22472 rm -f conftest
$ac_exeext
22473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22474 (eval $ac_link) 2>&5
22476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22479 (eval $ac_try) 2>&5
22481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482 (exit $ac_status); }; }; then
22483 ac_cv_func_vfork_works
=yes
22485 echo "$as_me: program exited with status $ac_status" >&5
22486 echo "$as_me: failed program was:" >&5
22487 sed 's/^/| /' conftest.
$ac_ext >&5
22489 ( exit $ac_status )
22490 ac_cv_func_vfork_works
=no
22492 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22495 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22496 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22499 if test "x$ac_cv_func_fork_works" = xcross
; then
22500 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22501 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22502 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22505 if test "x$ac_cv_func_vfork_works" = xyes
; then
22507 cat >>confdefs.h
<<\_ACEOF
22508 #define HAVE_WORKING_VFORK 1
22513 cat >>confdefs.h
<<\_ACEOF
22518 if test "x$ac_cv_func_fork_works" = xyes
; then
22520 cat >>confdefs.h
<<\_ACEOF
22521 #define HAVE_WORKING_FORK 1
22527 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22528 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
22529 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22530 echo $ECHO_N "(cached) $ECHO_C" >&6
22532 cat >conftest.
$ac_ext <<_ACEOF
22535 cat confdefs.h
>>conftest.
$ac_ext
22536 cat >>conftest.
$ac_ext <<_ACEOF
22537 /* end confdefs.h. */
22538 #include <langinfo.h>
22542 char* cs = nl_langinfo(CODESET);
22547 rm -f conftest.
$ac_objext conftest
$ac_exeext
22548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22549 (eval $ac_link) 2>conftest.er1
22551 grep -v '^ *+' conftest.er1
>conftest.err
22553 cat conftest.err
>&5
22554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555 (exit $ac_status); } &&
22556 { ac_try
='test -z "$ac_c_werror_flag"
22557 || test ! -s conftest.err'
22558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22559 (eval $ac_try) 2>&5
22561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562 (exit $ac_status); }; } &&
22563 { ac_try
='test -s conftest$ac_exeext'
22564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22565 (eval $ac_try) 2>&5
22567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568 (exit $ac_status); }; }; then
22569 emacs_cv_langinfo_codeset
=yes
22571 echo "$as_me: failed program was:" >&5
22572 sed 's/^/| /' conftest.
$ac_ext >&5
22574 emacs_cv_langinfo_codeset
=no
22576 rm -f conftest.err conftest.
$ac_objext \
22577 conftest
$ac_exeext conftest.
$ac_ext
22580 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22581 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22582 if test $emacs_cv_langinfo_codeset = yes; then
22584 cat >>confdefs.h
<<\_ACEOF
22585 #define HAVE_LANGINFO_CODESET 1
22590 echo "$as_me:$LINENO: checking for size_t" >&5
22591 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22592 if test "${ac_cv_type_size_t+set}" = set; then
22593 echo $ECHO_N "(cached) $ECHO_C" >&6
22595 cat >conftest.
$ac_ext <<_ACEOF
22598 cat confdefs.h
>>conftest.
$ac_ext
22599 cat >>conftest.
$ac_ext <<_ACEOF
22600 /* end confdefs.h. */
22601 $ac_includes_default
22607 if (sizeof (size_t))
22613 rm -f conftest.
$ac_objext
22614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22615 (eval $ac_compile) 2>conftest.er1
22617 grep -v '^ *+' conftest.er1
>conftest.err
22619 cat conftest.err
>&5
22620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621 (exit $ac_status); } &&
22622 { ac_try
='test -z "$ac_c_werror_flag"
22623 || test ! -s conftest.err'
22624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22625 (eval $ac_try) 2>&5
22627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628 (exit $ac_status); }; } &&
22629 { ac_try
='test -s conftest.$ac_objext'
22630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22631 (eval $ac_try) 2>&5
22633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634 (exit $ac_status); }; }; then
22635 ac_cv_type_size_t
=yes
22637 echo "$as_me: failed program was:" >&5
22638 sed 's/^/| /' conftest.
$ac_ext >&5
22640 ac_cv_type_size_t
=no
22642 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22644 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22645 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22646 if test $ac_cv_type_size_t = yes; then
22648 cat >>confdefs.h
<<_ACEOF
22649 #define HAVE_SIZE_T 1
22656 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22657 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22658 if test "${ac_cv_type_mbstate_t+set}" = set; then
22659 echo $ECHO_N "(cached) $ECHO_C" >&6
22661 cat >conftest.
$ac_ext <<_ACEOF
22664 cat confdefs.h
>>conftest.
$ac_ext
22665 cat >>conftest.
$ac_ext <<_ACEOF
22666 /* end confdefs.h. */
22667 $ac_includes_default
22668 # include <wchar.h>
22672 mbstate_t x; return sizeof x;
22677 rm -f conftest.
$ac_objext
22678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22679 (eval $ac_compile) 2>conftest.er1
22681 grep -v '^ *+' conftest.er1
>conftest.err
22683 cat conftest.err
>&5
22684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685 (exit $ac_status); } &&
22686 { ac_try
='test -z "$ac_c_werror_flag"
22687 || 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 ac_cv_type_mbstate_t
=yes
22701 echo "$as_me: failed program was:" >&5
22702 sed 's/^/| /' conftest.
$ac_ext >&5
22704 ac_cv_type_mbstate_t
=no
22706 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22708 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22709 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22710 if test $ac_cv_type_mbstate_t = yes; then
22712 cat >>confdefs.h
<<\_ACEOF
22713 #define HAVE_MBSTATE_T 1
22718 cat >>confdefs.h
<<\_ACEOF
22719 #define mbstate_t int
22724 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22725 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22726 if test "${emacs_cv_c_restrict+set}" = set; then
22727 echo $ECHO_N "(cached) $ECHO_C" >&6
22729 cat >conftest.
$ac_ext <<_ACEOF
22732 cat confdefs.h
>>conftest.
$ac_ext
22733 cat >>conftest.
$ac_ext <<_ACEOF
22734 /* end confdefs.h. */
22735 void fred (int *restrict x);
22744 rm -f conftest.
$ac_objext
22745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22746 (eval $ac_compile) 2>conftest.er1
22748 grep -v '^ *+' conftest.er1
>conftest.err
22750 cat conftest.err
>&5
22751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752 (exit $ac_status); } &&
22753 { ac_try
='test -z "$ac_c_werror_flag"
22754 || test ! -s conftest.err'
22755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22756 (eval $ac_try) 2>&5
22758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759 (exit $ac_status); }; } &&
22760 { ac_try
='test -s conftest.$ac_objext'
22761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22762 (eval $ac_try) 2>&5
22764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22765 (exit $ac_status); }; }; then
22766 emacs_cv_c_restrict
=yes
22768 echo "$as_me: failed program was:" >&5
22769 sed 's/^/| /' conftest.
$ac_ext >&5
22771 cat >conftest.
$ac_ext <<_ACEOF
22774 cat confdefs.h
>>conftest.
$ac_ext
22775 cat >>conftest.
$ac_ext <<_ACEOF
22776 /* end confdefs.h. */
22777 void fred (int *__restrict x);
22786 rm -f conftest.
$ac_objext
22787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22788 (eval $ac_compile) 2>conftest.er1
22790 grep -v '^ *+' conftest.er1
>conftest.err
22792 cat conftest.err
>&5
22793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); } &&
22795 { ac_try
='test -z "$ac_c_werror_flag"
22796 || test ! -s conftest.err'
22797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22798 (eval $ac_try) 2>&5
22800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801 (exit $ac_status); }; } &&
22802 { ac_try
='test -s conftest.$ac_objext'
22803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22804 (eval $ac_try) 2>&5
22806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807 (exit $ac_status); }; }; then
22808 emacs_cv_c_restrict
=__restrict
22810 echo "$as_me: failed program was:" >&5
22811 sed 's/^/| /' conftest.
$ac_ext >&5
22813 emacs_cv_c_restrict
=no
22815 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22817 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22819 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22820 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22821 case "$emacs_cv_c_restrict" in
22822 yes) emacs_restrict
=restrict
;;
22823 no
) emacs_restrict
="";;
22824 *) emacs_restrict
="$emacs_cv_c_restrict";;
22826 if test "$emacs_restrict" != __restrict
; then
22828 cat >>confdefs.h
<<_ACEOF
22829 #define __restrict $emacs_restrict
22834 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22835 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22836 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22837 echo $ECHO_N "(cached) $ECHO_C" >&6
22839 cat >conftest.
$ac_ext <<_ACEOF
22842 cat confdefs.h
>>conftest.
$ac_ext
22843 cat >>conftest.
$ac_ext <<_ACEOF
22844 /* end confdefs.h. */
22845 void fred (int x[__restrict]);
22854 rm -f conftest.
$ac_objext
22855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22856 (eval $ac_compile) 2>conftest.er1
22858 grep -v '^ *+' conftest.er1
>conftest.err
22860 cat conftest.err
>&5
22861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22862 (exit $ac_status); } &&
22863 { ac_try
='test -z "$ac_c_werror_flag"
22864 || test ! -s conftest.err'
22865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22866 (eval $ac_try) 2>&5
22868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869 (exit $ac_status); }; } &&
22870 { ac_try
='test -s conftest.$ac_objext'
22871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22872 (eval $ac_try) 2>&5
22874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22875 (exit $ac_status); }; }; then
22876 emacs_cv_c_restrict_arr
=yes
22878 echo "$as_me: failed program was:" >&5
22879 sed 's/^/| /' conftest.
$ac_ext >&5
22881 emacs_cv_c_restrict_arr
=no
22883 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22885 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22886 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22887 if test "$emacs_cv_c_restrict_arr" = yes; then
22889 cat >>confdefs.h
<<\_ACEOF
22890 #define __restrict_arr __restrict
22897 # Set up the CFLAGS for real compilation, so we can substitute it.
22898 CFLAGS
="$REAL_CFLAGS"
22899 CPPFLAGS
="$REAL_CPPFLAGS"
22901 #### Find out which version of Emacs this is.
22902 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22903 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22904 if test x
"${version}" = x
; then
22905 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22906 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22907 { (exit 1); exit 1; }; }
22910 ### Specify what sort of things we'll be editing into Makefile and config.h.
22911 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22947 cat >>confdefs.h
<<_ACEOF
22948 #define EMACS_CONFIGURATION "${canonical}"
22952 cat >>confdefs.h
<<_ACEOF
22953 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22957 cat >>confdefs.h
<<_ACEOF
22958 #define config_machfile "${machfile}"
22962 cat >>confdefs.h
<<_ACEOF
22963 #define config_opsysfile "${opsysfile}"
22967 cat >>confdefs.h
<<_ACEOF
22968 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22972 cat >>confdefs.h
<<_ACEOF
22973 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22977 cat >>confdefs.h
<<_ACEOF
22978 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22982 cat >>confdefs.h
<<_ACEOF
22983 #define UNEXEC_SRC ${UNEXEC_SRC}
22987 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22989 cat >>confdefs.h
<<\_ACEOF
22990 #define HAVE_X_WINDOWS 1
22994 if test "${USE_X_TOOLKIT}" != "none" ; then
22996 cat >>confdefs.h
<<\_ACEOF
22997 #define USE_X_TOOLKIT 1
23001 if test "${HAVE_X11}" = "yes" ; then
23003 cat >>confdefs.h
<<\_ACEOF
23008 if test "${HAVE_XFREE386}" = "yes" ; then
23010 cat >>confdefs.h
<<\_ACEOF
23011 #define HAVE_XFREE386 1
23015 if test "${HAVE_MENUS}" = "yes" ; then
23017 cat >>confdefs.h
<<\_ACEOF
23018 #define HAVE_MENUS 1
23022 if test "${GNU_MALLOC}" = "yes" ; then
23024 cat >>confdefs.h
<<\_ACEOF
23025 #define GNU_MALLOC 1
23029 if test "${REL_ALLOC}" = "yes" ; then
23031 cat >>confdefs.h
<<\_ACEOF
23032 #define REL_ALLOC 1
23041 #### Report on what we decided to do.
23042 #### Report GTK as a toolkit, even if it doesn't use Xt.
23043 #### It makes printing result more understandable as using GTK sets
23044 #### toolkit_scroll_bars to yes by default.
23045 if test "${HAVE_GTK}" = "yes"; then
23050 Configured for \`${canonical}'.
23052 Where should the build process find the source code? ${srcdir}
23053 What operating system and machine description files should Emacs use?
23054 \`${opsysfile}' and \`${machfile}'
23055 What compiler should emacs be built with? ${CC} ${CFLAGS}
23056 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23057 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23058 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23059 What window system should Emacs use? ${window_system}
23060 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23062 if test -n "${x_includes}"; then
23063 echo " Where do we find X Windows header files? ${x_includes}"
23065 echo " Where do we find X Windows header files? Standard dirs"
23067 if test -n "${x_libraries}"; then
23068 echo " Where do we find X Windows libraries? ${x_libraries}"
23070 echo " Where do we find X Windows libraries? Standard dirs"
23073 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23074 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23075 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23076 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23077 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23078 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23079 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23082 if test $USE_XASSERTS = yes; then
23083 echo " Compiling with asserts turned on."
23084 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
23090 # Remove any trailing slashes in these variables.
23091 test "${prefix}" != NONE
&&
23092 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23093 test "${exec_prefix}" != NONE
&&
23094 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23096 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23097 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23098 ## from Makefile.c can correctly provide the arg `-traditional' to the
23101 cat >conftest.
$ac_ext <<_ACEOF
23104 cat confdefs.h
>>conftest.
$ac_ext
23105 cat >>conftest.
$ac_ext <<_ACEOF
23106 /* end confdefs.h. */
23109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23110 $EGREP "yes..yes" >/dev
/null
2>&1; then
23111 CPP_NEED_TRADITIONAL
=no
23113 CPP_NEED_TRADITIONAL
=yes
23118 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"
23119 ac_config_commands
="$ac_config_commands default"
23120 cat >confcache
<<\_ACEOF
23121 # This file is a shell script that caches the results of configure
23122 # tests run on this system so they can be shared between configure
23123 # scripts and configure runs, see configure's option --config-cache.
23124 # It is not useful on other systems. If it contains results you don't
23125 # want to keep, you may remove or edit it.
23127 # config.status only pays attention to the cache file if you give it
23128 # the --recheck option to rerun configure.
23130 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23131 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23132 # following values.
23136 # The following way of writing the cache mishandles newlines in values,
23137 # but we know of no workaround that is simple, portable, and efficient.
23138 # So, don't put newlines in cache variables' values.
23139 # Ultrix sh set writes to stderr and can't be redirected directly,
23140 # and sets the high bit in the cache file unless we assign to the vars.
23143 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23145 # `set' does not quote correctly, so add quotes (double-quote
23146 # substitution turns \\\\ into \\, and sed turns \\ into \).
23149 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23152 # `set' quotes correctly as required by POSIX, so do not add quotes.
23154 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23161 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23163 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23165 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
23166 if test -w $cache_file; then
23167 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23168 cat confcache
>$cache_file
23170 echo "not updating unwritable cache $cache_file"
23175 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
23176 # Let make expand exec_prefix.
23177 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
23179 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23180 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23181 # trailing colons and then remove the whole line if VPATH becomes empty
23182 # (actually we leave an empty line to preserve line numbers).
23183 if test "x$srcdir" = x.
; then
23184 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23185 s/:*\$(srcdir):*/:/;
23186 s/:*\${srcdir}:*/:/;
23188 s/^\([^=]*=[ ]*\):*/\1/;
23194 DEFS
=-DHAVE_CONFIG_H
23198 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
23199 # 1. Remove the extension, and $U if already installed.
23200 ac_i
=`echo "$ac_i" |
23201 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23203 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
23204 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
23206 LIBOBJS
=$ac_libobjs
23208 LTLIBOBJS
=$ac_ltlibobjs
23212 : ${CONFIG_STATUS=./config.status}
23213 ac_clean_files_save
=$ac_clean_files
23214 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
23215 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23216 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23217 cat >$CONFIG_STATUS <<_ACEOF
23219 # Generated by $as_me.
23220 # Run this file to recreate the current configuration.
23221 # Compiler output produced by configure, useful for debugging
23222 # configure, is in config.log if it exists.
23225 ac_cs_recheck=false
23227 SHELL=\${CONFIG_SHELL-$SHELL}
23230 cat >>$CONFIG_STATUS <<\_ACEOF
23231 ## --------------------- ##
23232 ## M4sh Initialization. ##
23233 ## --------------------- ##
23235 # Be Bourne compatible
23236 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
23239 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23240 # is contrary to our usage. Disable this feature.
23241 alias -g '${1+"$@"}'='"$@"'
23242 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
23245 DUALCASE
=1; export DUALCASE
# for MKS sh
23247 # Support unset when possible.
23248 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23255 # Work around bugs in pre-3.0 UWIN ksh.
23256 $as_unset ENV MAIL MAILPATH
23263 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23264 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23265 LC_TELEPHONE LC_TIME
23267 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23268 eval $as_var=C
; export $as_var
23274 # Required to use basename.
23275 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23281 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
23282 as_basename
=basename
23288 # Name of the executable.
23289 as_me
=`$as_basename "$0" ||
23290 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23291 X"$0" : 'X\(//\)$' \| \
23292 X"$0" : 'X\(/\)$' \| \
23293 . : '\(.\)' 2>/dev/null ||
23295 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23296 /^X\/\(\/\/\)$/{ s//\1/; q; }
23297 /^X\/\(\/\).*/{ s//\1/; q; }
23301 # PATH needs CR, and LINENO needs CR and PATH.
23302 # Avoid depending upon Character Ranges.
23303 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
23304 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23305 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
23306 as_cr_digits
='0123456789'
23307 as_cr_alnum
=$as_cr_Letters$as_cr_digits
23309 # The user is always right.
23310 if test "${PATH_SEPARATOR+set}" != set; then
23311 echo "#! /bin/sh" >conf$$.sh
23312 echo "exit 0" >>conf$$.sh
23314 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23323 as_lineno_1
=$LINENO
23324 as_lineno_2
=$LINENO
23325 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
23326 test "x$as_lineno_1" != "x$as_lineno_2" &&
23327 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
23328 # Find who we are. Look in the path if we contain no path at all
23331 *[\\/]* ) as_myself
=$0 ;;
23332 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23333 for as_dir
in $PATH
23336 test -z "$as_dir" && as_dir
=.
23337 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23342 # We did not find ourselves, most probably we were run as `sh COMMAND'
23343 # in which case we are not to be found in the path.
23344 if test "x$as_myself" = x
; then
23347 if test ! -f "$as_myself"; then
23348 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23349 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23350 { (exit 1); exit 1; }; }
23352 case $CONFIG_SHELL in
23354 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23355 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
23358 test -z "$as_dir" && as_dir
=.
23359 for as_base
in sh bash ksh sh5
; do
23362 if ("$as_dir/$as_base" -c '
23363 as_lineno_1=$LINENO
23364 as_lineno_2=$LINENO
23365 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23366 test "x$as_lineno_1" != "x$as_lineno_2" &&
23367 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
23368 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
23369 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
23370 CONFIG_SHELL
=$as_dir/$as_base
23371 export CONFIG_SHELL
23372 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23380 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23381 # uniformly replaced by the line number. The first 'sed' inserts a
23382 # line-number line before each line; the second 'sed' does the real
23383 # work. The second script uses 'N' to pair each line-number line
23384 # with the numbered line, and appends trailing '-' during
23385 # substitution so that $LINENO is not a special case at line end.
23386 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23387 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23388 sed '=' <$as_myself |
23393 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23396 s,^['$as_cr_digits']*\n,,
23397 ' >$as_me.lineno
&&
23398 chmod +x
$as_me.lineno ||
23399 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23400 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23401 { (exit 1); exit 1; }; }
23403 # Don't try to exec as it changes $[0], causing all sort of problems
23404 # (the dirname of $[0] is not the place where we might find the
23405 # original and so on. Autoconf is especially sensible to this).
23407 # Exit status is that of the last command.
23412 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23413 *c
*,-n*) ECHO_N
= ECHO_C
='
23415 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
23416 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
23419 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23425 rm -f conf$$ conf$$.exe conf$$.
file
23427 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23428 # We could just check for DJGPP; but this test a) works b) is more generic
23429 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23430 if test -f conf$$.exe
; then
23431 # Don't use ln at all; we don't have any links
23436 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23441 rm -f conf$$ conf$$.exe conf$$.
file
23443 if mkdir
-p .
2>/dev
/null
; then
23446 test -d .
/-p && rmdir .
/-p
23450 as_executable_p
="test -f"
23452 # Sed expression to map a string onto a valid CPP name.
23453 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23455 # Sed expression to map a string onto a valid variable name.
23456 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23460 # We need space, tab and new line, in precisely that order.
23470 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23471 # report actual input values of CONFIG_FILES etc. instead of their
23472 # values after options handling. Logging --version etc. is OK.
23476 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23477 ## Running $as_me. ##
23482 This file was extended by $as_me, which was
23483 generated by GNU Autoconf 2.59. Invocation command line was
23485 CONFIG_FILES = $CONFIG_FILES
23486 CONFIG_HEADERS = $CONFIG_HEADERS
23487 CONFIG_LINKS = $CONFIG_LINKS
23488 CONFIG_COMMANDS = $CONFIG_COMMANDS
23492 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23496 # Files that config.status was made for.
23497 if test -n "$ac_config_files"; then
23498 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23501 if test -n "$ac_config_headers"; then
23502 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23505 if test -n "$ac_config_links"; then
23506 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23509 if test -n "$ac_config_commands"; then
23510 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23513 cat >>$CONFIG_STATUS <<\_ACEOF
23516 \`$as_me' instantiates files from templates according to the
23517 current configuration.
23519 Usage: $0 [OPTIONS] [FILE]...
23521 -h, --help print this help, then exit
23522 -V, --version print version number, then exit
23523 -q, --quiet do not print progress messages
23524 -d, --debug don't remove temporary files
23525 --recheck update $as_me by reconfiguring in the same conditions
23526 --file=FILE[:TEMPLATE]
23527 instantiate the configuration file FILE
23528 --header=FILE[:TEMPLATE]
23529 instantiate the configuration header FILE
23531 Configuration files:
23534 Configuration headers:
23537 Configuration commands:
23540 Report bugs to <bug-autoconf@gnu.org>."
23543 cat >>$CONFIG_STATUS <<_ACEOF
23546 configured by $0, generated by GNU Autoconf 2.59,
23547 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23549 Copyright (C) 2003 Free Software Foundation, Inc.
23550 This config.status script is free software; the Free Software Foundation
23551 gives unlimited permission to copy, distribute and modify it."
23556 cat >>$CONFIG_STATUS <<\_ACEOF
23557 # If no file are specified by the user, then we need to provide default
23558 # value. By we need to know if files were specified by the user.
23564 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
23565 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
23573 *) # This is not an option, so the user has probably given explicit
23576 ac_need_defaults
=false
;;
23580 # Handling of the options.
23582 cat >>$CONFIG_STATUS <<\_ACEOF
23583 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23585 --version |
--vers* |
-V )
23586 echo "$ac_cs_version"; exit 0 ;;
23588 # Conflict between --help and --header
23589 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23590 Try \`$0 --help' for more information." >&5
23591 echo "$as_me: error: ambiguous option: $1
23592 Try \`$0 --help' for more information." >&2;}
23593 { (exit 1); exit 1; }; };;
23594 --help |
--hel |
-h )
23595 echo "$ac_cs_usage"; exit 0 ;;
23596 --debug |
--d* |
-d )
23598 --file |
--fil |
--fi |
--f )
23600 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23601 ac_need_defaults
=false
;;
23602 --header |
--heade |
--head |
--hea )
23604 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23605 ac_need_defaults
=false
;;
23606 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23607 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23610 # This is an error.
23611 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23612 Try \`$0 --help' for more information." >&5
23613 echo "$as_me: error: unrecognized option: $1
23614 Try \`$0 --help' for more information." >&2;}
23615 { (exit 1); exit 1; }; } ;;
23617 *) ac_config_targets
="$ac_config_targets $1" ;;
23623 ac_configure_extra_args
=
23625 if $ac_cs_silent; then
23627 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23631 cat >>$CONFIG_STATUS <<_ACEOF
23632 if \$ac_cs_recheck; then
23633 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23634 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23639 cat >>$CONFIG_STATUS <<_ACEOF
23641 # INIT-COMMANDS section.
23644 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23650 cat >>$CONFIG_STATUS <<\_ACEOF
23651 for ac_config_target
in $ac_config_targets
23653 case "$ac_config_target" in
23654 # Handling of arguments.
23655 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23656 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23657 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23658 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23659 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23660 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23661 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23662 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23663 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23664 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23665 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23666 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23667 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23668 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23669 { (exit 1); exit 1; }; };;
23673 # If the user did not use the arguments to specify the items to instantiate,
23674 # then the envvar interface is used. Set only those that are not.
23675 # We use the long form for the default assignment because of an extremely
23676 # bizarre bug on SunOS 4.1.3.
23677 if $ac_need_defaults; then
23678 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23679 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23680 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23683 # Have a temporary directory for convenience. Make it in the build tree
23684 # simply because there is no reason to put it here, and in addition,
23685 # creating and moving files from /tmp can sometimes cause problems.
23686 # Create a temporary directory, and hook for its removal unless debugging.
23689 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23690 trap '{ (exit 1); exit 1; }' 1 2 13 15
23693 # Create a (secure) tmp directory for tmp files.
23696 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23697 test -n "$tmp" && test -d "$tmp"
23700 tmp
=.
/confstat$$
-$RANDOM
23701 (umask 077 && mkdir
$tmp)
23704 echo "$me: cannot create a temporary directory in ." >&2
23705 { (exit 1); exit 1; }
23710 cat >>$CONFIG_STATUS <<_ACEOF
23713 # CONFIG_FILES section.
23716 # No need to generate the scripts if there are no CONFIG_FILES.
23717 # This happens for instance when ./config.status config.h
23718 if test -n "\$CONFIG_FILES"; then
23719 # Protect against being on the right side of a sed subst in config.status.
23720 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23721 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23722 s,@SHELL@,$SHELL,;t t
23723 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23724 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23725 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23726 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23727 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23728 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23729 s,@exec_prefix@,$exec_prefix,;t t
23730 s,@prefix@,$prefix,;t t
23731 s,@program_transform_name@,$program_transform_name,;t t
23732 s,@bindir@,$bindir,;t t
23733 s,@sbindir@,$sbindir,;t t
23734 s,@libexecdir@,$libexecdir,;t t
23735 s,@datadir@,$datadir,;t t
23736 s,@sysconfdir@,$sysconfdir,;t t
23737 s,@sharedstatedir@,$sharedstatedir,;t t
23738 s,@localstatedir@,$localstatedir,;t t
23739 s,@libdir@,$libdir,;t t
23740 s,@includedir@,$includedir,;t t
23741 s,@oldincludedir@,$oldincludedir,;t t
23742 s,@infodir@,$infodir,;t t
23743 s,@mandir@,$mandir,;t t
23744 s,@build_alias@,$build_alias,;t t
23745 s,@host_alias@,$host_alias,;t t
23746 s,@target_alias@,$target_alias,;t t
23747 s,@DEFS@,$DEFS,;t t
23748 s,@ECHO_C@,$ECHO_C,;t t
23749 s,@ECHO_N@,$ECHO_N,;t t
23750 s,@ECHO_T@,$ECHO_T,;t t
23751 s,@LIBS@,$LIBS,;t t
23752 s,@MAINT@,$MAINT,;t t
23753 s,@build@,$build,;t t
23754 s,@build_cpu@,$build_cpu,;t t
23755 s,@build_vendor@,$build_vendor,;t t
23756 s,@build_os@,$build_os,;t t
23757 s,@host@,$host,;t t
23758 s,@host_cpu@,$host_cpu,;t t
23759 s,@host_vendor@,$host_vendor,;t t
23760 s,@host_os@,$host_os,;t t
23762 s,@CFLAGS@,$CFLAGS,;t t
23763 s,@LDFLAGS@,$LDFLAGS,;t t
23764 s,@CPPFLAGS@,$CPPFLAGS,;t t
23765 s,@ac_ct_CC@,$ac_ct_CC,;t t
23766 s,@EXEEXT@,$EXEEXT,;t t
23767 s,@OBJEXT@,$OBJEXT,;t t
23769 s,@EGREP@,$EGREP,;t t
23770 s,@LN_S@,$LN_S,;t t
23771 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23772 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23773 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23774 s,@RANLIB@,$RANLIB,;t t
23775 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23776 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23777 s,@GZIP_PROG@,$GZIP_PROG,;t t
23778 s,@LIBSOUND@,$LIBSOUND,;t t
23779 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23780 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
23781 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
23782 s,@CFLAGS_SOUND@,$CFLAGS_SOUND,;t t
23783 s,@SET_MAKE@,$SET_MAKE,;t t
23784 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23785 s,@GTK_LIBS@,$GTK_LIBS,;t t
23786 s,@ALLOCA@,$ALLOCA,;t t
23787 s,@liblockfile@,$liblockfile,;t t
23788 s,@LIBOBJS@,$LIBOBJS,;t t
23789 s,@NEED_SETGID@,$NEED_SETGID,;t t
23790 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23791 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23792 s,@GETOPT_H@,$GETOPT_H,;t t
23793 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23794 s,@version@,$version,;t t
23795 s,@configuration@,$configuration,;t t
23796 s,@canonical@,$canonical,;t t
23797 s,@srcdir@,$srcdir,;t t
23798 s,@lispdir@,$lispdir,;t t
23799 s,@locallisppath@,$locallisppath,;t t
23800 s,@lisppath@,$lisppath,;t t
23801 s,@x_default_search_path@,$x_default_search_path,;t t
23802 s,@etcdir@,$etcdir,;t t
23803 s,@archlibdir@,$archlibdir,;t t
23804 s,@docdir@,$docdir,;t t
23805 s,@bitmapdir@,$bitmapdir,;t t
23806 s,@gamedir@,$gamedir,;t t
23807 s,@gameuser@,$gameuser,;t t
23808 s,@c_switch_system@,$c_switch_system,;t t
23809 s,@c_switch_machine@,$c_switch_machine,;t t
23810 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23811 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23812 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23813 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23814 s,@machfile@,$machfile,;t t
23815 s,@opsysfile@,$opsysfile,;t t
23816 s,@carbon_appdir@,$carbon_appdir,;t t
23817 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23822 cat >>$CONFIG_STATUS <<\_ACEOF
23823 # Split the substitutions into bite-sized pieces for seds with
23824 # small command number limits, like on Digital OSF/1 and HP-UX.
23825 ac_max_sed_lines
=48
23826 ac_sed_frag
=1 # Number of current file.
23827 ac_beg
=1 # First line for current file.
23828 ac_end
=$ac_max_sed_lines # Line after last line for current file.
23831 while $ac_more_lines; do
23832 if test $ac_beg -gt 1; then
23833 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23835 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23837 if test ! -s $tmp/subs.frag
; then
23838 ac_more_lines
=false
23840 # The purpose of the label and of the branching condition is to
23841 # speed up the sed processing (if there are no `@' at all, there
23842 # is no need to browse any of the substitutions).
23843 # These are the two extra sed commands mentioned above.
23845 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
23846 if test -z "$ac_sed_cmds"; then
23847 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
23849 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23851 ac_sed_frag
=`expr $ac_sed_frag + 1`
23853 ac_end
=`expr $ac_end + $ac_max_sed_lines`
23856 if test -z "$ac_sed_cmds"; then
23859 fi # test -n "$CONFIG_FILES"
23862 cat >>$CONFIG_STATUS <<\_ACEOF
23863 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
23864 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23866 - |
*:- |
*:-:* ) # input from stdin
23868 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23869 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23870 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23871 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23872 * ) ac_file_in
=$ac_file.
in ;;
23875 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23876 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23877 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23878 X"$ac_file" : 'X\(//\)[^/]' \| \
23879 X"$ac_file" : 'X\(//\)$' \| \
23880 X"$ac_file" : 'X\(/\)' \| \
23881 . : '\(.\)' 2>/dev/null ||
23883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23885 /^X\(\/\/\)$/{ s//\1/; q; }
23886 /^X\(\/\).*/{ s//\1/; q; }
23888 { if $as_mkdir_p; then
23893 while test ! -d "$as_dir"; do
23894 as_dirs
="$as_dir $as_dirs"
23895 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23896 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23897 X"$as_dir" : 'X\(//\)[^/]' \| \
23898 X"$as_dir" : 'X\(//\)$' \| \
23899 X"$as_dir" : 'X\(/\)' \| \
23900 . : '\(.\)' 2>/dev/null ||
23902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23903 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23904 /^X\(\/\/\)$/{ s//\1/; q; }
23905 /^X\(\/\).*/{ s//\1/; q; }
23908 test ! -n "$as_dirs" || mkdir
$as_dirs
23909 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23910 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23911 { (exit 1); exit 1; }; }; }
23915 if test "$ac_dir" != .
; then
23916 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23917 # A "../" for each directory in $ac_dir_suffix.
23918 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23920 ac_dir_suffix
= ac_top_builddir
=
23924 .
) # No --srcdir option. We are building in place.
23926 if test -z "$ac_top_builddir"; then
23929 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23931 [\\/]* | ?
:[\\/]* ) # Absolute path.
23932 ac_srcdir
=$srcdir$ac_dir_suffix;
23933 ac_top_srcdir
=$srcdir ;;
23934 *) # Relative path.
23935 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23936 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23939 # Do not use `cd foo && pwd` to compute absolute paths, because
23940 # the directories may not exist.
23942 .
) ac_abs_builddir
="$ac_dir";;
23945 .
) ac_abs_builddir
=`pwd`;;
23946 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23947 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23950 case $ac_abs_builddir in
23951 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23953 case ${ac_top_builddir}.
in
23954 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23955 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23956 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23959 case $ac_abs_builddir in
23960 .
) ac_abs_srcdir
=$ac_srcdir;;
23963 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23964 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23965 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23968 case $ac_abs_builddir in
23969 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23971 case $ac_top_srcdir in
23972 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23973 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23974 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23980 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23981 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
23984 if test x
"$ac_file" != x-
; then
23985 { echo "$as_me:$LINENO: creating $ac_file" >&5
23986 echo "$as_me: creating $ac_file" >&6;}
23989 # Let's still pretend it is `configure' which instantiates (i.e., don't
23990 # use $as_me), people would be surprised to read:
23991 # /* config.h. Generated by config.status. */
23992 if test x
"$ac_file" = x-
; then
23995 configure_input
="$ac_file. "
23997 configure_input
=$configure_input"Generated from `echo $ac_file_in |
23998 sed 's,.*/,,'` by configure."
24000 # First look for the input files in the build tree, otherwise in the
24002 ac_file_inputs
=`IFS=:
24003 for f in $ac_file_in; do
24005 -) echo $tmp/stdin ;;
24007 # Absolute (can't be DOS-style, as IFS=:)
24008 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24009 echo "$as_me: error: cannot find input file: $f" >&2;}
24010 { (exit 1); exit 1; }; }
24013 if test -f "$f"; then
24016 elif test -f "$srcdir/$f"; then
24021 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24022 echo "$as_me: error: cannot find input file: $f" >&2;}
24023 { (exit 1); exit 1; }; }
24026 done` ||
{ (exit 1); exit 1; }
24028 cat >>$CONFIG_STATUS <<_ACEOF
24032 cat >>$CONFIG_STATUS <<\_ACEOF
24034 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24035 s
,@configure_input@
,$configure_input,;t t
24036 s
,@srcdir@
,$ac_srcdir,;t t
24037 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
24038 s
,@top_srcdir@
,$ac_top_srcdir,;t t
24039 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
24040 s
,@builddir@
,$ac_builddir,;t t
24041 s
,@abs_builddir@
,$ac_abs_builddir,;t t
24042 s
,@top_builddir@
,$ac_top_builddir,;t t
24043 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
24044 s
,@INSTALL@
,$ac_INSTALL,;t t
24045 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24047 if test x"$ac_file" != x-; then
24048 mv $tmp/out $ac_file
24056 cat >>$CONFIG_STATUS <<\_ACEOF
24059 # CONFIG_HEADER section.
24062 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
24063 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24065 # ac_d sets the value in "#define NAME VALUE" lines.
24066 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24067 ac_dB
='[ ].*$,\1#\2'
24070 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24071 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24072 ac_uB
='$,\1#\2define\3'
24076 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
24077 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24079 - |
*:- |
*:-:* ) # input from stdin
24081 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24082 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24083 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24084 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24085 * ) ac_file_in
=$ac_file.
in ;;
24088 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
24089 echo "$as_me: creating $ac_file" >&6;}
24091 # First look for the input files in the build tree, otherwise in the
24093 ac_file_inputs
=`IFS=:
24094 for f in $ac_file_in; do
24096 -) echo $tmp/stdin ;;
24098 # Absolute (can't be DOS-style, as IFS=:)
24099 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24100 echo "$as_me: error: cannot find input file: $f" >&2;}
24101 { (exit 1); exit 1; }; }
24102 # Do quote $f, to prevent DOS paths from being IFS'd.
24105 if test -f "$f"; then
24108 elif test -f "$srcdir/$f"; then
24113 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24114 echo "$as_me: error: cannot find input file: $f" >&2;}
24115 { (exit 1); exit 1; }; }
24118 done` ||
{ (exit 1); exit 1; }
24119 # Remove the trailing spaces.
24120 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24124 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24125 # `conftest.undefs', that substitutes the proper values into
24126 # config.h.in to produce config.h. The first handles `#define'
24127 # templates, and the second `#undef' templates.
24128 # And first: Protect against being on the right side of a sed subst in
24129 # config.status. Protect against being in an unquoted here document
24130 # in config.status.
24131 rm -f conftest.defines conftest.undefs
24132 # Using a here document instead of a string reduces the quoting nightmare.
24133 # Putting comments in sed scripts is not portable.
24135 # `end' is used to avoid that the second main sed command (meant for
24136 # 0-ary CPP macros) applies to n-ary macro definitions.
24137 # See the Autoconf documentation for `clear'.
24138 cat >confdef2sed.
sed <<\_ACEOF
24143 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24145 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24148 # If some macros were called several times there might be several times
24149 # the same #defines, which is useless. Nevertheless, we may not want to
24150 # sort them, since we want the *last* AC-DEFINE to be honored.
24151 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24152 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24153 rm -f confdef2sed.sed
24155 # This sed command replaces #undef with comments. This is necessary, for
24156 # example, in the case of _POSIX_SOURCE, which is predefined and required
24157 # on some systems where configure will not decide to define it.
24158 cat >>conftest.undefs <<\_ACEOF
24159 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24162 # Break up conftest.defines because some shells have a limit on the size
24163 # of here documents, and old seds have small limits too (100 cmds).
24164 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24165 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24166 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24167 echo ' :' >>$CONFIG_STATUS
24168 rm -f conftest.tail
24169 while grep . conftest.defines >/dev/null
24171 # Write a limited-size here document to $tmp/defines.sed.
24172 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24173 # Speed up: don't consider the non `#define' lines.
24174 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24175 # Work around the forget-to-reset-the-flag bug.
24176 echo 't clr' >>$CONFIG_STATUS
24177 echo ': clr' >>$CONFIG_STATUS
24178 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
24180 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24182 mv $tmp/out $tmp/in
24184 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
24185 rm -f conftest.defines
24186 mv conftest.
tail conftest.defines
24188 rm -f conftest.defines
24189 echo ' fi # grep' >>$CONFIG_STATUS
24190 echo >>$CONFIG_STATUS
24192 # Break up conftest.undefs because some shells have a limit on the size
24193 # of here documents, and old seds have small limits too (100 cmds).
24194 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24195 rm -f conftest.
tail
24196 while grep . conftest.undefs
>/dev
/null
24198 # Write a limited-size here document to $tmp/undefs.sed.
24199 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24200 # Speed up: don't consider the non
`#undef'
24201 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24202 # Work around the forget-to-reset-the-flag bug.
24203 echo 't clr' >>$CONFIG_STATUS
24204 echo ': clr' >>$CONFIG_STATUS
24205 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24207 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24209 mv $tmp/out $tmp/in
24211 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24212 rm -f conftest.undefs
24213 mv conftest.tail conftest.undefs
24215 rm -f conftest.undefs
24217 cat >>$CONFIG_STATUS <<\_ACEOF
24218 # Let's still pretend it is `configure
' which instantiates (i.e., don't
24219 # use $as_me), people would be surprised to read:
24220 # /* config.h. Generated by config.status. */
24221 if test x
"$ac_file" = x-
; then
24222 echo "/* Generated by configure. */" >$tmp/config.h
24224 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24226 cat $tmp/in >>$tmp/config.h
24228 if test x
"$ac_file" != x-
; then
24229 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
24230 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24231 echo "$as_me: $ac_file is unchanged" >&6;}
24233 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
24234 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24235 X"$ac_file" : 'X\(//\)[^/]' \| \
24236 X"$ac_file" : 'X\(//\)$' \| \
24237 X"$ac_file" : 'X\(/\)' \| \
24238 . : '\(.\)' 2>/dev/null ||
24240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24241 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24242 /^X\(\/\/\)$/{ s//\1/; q; }
24243 /^X\(\/\).*/{ s//\1/; q; }
24245 { if $as_mkdir_p; then
24250 while test ! -d "$as_dir"; do
24251 as_dirs
="$as_dir $as_dirs"
24252 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24253 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24254 X"$as_dir" : 'X\(//\)[^/]' \| \
24255 X"$as_dir" : 'X\(//\)$' \| \
24256 X"$as_dir" : 'X\(/\)' \| \
24257 . : '\(.\)' 2>/dev/null ||
24259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24260 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24261 /^X\(\/\/\)$/{ s//\1/; q; }
24262 /^X\(\/\).*/{ s//\1/; q; }
24265 test ! -n "$as_dirs" || mkdir
$as_dirs
24266 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24267 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24268 { (exit 1); exit 1; }; }; }
24271 mv $tmp/config.h
$ac_file
24275 rm -f $tmp/config.h
24279 cat >>$CONFIG_STATUS <<\_ACEOF
24282 # CONFIG_COMMANDS section.
24284 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
24285 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
24286 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24287 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
24288 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24289 X"$ac_dest" : 'X\(//\)[^/]' \| \
24290 X"$ac_dest" : 'X\(//\)$' \| \
24291 X"$ac_dest" : 'X\(/\)' \| \
24292 . : '\(.\)' 2>/dev/null ||
24294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24295 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24296 /^X\(\/\/\)$/{ s//\1/; q; }
24297 /^X\(\/\).*/{ s//\1/; q; }
24299 { if $as_mkdir_p; then
24304 while test ! -d "$as_dir"; do
24305 as_dirs
="$as_dir $as_dirs"
24306 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24307 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24308 X"$as_dir" : 'X\(//\)[^/]' \| \
24309 X"$as_dir" : 'X\(//\)$' \| \
24310 X"$as_dir" : 'X\(/\)' \| \
24311 . : '\(.\)' 2>/dev/null ||
24313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24314 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24315 /^X\(\/\/\)$/{ s//\1/; q; }
24316 /^X\(\/\).*/{ s//\1/; q; }
24319 test ! -n "$as_dirs" || mkdir
$as_dirs
24320 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24321 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24322 { (exit 1); exit 1; }; }; }
24326 if test "$ac_dir" != .
; then
24327 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24328 # A "../" for each directory in $ac_dir_suffix.
24329 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24331 ac_dir_suffix
= ac_top_builddir
=
24335 .
) # No --srcdir option. We are building in place.
24337 if test -z "$ac_top_builddir"; then
24340 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
24342 [\\/]* | ?
:[\\/]* ) # Absolute path.
24343 ac_srcdir
=$srcdir$ac_dir_suffix;
24344 ac_top_srcdir
=$srcdir ;;
24345 *) # Relative path.
24346 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
24347 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
24350 # Do not use `cd foo && pwd` to compute absolute paths, because
24351 # the directories may not exist.
24353 .
) ac_abs_builddir
="$ac_dir";;
24356 .
) ac_abs_builddir
=`pwd`;;
24357 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
24358 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
24361 case $ac_abs_builddir in
24362 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24364 case ${ac_top_builddir}.
in
24365 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
24366 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24367 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
24370 case $ac_abs_builddir in
24371 .
) ac_abs_srcdir
=$ac_srcdir;;
24374 .
) ac_abs_srcdir
=$ac_abs_builddir;;
24375 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
24376 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
24379 case $ac_abs_builddir in
24380 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
24382 case $ac_top_srcdir in
24383 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
24384 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
24385 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
24390 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24391 echo "$as_me: executing $ac_dest commands" >&6;}
24395 ### Make the necessary directories, if they don't exist.
24396 for dir
in etc lisp
; do
24397 test -d ${dir} || mkdir
${dir}
24400 # Build src/Makefile from ${srcdir}/src/Makefile.c
24401 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24402 # This must be done after src/config.h is built, since we rely on that file.
24404 # Now get this: Some word that is part of the ${srcdir} directory name
24405 # or the ${configuration} value might, just might, happen to be an
24406 # identifier like `sun4' or `i386' or something, and be predefined by
24407 # the C preprocessor to some helpful value like 1, or maybe the empty
24408 # string. Needless to say consequent macro substitutions are less
24409 # than conducive to the makefile finding the correct directory.
24410 undefs
="`echo $top_srcdir $configuration $canonical |
24411 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24412 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24415 echo creating src
/epaths.h
24416 ${MAKE-make} epaths-force
24418 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24419 # `..' to `. .' unless invoked with -traditional
24421 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24422 CPPFLAGS
="$CPPFLAGS -traditional"
24425 echo creating lib-src
/Makefile
24427 rm -f junk.c junk1.c junk2.c
24428 sed -e '/start of cpp stuff/q' \
24429 < Makefile.c
> junk1.c
24430 sed -e '1,/start of cpp stuff/d'\
24431 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24432 < Makefile.c
> junk.c
24433 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24434 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24435 cat junk1.c junk2.c
> Makefile.new
24436 rm -f junk.c junk1.c junk2.c
24437 chmod 444 Makefile.new
24438 mv -f Makefile.new Makefile
24441 echo creating src
/Makefile
24443 rm -f junk.c junk1.c junk2.c
24444 sed -e '/start of cpp stuff/q' \
24445 < Makefile.c
> junk1.c
24446 sed -e '1,/start of cpp stuff/d'\
24447 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24448 < Makefile.c
> junk.c
24449 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24450 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24451 cat junk1.c junk2.c
> Makefile.new
24452 rm -f junk.c junk1.c junk2.c
24453 chmod 444 Makefile.new
24454 mv -f Makefile.new Makefile
24457 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24458 echo creating src
/.gdbinit
24459 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24462 # This is how we know whether to re-run configure in certain cases.
24463 touch src
/config.stamp
24470 cat >>$CONFIG_STATUS <<\_ACEOF
24472 { (exit 0); exit 0; }
24474 chmod +x
$CONFIG_STATUS
24475 ac_clean_files
=$ac_clean_files_save
24478 # configure is writing to config.log, and then calls config.status.
24479 # config.status does its own redirection, appending to config.log.
24480 # Unfortunately, on DOS this fails, as config.log is still kept open
24481 # by configure, so config.status won't be able to write to it; its
24482 # output is simply discarded. So we exec the FD to /dev/null,
24483 # effectively closing config.log, so it can be properly (re)opened and
24484 # appended to by config.status. When coming back to configure, we
24485 # need to make the FD available again.
24486 if test "$no_create" != yes; then
24488 ac_config_status_args
=
24489 test "$silent" = yes &&
24490 ac_config_status_args
="$ac_config_status_args --quiet"
24492 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24494 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24495 # would make configure fail if this is the last instruction.
24496 $ac_cs_success ||
{ (exit 1); exit 1; }