2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="src/lisp.h"
275 ac_config_libobj_dir
=src
276 # Factoring default headers for most tests.
277 ac_includes_default
="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO GZIP_PROG LIBSOUND PKG_CONFIG ALSA_CFLAGS ALSA_LIBS CFLAGS_SOUND SET_MAKE GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS GETOPT_H GETOPTOBJS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version
=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name
=s
,x
,x
,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir
='${exec_prefix}/bin'
342 sbindir
='${exec_prefix}/sbin'
343 libexecdir
='${exec_prefix}/libexec'
344 datadir
='${prefix}/share'
345 sysconfdir
='${prefix}/etc'
346 sharedstatedir
='${prefix}/com'
347 localstatedir
='${prefix}/var'
348 libdir
='${exec_prefix}/lib'
349 includedir
='${prefix}/include'
350 oldincludedir
='/usr/include'
351 infodir
='${prefix}/info'
352 mandir
='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
372 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
375 -build |
--build |
--buil |
--bui |
--bu)
376 ac_prev
=build_alias
;;
377 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
378 build_alias
=$ac_optarg ;;
380 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
381 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
382 ac_prev
=cache_file
;;
383 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
384 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
385 cache_file
=$ac_optarg ;;
388 cache_file
=config.cache
;;
390 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
392 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
394 datadir
=$ac_optarg ;;
396 -disable-* |
--disable-*)
397 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* |
--enable-*)
406 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
419 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
420 |
--exec |
--exe |
--ex)
421 ac_prev
=exec_prefix
;;
422 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
423 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
424 |
--exec=* |
--exe=* |
--ex=*)
425 exec_prefix
=$ac_optarg ;;
427 -gas |
--gas |
--ga |
--g)
428 # Obsolete; use --with-gas.
431 -help |
--help |
--hel |
--he |
-h)
433 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
434 ac_init_help
=recursive
;;
435 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
436 ac_init_help
=short
;;
438 -host |
--host |
--hos |
--ho)
439 ac_prev
=host_alias
;;
440 -host=* |
--host=* |
--hos=* |
--ho=*)
441 host_alias
=$ac_optarg ;;
443 -includedir |
--includedir |
--includedi |
--included |
--include \
444 |
--includ |
--inclu |
--incl |
--inc)
445 ac_prev
=includedir
;;
446 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
447 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
448 includedir
=$ac_optarg ;;
450 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
452 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
453 infodir
=$ac_optarg ;;
455 -libdir |
--libdir |
--libdi |
--libd)
457 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
460 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
461 |
--libexe |
--libex |
--libe)
462 ac_prev
=libexecdir
;;
463 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
464 |
--libexe=* |
--libex=* |
--libe=*)
465 libexecdir
=$ac_optarg ;;
467 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
468 |
--localstate |
--localstat |
--localsta |
--localst \
469 |
--locals |
--local |
--loca |
--loc |
--lo)
470 ac_prev
=localstatedir
;;
471 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
472 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
473 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
474 localstatedir
=$ac_optarg ;;
476 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
478 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
482 # Obsolete; use --without-fp.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c |
-n)
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
493 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
494 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
495 |
--oldin |
--oldi |
--old |
--ol |
--o)
496 ac_prev
=oldincludedir
;;
497 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
498 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
499 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
500 oldincludedir
=$ac_optarg ;;
502 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
504 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
507 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
508 |
--program-pre |
--program-pr |
--program-p)
509 ac_prev
=program_prefix
;;
510 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
511 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
512 program_prefix
=$ac_optarg ;;
514 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
515 |
--program-suf |
--program-su |
--program-s)
516 ac_prev
=program_suffix
;;
517 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
518 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
519 program_suffix
=$ac_optarg ;;
521 -program-transform-name |
--program-transform-name \
522 |
--program-transform-nam |
--program-transform-na \
523 |
--program-transform-n |
--program-transform- \
524 |
--program-transform |
--program-transfor \
525 |
--program-transfo |
--program-transf \
526 |
--program-trans |
--program-tran \
527 |
--progr-tra |
--program-tr |
--program-t)
528 ac_prev
=program_transform_name
;;
529 -program-transform-name=* |
--program-transform-name=* \
530 |
--program-transform-nam=* |
--program-transform-na=* \
531 |
--program-transform-n=* |
--program-transform-=* \
532 |
--program-transform=* |
--program-transfor=* \
533 |
--program-transfo=* |
--program-transf=* \
534 |
--program-trans=* |
--program-tran=* \
535 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
536 program_transform_name
=$ac_optarg ;;
538 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
539 |
-silent |
--silent |
--silen |
--sile |
--sil)
542 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
544 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
546 sbindir
=$ac_optarg ;;
548 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
549 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
550 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
552 ac_prev
=sharedstatedir
;;
553 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
554 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
555 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
557 sharedstatedir
=$ac_optarg ;;
559 -site |
--site |
--sit)
561 -site=* |
--site=* |
--sit=*)
564 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
566 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
569 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
570 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
571 ac_prev
=sysconfdir
;;
572 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
573 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
574 sysconfdir
=$ac_optarg ;;
576 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
577 ac_prev
=target_alias
;;
578 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
579 target_alias
=$ac_optarg ;;
581 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
584 -version |
--version |
--versio |
--versi |
--vers |
-V)
588 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package
=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* |
--without-*)
601 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package
=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
614 |
--x-incl |
--x-inc |
--x-in |
--x-i)
615 ac_prev
=x_includes
;;
616 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
617 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
618 x_includes
=$ac_optarg ;;
620 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
621 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
622 ac_prev
=x_libraries
;;
623 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
624 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
625 x_libraries
=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var
in exec_prefix prefix
662 eval ac_val
=$
`echo $ac_var`
664 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val
=$
`echo $ac_var`
676 [\\/$
]* | ?
:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x
; then
691 if test "x$build_alias" = x
; then
692 cross_compiling
=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
703 test "$silent" = yes && exec 6>/dev
/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted
=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir
=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted
=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set
=${build_alias+set}
743 ac_env_build_alias_value
=$build_alias
744 ac_cv_env_build_alias_set
=${build_alias+set}
745 ac_cv_env_build_alias_value
=$build_alias
746 ac_env_host_alias_set
=${host_alias+set}
747 ac_env_host_alias_value
=$host_alias
748 ac_cv_env_host_alias_set
=${host_alias+set}
749 ac_cv_env_host_alias_value
=$host_alias
750 ac_env_target_alias_set
=${target_alias+set}
751 ac_env_target_alias_value
=$target_alias
752 ac_cv_env_target_alias_set
=${target_alias+set}
753 ac_cv_env_target_alias_value
=$target_alias
754 ac_env_CC_set
=${CC+set}
756 ac_cv_env_CC_set
=${CC+set}
757 ac_cv_env_CC_value
=$CC
758 ac_env_CFLAGS_set
=${CFLAGS+set}
759 ac_env_CFLAGS_value
=$CFLAGS
760 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value
=$CFLAGS
762 ac_env_LDFLAGS_set
=${LDFLAGS+set}
763 ac_env_LDFLAGS_value
=$LDFLAGS
764 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value
=$LDFLAGS
766 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value
=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_env_CPP_set
=${CPP+set}
771 ac_env_CPP_value
=$CPP
772 ac_cv_env_CPP_set
=${CPP+set}
773 ac_cv_env_CPP_value
=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
841 --x-includes=DIR X include files are
in DIR
842 --x-libraries=DIR X library files are
in DIR
845 --build=BUILD configure
for building on BUILD
[guessed
]
846 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 if test -n "$ac_init_help"; then
855 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
856 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
857 --enable-carbon-app[=DIR
] [DIR
=/Application
]
858 specify
install directory
for Emacs.app on Mac OS X
859 --enable-asserts compile code with asserts enabled
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing
) to the casual installer
862 --enable-locallisppath=PATH
863 directories Emacs should search
for lisp files
864 specific to this site
865 --disable-largefile omit support
for large files
868 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
869 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
870 --without-gcc don
't use GCC to compile Emacs if GCC is found
871 --without-pop don't support POP
mail retrieval with movemail
872 --with-kerberos support Kerberos-authenticated POP
873 --with-kerberos5 support Kerberos version
5 authenticated POP
874 --with-hesiod support Hesiod to get the POP server
host
875 --without-sound don
't compile with sound support
876 --with-x-toolkit=KIT use an X toolkit
877 (KIT = yes/lucid/athena/motif/gtk/no)
878 --with-xpm use -lXpm for displaying XPM images
879 --with-jpeg use -ljpeg for displaying JPEG images
880 --with-tiff use -ltiff for displaying TIFF images
881 --with-gif use -lungif for displaying GIF images
882 --with-png use -lpng for displaying PNG images
883 --with-gtk use GTK (same as --with-x-toolkit=gtk)
884 --with-pkg-config-prog Path to pkg-config to use for finding GTK
885 --without-toolkit-scroll-bars
886 don't use Motif or Xaw3d scroll bars
887 --without-xim don
't use X11 XIM
888 --without-carbon don't use Carbon GUI on Mac OS X
889 --with-x use the X Window System
891 Some influential environment variables
:
892 CC C compiler
command
893 CFLAGS C compiler flags
894 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
895 nonstandard directory
<lib dir
>
896 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
897 headers
in a nonstandard directory
<include dir
>
900 Use these variables to override the choices made by
`configure' or to help
901 it to find libraries and programs with nonstandard names/locations.
906 if test "$ac_init_help" = "recursive"; then
907 # If there are subdirs, report their specific --help.
909 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
910 test -d $ac_dir || continue
913 if test "$ac_dir" != .; then
914 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
915 # A "../" for each directory in $ac_dir_suffix.
916 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
918 ac_dir_suffix= ac_top_builddir=
922 .) # No --srcdir option. We are building in place.
924 if test -z "$ac_top_builddir"; then
927 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
929 [\\/]* | ?:[\\/]* ) # Absolute path.
930 ac_srcdir=$srcdir$ac_dir_suffix;
931 ac_top_srcdir=$srcdir ;;
933 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
934 ac_top_srcdir=$ac_top_builddir$srcdir ;;
937 # Do not use `cd foo
&& pwd` to compute absolute paths, because
938 # the directories may not exist.
940 .) ac_abs_builddir="$ac_dir";;
943 .) ac_abs_builddir=`pwd`;;
944 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
945 *) ac_abs_builddir=`pwd`/"$ac_dir";;
948 case $ac_abs_builddir in
949 .) ac_abs_top_builddir=${ac_top_builddir}.;;
951 case ${ac_top_builddir}. in
952 .) ac_abs_top_builddir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
954 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
957 case $ac_abs_builddir in
958 .) ac_abs_srcdir=$ac_srcdir;;
961 .) ac_abs_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
963 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
966 case $ac_abs_builddir in
967 .) ac_abs_top_srcdir=$ac_top_srcdir;;
969 case $ac_top_srcdir in
970 .) ac_abs_top_srcdir=$ac_abs_builddir;;
971 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
972 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
977 # Check for guested configure; otherwise get Cygnus style configure.
978 if test -f $ac_srcdir/configure.gnu; then
980 $SHELL $ac_srcdir/configure.gnu --help=recursive
981 elif test -f $ac_srcdir/configure; then
983 $SHELL $ac_srcdir/configure --help=recursive
984 elif test -f $ac_srcdir/configure.ac ||
985 test -f $ac_srcdir/configure.in; then
989 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
995 test -n "$ac_init_help" && exit 0
996 if $ac_init_version; then
999 Copyright (C) 2003 Free Software Foundation, Inc.
1000 This configure script is free software; the Free Software Foundation
1001 gives unlimited permission to copy, distribute and modify it.
1007 This file contains any messages produced by compilers while
1008 running configure, to aid debugging if configure makes a mistake.
1010 It was created by $as_me, which was
1011 generated by GNU Autoconf 2.59. Invocation command line was
1022 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1023 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1024 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1025 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1026 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1028 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1029 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1031 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1032 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1033 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1034 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1035 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1036 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1037 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1045 test -z "$as_dir" && as_dir=.
1046 echo "PATH: $as_dir"
1061 # Keep a trace of the command line.
1062 # Strip out --no-create and --no-recursion so they do not pile up.
1063 # Strip out --silent because we don't want to record it for future runs.
1064 # Also quote any args containing shell meta-characters.
1065 # Make two passes to allow for proper duplicate-argument suppression.
1070 ac_must_keep_next=false
1076 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1080 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1081 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1084 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1086 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087 if test $ac_must_keep_next = true; then
1088 ac_must_keep_next=false # Got value, back to normal.
1091 *=* | --config-cache | -C | -disable-* | --disable-* \
1092 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094 | -with-* | --with-* | -without-* | --without-* | --x)
1095 case "$ac_configure_args0 " in
1096 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1099 -* ) ac_must_keep_next=true ;;
1102 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103 # Get rid of the leading space.
1109 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1110 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1112 # When interrupted or exit'd, cleanup temporary files, and complete
1113 # config.log. We remove comments because anyway the quotes in there
1114 # would cause problems or look ugly.
1115 # WARNING: Be sure not to use single quotes in there, as some shells,
1116 # such as our DU 5.0 friend, will then `close
' the trap.
1117 trap 'exit_status
=$?
1118 # Save into config.log some information that might help in debugging.
1123 ## ---------------- ##
1124 ## Cache variables. ##
1125 ## ---------------- ##
1128 # The following way of writing the cache mishandles newlines in values,
1131 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1134 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1146 ## ----------------- ##
1147 ## Output variables. ##
1148 ## ----------------- ##
1151 for ac_var
in $ac_subst_vars
1153 eval ac_val
=$
`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1158 if test -n "$ac_subst_files"; then
1165 for ac_var
in $ac_subst_files
1167 eval ac_val
=$
`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1173 if test -s confdefs.h
; then
1180 sed "/^$/d" confdefs.h |
sort
1183 test "$ac_signal" != 0 &&
1184 echo "$as_me: caught signal $ac_signal"
1185 echo "$as_me: exit $exit_status"
1187 rm -f core
*.core
&&
1188 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1191 for ac_signal in 1 2 13 15; do
1192 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1197 rm -rf conftest* confdefs.h
1198 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1201 # Predefined preprocessor variables.
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_NAME "$PACKAGE_NAME"
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_STRING "$PACKAGE_STRING"
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1228 # Let the site file select an alternate cache file if it wants to.
1229 # Prefer explicitly selected file to automatically selected ones.
1230 if test -z "$CONFIG_SITE"; then
1231 if test "x$prefix" != xNONE; then
1232 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1234 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1237 for ac_site_file in $CONFIG_SITE; do
1238 if test -r "$ac_site_file"; then
1239 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1240 echo "$as_me: loading site script $ac_site_file" >&6;}
1241 sed 's
/^
/|
/' "$ac_site_file" >&5
1246 if test -r "$cache_file"; then
1247 # Some versions of bash will fail to source /dev/null (special
1248 # files actually), so we avoid doing that.
1249 if test -f "$cache_file"; then
1250 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1251 echo "$as_me: loading cache $cache_file" >&6;}
1253 [\\/]* | ?:[\\/]* ) . $cache_file;;
1254 *) . ./$cache_file;;
1258 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1259 echo "$as_me: creating cache $cache_file" >&6;}
1263 # Check that the precious variables saved in the cache have kept the same
1265 ac_cache_corrupted=false
1266 for ac_var in `(set) 2>&1 |
1267 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269 eval ac_new_set=\$ac_env_${ac_var}_set
1270 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271 eval ac_new_val="\$ac_env_${ac_var}_value"
1272 case $ac_old_set,$ac_new_set in
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1276 ac_cache_corrupted=: ;;
1278 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1283 if test "x$ac_old_val" != "x$ac_new_val"; then
1284 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1285 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1286 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1287 echo "$as_me: former value: $ac_old_val" >&2;}
1288 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1289 echo "$as_me: current value: $ac_new_val" >&2;}
1290 ac_cache_corrupted=:
1293 # Pass precious variables to config.status.
1294 if test "$ac_new_set" = set; then
1296 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1298 *) ac_arg=$ac_var=$ac_new_val ;;
1300 case " $ac_configure_args " in
1301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1302 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1306 if $ac_cache_corrupted; then
1307 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1309 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1310 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311 { (exit 1); exit 1; }; }
1315 ac_cpp='$CPP $CPPFLAGS'
1316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1317 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1338 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1341 test "$program_prefix" != NONE &&
1342 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1343 # Use a double $ so make ignores it.
1344 test "$program_suffix" != NONE &&
1345 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1346 # Double any \ or $. echo might interpret backslashes.
1347 # By default was `s,x,x', remove it
if useless.
1348 cat <<\_ACEOF
>conftest.
sed
1349 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1351 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1355 lispdir
='${datadir}/emacs/${version}/lisp'
1356 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1357 '${datadir}/emacs/site-lisp'
1358 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1359 etcdir
='${datadir}/emacs/${version}/etc'
1360 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1361 docdir
='${datadir}/emacs/${version}/etc'
1362 gamedir
='${localstatedir}/games/emacs'
1367 # Check whether --with-gcc or --without-gcc was given.
1368 if test "${with_gcc+set}" = set; then
1373 # Check whether --with-pop or --without-pop was given.
1374 if test "${with_pop+set}" = set; then
1376 if test "$withval" = yes; then
1377 cat >>confdefs.h
<<\_ACEOF
1378 #define MAIL_USE_POP 1
1384 cat >>confdefs.h
<<\_ACEOF
1385 #define MAIL_USE_POP 1
1391 # Check whether --with-kerberos or --without-kerberos was given.
1392 if test "${with_kerberos+set}" = set; then
1393 withval
="$with_kerberos"
1394 cat >>confdefs.h
<<\_ACEOF
1401 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1402 if test "${with_kerberos5+set}" = set; then
1403 withval
="$with_kerberos5"
1404 if test "${with_kerberos5+set}" = set; then
1405 if test "${with_kerberos+set}" != set; then
1407 cat >>confdefs.h
<<\_ACEOF
1414 cat >>confdefs.h
<<\_ACEOF
1420 # Check whether --with-hesiod or --without-hesiod was given.
1421 if test "${with_hesiod+set}" = set; then
1422 withval
="$with_hesiod"
1424 cat >>confdefs.h
<<\_ACEOF
1431 # Check whether --with-sound or --without-sound was given.
1432 if test "${with_sound+set}" = set; then
1433 withval
="$with_sound"
1438 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1439 if test "${with_x_toolkit+set}" = set; then
1440 withval
="$with_x_toolkit"
1441 case "${withval}" in
1442 y | ye |
yes ) val
=athena
;;
1444 l | lu | luc | luci | lucid
) val
=lucid
;;
1445 a |
at | ath | athe | athen | athena
) val
=athena
;;
1446 m | mo | mot | moti | motif
) val
=motif
;;
1447 g | gt | gtk
) val
=gtk
;;
1449 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1450 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1451 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1452 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1453 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1454 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1455 { (exit 1); exit 1; }; }
1462 # Check whether --with-xpm or --without-xpm was given.
1463 if test "${with_xpm+set}" = set; then
1468 # Check whether --with-jpeg or --without-jpeg was given.
1469 if test "${with_jpeg+set}" = set; then
1470 withval
="$with_jpeg"
1474 # Check whether --with-tiff or --without-tiff was given.
1475 if test "${with_tiff+set}" = set; then
1476 withval
="$with_tiff"
1480 # Check whether --with-gif or --without-gif was given.
1481 if test "${with_gif+set}" = set; then
1486 # Check whether --with-png or --without-png was given.
1487 if test "${with_png+set}" = set; then
1492 # Check whether --with-gtk or --without-gtk was given.
1493 if test "${with_gtk+set}" = set; then
1498 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1499 if test "${with_pkg_config_prog+set}" = set; then
1500 withval
="$with_pkg_config_prog"
1504 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1505 if test "${with_toolkit_scroll_bars+set}" = set; then
1506 withval
="$with_toolkit_scroll_bars"
1510 # Check whether --with-xim or --without-xim was given.
1511 if test "${with_xim+set}" = set; then
1516 # Check whether --with-carbon or --without-carbon was given.
1517 if test "${with_carbon+set}" = set; then
1518 withval
="$with_carbon"
1521 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1522 if test "${enable_carbon_app+set}" = set; then
1523 enableval
="$enable_carbon_app"
1524 carbon_appdir_x
=${enableval}
1527 # Check whether --enable-asserts or --disable-asserts was given.
1528 if test "${enable_asserts+set}" = set; then
1529 enableval
="$enable_asserts"
1530 USE_XASSERTS
=$enableval
1535 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1536 if test "${enable_maintainer_mode+set}" = set; then
1537 enableval
="$enable_maintainer_mode"
1538 USE_MAINTAINER_MODE
=$enableval
1540 USE_MAINTAINER_MODE
=no
1542 if test $USE_MAINTAINER_MODE = yes; then
1549 # Check whether --enable-locallisppath or --disable-locallisppath was given.
1550 if test "${enable_locallisppath+set}" = set; then
1551 enableval
="$enable_locallisppath"
1552 if test "${enableval}" = "no"; then
1554 elif test "${enableval}" != "yes"; then
1555 locallisppath
=${enableval}
1559 #### Make srcdir absolute, if it isn't already. It's important to
1560 #### avoid running the path through pwd unnecessarily, since pwd can
1561 #### give you automounter prefixes, which can go away. We do all this
1562 #### so Emacs can find its files when run uninstalled.
1563 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1568 ## We may be able to use the $PWD environment variable to make this
1569 ## absolute. But sometimes PWD is inaccurate.
1570 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1571 ## but that tested only for a well-formed and valid PWD,
1572 ## it did not object when PWD was well-formed and valid but just wrong.
1573 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1577 srcdir
="`(cd ${srcdir}; pwd)`"
1580 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1583 #### Check if the source directory already has a configured system in it.
1584 if test `pwd` != `(cd ${srcdir} && pwd)` \
1585 && test -f "${srcdir}/src/config.h" ; then
1586 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1587 as a build directory right now; it has been configured in its own
1588 right. To configure in another directory as well, you MUST
1589 use GNU make. If you do not have GNU make, then you must
1590 now do \`make distclean' in ${srcdir},
1591 and then run $0 again." >&5
1592 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1593 as a build directory right now; it has been configured in its own
1594 right. To configure in another directory as well, you MUST
1595 use GNU make. If you do not have GNU make, then you must
1596 now do \`make distclean' in ${srcdir},
1597 and then run $0 again." >&2;}
1600 #### Given the configuration name, set machfile and opsysfile to the
1601 #### names of the m/*.h and s/*.h files we should use.
1603 ### Canonicalize the configuration name.
1606 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1607 if test -f $ac_dir/install-sh
; then
1609 ac_install_sh
="$ac_aux_dir/install-sh -c"
1611 elif test -f $ac_dir/install.sh
; then
1613 ac_install_sh
="$ac_aux_dir/install.sh -c"
1615 elif test -f $ac_dir/shtool
; then
1617 ac_install_sh
="$ac_aux_dir/shtool install -c"
1621 if test -z "$ac_aux_dir"; then
1622 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1623 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1624 { (exit 1); exit 1; }; }
1626 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1627 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1628 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1630 # Make sure we can run config.sub.
1631 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1632 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1633 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1634 { (exit 1); exit 1; }; }
1636 echo "$as_me:$LINENO: checking build system type" >&5
1637 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1638 if test "${ac_cv_build+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1641 ac_cv_build_alias
=$build_alias
1642 test -z "$ac_cv_build_alias" &&
1643 ac_cv_build_alias
=`$ac_config_guess`
1644 test -z "$ac_cv_build_alias" &&
1645 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1646 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1647 { (exit 1); exit 1; }; }
1648 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1654 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1655 echo "${ECHO_T}$ac_cv_build" >&6
1657 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1662 echo "$as_me:$LINENO: checking host system type" >&5
1663 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1664 if test "${ac_cv_host+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 ac_cv_host_alias
=$host_alias
1668 test -z "$ac_cv_host_alias" &&
1669 ac_cv_host_alias
=$ac_cv_build_alias
1670 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1676 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1677 echo "${ECHO_T}$ac_cv_host" >&6
1679 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1685 configuration
=${host_alias-$host}
1689 ### If you add support for a new configuration, add code to this
1690 ### switch statement to recognize your configuration name and select
1691 ### the appropriate operating system and machine description files.
1693 ### You would hope that you could choose an m/*.h file pretty much
1694 ### based on the machine portion of the configuration name, and an s-
1695 ### file based on the operating system portion. However, it turns out
1696 ### that each m/*.h file is pretty manufacturer-specific - for
1697 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1698 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1699 ### machines. So we basically have to have a special case for each
1700 ### configuration name.
1702 ### As far as handling version numbers on operating systems is
1703 ### concerned, make sure things will fail in a fixable way. If
1704 ### /etc/MACHINES doesn't say anything about version numbers, be
1705 ### prepared to handle anything reasonably. If version numbers
1706 ### matter, be sure /etc/MACHINES says something about it.
1708 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1709 ### "System V Release 4"; he writes, "The old convention encouraged
1710 ### confusion between `system' and `release' levels'."
1712 machine
='' opsys
='' unported
=no
1713 case "${canonical}" in
1718 case "${canonical}" in
1719 alpha
*-*-freebsd*) machine
=alpha
;;
1720 ia64-
*-freebsd*) machine
=ia64
;;
1721 sparc64-
*-freebsd*) machine
=sparc
;;
1722 powerpc-
*-freebsd*) machine
=macppc
;;
1723 i
[3456]86-*-freebsd*) machine
=intel386
;;
1724 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
1731 if test -f /usr
/lib
/crti.o
; then
1733 cat >>confdefs.h
<<\_ACEOF
1739 case "${canonical}" in
1740 alpha
*-*-netbsd*) machine
=alpha
;;
1741 i
[3456]86-*-netbsd*) machine
=intel386
;;
1743 # This is somewhat bogus.
1744 machine
=hp9000s300
;;
1745 powerpc-apple-netbsd
*) machine
=macppc
;;
1746 mips-
*-netbsd*) machine
=pmax
;;
1747 mipsel-
*-netbsd*) machine
=pmax
;;
1748 mipseb-
*-netbsd*) machine
=pmax
;;
1749 ns32k-
*-netbsd*) machine
=ns32000
;;
1750 powerpc-
*-netbsd*) machine
=macppc
;;
1751 sparc
*-*-netbsd*) machine
=sparc
;;
1752 vax-
*-netbsd*) machine
=vax
;;
1753 arm-
*-netbsd*) machine
=arm
;;
1760 case "${canonical}" in
1761 alpha
*-*-openbsd*) machine
=alpha
;;
1762 i386-
*-openbsd*) machine
=intel386
;;
1763 x86_64-
*-openbsd*) machine
=amdx86-64
;;
1764 m68k-
*-openbsd*) machine
=hp9000s300
;;
1765 mipsel-
*-openbsd*) machine
=pmax
;;
1766 ns32k-
*-openbsd*) machine
=ns32000
;;
1767 sparc-
*-openbsd*) machine
=sparc
;;
1768 vax-
*-openbsd*) machine
=vax
;;
1775 case "${canonical}" in
1776 i
[3456]86-*-lynxos*) machine
=intel386
;;
1777 powerpc-
*-lynxos*) machine
=powerpc
;;
1782 arm-acorn-riscix1.1
* )
1783 machine
=acorn opsys
=riscix1-1
1785 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1786 ## This name is riscix12 instead of riscix1.2
1787 ## to avoid a file name conflict on MSDOS.
1788 machine
=acorn opsys
=riscix12
1794 case "${canonical}" in
1795 i
[345]86-*-bsdi*) machine
=intel386
;;
1796 sparc-
*-bsdi*) machine
=sparc
;;
1797 powerpc-
*-bsdi*) machine
=macppc
;;
1799 case "${canonical}" in
1800 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1801 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1802 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1803 *-*-bsdi3* ) opsys
=bsdos3
;;
1804 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1809 ## Strictly speaking, we need the version of the alliant operating
1810 ## system to choose the right machine file, but currently the
1811 ## configuration name doesn't tell us enough to choose the right
1812 ## one; we need to give alliants their own operating system name to
1813 ## do this right. When someone cares, they can help us.
1815 machine
=alliant4 opsys
=bsd4-2
1818 machine
=alliant-2800 opsys
=bsd4-3
1821 ## Alpha (DEC) machines.
1823 machine
=alpha opsys
=osf1
1824 # This is needed to find X11R6.1 libraries for certain tests.
1825 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1826 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1827 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1828 # due to non-traditional preprocessing with the current compiler
1829 # defaults. OSF 4 can also have that compiler version, and there
1830 # seems always to have been a usable /usr/bin/cpp.
1831 NON_GNU_CPP
=/usr
/bin
/cpp
1832 case "${canonical}" in
1833 alpha
*-dec-osf[5-9]*)
1838 alpha
*-*-linux-gnu* )
1839 machine
=alpha opsys
=gnu-linux
1843 machine
=arm opsys
=gnu-linux
1848 machine
=altos opsys
=usg5-2
1853 machine
=amdahl opsys
=usg5-2-2
1856 ## Apollo, Domain/OS
1858 machine
=apollo opsys
=bsd4-3
1861 ## AT&T 3b2, 3b5, 3b15, 3b20
1863 machine
=att3b opsys
=usg5-2-2
1866 ## AT&T 3b1 - The Mighty Unix PC!
1868 machine
=7300 opsys
=usg5-2-2
1873 machine
=ibmrs6000 opsys
=aix3-2
1878 machine
=dpx2 opsys
=usg5-3
1883 machine
=sps7 opsys
=usg5-2
1886 ## CCI 5/32, 6/32 -- see "Tahoe".
1889 ## I don't know what configuration name to use for this; config.sub
1890 ## doesn't seem to know anything about it. Hey, Celerity users, get
1891 ## in touch with us!
1892 celerity-celerity-bsd
* )
1893 machine
=celerity opsys
=bsd4-2
1897 ## What operating systems does this chip run that Emacs has been
1901 ## We'll use the catch-all code at the bottom to guess the
1902 ## operating system.
1906 mips-compaq-nonstopux
* )
1907 machine
=nonstopux opsys
=nonstopux
1911 *-convex-bsd* |
*-convex-convexos* )
1912 machine
=convex opsys
=bsd4-3
1913 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1914 NON_GNU_CPP
="cc -E -P"
1918 i
[3456]86-cubix-sysv* )
1919 machine
=intel386 opsys
=usg5-3
1923 cydra
*-cydrome-sysv* )
1924 machine
=cydra5 opsys
=usg5-3
1927 ## Data General AViiON Machines
1928 ## DG changed naming conventions with the release of 5.4.4.10, they
1929 ## dropped the initial 5.4 but left the intervening R. Because of the
1930 ## R this shouldn't conflict with older versions of the OS (which I
1931 ## think were named like dgux4.*). In addition, DG new AViiONs series
1932 ## uses either Motorola M88k or Intel Pentium CPUs.
1933 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1934 machine
=aviion opsys
=dgux4
1936 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1937 ## This name is dgux5-4-3 instead of dgux5-4r3
1938 ## to avoid a file name conflict on MSDOS.
1939 machine
=aviion opsys
=dgux5-4-3
1941 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1942 machine
=aviion opsys
=dgux5-4r2
1945 machine
=aviion opsys
=dgux
1948 ## Data General AViiON Intel (x86) Machines
1949 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1950 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1951 i
[345]86-dg-dguxR4* )
1952 machine
=aviion-intel opsys
=dgux4
1956 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1957 machine
=pmax opsys
=bsd4-2
1959 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1960 machine
=pmax opsys
=bsd4-3
1963 machine
=pmax opsys
=ultrix4-3
1966 machine
=pmax opsys
=osf1
1968 mips-dec-mach_bsd4.3
* )
1969 machine
=pmax opsys
=mach-bsd4-3
1972 ## Motorola Delta machines
1973 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1974 machine
=delta opsys
=usg5-3
1975 if test -z "`type gnucc | grep 'not found'`"
1977 if test -s /etc
/167config
1978 then CC
="gnucc -m68040"
1979 else CC
="gnucc -m68881"
1982 if test -z "`type gcc | grep 'not found'`"
1988 m88k-motorola-sysv4
* )
1989 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1990 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1991 # I hope there are not other 4.0 versions for this machine
1992 # which really need usg5-4 instead.
1993 machine
=delta88k opsys
=usg5-4-2
1995 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1996 machine
=delta88k opsys
=usg5-3
2001 machine
=dual opsys
=usg5-2
2003 m68
*-dual-uniplus* )
2004 machine
=dual opsys
=unipl5-2
2009 machine
=elxsi opsys
=usg5-2
2014 machine
=ns16000 opsys
=umax
2017 ## The GEC 63 - apparently, this port isn't really finished yet.
2018 # I'm sure we finished off the last of the machines, though. -- fx
2020 ## Gould Power Node and NP1
2022 machine
=gould opsys
=bsd4-2
2025 machine
=gould opsys
=bsd4-3
2028 machine
=gould-np1 opsys
=bsd4-3
2031 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2032 ## as far as Emacs is concerned).
2034 # Build needs to be different on 7.0 and later releases
2035 case "`uname -r`" in
2036 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2037 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2039 NON_GNU_CPP
="/lib/cpp"
2041 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2043 machine
=nh3000 opsys
=cxux
2045 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2046 powerpc-harris-powerunix
)
2047 machine
=nh6000 opsys
=powerunix
2048 NON_GNU_CPP
="cc -Xo -E -P"
2050 ## SR2001/SR2201 running HI-UX/MPP
2051 hppa1.1
-hitachi-hiuxmpp* )
2052 machine
=sr2k opsys
=hiuxmpp
2054 hppa1.1
-hitachi-hiuxwe2* )
2055 machine
=sr2k opsys
=hiuxwe2
2058 xps
*-honeywell-sysv* )
2059 machine
=xps100 opsys
=usg5-2
2062 ## HP 9000 series 200 or 300
2064 machine
=hp9000s300 opsys
=bsd4-3
2066 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2068 case "`uname -r`" in
2069 ## Someone's system reports A.B8.05 for this.
2070 ## I wonder what other possibilities there are.
2071 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2072 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2073 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2074 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2075 *) machine
=hp9000s300 opsys
=hpux
;;
2079 ## HP 9000 series 700 and 800, running HP/UX
2081 machine
=hp800 opsys
=hpux
2084 machine
=hp800 opsys
=hpux8
2086 hppa
*-hp-hpux9shr* )
2087 machine
=hp800 opsys
=hpux9shr
2090 machine
=hp800 opsys
=hpux9
2092 hppa
*-hp-hpux10.2
* )
2093 machine
=hp800 opsys
=hpux10-20
2096 machine
=hp800 opsys
=hpux10
2098 hppa
*-hp-hpux1[1-9]* )
2099 machine
=hp800 opsys
=hpux11
2100 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2103 hppa
*-*-linux-gnu* )
2104 machine
=hp800 opsys
=gnu-linux
2107 ## HP 9000 series 700 and 800, running HP/UX
2109 ## Cross-compilation? Nah!
2110 case "`uname -r`" in
2111 ## Someone's system reports A.B8.05 for this.
2112 ## I wonder what other possibilities there are.
2113 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2114 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2115 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2116 *) machine
=hp800 opsys
=hpux10
;;
2120 machine
=hp800 opsys
=nextstep
2125 machine
=orion opsys
=bsd4-2
2127 clipper-orion-bsd
* )
2128 machine
=orion105 opsys
=bsd4-2
2132 i
[3456]86-ibm-aix1.1
* )
2133 machine
=ibmps2-aix opsys
=usg5-2-2
2135 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2136 machine
=ibmps2-aix opsys
=usg5-3
2139 machine
=ibm370aix opsys
=usg5-3
2142 machine
=ibms390 opsys
=gnu-linux
2144 s390x-
*-linux-gnu* )
2145 machine
=ibms390x opsys
=gnu-linux
2147 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2148 machine
=ibmrs6000 opsys
=aix3-1
2150 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2151 machine
=ibmrs6000 opsys
=aix3-2-5
2153 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2154 machine
=ibmrs6000 opsys
=aix4-1
2156 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2157 machine
=ibmrs6000 opsys
=aix4-2
2159 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2160 machine
=ibmrs6000 opsys
=aix4-2
2162 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2163 machine
=ibmrs6000 opsys
=aix4
2165 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2166 machine
=ibmrs6000 opsys
=aix4-1
2168 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2169 machine
=ibmrs6000 opsys
=aix3-2
2172 machine
=ibmrt opsys
=bsd4-3
2175 machine
=ibmrt opsys
=bsd4-2
2178 machine
=ibmrt opsys
=bsd4-3
2181 machine
=ibmrt opsys
=bsd4-2
2184 machine
=ibmrt opsys
=bsd4-3
2187 machine
=ibmrt opsys
=bsd4-3
2190 machine
=ibmrt-aix opsys
=usg5-2-2
2193 ## Integrated Solutions `Optimum V'
2195 machine
=isi-ov opsys
=bsd4-2
2198 machine
=isi-ov opsys
=bsd4-3
2201 ## Intel 386 machines where we do care about the manufacturer
2202 i
[3456]86-intsys-sysv* )
2203 machine
=is386 opsys
=usg5-2-2
2207 i
[3456]86-prime-sysv* )
2208 machine
=i386 opsys
=usg5-3
2211 ## Sequent Symmetry running Dynix
2212 i
[3456]86-sequent-bsd* )
2213 machine
=symmetry opsys
=bsd4-3
2216 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2217 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2218 machine
=sequent-ptx opsys
=ptx4
2219 NON_GNU_CPP
=/lib
/cpp
2222 ## Sequent Symmetry running DYNIX/ptx
2223 ## Use the old cpp rather than the newer ANSI one.
2224 i
[3456]86-sequent-ptx* )
2225 machine
=sequent-ptx opsys
=ptx
2226 NON_GNU_CPP
="/lib/cpp"
2229 ## ncr machine running svr4.3.
2230 i
[3456]86-ncr-sysv4.3
)
2231 machine
=ncr386 opsys
=usg5-4-3
2234 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2235 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2236 i
[3456]86-ncr-sysv* )
2237 machine
=ncr386 opsys
=usg5-4-2
2240 ## Intel Paragon OSF/1
2242 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2247 machine
=i860 opsys
=usg5-4
2248 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2249 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2252 ## Macintosh PowerPC
2253 powerpc
*-*-linux-gnu* )
2254 machine
=macppc opsys
=gnu-linux
2257 ## Masscomp machines
2258 m68
*-masscomp-rtu* )
2259 machine
=masscomp opsys
=rtu
2262 ## Megatest machines
2263 m68
*-megatest-bsd* )
2264 machine
=mega68 opsys
=bsd4-2
2267 ## Workstations sold by MIPS
2268 ## This is not necessarily all workstations using the MIPS processor -
2269 ## Irises are produced by SGI, and DECstations by DEC.
2271 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2272 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2273 ## it gives for choosing between the alternatives seems to be "Use
2274 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2275 ## the BSD world." I'll assume that these are instructions for
2276 ## handling two odd situations, and that every other situation
2277 ## should use mips.h and usg5-2-2, they being listed first.
2280 ## Fall through to the general code at the bottom to decide on the OS.
2282 mips-mips-riscos4
* )
2283 machine
=mips4 opsys
=bsd4-3
2284 NON_GNU_CC
="cc -systype bsd43"
2285 NON_GNU_CPP
="cc -systype bsd43 -E"
2287 mips-mips-riscos5
* )
2288 machine
=mips4 opsys
=riscos5
2289 NON_GNU_CC
="cc -systype bsd43"
2290 NON_GNU_CPP
="cc -systype bsd43 -E"
2293 machine
=mips opsys
=bsd4-3
2296 machine
=mips opsys
=usg5-2-2
2300 m68
*-next-* | m68k-
*-nextstep* )
2301 machine
=m68k opsys
=nextstep
2304 ## The complete machine from National Semiconductor
2306 machine
=ns32000 opsys
=usg5-2
2310 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2311 machine
=tower32 opsys
=usg5-2-2
2313 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2314 machine
=tower32v3 opsys
=usg5-3
2319 machine
=ews4800 opsys
=ux4800
2322 ## Nixdorf Targon 31
2323 m68
*-nixdorf-sysv* )
2324 machine
=targon31 opsys
=usg5-2-2
2329 machine
=nu opsys
=usg5-2
2334 machine
=plexus opsys
=usg5-2
2338 ## I don't really have any idea what sort of processor the Pyramid has,
2339 ## so I'm assuming it is its own architecture.
2340 pyramid-pyramid-bsd
* )
2341 machine
=pyramid opsys
=bsd4-2
2345 ns32k-sequent-bsd4.2
* )
2346 machine
=sequent opsys
=bsd4-2
2348 ns32k-sequent-bsd4.3
* )
2349 machine
=sequent opsys
=bsd4-3
2353 mips-siemens-sysv
* | mips-sni-sysv
*)
2354 machine
=mips-siemens opsys
=usg5-4
2355 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2356 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2359 ## Silicon Graphics machines
2360 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2362 machine
=irist opsys
=iris3-5
2364 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2365 machine
=irist opsys
=iris3-6
2369 machine
=iris4d opsys
=irix3-3
2372 machine
=iris4d opsys
=irix4-0
2375 machine
=iris4d opsys
=irix6-5
2376 # Without defining _LANGUAGE_C, things get masked out in the headers
2377 # so that, for instance, grepping for `free' in stdlib.h fails and
2378 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2379 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2380 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2383 machine
=iris4d opsys
=irix6-0
2384 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2385 # but presumably it does no harm.
2386 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2387 # -32 probably isn't necessary in later v.6s -- anyone know which?
2388 NON_GCC_TEST_OPTIONS
=-32
2390 mips-sgi-irix5.
[01]* )
2391 machine
=iris4d opsys
=irix5-0
2393 mips-sgi-irix5
* | mips-sgi-irix
* )
2394 machine
=iris4d opsys
=irix5-2
2399 machine
=news opsys
=bsd4-2
2402 machine
=news opsys
=bsd4-3
2404 m68
*-sony-newsos3* | m68
*-sony-news3*)
2405 machine
=news opsys
=bsd4-3
2407 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2408 machine
=news-risc opsys
=bsd4-3
2410 mips-sony-newsos6
* )
2411 machine
=news-r6 opsys
=newsos6
2414 machine
=news-risc opsys
=newsos5
2419 machine
=stride opsys
=usg5-2
2423 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2424 machine
=sparc opsys
=gnu-linux
2427 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2428 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2429 | rs6000-
*-solaris2*)
2430 case "${canonical}" in
2431 m68
*-sunos1* ) machine
=sun1
;;
2432 m68
*-sunos2* ) machine
=sun2
;;
2433 m68
* ) machine
=sun3
;;
2434 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2435 i
[3456]86-*-* ) machine
=intel386
;;
2436 powerpcle
* ) machine
=powerpcle
;;
2437 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2438 sparc
* ) machine
=sparc
;;
2441 case "${canonical}" in
2442 ## The Sun386 didn't get past 4.0.
2443 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2444 *-sunos4.0
* ) opsys
=sunos4-0
;;
2445 *-sunos4.1.
[3-9]*noshare
)
2446 ## This name is sunos413 instead of sunos4-1-3
2447 ## to avoid a file name conflict on MSDOS.
2449 NON_GNU_CPP
=/usr
/lib
/cpp
2450 NON_GCC_TEST_OPTIONS
=-Bstatic
2451 GCC_TEST_OPTIONS
=-static
2453 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2455 NON_GNU_CPP
=/usr
/lib
/cpp
2457 *-sunos4* |
*-sunos )
2459 NON_GCC_TEST_OPTIONS
=-Bstatic
2460 GCC_TEST_OPTIONS
=-static
2462 *-sunos5.3
* |
*-solaris2.3
* )
2464 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2466 *-sunos5.4
* |
*-solaris2.4
* )
2468 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2471 *-sunos5.5
* |
*-solaris2.5
* )
2473 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2476 *-sunos5.6
* |
*-solaris2.6
* )
2478 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2481 *-sunos5* |
*-solaris* )
2483 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2487 ## Watch out for a compiler that we know will not work.
2488 case "${canonical}" in
2489 *-solaris* |
*-sunos5* )
2490 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2491 ## /usr/ucb/cc doesn't work;
2492 ## we should find some other compiler that does work.
2500 machine
=sparc opsys
=nextstep
2504 m68
*-tadpole-sysv* )
2505 machine
=tad68k opsys
=usg5-3
2509 tahoe-tahoe-bsd4.2
* )
2510 machine
=tahoe opsys
=bsd4-2
2512 tahoe-tahoe-bsd4.3
* )
2513 machine
=tahoe opsys
=bsd4-3
2516 ## Tandem Integrity S2
2518 machine
=tandem-s2 opsys
=usg5-3
2522 m88k-tektronix-sysv3
* )
2523 machine
=tekxd88 opsys
=usg5-3
2526 ## Tektronix 16000 box (6130?)
2527 ns16k-tektronix-bsd
* )
2528 machine
=ns16000 opsys
=bsd4-2
2531 ## src/m/tek4300.h hints that this is a m68k machine.
2532 m68
*-tektronix-bsd* )
2533 machine
=tek4300 opsys
=bsd4-3
2537 ## We seem to have lost the machine-description file titan.h!
2539 machine
=titan opsys
=usg5-3
2542 ## Ustation E30 (SS5E)
2543 m68
*-unisys-uniplus* )
2544 machine
=ustation opsystem
=unipl5-2
2550 case "${canonical}" in
2551 *-bsd4.1
* ) opsys
=bsd4-1
;;
2552 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2553 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2554 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2555 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2556 *-vms* ) opsys
=vms
;;
2562 ns16k-whitechapel-
* )
2564 ## We don't know what sort of OS runs on these; we'll let the
2565 ## operating system guessing code below try.
2570 machine
=wicat opsys
=usg5-2
2575 machine
=ia64 opsys
=gnu-linux
2578 ## Intel 386 machines where we don't care about the manufacturer
2581 case "${canonical}" in
2582 *-cygwin ) opsys
=cygwin
;;
2583 *-darwin* ) opsys
=darwin
2584 CPP
="${CC-cc} -E -no-cpp-precomp"
2586 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2587 *-isc2.2
* ) opsys
=isc2-2
;;
2588 *-isc4.0
* ) opsys
=isc4-0
;;
2589 *-isc4.
* ) opsys
=isc4-1
2590 GCC_TEST_OPTIONS
=-posix
2591 NON_GCC_TEST_OPTIONS
=-Xp
2593 *-isc* ) opsys
=isc3-0
;;
2594 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2595 *-esix* ) opsys
=esix
;;
2596 *-xenix* ) opsys
=xenix
;;
2597 *-linux-gnu* ) opsys
=gnu-linux
;;
2598 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2599 *-sco3.2v5
* ) opsys
=sco5
2600 NON_GNU_CPP
=/lib
/cpp
2601 # Prevent -belf from being passed to $CPP.
2602 # /lib/cpp does not accept it.
2603 OVERRIDE_CPPFLAGS
=" "
2605 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2606 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2607 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2608 *-386bsd* ) opsys
=386bsd
;;
2609 *-nextstep* ) opsys
=nextstep
;;
2610 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2614 ## m68k Linux-based GNU system
2616 machine
=m68k opsys
=gnu-linux
2619 ## Mips Linux-based GNU system
2620 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2621 machine
=mips opsys
=gnu-linux
2625 sparc-fujitsu-sysv4
* )
2626 machine
=sparc opsys
=uxpds
2627 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2632 f301-fujitsu-uxpv4.1
)
2633 machine
=f301 opsys
=uxpv
2636 ## Darwin / Mac OS X
2637 powerpc-apple-darwin
* )
2638 machine
=powermac opsys
=darwin
2639 # Define CPP as follows to make autoconf work correctly.
2640 CPP
="${CC-cc} -E -no-cpp-precomp"
2641 # Use fink packages if available.
2642 if test -d /sw
/include
&& test -d /sw
/lib
; then
2643 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2644 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2645 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2649 ## AMD x86-64 Linux-based GNU system
2650 x86_64-
*-linux-gnu* )
2651 machine
=amdx86-64 opsys
=gnu-linux
2659 ### If the code above didn't choose an operating system, just choose
2660 ### an operating system based on the configuration name. You really
2661 ### only want to use this when you have no idea what the right
2662 ### operating system is; if you know what operating systems a machine
2663 ### runs, it's cleaner to make it explicit in the case statement
2665 if test x
"${opsys}" = x
; then
2666 case "${canonical}" in
2667 *-gnu* ) opsys
=gnu
;;
2668 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2669 *-bsd4.2
) opsys
=bsd4-2
;;
2670 *-bsd4.3
) opsys
=bsd4-3
;;
2671 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2672 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2673 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2674 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2675 *-sysv4.2uw
* ) opsys
=unixware
;;
2676 *-sysv5uw* ) opsys
=unixware
;;
2677 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2678 *-sysv4.1
* |
*-sysvr4.1
* )
2679 NON_GNU_CPP
=/usr
/lib
/cpp
2681 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2682 if [ x
$NON_GNU_CPP = x
]; then
2683 if [ -f /usr
/ccs
/lib
/cpp
]; then
2684 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2686 NON_GNU_CPP
=/lib
/cpp
2690 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2699 if test $unported = yes; then
2700 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2701 Check \`etc/MACHINES' for recognized configuration names." >&5
2702 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2703 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2704 { (exit 1); exit 1; }; }
2707 machfile
="m/${machine}.h"
2708 opsysfile
="s/${opsys}.h"
2711 #### Choose a compiler.
2712 test -n "$CC" && cc_specified
=yes
2714 # Save the value of CFLAGS that the user specified.
2715 SPECIFIED_CFLAGS
="$CFLAGS"
2718 "yes" ) CC
="gcc" GCC
=yes ;;
2719 "no" ) : ${CC=cc} ;;
2723 ac_cpp
='$CPP $CPPFLAGS'
2724 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2725 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2726 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2727 if test -n "$ac_tool_prefix"; then
2728 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2729 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2730 echo "$as_me:$LINENO: checking for $ac_word" >&5
2731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2732 if test "${ac_cv_prog_CC+set}" = set; then
2733 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 if test -n "$CC"; then
2736 ac_cv_prog_CC
="$CC" # Let the user override the test.
2738 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2742 test -z "$as_dir" && as_dir
=.
2743 for ac_exec_ext
in '' $ac_executable_extensions; do
2744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2745 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2755 if test -n "$CC"; then
2756 echo "$as_me:$LINENO: result: $CC" >&5
2757 echo "${ECHO_T}$CC" >&6
2759 echo "$as_me:$LINENO: result: no" >&5
2760 echo "${ECHO_T}no" >&6
2764 if test -z "$ac_cv_prog_CC"; then
2766 # Extract the first word of "gcc", so it can be a program name with args.
2767 set dummy gcc
; ac_word
=$2
2768 echo "$as_me:$LINENO: checking for $ac_word" >&5
2769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2770 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2773 if test -n "$ac_ct_CC"; then
2774 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2776 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2780 test -z "$as_dir" && as_dir
=.
2781 for ac_exec_ext
in '' $ac_executable_extensions; do
2782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2783 ac_cv_prog_ac_ct_CC
="gcc"
2784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2793 if test -n "$ac_ct_CC"; then
2794 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2795 echo "${ECHO_T}$ac_ct_CC" >&6
2797 echo "$as_me:$LINENO: result: no" >&5
2798 echo "${ECHO_T}no" >&6
2806 if test -z "$CC"; then
2807 if test -n "$ac_tool_prefix"; then
2808 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2809 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2810 echo "$as_me:$LINENO: checking for $ac_word" >&5
2811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2812 if test "${ac_cv_prog_CC+set}" = set; then
2813 echo $ECHO_N "(cached) $ECHO_C" >&6
2815 if test -n "$CC"; then
2816 ac_cv_prog_CC
="$CC" # Let the user override the test.
2818 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2822 test -z "$as_dir" && as_dir
=.
2823 for ac_exec_ext
in '' $ac_executable_extensions; do
2824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2825 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 if test -n "$CC"; then
2836 echo "$as_me:$LINENO: result: $CC" >&5
2837 echo "${ECHO_T}$CC" >&6
2839 echo "$as_me:$LINENO: result: no" >&5
2840 echo "${ECHO_T}no" >&6
2844 if test -z "$ac_cv_prog_CC"; then
2846 # Extract the first word of "cc", so it can be a program name with args.
2847 set dummy cc
; ac_word
=$2
2848 echo "$as_me:$LINENO: checking for $ac_word" >&5
2849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2850 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2851 echo $ECHO_N "(cached) $ECHO_C" >&6
2853 if test -n "$ac_ct_CC"; then
2854 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2856 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2860 test -z "$as_dir" && as_dir
=.
2861 for ac_exec_ext
in '' $ac_executable_extensions; do
2862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2863 ac_cv_prog_ac_ct_CC
="cc"
2864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2872 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2873 if test -n "$ac_ct_CC"; then
2874 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2875 echo "${ECHO_T}$ac_ct_CC" >&6
2877 echo "$as_me:$LINENO: result: no" >&5
2878 echo "${ECHO_T}no" >&6
2887 if test -z "$CC"; then
2888 # Extract the first word of "cc", so it can be a program name with args.
2889 set dummy cc
; ac_word
=$2
2890 echo "$as_me:$LINENO: checking for $ac_word" >&5
2891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2892 if test "${ac_cv_prog_CC+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2895 if test -n "$CC"; then
2896 ac_cv_prog_CC
="$CC" # Let the user override the test.
2899 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2903 test -z "$as_dir" && as_dir
=.
2904 for ac_exec_ext
in '' $ac_executable_extensions; do
2905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2906 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2907 ac_prog_rejected
=yes
2911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2917 if test $ac_prog_rejected = yes; then
2918 # We found a bogon in the path, so make sure we never use it.
2919 set dummy
$ac_cv_prog_CC
2921 if test $# != 0; then
2922 # We chose a different compiler from the bogus one.
2923 # However, it has the same basename, so the bogon will be chosen
2924 # first if we set CC to just the basename; use the full file name.
2926 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2932 if test -n "$CC"; then
2933 echo "$as_me:$LINENO: result: $CC" >&5
2934 echo "${ECHO_T}$CC" >&6
2936 echo "$as_me:$LINENO: result: no" >&5
2937 echo "${ECHO_T}no" >&6
2941 if test -z "$CC"; then
2942 if test -n "$ac_tool_prefix"; then
2945 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2946 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2947 echo "$as_me:$LINENO: checking for $ac_word" >&5
2948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2949 if test "${ac_cv_prog_CC+set}" = set; then
2950 echo $ECHO_N "(cached) $ECHO_C" >&6
2952 if test -n "$CC"; then
2953 ac_cv_prog_CC
="$CC" # Let the user override the test.
2955 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2959 test -z "$as_dir" && as_dir
=.
2960 for ac_exec_ext
in '' $ac_executable_extensions; do
2961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2962 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 if test -n "$CC"; then
2973 echo "$as_me:$LINENO: result: $CC" >&5
2974 echo "${ECHO_T}$CC" >&6
2976 echo "$as_me:$LINENO: result: no" >&5
2977 echo "${ECHO_T}no" >&6
2980 test -n "$CC" && break
2983 if test -z "$CC"; then
2987 # Extract the first word of "$ac_prog", so it can be a program name with args.
2988 set dummy
$ac_prog; ac_word
=$2
2989 echo "$as_me:$LINENO: checking for $ac_word" >&5
2990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2991 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2992 echo $ECHO_N "(cached) $ECHO_C" >&6
2994 if test -n "$ac_ct_CC"; then
2995 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3001 test -z "$as_dir" && as_dir
=.
3002 for ac_exec_ext
in '' $ac_executable_extensions; do
3003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3004 ac_cv_prog_ac_ct_CC
="$ac_prog"
3005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3014 if test -n "$ac_ct_CC"; then
3015 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3016 echo "${ECHO_T}$ac_ct_CC" >&6
3018 echo "$as_me:$LINENO: result: no" >&5
3019 echo "${ECHO_T}no" >&6
3022 test -n "$ac_ct_CC" && break
3031 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3032 See \`config.log' for more details." >&5
3033 echo "$as_me: error: no acceptable C compiler found in \$PATH
3034 See \`config.log' for more details." >&2;}
3035 { (exit 1); exit 1; }; }
3037 # Provide some information about the compiler.
3038 echo "$as_me:$LINENO:" \
3039 "checking for C compiler version" >&5
3040 ac_compiler
=`set X $ac_compile; echo $2`
3041 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3042 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }
3046 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3047 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }
3051 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3052 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); }
3057 cat >conftest.
$ac_ext <<_ACEOF
3060 cat confdefs.h
>>conftest.
$ac_ext
3061 cat >>conftest.
$ac_ext <<_ACEOF
3062 /* end confdefs.h. */
3072 ac_clean_files_save
=$ac_clean_files
3073 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3074 # Try to create an executable without -o first, disregard a.out.
3075 # It will help us diagnose broken compilers, and finding out an intuition
3077 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3078 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3079 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3080 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3081 (eval $ac_link_default) 2>&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); }; then
3085 # Find the output, starting from the most likely. This scheme is
3086 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3089 # Be careful to initialize this variable, since it used to be cached.
3090 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3092 # b.out is created by i960 compilers.
3093 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3095 test -f "$ac_file" ||
continue
3097 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3100 # This is the source file.
3103 # We found the default executable, but exeext='' is most
3107 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3108 # FIXME: I believe we export ac_cv_exeext for Libtool,
3109 # but it would be cool to find out if it's true. Does anybody
3110 # maintain Libtool? --akim.
3118 echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.
$ac_ext >&5
3121 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3122 See \`config.log' for more details." >&5
3123 echo "$as_me: error: C compiler cannot create executables
3124 See \`config.log' for more details." >&2;}
3125 { (exit 77); exit 77; }; }
3128 ac_exeext
=$ac_cv_exeext
3129 echo "$as_me:$LINENO: result: $ac_file" >&5
3130 echo "${ECHO_T}$ac_file" >&6
3132 # Check the compiler produces executables we can run. If not, either
3133 # the compiler is broken, or we cross compile.
3134 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3135 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3136 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3137 # If not cross compiling, check that we can run a simple program.
3138 if test "$cross_compiling" != yes; then
3139 if { ac_try
='./$ac_file'
3140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; }; then
3147 if test "$cross_compiling" = maybe
; then
3150 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3151 If you meant to cross compile, use \`--host'.
3152 See \`config.log' for more details." >&5
3153 echo "$as_me: error: cannot run C compiled programs.
3154 If you meant to cross compile, use \`--host'.
3155 See \`config.log' for more details." >&2;}
3156 { (exit 1); exit 1; }; }
3160 echo "$as_me:$LINENO: result: yes" >&5
3161 echo "${ECHO_T}yes" >&6
3163 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3164 ac_clean_files
=$ac_clean_files_save
3165 # Check the compiler produces executables we can run. If not, either
3166 # the compiler is broken, or we cross compile.
3167 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3168 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3169 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3170 echo "${ECHO_T}$cross_compiling" >&6
3172 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3173 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3175 (eval $ac_link) 2>&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; then
3179 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3180 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3181 # work properly (i.e., refer to `conftest.exe'), while it won't with
3183 for ac_file
in conftest.exe conftest conftest.
*; do
3184 test -f "$ac_file" ||
continue
3186 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3187 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3194 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3195 See \`config.log' for more details." >&5
3196 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3197 See \`config.log' for more details." >&2;}
3198 { (exit 1); exit 1; }; }
3201 rm -f conftest
$ac_cv_exeext
3202 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3203 echo "${ECHO_T}$ac_cv_exeext" >&6
3205 rm -f conftest.
$ac_ext
3206 EXEEXT
=$ac_cv_exeext
3208 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3209 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3210 if test "${ac_cv_objext+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3213 cat >conftest.
$ac_ext <<_ACEOF
3216 cat confdefs.h
>>conftest.
$ac_ext
3217 cat >>conftest.
$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3228 rm -f conftest.o conftest.obj
3229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3230 (eval $ac_compile) 2>&5
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }; then
3234 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3236 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3237 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3242 echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.
$ac_ext >&5
3245 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3246 See \`config.log' for more details." >&5
3247 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3248 See \`config.log' for more details." >&2;}
3249 { (exit 1); exit 1; }; }
3252 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3254 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3255 echo "${ECHO_T}$ac_cv_objext" >&6
3256 OBJEXT
=$ac_cv_objext
3258 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3259 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3260 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3263 cat >conftest.
$ac_ext <<_ACEOF
3266 cat confdefs.h
>>conftest.
$ac_ext
3267 cat >>conftest.
$ac_ext <<_ACEOF
3268 /* end confdefs.h. */
3281 rm -f conftest.
$ac_objext
3282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3283 (eval $ac_compile) 2>conftest.er1
3285 grep -v '^ *+' conftest.er1
>conftest.err
3287 cat conftest.err
>&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); } &&
3290 { ac_try
='test -z "$ac_c_werror_flag"
3291 || test ! -s conftest.err'
3292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }; } &&
3297 { ac_try
='test -s conftest.$ac_objext'
3298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); }; }; then
3305 echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.
$ac_ext >&5
3310 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3311 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3314 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3315 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3316 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3317 ac_test_CFLAGS
=${CFLAGS+set}
3318 ac_save_CFLAGS
=$CFLAGS
3320 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3321 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3322 if test "${ac_cv_prog_cc_g+set}" = set; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
3325 cat >conftest.
$ac_ext <<_ACEOF
3328 cat confdefs.h
>>conftest.
$ac_ext
3329 cat >>conftest.
$ac_ext <<_ACEOF
3330 /* end confdefs.h. */
3340 rm -f conftest.
$ac_objext
3341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3342 (eval $ac_compile) 2>conftest.er1
3344 grep -v '^ *+' conftest.er1
>conftest.err
3346 cat conftest.err
>&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); } &&
3349 { ac_try
='test -z "$ac_c_werror_flag"
3350 || test ! -s conftest.err'
3351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; } &&
3356 { ac_try
='test -s conftest.$ac_objext'
3357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; }; then
3364 echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.
$ac_ext >&5
3369 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3371 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3372 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3373 if test "$ac_test_CFLAGS" = set; then
3374 CFLAGS
=$ac_save_CFLAGS
3375 elif test $ac_cv_prog_cc_g = yes; then
3376 if test "$GCC" = yes; then
3382 if test "$GCC" = yes; then
3388 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3389 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3390 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
3393 ac_cv_prog_cc_stdc
=no
3395 cat >conftest.
$ac_ext <<_ACEOF
3398 cat confdefs.h
>>conftest.
$ac_ext
3399 cat >>conftest.
$ac_ext <<_ACEOF
3400 /* end confdefs.h. */
3403 #include <sys/types.h>
3404 #include <sys/stat.h>
3405 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3406 struct buf { int x; };
3407 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3408 static char *e (p, i)
3414 static char *f (char * (*g) (char **, int), char **p, ...)
3419 s = g (p, va_arg (v,int));
3424 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3425 function prototypes and stuff, but not '\xHH' hex character constants.
3426 These don't provoke an error unfortunately, instead are silently treated
3427 as 'x'. The following induces an error, until -std1 is added to get
3428 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3429 array size at least. It's necessary to write '\x00'==0 to get something
3430 that's true only with -std1. */
3431 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3433 int test (int i, double x);
3434 struct s1 {int (*f) (int a);};
3435 struct s2 {int (*f) (double a);};
3436 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3442 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3447 # Don't try gcc -ansi; that turns off useful extensions and
3448 # breaks some systems' header files.
3449 # AIX -qlanglvl=ansi
3450 # Ultrix and OSF/1 -std1
3451 # HP-UX 10.20 and later -Ae
3452 # HP-UX older versions -Aa -D_HPUX_SOURCE
3453 # SVR4 -Xc -D__EXTENSIONS__
3454 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3456 CC
="$ac_save_CC $ac_arg"
3457 rm -f conftest.
$ac_objext
3458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3459 (eval $ac_compile) 2>conftest.er1
3461 grep -v '^ *+' conftest.er1
>conftest.err
3463 cat conftest.err
>&5
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); } &&
3466 { ac_try
='test -z "$ac_c_werror_flag"
3467 || test ! -s conftest.err'
3468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); }; } &&
3473 { ac_try
='test -s conftest.$ac_objext'
3474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }; }; then
3479 ac_cv_prog_cc_stdc
=$ac_arg
3482 echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.
$ac_ext >&5
3486 rm -f conftest.err conftest.
$ac_objext
3488 rm -f conftest.
$ac_ext conftest.
$ac_objext
3493 case "x$ac_cv_prog_cc_stdc" in
3495 echo "$as_me:$LINENO: result: none needed" >&5
3496 echo "${ECHO_T}none needed" >&6 ;;
3498 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3499 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3500 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3503 # Some people use a C++ compiler to compile C. Since we use `exit',
3504 # in C++ we need to declare it. In case someone uses the same compiler
3505 # for both compiling C and C++ we need to have the C++ compiler decide
3506 # the declaration of exit, since it's the most demanding environment.
3507 cat >conftest.
$ac_ext <<_ACEOF
3512 rm -f conftest.
$ac_objext
3513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3514 (eval $ac_compile) 2>conftest.er1
3516 grep -v '^ *+' conftest.er1
>conftest.err
3518 cat conftest.err
>&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); } &&
3521 { ac_try
='test -z "$ac_c_werror_flag"
3522 || test ! -s conftest.err'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; } &&
3528 { ac_try
='test -s conftest.$ac_objext'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; }; then
3534 for ac_declaration
in \
3536 'extern "C" void std::exit (int) throw (); using std::exit;' \
3537 'extern "C" void std::exit (int); using std::exit;' \
3538 'extern "C" void exit (int) throw ();' \
3539 'extern "C" void exit (int);' \
3542 cat >conftest.
$ac_ext <<_ACEOF
3545 cat confdefs.h
>>conftest.
$ac_ext
3546 cat >>conftest.
$ac_ext <<_ACEOF
3547 /* end confdefs.h. */
3558 rm -f conftest.
$ac_objext
3559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3560 (eval $ac_compile) 2>conftest.er1
3562 grep -v '^ *+' conftest.er1
>conftest.err
3564 cat conftest.err
>&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); } &&
3567 { ac_try
='test -z "$ac_c_werror_flag"
3568 || test ! -s conftest.err'
3569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); }; } &&
3574 { ac_try
='test -s conftest.$ac_objext'
3575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }; }; then
3582 echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.
$ac_ext >&5
3587 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3588 cat >conftest.
$ac_ext <<_ACEOF
3591 cat confdefs.h
>>conftest.
$ac_ext
3592 cat >>conftest.
$ac_ext <<_ACEOF
3593 /* end confdefs.h. */
3603 rm -f conftest.
$ac_objext
3604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3605 (eval $ac_compile) 2>conftest.er1
3607 grep -v '^ *+' conftest.er1
>conftest.err
3609 cat conftest.err
>&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); } &&
3612 { ac_try
='test -z "$ac_c_werror_flag"
3613 || test ! -s conftest.err'
3614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); }; } &&
3619 { ac_try
='test -s conftest.$ac_objext'
3620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); }; }; then
3627 echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.
$ac_ext >&5
3631 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3634 if test -n "$ac_declaration"; then
3635 echo '#ifdef __cplusplus' >>confdefs.h
3636 echo $ac_declaration >>confdefs.h
3637 echo '#endif' >>confdefs.h
3641 echo "$as_me: failed program was:" >&5
3642 sed 's/^/| /' conftest.
$ac_ext >&5
3645 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3647 ac_cpp
='$CPP $CPPFLAGS'
3648 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3653 # On Suns, sometimes $CPP names a directory.
3654 if test -n "$CPP" && test -d "$CPP"; then
3658 #### Some systems specify a CPP to use unless we are using GCC.
3659 #### Now that we know whether we are using GCC, we can decide whether
3660 #### to use that one.
3661 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3666 #### Some systems specify a CC to use unless we are using GCC.
3667 #### Now that we know whether we are using GCC, we can decide whether
3668 #### to use that one.
3669 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3670 test x
$cc_specified != xyes
3675 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3677 CC
="$CC $GCC_TEST_OPTIONS"
3680 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3682 CC
="$CC $NON_GCC_TEST_OPTIONS"
3687 ac_cpp
='$CPP $CPPFLAGS'
3688 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3689 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3690 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3691 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3692 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3693 # On Suns, sometimes $CPP names a directory.
3694 if test -n "$CPP" && test -d "$CPP"; then
3697 if test -z "$CPP"; then
3698 if test "${ac_cv_prog_CPP+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 # Double quotes because CPP needs to be expanded
3702 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3705 for ac_c_preproc_warn_flag
in '' yes
3707 # Use a header file that comes with gcc, so configuring glibc
3708 # with a fresh cross-compiler works.
3709 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3710 # <limits.h> exists even on freestanding compilers.
3711 # On the NeXT, cc -E runs the code through the compiler's parser,
3712 # not just through cpp. "Syntax error" is here to catch this case.
3713 cat >conftest.
$ac_ext <<_ACEOF
3716 cat confdefs.h
>>conftest.
$ac_ext
3717 cat >>conftest.
$ac_ext <<_ACEOF
3718 /* end confdefs.h. */
3720 # include <limits.h>
3722 # include <assert.h>
3726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3727 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3729 grep -v '^ *+' conftest.er1
>conftest.err
3731 cat conftest.err
>&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); } >/dev
/null
; then
3734 if test -s conftest.err
; then
3735 ac_cpp_err
=$ac_c_preproc_warn_flag
3736 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3743 if test -z "$ac_cpp_err"; then
3746 echo "$as_me: failed program was:" >&5
3747 sed 's/^/| /' conftest.
$ac_ext >&5
3749 # Broken: fails on valid input.
3752 rm -f conftest.err conftest.
$ac_ext
3754 # OK, works on sane cases. Now check whether non-existent headers
3755 # can be detected and how.
3756 cat >conftest.
$ac_ext <<_ACEOF
3759 cat confdefs.h
>>conftest.
$ac_ext
3760 cat >>conftest.
$ac_ext <<_ACEOF
3761 /* end confdefs.h. */
3762 #include <ac_nonexistent.h>
3764 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3765 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3767 grep -v '^ *+' conftest.er1
>conftest.err
3769 cat conftest.err
>&5
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); } >/dev
/null
; then
3772 if test -s conftest.err
; then
3773 ac_cpp_err
=$ac_c_preproc_warn_flag
3774 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3781 if test -z "$ac_cpp_err"; then
3782 # Broken: success on invalid input.
3785 echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.
$ac_ext >&5
3788 # Passes both tests.
3792 rm -f conftest.err conftest.
$ac_ext
3795 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3796 rm -f conftest.err conftest.
$ac_ext
3797 if $ac_preproc_ok; then
3809 echo "$as_me:$LINENO: result: $CPP" >&5
3810 echo "${ECHO_T}$CPP" >&6
3812 for ac_c_preproc_warn_flag
in '' yes
3814 # Use a header file that comes with gcc, so configuring glibc
3815 # with a fresh cross-compiler works.
3816 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3817 # <limits.h> exists even on freestanding compilers.
3818 # On the NeXT, cc -E runs the code through the compiler's parser,
3819 # not just through cpp. "Syntax error" is here to catch this case.
3820 cat >conftest.
$ac_ext <<_ACEOF
3823 cat confdefs.h
>>conftest.
$ac_ext
3824 cat >>conftest.
$ac_ext <<_ACEOF
3825 /* end confdefs.h. */
3827 # include <limits.h>
3829 # include <assert.h>
3833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3834 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3836 grep -v '^ *+' conftest.er1
>conftest.err
3838 cat conftest.err
>&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } >/dev
/null
; then
3841 if test -s conftest.err
; then
3842 ac_cpp_err
=$ac_c_preproc_warn_flag
3843 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3850 if test -z "$ac_cpp_err"; then
3853 echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.
$ac_ext >&5
3856 # Broken: fails on valid input.
3859 rm -f conftest.err conftest.
$ac_ext
3861 # OK, works on sane cases. Now check whether non-existent headers
3862 # can be detected and how.
3863 cat >conftest.
$ac_ext <<_ACEOF
3866 cat confdefs.h
>>conftest.
$ac_ext
3867 cat >>conftest.
$ac_ext <<_ACEOF
3868 /* end confdefs.h. */
3869 #include <ac_nonexistent.h>
3871 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3872 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3874 grep -v '^ *+' conftest.er1
>conftest.err
3876 cat conftest.err
>&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); } >/dev
/null
; then
3879 if test -s conftest.err
; then
3880 ac_cpp_err
=$ac_c_preproc_warn_flag
3881 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3888 if test -z "$ac_cpp_err"; then
3889 # Broken: success on invalid input.
3892 echo "$as_me: failed program was:" >&5
3893 sed 's/^/| /' conftest.
$ac_ext >&5
3895 # Passes both tests.
3899 rm -f conftest.err conftest.
$ac_ext
3902 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3903 rm -f conftest.err conftest.
$ac_ext
3904 if $ac_preproc_ok; then
3907 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3908 See \`config.log' for more details." >&5
3909 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3910 See \`config.log' for more details." >&2;}
3911 { (exit 1); exit 1; }; }
3915 ac_cpp
='$CPP $CPPFLAGS'
3916 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3917 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3918 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3921 echo "$as_me:$LINENO: checking for egrep" >&5
3922 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3923 if test "${ac_cv_prog_egrep+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3927 then ac_cv_prog_egrep
='grep -E'
3928 else ac_cv_prog_egrep
='egrep'
3931 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3932 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3933 EGREP
=$ac_cv_prog_egrep
3937 echo "$as_me:$LINENO: checking for AIX" >&5
3938 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3939 cat >conftest.
$ac_ext <<_ACEOF
3942 cat confdefs.h
>>conftest.
$ac_ext
3943 cat >>conftest.
$ac_ext <<_ACEOF
3944 /* end confdefs.h. */
3950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3951 $EGREP "yes" >/dev
/null
2>&1; then
3952 echo "$as_me:$LINENO: result: yes" >&5
3953 echo "${ECHO_T}yes" >&6
3954 cat >>confdefs.h
<<\_ACEOF
3955 #define _ALL_SOURCE 1
3959 echo "$as_me:$LINENO: result: no" >&5
3960 echo "${ECHO_T}no" >&6
3966 cat >>confdefs.h
<<\_ACEOF
3967 #define _GNU_SOURCE 1
3972 ### Use -Wno-pointer-sign if the compiler supports it
3973 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3974 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3975 SAVE_CFLAGS
="$CFLAGS"
3976 CFLAGS
="$CFLAGS -Wno-pointer-sign"
3977 cat >conftest.
$ac_ext <<_ACEOF
3980 cat confdefs.h
>>conftest.
$ac_ext
3981 cat >>conftest.
$ac_ext <<_ACEOF
3982 /* end confdefs.h. */
3992 rm -f conftest.
$ac_objext
3993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3994 (eval $ac_compile) 2>conftest.er1
3996 grep -v '^ *+' conftest.er1
>conftest.err
3998 cat conftest.err
>&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } &&
4001 { ac_try
='test -z "$ac_c_werror_flag"
4002 || test ! -s conftest.err'
4003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }; } &&
4008 { ac_try
='test -s conftest.$ac_objext'
4009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }; }; then
4016 echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.
$ac_ext >&5
4021 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4022 if test $has_option = yes; then
4023 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4025 echo "$as_me:$LINENO: result: $has_option" >&5
4026 echo "${ECHO_T}$has_option" >&6
4027 CFLAGS
="$SAVE_CFLAGS"
4031 #### Some other nice autoconf tests.
4033 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4034 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4036 if test "$LN_S" = "ln -s"; then
4037 echo "$as_me:$LINENO: result: yes" >&5
4038 echo "${ECHO_T}yes" >&6
4040 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4041 echo "${ECHO_T}no, using $LN_S" >&6
4045 ac_cpp
='$CPP $CPPFLAGS'
4046 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4047 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4048 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4049 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4050 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4051 # On Suns, sometimes $CPP names a directory.
4052 if test -n "$CPP" && test -d "$CPP"; then
4055 if test -z "$CPP"; then
4056 if test "${ac_cv_prog_CPP+set}" = set; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4059 # Double quotes because CPP needs to be expanded
4060 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4063 for ac_c_preproc_warn_flag
in '' yes
4065 # Use a header file that comes with gcc, so configuring glibc
4066 # with a fresh cross-compiler works.
4067 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4068 # <limits.h> exists even on freestanding compilers.
4069 # On the NeXT, cc -E runs the code through the compiler's parser,
4070 # not just through cpp. "Syntax error" is here to catch this case.
4071 cat >conftest.
$ac_ext <<_ACEOF
4074 cat confdefs.h
>>conftest.
$ac_ext
4075 cat >>conftest.
$ac_ext <<_ACEOF
4076 /* end confdefs.h. */
4078 # include <limits.h>
4080 # include <assert.h>
4084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4085 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4087 grep -v '^ *+' conftest.er1
>conftest.err
4089 cat conftest.err
>&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } >/dev
/null
; then
4092 if test -s conftest.err
; then
4093 ac_cpp_err
=$ac_c_preproc_warn_flag
4094 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4101 if test -z "$ac_cpp_err"; then
4104 echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.
$ac_ext >&5
4107 # Broken: fails on valid input.
4110 rm -f conftest.err conftest.
$ac_ext
4112 # OK, works on sane cases. Now check whether non-existent headers
4113 # can be detected and how.
4114 cat >conftest.
$ac_ext <<_ACEOF
4117 cat confdefs.h
>>conftest.
$ac_ext
4118 cat >>conftest.
$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4120 #include <ac_nonexistent.h>
4122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4123 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4125 grep -v '^ *+' conftest.er1
>conftest.err
4127 cat conftest.err
>&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); } >/dev
/null
; then
4130 if test -s conftest.err
; then
4131 ac_cpp_err
=$ac_c_preproc_warn_flag
4132 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4139 if test -z "$ac_cpp_err"; then
4140 # Broken: success on invalid input.
4143 echo "$as_me: failed program was:" >&5
4144 sed 's/^/| /' conftest.
$ac_ext >&5
4146 # Passes both tests.
4150 rm -f conftest.err conftest.
$ac_ext
4153 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4154 rm -f conftest.err conftest.
$ac_ext
4155 if $ac_preproc_ok; then
4167 echo "$as_me:$LINENO: result: $CPP" >&5
4168 echo "${ECHO_T}$CPP" >&6
4170 for ac_c_preproc_warn_flag
in '' yes
4172 # Use a header file that comes with gcc, so configuring glibc
4173 # with a fresh cross-compiler works.
4174 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4175 # <limits.h> exists even on freestanding compilers.
4176 # On the NeXT, cc -E runs the code through the compiler's parser,
4177 # not just through cpp. "Syntax error" is here to catch this case.
4178 cat >conftest.
$ac_ext <<_ACEOF
4181 cat confdefs.h
>>conftest.
$ac_ext
4182 cat >>conftest.
$ac_ext <<_ACEOF
4183 /* end confdefs.h. */
4185 # include <limits.h>
4187 # include <assert.h>
4191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4192 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4194 grep -v '^ *+' conftest.er1
>conftest.err
4196 cat conftest.err
>&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); } >/dev
/null
; then
4199 if test -s conftest.err
; then
4200 ac_cpp_err
=$ac_c_preproc_warn_flag
4201 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4208 if test -z "$ac_cpp_err"; then
4211 echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.
$ac_ext >&5
4214 # Broken: fails on valid input.
4217 rm -f conftest.err conftest.
$ac_ext
4219 # OK, works on sane cases. Now check whether non-existent headers
4220 # can be detected and how.
4221 cat >conftest.
$ac_ext <<_ACEOF
4224 cat confdefs.h
>>conftest.
$ac_ext
4225 cat >>conftest.
$ac_ext <<_ACEOF
4226 /* end confdefs.h. */
4227 #include <ac_nonexistent.h>
4229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4230 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4232 grep -v '^ *+' conftest.er1
>conftest.err
4234 cat conftest.err
>&5
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); } >/dev
/null
; then
4237 if test -s conftest.err
; then
4238 ac_cpp_err
=$ac_c_preproc_warn_flag
4239 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4246 if test -z "$ac_cpp_err"; then
4247 # Broken: success on invalid input.
4250 echo "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.
$ac_ext >&5
4253 # Passes both tests.
4257 rm -f conftest.err conftest.
$ac_ext
4260 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4261 rm -f conftest.err conftest.
$ac_ext
4262 if $ac_preproc_ok; then
4265 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4266 See \`config.log' for more details." >&5
4267 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4268 See \`config.log' for more details." >&2;}
4269 { (exit 1); exit 1; }; }
4273 ac_cpp
='$CPP $CPPFLAGS'
4274 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4275 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4276 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4278 # Find a good install program. We prefer a C program (faster),
4279 # so one script is as good as another. But avoid the broken or
4280 # incompatible versions:
4281 # SysV /etc/install, /usr/sbin/install
4282 # SunOS /usr/etc/install
4283 # IRIX /sbin/install
4285 # AmigaOS /C/install, which installs bootblocks on floppy discs
4286 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4287 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4288 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4289 # OS/2's system install, which has a completely different semantic
4290 # ./install, which can be erroneously created by make from ./install.sh.
4291 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4292 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4293 if test -z "$INSTALL"; then
4294 if test "${ac_cv_path_install+set}" = set; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
4297 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4301 test -z "$as_dir" && as_dir
=.
4302 # Account for people who put trailing slashes in PATH elements.
4304 .
/ | .
// |
/cC
/* | \
4305 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4306 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4309 # OSF1 and SCO ODT 3.0 have their own names for install.
4310 # Don't use installbsd from OSF since it installs stuff as root
4312 for ac_prog
in ginstall scoinst
install; do
4313 for ac_exec_ext
in '' $ac_executable_extensions; do
4314 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4315 if test $ac_prog = install &&
4316 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4317 # AIX install. It has an incompatible calling convention.
4319 elif test $ac_prog = install &&
4320 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4321 # program-specific install script used by HP pwplus--don't use.
4324 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4336 if test "${ac_cv_path_install+set}" = set; then
4337 INSTALL
=$ac_cv_path_install
4339 # As a last resort, use the slow shell script. We don't cache a
4340 # path for INSTALL within a source directory, because that will
4341 # break other packages using the cache if that directory is
4342 # removed, or if the path is relative.
4343 INSTALL
=$ac_install_sh
4346 echo "$as_me:$LINENO: result: $INSTALL" >&5
4347 echo "${ECHO_T}$INSTALL" >&6
4349 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4350 # It thinks the first close brace ends the variable substitution.
4351 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4353 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4355 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4357 if test "x$RANLIB" = x
; then
4358 if test -n "$ac_tool_prefix"; then
4359 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4360 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4361 echo "$as_me:$LINENO: checking for $ac_word" >&5
4362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4363 if test "${ac_cv_prog_RANLIB+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 if test -n "$RANLIB"; then
4367 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4369 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4373 test -z "$as_dir" && as_dir
=.
4374 for ac_exec_ext
in '' $ac_executable_extensions; do
4375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4376 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4385 RANLIB
=$ac_cv_prog_RANLIB
4386 if test -n "$RANLIB"; then
4387 echo "$as_me:$LINENO: result: $RANLIB" >&5
4388 echo "${ECHO_T}$RANLIB" >&6
4390 echo "$as_me:$LINENO: result: no" >&5
4391 echo "${ECHO_T}no" >&6
4395 if test -z "$ac_cv_prog_RANLIB"; then
4396 ac_ct_RANLIB
=$RANLIB
4397 # Extract the first word of "ranlib", so it can be a program name with args.
4398 set dummy ranlib
; ac_word
=$2
4399 echo "$as_me:$LINENO: checking for $ac_word" >&5
4400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4401 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4404 if test -n "$ac_ct_RANLIB"; then
4405 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4407 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4411 test -z "$as_dir" && as_dir
=.
4412 for ac_exec_ext
in '' $ac_executable_extensions; do
4413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4414 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4424 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4425 if test -n "$ac_ct_RANLIB"; then
4426 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4427 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4429 echo "$as_me:$LINENO: result: no" >&5
4430 echo "${ECHO_T}no" >&6
4433 RANLIB
=$ac_ct_RANLIB
4435 RANLIB
="$ac_cv_prog_RANLIB"
4439 # Extract the first word of "install-info", so it can be a program name with args.
4440 set dummy install-info
; ac_word
=$2
4441 echo "$as_me:$LINENO: checking for $ac_word" >&5
4442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4443 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 case $INSTALL_INFO in
4448 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4451 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4455 test -z "$as_dir" && as_dir
=.
4456 for ac_exec_ext
in '' $ac_executable_extensions; do
4457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4458 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4468 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4470 if test -n "$INSTALL_INFO"; then
4471 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4472 echo "${ECHO_T}$INSTALL_INFO" >&6
4474 echo "$as_me:$LINENO: result: no" >&5
4475 echo "${ECHO_T}no" >&6
4478 # Extract the first word of "install-info", so it can be a program name with args.
4479 set dummy install-info
; ac_word
=$2
4480 echo "$as_me:$LINENO: checking for $ac_word" >&5
4481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4482 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4485 case $INSTALL_INFO in
4487 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4490 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4491 for as_dir
in /usr
/sbin
4494 test -z "$as_dir" && as_dir
=.
4495 for ac_exec_ext
in '' $ac_executable_extensions; do
4496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4497 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4507 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4509 if test -n "$INSTALL_INFO"; then
4510 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4511 echo "${ECHO_T}$INSTALL_INFO" >&6
4513 echo "$as_me:$LINENO: result: no" >&5
4514 echo "${ECHO_T}no" >&6
4517 # Extract the first word of "install-info", so it can be a program name with args.
4518 set dummy install-info
; ac_word
=$2
4519 echo "$as_me:$LINENO: checking for $ac_word" >&5
4520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4521 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 case $INSTALL_INFO in
4526 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4529 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4533 test -z "$as_dir" && as_dir
=.
4534 for ac_exec_ext
in '' $ac_executable_extensions; do
4535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4536 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4543 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4547 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4549 if test -n "$INSTALL_INFO"; then
4550 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4551 echo "${ECHO_T}$INSTALL_INFO" >&6
4553 echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6
4557 # Extract the first word of "gzip", so it can be a program name with args.
4558 set dummy
gzip; ac_word
=$2
4559 echo "$as_me:$LINENO: checking for $ac_word" >&5
4560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4561 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4566 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
4569 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4573 test -z "$as_dir" && as_dir
=.
4574 for ac_exec_ext
in '' $ac_executable_extensions; do
4575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4576 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
4577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4586 GZIP_PROG
=$ac_cv_path_GZIP_PROG
4588 if test -n "$GZIP_PROG"; then
4589 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4590 echo "${ECHO_T}$GZIP_PROG" >&6
4592 echo "$as_me:$LINENO: result: no" >&5
4593 echo "${ECHO_T}no" >&6
4598 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4600 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4603 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4605 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4609 late_LDFLAGS
=$LDFLAGS
4610 if test "$GCC" = yes; then
4611 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
4613 LDFLAGS
="$LDFLAGS -znocombreloc"
4616 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4617 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4618 cat >conftest.
$ac_ext <<_ACEOF
4621 rm -f conftest.
$ac_objext conftest
$ac_exeext
4622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4623 (eval $ac_link) 2>conftest.er1
4625 grep -v '^ *+' conftest.er1
>conftest.err
4627 cat conftest.err
>&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); } &&
4630 { ac_try
='test -z "$ac_c_werror_flag"
4631 || test ! -s conftest.err'
4632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }; } &&
4637 { ac_try
='test -s conftest$ac_exeext'
4638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }; }; then
4643 echo "$as_me:$LINENO: result: yes" >&5
4644 echo "${ECHO_T}yes" >&6
4646 echo "$as_me: failed program was:" >&5
4647 sed 's/^/| /' conftest.
$ac_ext >&5
4649 LDFLAGS
=$late_LDFLAGS
4650 echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6
4653 rm -f conftest.err conftest.
$ac_objext \
4654 conftest
$ac_exeext conftest.
$ac_ext
4656 #### Extract some information from the operating system and machine files.
4658 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4659 - which libraries the lib-src programs will want, and
4660 - whether the GNU malloc routines are usable..." >&5
4661 echo "$as_me: checking the machine- and system-dependent files to find out
4662 - which libraries the lib-src programs will want, and
4663 - whether the GNU malloc routines are usable..." >&6;}
4665 ### First figure out CFLAGS (which we use for running the compiler here)
4666 ### and REAL_CFLAGS (which we use for real compilation).
4667 ### The two are the same except on a few systems, where they are made
4668 ### different to work around various lossages. For example,
4669 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4670 ### as implying static linking.
4672 ### If the CFLAGS env var is specified, we use that value
4673 ### instead of the default.
4675 ### It's not important that this name contain the PID; you can't run
4676 ### two configures in the same directory and have anything work
4678 tempcname
="conftest.c"
4681 #include "'${srcdir}'/src/'${opsysfile}'"
4682 #include "'${srcdir}'/src/'${machfile}'"
4683 #ifndef LIBS_MACHINE
4684 #define LIBS_MACHINE
4689 #ifndef C_SWITCH_SYSTEM
4690 #define C_SWITCH_SYSTEM
4692 #ifndef C_SWITCH_MACHINE
4693 #define C_SWITCH_MACHINE
4695 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4696 configure___ c_switch_system=C_SWITCH_SYSTEM
4697 configure___ c_switch_machine=C_SWITCH_MACHINE
4700 #define LIB_X11_LIB -lX11
4703 #ifndef LIBX11_MACHINE
4704 #define LIBX11_MACHINE
4707 #ifndef LIBX11_SYSTEM
4708 #define LIBX11_SYSTEM
4710 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4713 configure___ unexec=UNEXEC
4715 configure___ unexec=unexec.o
4718 #ifdef SYSTEM_MALLOC
4719 configure___ system_malloc=yes
4721 configure___ system_malloc=no
4724 #ifdef USE_MMAP_FOR_BUFFERS
4725 configure___ use_mmap_for_buffers=yes
4727 configure___ use_mmap_for_buffers=no
4730 #ifndef C_DEBUG_SWITCH
4731 #define C_DEBUG_SWITCH -g
4734 #ifndef C_OPTIMIZE_SWITCH
4736 #define C_OPTIMIZE_SWITCH -O2
4738 #define C_OPTIMIZE_SWITCH -O
4742 #ifndef C_WARNINGS_SWITCH
4743 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4746 #ifndef LD_SWITCH_MACHINE
4747 #define LD_SWITCH_MACHINE
4750 #ifndef LD_SWITCH_SYSTEM
4751 #define LD_SWITCH_SYSTEM
4754 #ifndef LD_SWITCH_X_SITE_AUX
4755 #define LD_SWITCH_X_SITE_AUX
4758 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4759 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4761 #ifdef THIS_IS_CONFIGURE
4763 /* Get the CFLAGS for tests in configure. */
4765 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4767 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4770 #else /* not THIS_IS_CONFIGURE */
4772 /* Get the CFLAGS for real compilation. */
4774 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4776 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4779 #endif /* not THIS_IS_CONFIGURE */
4782 # The value of CPP is a quoted variable reference, so we need to do this
4783 # to get its actual value...
4784 CPP
=`eval "echo $CPP"`
4785 eval `${CPP} -Isrc ${tempcname} \
4786 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4787 if test "x$SPECIFIED_CFLAGS" = x
; then
4788 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4789 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4791 REAL_CFLAGS
="$CFLAGS"
4795 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4797 ### Make sure subsequent tests use flags consistent with the build flags.
4799 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4800 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4802 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4807 # Check whether --enable-largefile or --disable-largefile was given.
4808 if test "${enable_largefile+set}" = set; then
4809 enableval
="$enable_largefile"
4812 if test "$enable_largefile" != no
; then
4814 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4815 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4816 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4817 echo $ECHO_N "(cached) $ECHO_C" >&6
4819 ac_cv_sys_largefile_CC
=no
4820 if test "$GCC" != yes; then
4823 # IRIX 6.2 and later do not support large files by default,
4824 # so use the C compiler's -n32 option if that helps.
4825 cat >conftest.
$ac_ext <<_ACEOF
4828 cat confdefs.h
>>conftest.
$ac_ext
4829 cat >>conftest.
$ac_ext <<_ACEOF
4830 /* end confdefs.h. */
4831 #include <sys/types.h>
4832 /* Check that off_t can represent 2**63 - 1 correctly.
4833 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4834 since some C++ compilers masquerading as C compilers
4835 incorrectly reject 9223372036854775807. */
4836 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4837 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4838 && LARGE_OFF_T % 2147483647 == 1)
4848 rm -f conftest.
$ac_objext
4849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4850 (eval $ac_compile) 2>conftest.er1
4852 grep -v '^ *+' conftest.er1
>conftest.err
4854 cat conftest.err
>&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } &&
4857 { ac_try
='test -z "$ac_c_werror_flag"
4858 || test ! -s conftest.err'
4859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); }; } &&
4864 { ac_try
='test -s conftest.$ac_objext'
4865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); }; }; then
4872 echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.
$ac_ext >&5
4876 rm -f conftest.err conftest.
$ac_objext
4878 rm -f conftest.
$ac_objext
4879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4880 (eval $ac_compile) 2>conftest.er1
4882 grep -v '^ *+' conftest.er1
>conftest.err
4884 cat conftest.err
>&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); } &&
4887 { ac_try
='test -z "$ac_c_werror_flag"
4888 || test ! -s conftest.err'
4889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }; } &&
4894 { ac_try
='test -s conftest.$ac_objext'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; }; then
4900 ac_cv_sys_largefile_CC
=' -n32'; break
4902 echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.
$ac_ext >&5
4906 rm -f conftest.err conftest.
$ac_objext
4910 rm -f conftest.
$ac_ext
4913 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4914 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4915 if test "$ac_cv_sys_largefile_CC" != no
; then
4916 CC
=$CC$ac_cv_sys_largefile_CC
4919 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4920 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4921 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4925 ac_cv_sys_file_offset_bits
=no
4926 cat >conftest.
$ac_ext <<_ACEOF
4929 cat confdefs.h
>>conftest.
$ac_ext
4930 cat >>conftest.
$ac_ext <<_ACEOF
4931 /* end confdefs.h. */
4932 #include <sys/types.h>
4933 /* Check that off_t can represent 2**63 - 1 correctly.
4934 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4935 since some C++ compilers masquerading as C compilers
4936 incorrectly reject 9223372036854775807. */
4937 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4938 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4939 && LARGE_OFF_T % 2147483647 == 1)
4949 rm -f conftest.
$ac_objext
4950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4951 (eval $ac_compile) 2>conftest.er1
4953 grep -v '^ *+' conftest.er1
>conftest.err
4955 cat conftest.err
>&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); } &&
4958 { ac_try
='test -z "$ac_c_werror_flag"
4959 || test ! -s conftest.err'
4960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; } &&
4965 { ac_try
='test -s conftest.$ac_objext'
4966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); }; }; then
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.
$ac_ext >&5
4977 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4978 cat >conftest.
$ac_ext <<_ACEOF
4981 cat confdefs.h
>>conftest.
$ac_ext
4982 cat >>conftest.
$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4984 #define _FILE_OFFSET_BITS 64
4985 #include <sys/types.h>
4986 /* Check that off_t can represent 2**63 - 1 correctly.
4987 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4988 since some C++ compilers masquerading as C compilers
4989 incorrectly reject 9223372036854775807. */
4990 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4991 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4992 && LARGE_OFF_T % 2147483647 == 1)
5002 rm -f conftest.
$ac_objext
5003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5004 (eval $ac_compile) 2>conftest.er1
5006 grep -v '^ *+' conftest.er1
>conftest.err
5008 cat conftest.err
>&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } &&
5011 { ac_try
='test -z "$ac_c_werror_flag"
5012 || test ! -s conftest.err'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; } &&
5018 { ac_try
='test -s conftest.$ac_objext'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; }; then
5024 ac_cv_sys_file_offset_bits
=64; break
5026 echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.
$ac_ext >&5
5030 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5034 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5035 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5036 if test "$ac_cv_sys_file_offset_bits" != no
; then
5038 cat >>confdefs.h
<<_ACEOF
5039 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5044 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5045 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5046 if test "${ac_cv_sys_large_files+set}" = set; then
5047 echo $ECHO_N "(cached) $ECHO_C" >&6
5050 ac_cv_sys_large_files
=no
5051 cat >conftest.
$ac_ext <<_ACEOF
5054 cat confdefs.h
>>conftest.
$ac_ext
5055 cat >>conftest.
$ac_ext <<_ACEOF
5056 /* end confdefs.h. */
5057 #include <sys/types.h>
5058 /* Check that off_t can represent 2**63 - 1 correctly.
5059 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5060 since some C++ compilers masquerading as C compilers
5061 incorrectly reject 9223372036854775807. */
5062 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5063 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5064 && LARGE_OFF_T % 2147483647 == 1)
5074 rm -f conftest.
$ac_objext
5075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5076 (eval $ac_compile) 2>conftest.er1
5078 grep -v '^ *+' conftest.er1
>conftest.err
5080 cat conftest.err
>&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } &&
5083 { ac_try
='test -z "$ac_c_werror_flag"
5084 || test ! -s conftest.err'
5085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); }; } &&
5090 { ac_try
='test -s conftest.$ac_objext'
5091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); }; }; then
5098 echo "$as_me: failed program was:" >&5
5099 sed 's/^/| /' conftest.
$ac_ext >&5
5102 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5103 cat >conftest.
$ac_ext <<_ACEOF
5106 cat confdefs.h
>>conftest.
$ac_ext
5107 cat >>conftest.
$ac_ext <<_ACEOF
5108 /* end confdefs.h. */
5109 #define _LARGE_FILES 1
5110 #include <sys/types.h>
5111 /* Check that off_t can represent 2**63 - 1 correctly.
5112 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5113 since some C++ compilers masquerading as C compilers
5114 incorrectly reject 9223372036854775807. */
5115 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5116 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5117 && LARGE_OFF_T % 2147483647 == 1)
5127 rm -f conftest.
$ac_objext
5128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5129 (eval $ac_compile) 2>conftest.er1
5131 grep -v '^ *+' conftest.er1
>conftest.err
5133 cat conftest.err
>&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } &&
5136 { ac_try
='test -z "$ac_c_werror_flag"
5137 || test ! -s conftest.err'
5138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); }; } &&
5143 { ac_try
='test -s conftest.$ac_objext'
5144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); }; }; then
5149 ac_cv_sys_large_files
=1; break
5151 echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.
$ac_ext >&5
5155 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5159 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5160 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5161 if test "$ac_cv_sys_large_files" != no
; then
5163 cat >>confdefs.h
<<_ACEOF
5164 #define _LARGE_FILES $ac_cv_sys_large_files
5176 if test "${with_sound}" != "no"; then
5177 # Sound support for GNU/Linux and the free BSDs.
5178 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5179 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5180 if test "${ac_cv_header_stdc+set}" = set; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5183 cat >conftest.
$ac_ext <<_ACEOF
5186 cat confdefs.h
>>conftest.
$ac_ext
5187 cat >>conftest.
$ac_ext <<_ACEOF
5188 /* end confdefs.h. */
5202 rm -f conftest.
$ac_objext
5203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5204 (eval $ac_compile) 2>conftest.er1
5206 grep -v '^ *+' conftest.er1
>conftest.err
5208 cat conftest.err
>&5
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); } &&
5211 { ac_try
='test -z "$ac_c_werror_flag"
5212 || test ! -s conftest.err'
5213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); }; } &&
5218 { ac_try
='test -s conftest.$ac_objext'
5219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); }; }; then
5224 ac_cv_header_stdc
=yes
5226 echo "$as_me: failed program was:" >&5
5227 sed 's/^/| /' conftest.
$ac_ext >&5
5229 ac_cv_header_stdc
=no
5231 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5233 if test $ac_cv_header_stdc = yes; then
5234 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5235 cat >conftest.
$ac_ext <<_ACEOF
5238 cat confdefs.h
>>conftest.
$ac_ext
5239 cat >>conftest.
$ac_ext <<_ACEOF
5240 /* end confdefs.h. */
5244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5245 $EGREP "memchr" >/dev
/null
2>&1; then
5248 ac_cv_header_stdc
=no
5254 if test $ac_cv_header_stdc = yes; then
5255 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5256 cat >conftest.
$ac_ext <<_ACEOF
5259 cat confdefs.h
>>conftest.
$ac_ext
5260 cat >>conftest.
$ac_ext <<_ACEOF
5261 /* end confdefs.h. */
5265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5266 $EGREP "free" >/dev
/null
2>&1; then
5269 ac_cv_header_stdc
=no
5275 if test $ac_cv_header_stdc = yes; then
5276 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5277 if test "$cross_compiling" = yes; then
5280 cat >conftest.
$ac_ext <<_ACEOF
5283 cat confdefs.h
>>conftest.
$ac_ext
5284 cat >>conftest.
$ac_ext <<_ACEOF
5285 /* end confdefs.h. */
5287 #if ((' ' & 0x0FF) == 0x020)
5288 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5289 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5291 # define ISLOWER(c) \
5292 (('a' <= (c) && (c) <= 'i') \
5293 || ('j' <= (c) && (c) <= 'r') \
5294 || ('s' <= (c) && (c) <= 'z'))
5295 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5298 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5303 for (i = 0; i < 256; i++)
5304 if (XOR (islower (i), ISLOWER (i))
5305 || toupper (i) != TOUPPER (i))
5310 rm -f conftest
$ac_exeext
5311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5312 (eval $ac_link) 2>&5
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; }; then
5323 echo "$as_me: program exited with status $ac_status" >&5
5324 echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.
$ac_ext >&5
5328 ac_cv_header_stdc
=no
5330 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5334 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5335 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5336 if test $ac_cv_header_stdc = yes; then
5338 cat >>confdefs.h
<<\_ACEOF
5339 #define STDC_HEADERS 1
5344 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5354 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5355 inttypes.h stdint.h unistd.h
5357 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5358 echo "$as_me:$LINENO: checking for $ac_header" >&5
5359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5361 echo $ECHO_N "(cached) $ECHO_C" >&6
5363 cat >conftest.
$ac_ext <<_ACEOF
5366 cat confdefs.h
>>conftest.
$ac_ext
5367 cat >>conftest.
$ac_ext <<_ACEOF
5368 /* end confdefs.h. */
5369 $ac_includes_default
5371 #include <$ac_header>
5373 rm -f conftest.
$ac_objext
5374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5375 (eval $ac_compile) 2>conftest.er1
5377 grep -v '^ *+' conftest.er1
>conftest.err
5379 cat conftest.err
>&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); } &&
5382 { ac_try
='test -z "$ac_c_werror_flag"
5383 || test ! -s conftest.err'
5384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); }; } &&
5389 { ac_try
='test -s conftest.$ac_objext'
5390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); }; }; then
5395 eval "$as_ac_Header=yes"
5397 echo "$as_me: failed program was:" >&5
5398 sed 's/^/| /' conftest.
$ac_ext >&5
5400 eval "$as_ac_Header=no"
5402 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5407 cat >>confdefs.h
<<_ACEOF
5408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5419 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5421 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5423 echo "$as_me:$LINENO: checking for $ac_header" >&5
5424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5426 echo $ECHO_N "(cached) $ECHO_C" >&6
5428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5431 # Is the header compilable?
5432 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5434 cat >conftest.
$ac_ext <<_ACEOF
5437 cat confdefs.h
>>conftest.
$ac_ext
5438 cat >>conftest.
$ac_ext <<_ACEOF
5439 /* end confdefs.h. */
5440 $ac_includes_default
5441 #include <$ac_header>
5443 rm -f conftest.
$ac_objext
5444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5445 (eval $ac_compile) 2>conftest.er1
5447 grep -v '^ *+' conftest.er1
>conftest.err
5449 cat conftest.err
>&5
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); } &&
5452 { ac_try
='test -z "$ac_c_werror_flag"
5453 || test ! -s conftest.err'
5454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); }; } &&
5459 { ac_try
='test -s conftest.$ac_objext'
5460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); }; }; then
5465 ac_header_compiler
=yes
5467 echo "$as_me: failed program was:" >&5
5468 sed 's/^/| /' conftest.
$ac_ext >&5
5470 ac_header_compiler
=no
5472 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5473 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5474 echo "${ECHO_T}$ac_header_compiler" >&6
5476 # Is the header present?
5477 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5478 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5479 cat >conftest.
$ac_ext <<_ACEOF
5482 cat confdefs.h
>>conftest.
$ac_ext
5483 cat >>conftest.
$ac_ext <<_ACEOF
5484 /* end confdefs.h. */
5485 #include <$ac_header>
5487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5488 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5490 grep -v '^ *+' conftest.er1
>conftest.err
5492 cat conftest.err
>&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); } >/dev
/null
; then
5495 if test -s conftest.err
; then
5496 ac_cpp_err
=$ac_c_preproc_warn_flag
5497 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5504 if test -z "$ac_cpp_err"; then
5505 ac_header_preproc
=yes
5507 echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.
$ac_ext >&5
5510 ac_header_preproc
=no
5512 rm -f conftest.err conftest.
$ac_ext
5513 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5514 echo "${ECHO_T}$ac_header_preproc" >&6
5516 # So? What about this header?
5517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5522 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5523 ac_header_preproc
=yes
5526 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5528 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5529 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5530 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5531 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5532 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5533 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5536 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5537 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5540 ## ------------------------------------------ ##
5541 ## Report this to the AC_PACKAGE_NAME lists. ##
5542 ## ------------------------------------------ ##
5545 sed "s/^/$as_me: WARNING: /" >&2
5548 echo "$as_me:$LINENO: checking for $ac_header" >&5
5549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5553 eval "$as_ac_Header=\$ac_header_preproc"
5555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5560 cat >>confdefs.h
<<_ACEOF
5561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5568 # Emulation library used on NetBSD.
5569 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5570 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5571 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5572 echo $ECHO_N "(cached) $ECHO_C" >&6
5574 ac_check_lib_save_LIBS
=$LIBS
5575 LIBS
="-lossaudio $LIBS"
5576 cat >conftest.
$ac_ext <<_ACEOF
5579 cat confdefs.h
>>conftest.
$ac_ext
5580 cat >>conftest.
$ac_ext <<_ACEOF
5581 /* end confdefs.h. */
5583 /* Override any gcc2 internal prototype to avoid an error. */
5587 /* We use char because int might match the return type of a gcc2
5588 builtin and then its argument prototype would still apply. */
5598 rm -f conftest.
$ac_objext conftest
$ac_exeext
5599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5600 (eval $ac_link) 2>conftest.er1
5602 grep -v '^ *+' conftest.er1
>conftest.err
5604 cat conftest.err
>&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); } &&
5607 { ac_try
='test -z "$ac_c_werror_flag"
5608 || test ! -s conftest.err'
5609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); }; } &&
5614 { ac_try
='test -s conftest$ac_exeext'
5615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); }; }; then
5620 ac_cv_lib_ossaudio__oss_ioctl
=yes
5622 echo "$as_me: failed program was:" >&5
5623 sed 's/^/| /' conftest.
$ac_ext >&5
5625 ac_cv_lib_ossaudio__oss_ioctl
=no
5627 rm -f conftest.err conftest.
$ac_objext \
5628 conftest
$ac_exeext conftest.
$ac_ext
5629 LIBS
=$ac_check_lib_save_LIBS
5631 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5632 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5633 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5642 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
5643 if test "X${with_pkg_config_prog}" != X
; then
5644 PKG_CONFIG
="${with_pkg_config_prog}"
5649 if test -z "$PKG_CONFIG"; then
5650 # Extract the first word of "pkg-config", so it can be a program name with args.
5651 set dummy pkg-config
; ac_word
=$2
5652 echo "$as_me:$LINENO: checking for $ac_word" >&5
5653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5654 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5659 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
5662 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5666 test -z "$as_dir" && as_dir
=.
5667 for ac_exec_ext
in '' $ac_executable_extensions; do
5668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5669 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5676 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
5680 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
5682 if test -n "$PKG_CONFIG"; then
5683 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5684 echo "${ECHO_T}$PKG_CONFIG" >&6
5686 echo "$as_me:$LINENO: result: no" >&5
5687 echo "${ECHO_T}no" >&6
5692 if test "$PKG_CONFIG" = "no" ; then
5695 PKG_CONFIG_MIN_VERSION
=0.9.0
5696 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5697 echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
5698 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6
5700 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5701 echo "$as_me:$LINENO: result: yes" >&5
5702 echo "${ECHO_T}yes" >&6
5705 echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
5706 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6
5707 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
5708 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
5709 echo "${ECHO_T}$ALSA_CFLAGS" >&6
5711 echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
5712 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6
5713 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"`
5714 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
5715 echo "${ECHO_T}$ALSA_LIBS" >&6
5717 echo "$as_me:$LINENO: result: no" >&5
5718 echo "${ECHO_T}no" >&6
5721 ## If we have a custom action on failure, don't print errors, but
5722 ## do set a variable so people can do so.
5723 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5730 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5731 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5735 if test $succeeded = yes; then
5741 if test $HAVE_ALSA = yes; then
5742 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
5743 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
5745 cat >>confdefs.h
<<\_ACEOF
5778 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5779 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5780 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5781 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
5784 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5786 echo "$as_me:$LINENO: checking for $ac_header" >&5
5787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5794 # Is the header compilable?
5795 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5797 cat >conftest.
$ac_ext <<_ACEOF
5800 cat confdefs.h
>>conftest.
$ac_ext
5801 cat >>conftest.
$ac_ext <<_ACEOF
5802 /* end confdefs.h. */
5803 $ac_includes_default
5804 #include <$ac_header>
5806 rm -f conftest.
$ac_objext
5807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5808 (eval $ac_compile) 2>conftest.er1
5810 grep -v '^ *+' conftest.er1
>conftest.err
5812 cat conftest.err
>&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } &&
5815 { ac_try
='test -z "$ac_c_werror_flag"
5816 || test ! -s conftest.err'
5817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; } &&
5822 { ac_try
='test -s conftest.$ac_objext'
5823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); }; }; then
5828 ac_header_compiler
=yes
5830 echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.
$ac_ext >&5
5833 ac_header_compiler
=no
5835 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5836 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5837 echo "${ECHO_T}$ac_header_compiler" >&6
5839 # Is the header present?
5840 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5841 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5842 cat >conftest.
$ac_ext <<_ACEOF
5845 cat confdefs.h
>>conftest.
$ac_ext
5846 cat >>conftest.
$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5848 #include <$ac_header>
5850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5851 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5853 grep -v '^ *+' conftest.er1
>conftest.err
5855 cat conftest.err
>&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); } >/dev
/null
; then
5858 if test -s conftest.err
; then
5859 ac_cpp_err
=$ac_c_preproc_warn_flag
5860 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5867 if test -z "$ac_cpp_err"; then
5868 ac_header_preproc
=yes
5870 echo "$as_me: failed program was:" >&5
5871 sed 's/^/| /' conftest.
$ac_ext >&5
5873 ac_header_preproc
=no
5875 rm -f conftest.err conftest.
$ac_ext
5876 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5877 echo "${ECHO_T}$ac_header_preproc" >&6
5879 # So? What about this header?
5880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5882 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5885 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5886 ac_header_preproc
=yes
5889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5892 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5893 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5894 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5895 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5896 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5899 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5900 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5903 ## ------------------------------------------ ##
5904 ## Report this to the AC_PACKAGE_NAME lists. ##
5905 ## ------------------------------------------ ##
5908 sed "s/^/$as_me: WARNING: /" >&2
5911 echo "$as_me:$LINENO: checking for $ac_header" >&5
5912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5916 eval "$as_ac_Header=\$ac_header_preproc"
5918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5923 cat >>confdefs.h
<<_ACEOF
5924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5932 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5933 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5934 cat >conftest.
$ac_ext <<_ACEOF
5937 cat confdefs.h
>>conftest.
$ac_ext
5938 cat >>conftest.
$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5940 #include <sys/personality.h>
5944 personality (PER_LINUX32)
5949 rm -f conftest.
$ac_objext
5950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5951 (eval $ac_compile) 2>conftest.er1
5953 grep -v '^ *+' conftest.er1
>conftest.err
5955 cat conftest.err
>&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } &&
5958 { ac_try
='test -z "$ac_c_werror_flag"
5959 || test ! -s conftest.err'
5960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); }; } &&
5965 { ac_try
='test -s conftest.$ac_objext'
5966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); }; }; then
5971 emacs_cv_personality_linux32
=yes
5973 echo "$as_me: failed program was:" >&5
5974 sed 's/^/| /' conftest.
$ac_ext >&5
5976 emacs_cv_personality_linux32
=no
5978 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5979 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5980 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5982 if test $emacs_cv_personality_linux32 = yes; then
5984 cat >>confdefs.h
<<\_ACEOF
5985 #define HAVE_PERSONALITY_LINUX32 1
5991 for ac_header
in term.h
5993 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5994 echo "$as_me:$LINENO: checking for $ac_header" >&5
5995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
5999 cat >conftest.
$ac_ext <<_ACEOF
6002 cat confdefs.h
>>conftest.
$ac_ext
6003 cat >>conftest.
$ac_ext <<_ACEOF
6004 /* end confdefs.h. */
6005 #include <$ac_header>
6007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6008 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6010 grep -v '^ *+' conftest.er1
>conftest.err
6012 cat conftest.err
>&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } >/dev
/null
; then
6015 if test -s conftest.err
; then
6016 ac_cpp_err
=$ac_c_preproc_warn_flag
6017 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6024 if test -z "$ac_cpp_err"; then
6025 eval "$as_ac_Header=yes"
6027 echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.
$ac_ext >&5
6030 eval "$as_ac_Header=no"
6032 rm -f conftest.err conftest.
$ac_ext
6034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6037 cat >>confdefs.h
<<_ACEOF
6038 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6045 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6046 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6047 if test "${ac_cv_header_stdc+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6050 cat >conftest.
$ac_ext <<_ACEOF
6053 cat confdefs.h
>>conftest.
$ac_ext
6054 cat >>conftest.
$ac_ext <<_ACEOF
6055 /* end confdefs.h. */
6069 rm -f conftest.
$ac_objext
6070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6071 (eval $ac_compile) 2>conftest.er1
6073 grep -v '^ *+' conftest.er1
>conftest.err
6075 cat conftest.err
>&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } &&
6078 { ac_try
='test -z "$ac_c_werror_flag"
6079 || test ! -s conftest.err'
6080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; } &&
6085 { ac_try
='test -s conftest.$ac_objext'
6086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; }; then
6091 ac_cv_header_stdc
=yes
6093 echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.
$ac_ext >&5
6096 ac_cv_header_stdc
=no
6098 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6100 if test $ac_cv_header_stdc = yes; then
6101 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6102 cat >conftest.
$ac_ext <<_ACEOF
6105 cat confdefs.h
>>conftest.
$ac_ext
6106 cat >>conftest.
$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6112 $EGREP "memchr" >/dev
/null
2>&1; then
6115 ac_cv_header_stdc
=no
6121 if test $ac_cv_header_stdc = yes; then
6122 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6123 cat >conftest.
$ac_ext <<_ACEOF
6126 cat confdefs.h
>>conftest.
$ac_ext
6127 cat >>conftest.
$ac_ext <<_ACEOF
6128 /* end confdefs.h. */
6132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6133 $EGREP "free" >/dev
/null
2>&1; then
6136 ac_cv_header_stdc
=no
6142 if test $ac_cv_header_stdc = yes; then
6143 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6144 if test "$cross_compiling" = yes; then
6147 cat >conftest.
$ac_ext <<_ACEOF
6150 cat confdefs.h
>>conftest.
$ac_ext
6151 cat >>conftest.
$ac_ext <<_ACEOF
6152 /* end confdefs.h. */
6154 #if ((' ' & 0x0FF) == 0x020)
6155 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6156 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6158 # define ISLOWER(c) \
6159 (('a' <= (c) && (c) <= 'i') \
6160 || ('j' <= (c) && (c) <= 'r') \
6161 || ('s' <= (c) && (c) <= 'z'))
6162 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6165 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6170 for (i = 0; i < 256; i++)
6171 if (XOR (islower (i), ISLOWER (i))
6172 || toupper (i) != TOUPPER (i))
6177 rm -f conftest
$ac_exeext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6179 (eval $ac_link) 2>&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); }; }; then
6190 echo "$as_me: program exited with status $ac_status" >&5
6191 echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.
$ac_ext >&5
6195 ac_cv_header_stdc
=no
6197 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6201 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6202 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6203 if test $ac_cv_header_stdc = yes; then
6205 cat >>confdefs.h
<<\_ACEOF
6206 #define STDC_HEADERS 1
6211 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6212 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6213 if test "${ac_cv_header_time+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 cat >conftest.
$ac_ext <<_ACEOF
6219 cat confdefs.h
>>conftest.
$ac_ext
6220 cat >>conftest.
$ac_ext <<_ACEOF
6221 /* end confdefs.h. */
6222 #include <sys/types.h>
6223 #include <sys/time.h>
6229 if ((struct tm *) 0)
6235 rm -f conftest.
$ac_objext
6236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6237 (eval $ac_compile) 2>conftest.er1
6239 grep -v '^ *+' conftest.er1
>conftest.err
6241 cat conftest.err
>&5
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); } &&
6244 { ac_try
='test -z "$ac_c_werror_flag"
6245 || test ! -s conftest.err'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; } &&
6251 { ac_try
='test -s conftest.$ac_objext'
6252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }; }; then
6257 ac_cv_header_time
=yes
6259 echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.
$ac_ext >&5
6262 ac_cv_header_time
=no
6264 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6266 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6267 echo "${ECHO_T}$ac_cv_header_time" >&6
6268 if test $ac_cv_header_time = yes; then
6270 cat >>confdefs.h
<<\_ACEOF
6271 #define TIME_WITH_SYS_TIME 1
6276 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6277 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6278 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6279 echo $ECHO_N "(cached) $ECHO_C" >&6
6281 cat >conftest.
$ac_ext <<_ACEOF
6284 cat confdefs.h
>>conftest.
$ac_ext
6285 cat >>conftest.
$ac_ext <<_ACEOF
6286 /* end confdefs.h. */
6287 $ac_includes_default
6292 char *p = (char *) sys_siglist;
6299 rm -f conftest.
$ac_objext
6300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6301 (eval $ac_compile) 2>conftest.er1
6303 grep -v '^ *+' conftest.er1
>conftest.err
6305 cat conftest.err
>&5
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); } &&
6308 { ac_try
='test -z "$ac_c_werror_flag"
6309 || test ! -s conftest.err'
6310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; } &&
6315 { ac_try
='test -s conftest.$ac_objext'
6316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; }; then
6321 ac_cv_have_decl_sys_siglist
=yes
6323 echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.
$ac_ext >&5
6326 ac_cv_have_decl_sys_siglist
=no
6328 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6330 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6331 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6332 if test $ac_cv_have_decl_sys_siglist = yes; then
6334 cat >>confdefs.h
<<_ACEOF
6335 #define HAVE_DECL_SYS_SIGLIST 1
6340 cat >>confdefs.h
<<_ACEOF
6341 #define HAVE_DECL_SYS_SIGLIST 0
6348 if test $ac_cv_have_decl_sys_siglist != yes; then
6349 # For Tru64, at least:
6350 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6351 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6352 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6355 cat >conftest.
$ac_ext <<_ACEOF
6358 cat confdefs.h
>>conftest.
$ac_ext
6359 cat >>conftest.
$ac_ext <<_ACEOF
6360 /* end confdefs.h. */
6361 $ac_includes_default
6365 #ifndef __sys_siglist
6366 char *p = (char *) __sys_siglist;
6373 rm -f conftest.
$ac_objext
6374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6375 (eval $ac_compile) 2>conftest.er1
6377 grep -v '^ *+' conftest.er1
>conftest.err
6379 cat conftest.err
>&5
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); } &&
6382 { ac_try
='test -z "$ac_c_werror_flag"
6383 || test ! -s conftest.err'
6384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); }; } &&
6389 { ac_try
='test -s conftest.$ac_objext'
6390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); }; }; then
6395 ac_cv_have_decl___sys_siglist
=yes
6397 echo "$as_me: failed program was:" >&5
6398 sed 's/^/| /' conftest.
$ac_ext >&5
6400 ac_cv_have_decl___sys_siglist
=no
6402 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6404 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6405 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6406 if test $ac_cv_have_decl___sys_siglist = yes; then
6408 cat >>confdefs.h
<<_ACEOF
6409 #define HAVE_DECL___SYS_SIGLIST 1
6414 cat >>confdefs.h
<<_ACEOF
6415 #define HAVE_DECL___SYS_SIGLIST 0
6422 if test $ac_cv_have_decl___sys_siglist = yes; then
6424 cat >>confdefs.h
<<\_ACEOF
6425 #define sys_siglist __sys_siglist
6430 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6431 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6432 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6435 cat >conftest.
$ac_ext <<_ACEOF
6438 cat confdefs.h
>>conftest.
$ac_ext
6439 cat >>conftest.
$ac_ext <<_ACEOF
6440 /* end confdefs.h. */
6441 #include <sys/types.h>
6442 #include <sys/wait.h>
6444 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6447 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6455 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6460 rm -f conftest.
$ac_objext
6461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6462 (eval $ac_compile) 2>conftest.er1
6464 grep -v '^ *+' conftest.er1
>conftest.err
6466 cat conftest.err
>&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); } &&
6469 { ac_try
='test -z "$ac_c_werror_flag"
6470 || test ! -s conftest.err'
6471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); }; } &&
6476 { ac_try
='test -s conftest.$ac_objext'
6477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; }; then
6482 ac_cv_header_sys_wait_h
=yes
6484 echo "$as_me: failed program was:" >&5
6485 sed 's/^/| /' conftest.
$ac_ext >&5
6487 ac_cv_header_sys_wait_h
=no
6489 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6491 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6492 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6493 if test $ac_cv_header_sys_wait_h = yes; then
6495 cat >>confdefs.h
<<\_ACEOF
6496 #define HAVE_SYS_WAIT_H 1
6502 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6503 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6504 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6507 cat >conftest.
$ac_ext <<_ACEOF
6510 cat confdefs.h
>>conftest.
$ac_ext
6511 cat >>conftest.
$ac_ext <<_ACEOF
6512 /* end confdefs.h. */
6513 #ifdef TIME_WITH_SYS_TIME
6514 #include <sys/time.h>
6517 #ifdef HAVE_SYS_TIME_H
6518 #include <sys/time.h>
6529 static struct utimbuf x; x.actime = x.modtime;
6534 rm -f conftest.
$ac_objext
6535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6536 (eval $ac_compile) 2>conftest.er1
6538 grep -v '^ *+' conftest.er1
>conftest.err
6540 cat conftest.err
>&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); } &&
6543 { ac_try
='test -z "$ac_c_werror_flag"
6544 || test ! -s conftest.err'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; } &&
6550 { ac_try
='test -s conftest.$ac_objext'
6551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); }; }; then
6556 emacs_cv_struct_utimbuf
=yes
6558 echo "$as_me: failed program was:" >&5
6559 sed 's/^/| /' conftest.
$ac_ext >&5
6561 emacs_cv_struct_utimbuf
=no
6563 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6565 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6566 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6567 if test $emacs_cv_struct_utimbuf = yes; then
6569 cat >>confdefs.h
<<\_ACEOF
6570 #define HAVE_STRUCT_UTIMBUF 1
6575 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6576 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6577 if test "${ac_cv_type_signal+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6580 cat >conftest.
$ac_ext <<_ACEOF
6583 cat confdefs.h
>>conftest.
$ac_ext
6584 cat >>conftest.
$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6586 #include <sys/types.h>
6592 extern "C" void (*signal (int, void (*)(int)))(int);
6594 void (*signal ()) ();
6605 rm -f conftest.
$ac_objext
6606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6607 (eval $ac_compile) 2>conftest.er1
6609 grep -v '^ *+' conftest.er1
>conftest.err
6611 cat conftest.err
>&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } &&
6614 { ac_try
='test -z "$ac_c_werror_flag"
6615 || test ! -s conftest.err'
6616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); }; } &&
6621 { ac_try
='test -s conftest.$ac_objext'
6622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); }; }; then
6627 ac_cv_type_signal
=void
6629 echo "$as_me: failed program was:" >&5
6630 sed 's/^/| /' conftest.
$ac_ext >&5
6632 ac_cv_type_signal
=int
6634 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6636 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6637 echo "${ECHO_T}$ac_cv_type_signal" >&6
6639 cat >>confdefs.h
<<_ACEOF
6640 #define RETSIGTYPE $ac_cv_type_signal
6645 echo "$as_me:$LINENO: checking for speed_t" >&5
6646 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6647 if test "${emacs_cv_speed_t+set}" = set; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6650 cat >conftest.
$ac_ext <<_ACEOF
6653 cat confdefs.h
>>conftest.
$ac_ext
6654 cat >>conftest.
$ac_ext <<_ACEOF
6655 /* end confdefs.h. */
6656 #include <termios.h>
6665 rm -f conftest.
$ac_objext
6666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6667 (eval $ac_compile) 2>conftest.er1
6669 grep -v '^ *+' conftest.er1
>conftest.err
6671 cat conftest.err
>&5
6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); } &&
6674 { ac_try
='test -z "$ac_c_werror_flag"
6675 || test ! -s conftest.err'
6676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); }; } &&
6681 { ac_try
='test -s conftest.$ac_objext'
6682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); }; }; then
6687 emacs_cv_speed_t
=yes
6689 echo "$as_me: failed program was:" >&5
6690 sed 's/^/| /' conftest.
$ac_ext >&5
6694 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6696 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6697 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6698 if test $emacs_cv_speed_t = yes; then
6700 cat >>confdefs.h
<<\_ACEOF
6701 #define HAVE_SPEED_T 1
6706 echo "$as_me:$LINENO: checking for struct timeval" >&5
6707 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6708 if test "${emacs_cv_struct_timeval+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6711 cat >conftest.
$ac_ext <<_ACEOF
6714 cat confdefs.h
>>conftest.
$ac_ext
6715 cat >>conftest.
$ac_ext <<_ACEOF
6716 /* end confdefs.h. */
6717 #ifdef TIME_WITH_SYS_TIME
6718 #include <sys/time.h>
6721 #ifdef HAVE_SYS_TIME_H
6722 #include <sys/time.h>
6730 static struct timeval x; x.tv_sec = x.tv_usec;
6735 rm -f conftest.
$ac_objext
6736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6737 (eval $ac_compile) 2>conftest.er1
6739 grep -v '^ *+' conftest.er1
>conftest.err
6741 cat conftest.err
>&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } &&
6744 { ac_try
='test -z "$ac_c_werror_flag"
6745 || test ! -s conftest.err'
6746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); }; } &&
6751 { ac_try
='test -s conftest.$ac_objext'
6752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); }; }; then
6757 emacs_cv_struct_timeval
=yes
6759 echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.
$ac_ext >&5
6762 emacs_cv_struct_timeval
=no
6764 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6766 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6767 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6768 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6769 if test $emacs_cv_struct_timeval = yes; then
6771 cat >>confdefs.h
<<\_ACEOF
6772 #define HAVE_TIMEVAL 1
6777 echo "$as_me:$LINENO: checking for struct exception" >&5
6778 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6779 if test "${emacs_cv_struct_exception+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6782 cat >conftest.
$ac_ext <<_ACEOF
6785 cat confdefs.h
>>conftest.
$ac_ext
6786 cat >>conftest.
$ac_ext <<_ACEOF
6787 /* end confdefs.h. */
6792 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6797 rm -f conftest.
$ac_objext
6798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6799 (eval $ac_compile) 2>conftest.er1
6801 grep -v '^ *+' conftest.er1
>conftest.err
6803 cat conftest.err
>&5
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); } &&
6806 { ac_try
='test -z "$ac_c_werror_flag"
6807 || test ! -s conftest.err'
6808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); }; } &&
6813 { ac_try
='test -s conftest.$ac_objext'
6814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); }; }; then
6819 emacs_cv_struct_exception
=yes
6821 echo "$as_me: failed program was:" >&5
6822 sed 's/^/| /' conftest.
$ac_ext >&5
6824 emacs_cv_struct_exception
=no
6826 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6828 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6829 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6830 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6831 if test $emacs_cv_struct_exception != yes; then
6833 cat >>confdefs.h
<<\_ACEOF
6834 #define NO_MATHERR 1
6840 for ac_header
in sys
/socket.h
6842 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6844 echo "$as_me:$LINENO: checking for $ac_header" >&5
6845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
6849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6852 # Is the header compilable?
6853 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6854 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6855 cat >conftest.
$ac_ext <<_ACEOF
6858 cat confdefs.h
>>conftest.
$ac_ext
6859 cat >>conftest.
$ac_ext <<_ACEOF
6860 /* end confdefs.h. */
6861 $ac_includes_default
6862 #include <$ac_header>
6864 rm -f conftest.
$ac_objext
6865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6866 (eval $ac_compile) 2>conftest.er1
6868 grep -v '^ *+' conftest.er1
>conftest.err
6870 cat conftest.err
>&5
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); } &&
6873 { ac_try
='test -z "$ac_c_werror_flag"
6874 || test ! -s conftest.err'
6875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); }; } &&
6880 { ac_try
='test -s conftest.$ac_objext'
6881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); }; }; then
6886 ac_header_compiler
=yes
6888 echo "$as_me: failed program was:" >&5
6889 sed 's/^/| /' conftest.
$ac_ext >&5
6891 ac_header_compiler
=no
6893 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6894 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6895 echo "${ECHO_T}$ac_header_compiler" >&6
6897 # Is the header present?
6898 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6900 cat >conftest.
$ac_ext <<_ACEOF
6903 cat confdefs.h
>>conftest.
$ac_ext
6904 cat >>conftest.
$ac_ext <<_ACEOF
6905 /* end confdefs.h. */
6906 #include <$ac_header>
6908 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6909 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6911 grep -v '^ *+' conftest.er1
>conftest.err
6913 cat conftest.err
>&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); } >/dev
/null
; then
6916 if test -s conftest.err
; then
6917 ac_cpp_err
=$ac_c_preproc_warn_flag
6918 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6925 if test -z "$ac_cpp_err"; then
6926 ac_header_preproc
=yes
6928 echo "$as_me: failed program was:" >&5
6929 sed 's/^/| /' conftest.
$ac_ext >&5
6931 ac_header_preproc
=no
6933 rm -f conftest.err conftest.
$ac_ext
6934 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6935 echo "${ECHO_T}$ac_header_preproc" >&6
6937 # So? What about this header?
6938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6940 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6941 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6943 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6944 ac_header_preproc
=yes
6947 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6948 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6949 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6950 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6951 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6952 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6953 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6954 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6957 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6958 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6961 ## ------------------------------------------ ##
6962 ## Report this to the AC_PACKAGE_NAME lists. ##
6963 ## ------------------------------------------ ##
6966 sed "s/^/$as_me: WARNING: /" >&2
6969 echo "$as_me:$LINENO: checking for $ac_header" >&5
6970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6974 eval "$as_ac_Header=\$ac_header_preproc"
6976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6980 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6981 cat >>confdefs.h
<<_ACEOF
6982 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6990 for ac_header
in net
/if.h
6992 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6993 echo "$as_me:$LINENO: checking for $ac_header" >&5
6994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
6998 cat >conftest.
$ac_ext <<_ACEOF
7001 cat confdefs.h
>>conftest.
$ac_ext
7002 cat >>conftest.
$ac_ext <<_ACEOF
7003 /* end confdefs.h. */
7004 $ac_includes_default
7005 #if HAVE_SYS_SOCKET_H
7006 #include <sys/socket.h>
7009 #include <$ac_header>
7011 rm -f conftest.
$ac_objext
7012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7013 (eval $ac_compile) 2>conftest.er1
7015 grep -v '^ *+' conftest.er1
>conftest.err
7017 cat conftest.err
>&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } &&
7020 { ac_try
='test -z "$ac_c_werror_flag"
7021 || test ! -s conftest.err'
7022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; } &&
7027 { ac_try
='test -s conftest.$ac_objext'
7028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); }; }; then
7033 eval "$as_ac_Header=yes"
7035 echo "$as_me: failed program was:" >&5
7036 sed 's/^/| /' conftest.
$ac_ext >&5
7038 eval "$as_ac_Header=no"
7040 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7043 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7044 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7045 cat >>confdefs.h
<<_ACEOF
7046 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7054 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7055 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7056 if test "${ac_cv_struct_tm+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7059 cat >conftest.
$ac_ext <<_ACEOF
7062 cat confdefs.h
>>conftest.
$ac_ext
7063 cat >>conftest.
$ac_ext <<_ACEOF
7064 /* end confdefs.h. */
7065 #include <sys/types.h>
7071 struct tm *tp; tp->tm_sec;
7076 rm -f conftest.
$ac_objext
7077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7078 (eval $ac_compile) 2>conftest.er1
7080 grep -v '^ *+' conftest.er1
>conftest.err
7082 cat conftest.err
>&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } &&
7085 { ac_try
='test -z "$ac_c_werror_flag"
7086 || test ! -s conftest.err'
7087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); }; } &&
7092 { ac_try
='test -s conftest.$ac_objext'
7093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); }; }; then
7098 ac_cv_struct_tm
=time.h
7100 echo "$as_me: failed program was:" >&5
7101 sed 's/^/| /' conftest.
$ac_ext >&5
7103 ac_cv_struct_tm
=sys
/time.h
7105 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7107 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7108 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7109 if test $ac_cv_struct_tm = sys
/time.h
; then
7111 cat >>confdefs.h
<<\_ACEOF
7112 #define TM_IN_SYS_TIME 1
7117 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7118 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
7119 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7120 echo $ECHO_N "(cached) $ECHO_C" >&6
7122 cat >conftest.
$ac_ext <<_ACEOF
7125 cat confdefs.h
>>conftest.
$ac_ext
7126 cat >>conftest.
$ac_ext <<_ACEOF
7127 /* end confdefs.h. */
7128 #include <sys/types.h>
7129 #include <$ac_cv_struct_tm>
7135 static struct tm ac_aggr;
7136 if (ac_aggr.tm_zone)
7142 rm -f conftest.
$ac_objext
7143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7144 (eval $ac_compile) 2>conftest.er1
7146 grep -v '^ *+' conftest.er1
>conftest.err
7148 cat conftest.err
>&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); } &&
7151 { ac_try
='test -z "$ac_c_werror_flag"
7152 || test ! -s conftest.err'
7153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); }; } &&
7158 { ac_try
='test -s conftest.$ac_objext'
7159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); }; }; then
7164 ac_cv_member_struct_tm_tm_zone
=yes
7166 echo "$as_me: failed program was:" >&5
7167 sed 's/^/| /' conftest.
$ac_ext >&5
7169 cat >conftest.
$ac_ext <<_ACEOF
7172 cat confdefs.h
>>conftest.
$ac_ext
7173 cat >>conftest.
$ac_ext <<_ACEOF
7174 /* end confdefs.h. */
7175 #include <sys/types.h>
7176 #include <$ac_cv_struct_tm>
7182 static struct tm ac_aggr;
7183 if (sizeof ac_aggr.tm_zone)
7189 rm -f conftest.
$ac_objext
7190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7191 (eval $ac_compile) 2>conftest.er1
7193 grep -v '^ *+' conftest.er1
>conftest.err
7195 cat conftest.err
>&5
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); } &&
7198 { ac_try
='test -z "$ac_c_werror_flag"
7199 || test ! -s conftest.err'
7200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; } &&
7205 { ac_try
='test -s conftest.$ac_objext'
7206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); }; }; then
7211 ac_cv_member_struct_tm_tm_zone
=yes
7213 echo "$as_me: failed program was:" >&5
7214 sed 's/^/| /' conftest.
$ac_ext >&5
7216 ac_cv_member_struct_tm_tm_zone
=no
7218 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7220 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7222 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7223 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7224 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7226 cat >>confdefs.h
<<_ACEOF
7227 #define HAVE_STRUCT_TM_TM_ZONE 1
7233 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7235 cat >>confdefs.h
<<\_ACEOF
7236 #define HAVE_TM_ZONE 1
7240 echo "$as_me:$LINENO: checking for tzname" >&5
7241 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7242 if test "${ac_cv_var_tzname+set}" = set; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
7245 cat >conftest.
$ac_ext <<_ACEOF
7248 cat confdefs.h
>>conftest.
$ac_ext
7249 cat >>conftest.
$ac_ext <<_ACEOF
7250 /* end confdefs.h. */
7252 #ifndef tzname /* For SGI. */
7253 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7264 rm -f conftest.
$ac_objext conftest
$ac_exeext
7265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7266 (eval $ac_link) 2>conftest.er1
7268 grep -v '^ *+' conftest.er1
>conftest.err
7270 cat conftest.err
>&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } &&
7273 { ac_try
='test -z "$ac_c_werror_flag"
7274 || test ! -s conftest.err'
7275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); }; } &&
7280 { ac_try
='test -s conftest$ac_exeext'
7281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); }; }; then
7286 ac_cv_var_tzname
=yes
7288 echo "$as_me: failed program was:" >&5
7289 sed 's/^/| /' conftest.
$ac_ext >&5
7293 rm -f conftest.err conftest.
$ac_objext \
7294 conftest
$ac_exeext conftest.
$ac_ext
7296 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7297 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7298 if test $ac_cv_var_tzname = yes; then
7300 cat >>confdefs.h
<<\_ACEOF
7301 #define HAVE_TZNAME 1
7307 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7308 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7309 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 cat >conftest.
$ac_ext <<_ACEOF
7315 cat confdefs.h
>>conftest.
$ac_ext
7316 cat >>conftest.
$ac_ext <<_ACEOF
7317 /* end confdefs.h. */
7323 static struct tm ac_aggr;
7324 if (ac_aggr.tm_gmtoff)
7330 rm -f conftest.
$ac_objext
7331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7332 (eval $ac_compile) 2>conftest.er1
7334 grep -v '^ *+' conftest.er1
>conftest.err
7336 cat conftest.err
>&5
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); } &&
7339 { ac_try
='test -z "$ac_c_werror_flag"
7340 || test ! -s conftest.err'
7341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345 (exit $ac_status); }; } &&
7346 { ac_try
='test -s conftest.$ac_objext'
7347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); }; }; then
7352 ac_cv_member_struct_tm_tm_gmtoff
=yes
7354 echo "$as_me: failed program was:" >&5
7355 sed 's/^/| /' conftest.
$ac_ext >&5
7357 cat >conftest.
$ac_ext <<_ACEOF
7360 cat confdefs.h
>>conftest.
$ac_ext
7361 cat >>conftest.
$ac_ext <<_ACEOF
7362 /* end confdefs.h. */
7368 static struct tm ac_aggr;
7369 if (sizeof ac_aggr.tm_gmtoff)
7375 rm -f conftest.
$ac_objext
7376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7377 (eval $ac_compile) 2>conftest.er1
7379 grep -v '^ *+' conftest.er1
>conftest.err
7381 cat conftest.err
>&5
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); } &&
7384 { ac_try
='test -z "$ac_c_werror_flag"
7385 || test ! -s conftest.err'
7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); }; } &&
7391 { ac_try
='test -s conftest.$ac_objext'
7392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); }; }; then
7397 ac_cv_member_struct_tm_tm_gmtoff
=yes
7399 echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.
$ac_ext >&5
7402 ac_cv_member_struct_tm_tm_gmtoff
=no
7404 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7406 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7408 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7409 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7410 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7412 cat >>confdefs.h
<<\_ACEOF
7413 #define HAVE_TM_GMTOFF 1
7418 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7419 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7420 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 cat >conftest.
$ac_ext <<_ACEOF
7426 cat confdefs.h
>>conftest.
$ac_ext
7427 cat >>conftest.
$ac_ext <<_ACEOF
7428 /* end confdefs.h. */
7429 $ac_includes_default
7430 #if HAVE_SYS_SOCKET_H
7431 #include <sys/socket.h>
7440 static struct ifreq ac_aggr;
7441 if (ac_aggr.ifr_flags)
7447 rm -f conftest.
$ac_objext
7448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7449 (eval $ac_compile) 2>conftest.er1
7451 grep -v '^ *+' conftest.er1
>conftest.err
7453 cat conftest.err
>&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); } &&
7456 { ac_try
='test -z "$ac_c_werror_flag"
7457 || test ! -s conftest.err'
7458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); }; } &&
7463 { ac_try
='test -s conftest.$ac_objext'
7464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); }; }; then
7469 ac_cv_member_struct_ifreq_ifr_flags
=yes
7471 echo "$as_me: failed program was:" >&5
7472 sed 's/^/| /' conftest.
$ac_ext >&5
7474 cat >conftest.
$ac_ext <<_ACEOF
7477 cat confdefs.h
>>conftest.
$ac_ext
7478 cat >>conftest.
$ac_ext <<_ACEOF
7479 /* end confdefs.h. */
7480 $ac_includes_default
7481 #if HAVE_SYS_SOCKET_H
7482 #include <sys/socket.h>
7491 static struct ifreq ac_aggr;
7492 if (sizeof ac_aggr.ifr_flags)
7498 rm -f conftest.
$ac_objext
7499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7500 (eval $ac_compile) 2>conftest.er1
7502 grep -v '^ *+' conftest.er1
>conftest.err
7504 cat conftest.err
>&5
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); } &&
7507 { ac_try
='test -z "$ac_c_werror_flag"
7508 || test ! -s conftest.err'
7509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); }; } &&
7514 { ac_try
='test -s conftest.$ac_objext'
7515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); }; }; then
7520 ac_cv_member_struct_ifreq_ifr_flags
=yes
7522 echo "$as_me: failed program was:" >&5
7523 sed 's/^/| /' conftest.
$ac_ext >&5
7525 ac_cv_member_struct_ifreq_ifr_flags
=no
7527 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7529 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7531 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7532 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7533 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7535 cat >>confdefs.h
<<_ACEOF
7536 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7541 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7542 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7543 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7546 cat >conftest.
$ac_ext <<_ACEOF
7549 cat confdefs.h
>>conftest.
$ac_ext
7550 cat >>conftest.
$ac_ext <<_ACEOF
7551 /* end confdefs.h. */
7552 $ac_includes_default
7553 #if HAVE_SYS_SOCKET_H
7554 #include <sys/socket.h>
7563 static struct ifreq ac_aggr;
7564 if (ac_aggr.ifr_hwaddr)
7570 rm -f conftest.
$ac_objext
7571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7572 (eval $ac_compile) 2>conftest.er1
7574 grep -v '^ *+' conftest.er1
>conftest.err
7576 cat conftest.err
>&5
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); } &&
7579 { ac_try
='test -z "$ac_c_werror_flag"
7580 || test ! -s conftest.err'
7581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); }; } &&
7586 { ac_try
='test -s conftest.$ac_objext'
7587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); }; }; then
7592 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7594 echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.
$ac_ext >&5
7597 cat >conftest.
$ac_ext <<_ACEOF
7600 cat confdefs.h
>>conftest.
$ac_ext
7601 cat >>conftest.
$ac_ext <<_ACEOF
7602 /* end confdefs.h. */
7603 $ac_includes_default
7604 #if HAVE_SYS_SOCKET_H
7605 #include <sys/socket.h>
7614 static struct ifreq ac_aggr;
7615 if (sizeof ac_aggr.ifr_hwaddr)
7621 rm -f conftest.
$ac_objext
7622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7623 (eval $ac_compile) 2>conftest.er1
7625 grep -v '^ *+' conftest.er1
>conftest.err
7627 cat conftest.err
>&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } &&
7630 { ac_try
='test -z "$ac_c_werror_flag"
7631 || test ! -s conftest.err'
7632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); }; } &&
7637 { ac_try
='test -s conftest.$ac_objext'
7638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); }; }; then
7643 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7645 echo "$as_me: failed program was:" >&5
7646 sed 's/^/| /' conftest.
$ac_ext >&5
7648 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
7650 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7652 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7654 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7655 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7656 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7658 cat >>confdefs.h
<<_ACEOF
7659 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7664 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7665 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7666 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7669 cat >conftest.
$ac_ext <<_ACEOF
7672 cat confdefs.h
>>conftest.
$ac_ext
7673 cat >>conftest.
$ac_ext <<_ACEOF
7674 /* end confdefs.h. */
7675 $ac_includes_default
7676 #if HAVE_SYS_SOCKET_H
7677 #include <sys/socket.h>
7686 static struct ifreq ac_aggr;
7687 if (ac_aggr.ifr_netmask)
7693 rm -f conftest.
$ac_objext
7694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7695 (eval $ac_compile) 2>conftest.er1
7697 grep -v '^ *+' conftest.er1
>conftest.err
7699 cat conftest.err
>&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); } &&
7702 { ac_try
='test -z "$ac_c_werror_flag"
7703 || test ! -s conftest.err'
7704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); }; } &&
7709 { ac_try
='test -s conftest.$ac_objext'
7710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); }; }; then
7715 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7717 echo "$as_me: failed program was:" >&5
7718 sed 's/^/| /' conftest.
$ac_ext >&5
7720 cat >conftest.
$ac_ext <<_ACEOF
7723 cat confdefs.h
>>conftest.
$ac_ext
7724 cat >>conftest.
$ac_ext <<_ACEOF
7725 /* end confdefs.h. */
7726 $ac_includes_default
7727 #if HAVE_SYS_SOCKET_H
7728 #include <sys/socket.h>
7737 static struct ifreq ac_aggr;
7738 if (sizeof ac_aggr.ifr_netmask)
7744 rm -f conftest.
$ac_objext
7745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7746 (eval $ac_compile) 2>conftest.er1
7748 grep -v '^ *+' conftest.er1
>conftest.err
7750 cat conftest.err
>&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } &&
7753 { ac_try
='test -z "$ac_c_werror_flag"
7754 || test ! -s conftest.err'
7755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); }; } &&
7760 { ac_try
='test -s conftest.$ac_objext'
7761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); }; }; then
7766 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7768 echo "$as_me: failed program was:" >&5
7769 sed 's/^/| /' conftest.
$ac_ext >&5
7771 ac_cv_member_struct_ifreq_ifr_netmask
=no
7773 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7775 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7777 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7778 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7779 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7781 cat >>confdefs.h
<<_ACEOF
7782 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7787 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7788 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7789 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7792 cat >conftest.
$ac_ext <<_ACEOF
7795 cat confdefs.h
>>conftest.
$ac_ext
7796 cat >>conftest.
$ac_ext <<_ACEOF
7797 /* end confdefs.h. */
7798 $ac_includes_default
7799 #if HAVE_SYS_SOCKET_H
7800 #include <sys/socket.h>
7809 static struct ifreq ac_aggr;
7810 if (ac_aggr.ifr_broadaddr)
7816 rm -f conftest.
$ac_objext
7817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7818 (eval $ac_compile) 2>conftest.er1
7820 grep -v '^ *+' conftest.er1
>conftest.err
7822 cat conftest.err
>&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); } &&
7825 { ac_try
='test -z "$ac_c_werror_flag"
7826 || test ! -s conftest.err'
7827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; } &&
7832 { ac_try
='test -s conftest.$ac_objext'
7833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; }; then
7838 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7840 echo "$as_me: failed program was:" >&5
7841 sed 's/^/| /' conftest.
$ac_ext >&5
7843 cat >conftest.
$ac_ext <<_ACEOF
7846 cat confdefs.h
>>conftest.
$ac_ext
7847 cat >>conftest.
$ac_ext <<_ACEOF
7848 /* end confdefs.h. */
7849 $ac_includes_default
7850 #if HAVE_SYS_SOCKET_H
7851 #include <sys/socket.h>
7860 static struct ifreq ac_aggr;
7861 if (sizeof ac_aggr.ifr_broadaddr)
7867 rm -f conftest.
$ac_objext
7868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7869 (eval $ac_compile) 2>conftest.er1
7871 grep -v '^ *+' conftest.er1
>conftest.err
7873 cat conftest.err
>&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } &&
7876 { ac_try
='test -z "$ac_c_werror_flag"
7877 || test ! -s conftest.err'
7878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); }; } &&
7883 { ac_try
='test -s conftest.$ac_objext'
7884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }; }; then
7889 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7891 echo "$as_me: failed program was:" >&5
7892 sed 's/^/| /' conftest.
$ac_ext >&5
7894 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7896 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7898 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7900 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7901 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7902 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7904 cat >>confdefs.h
<<_ACEOF
7905 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7910 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7911 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7912 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7913 echo $ECHO_N "(cached) $ECHO_C" >&6
7915 cat >conftest.
$ac_ext <<_ACEOF
7918 cat confdefs.h
>>conftest.
$ac_ext
7919 cat >>conftest.
$ac_ext <<_ACEOF
7920 /* end confdefs.h. */
7921 $ac_includes_default
7922 #if HAVE_SYS_SOCKET_H
7923 #include <sys/socket.h>
7932 static struct ifreq ac_aggr;
7933 if (ac_aggr.ifr_addr)
7939 rm -f conftest.
$ac_objext
7940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7941 (eval $ac_compile) 2>conftest.er1
7943 grep -v '^ *+' conftest.er1
>conftest.err
7945 cat conftest.err
>&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } &&
7948 { ac_try
='test -z "$ac_c_werror_flag"
7949 || test ! -s conftest.err'
7950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); }; } &&
7955 { ac_try
='test -s conftest.$ac_objext'
7956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); }; }; then
7961 ac_cv_member_struct_ifreq_ifr_addr
=yes
7963 echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.
$ac_ext >&5
7966 cat >conftest.
$ac_ext <<_ACEOF
7969 cat confdefs.h
>>conftest.
$ac_ext
7970 cat >>conftest.
$ac_ext <<_ACEOF
7971 /* end confdefs.h. */
7972 $ac_includes_default
7973 #if HAVE_SYS_SOCKET_H
7974 #include <sys/socket.h>
7983 static struct ifreq ac_aggr;
7984 if (sizeof ac_aggr.ifr_addr)
7990 rm -f conftest.
$ac_objext
7991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7992 (eval $ac_compile) 2>conftest.er1
7994 grep -v '^ *+' conftest.er1
>conftest.err
7996 cat conftest.err
>&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); } &&
7999 { ac_try
='test -z "$ac_c_werror_flag"
8000 || test ! -s conftest.err'
8001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); }; } &&
8006 { ac_try
='test -s conftest.$ac_objext'
8007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); }; }; then
8012 ac_cv_member_struct_ifreq_ifr_addr
=yes
8014 echo "$as_me: failed program was:" >&5
8015 sed 's/^/| /' conftest.
$ac_ext >&5
8017 ac_cv_member_struct_ifreq_ifr_addr
=no
8019 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8021 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8023 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8024 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
8025 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8027 cat >>confdefs.h
<<_ACEOF
8028 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8036 echo "$as_me:$LINENO: checking for function prototypes" >&5
8037 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8038 if test "$ac_cv_prog_cc_stdc" != no
; then
8039 echo "$as_me:$LINENO: result: yes" >&5
8040 echo "${ECHO_T}yes" >&6
8042 cat >>confdefs.h
<<\_ACEOF
8043 #define PROTOTYPES 1
8047 cat >>confdefs.h
<<\_ACEOF
8048 #define __PROTOTYPES 1
8052 echo "$as_me:$LINENO: result: no" >&5
8053 echo "${ECHO_T}no" >&6
8056 echo "$as_me:$LINENO: checking for working volatile" >&5
8057 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8058 if test "${ac_cv_c_volatile+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8061 cat >conftest.
$ac_ext <<_ACEOF
8064 cat confdefs.h
>>conftest.
$ac_ext
8065 cat >>conftest.
$ac_ext <<_ACEOF
8066 /* end confdefs.h. */
8078 rm -f conftest.
$ac_objext
8079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8080 (eval $ac_compile) 2>conftest.er1
8082 grep -v '^ *+' conftest.er1
>conftest.err
8084 cat conftest.err
>&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } &&
8087 { ac_try
='test -z "$ac_c_werror_flag"
8088 || test ! -s conftest.err'
8089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); }; } &&
8094 { ac_try
='test -s conftest.$ac_objext'
8095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); }; }; then
8100 ac_cv_c_volatile
=yes
8102 echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.
$ac_ext >&5
8107 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8109 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8110 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8111 if test $ac_cv_c_volatile = no
; then
8113 cat >>confdefs.h
<<\_ACEOF
8119 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8120 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8121 if test "${ac_cv_c_const+set}" = set; then
8122 echo $ECHO_N "(cached) $ECHO_C" >&6
8124 cat >conftest.
$ac_ext <<_ACEOF
8127 cat confdefs.h
>>conftest.
$ac_ext
8128 cat >>conftest.
$ac_ext <<_ACEOF
8129 /* end confdefs.h. */
8134 /* FIXME: Include the comments suggested by Paul. */
8136 /* Ultrix mips cc rejects this. */
8137 typedef int charset[2];
8139 /* SunOS 4.1.1 cc rejects this. */
8140 char const *const *ccp;
8142 /* NEC SVR4.0.2 mips cc rejects this. */
8143 struct point {int x, y;};
8144 static struct point const zero = {0,0};
8145 /* AIX XL C 1.02.0.0 rejects this.
8146 It does not let you subtract one const X* pointer from another in
8147 an arm of an if-expression whose if-part is not a constant
8149 const char *g = "string";
8150 ccp = &g + (g ? g-g : 0);
8151 /* HPUX 7.0 cc rejects these. */
8154 ccp = (char const *const *) p;
8155 { /* SCO 3.2v4 cc rejects this. */
8157 char const *s = 0 ? (char *) 0 : (char const *) 0;
8161 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8163 const int *foo = &x[0];
8166 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8167 typedef const int *iptr;
8171 { /* AIX XL C 1.02.0.0 rejects this saying
8172 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8173 struct s { int j; const int *ap[3]; };
8174 struct s *b; b->j = 5;
8176 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8185 rm -f conftest.
$ac_objext
8186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8187 (eval $ac_compile) 2>conftest.er1
8189 grep -v '^ *+' conftest.er1
>conftest.err
8191 cat conftest.err
>&5
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); } &&
8194 { ac_try
='test -z "$ac_c_werror_flag"
8195 || test ! -s conftest.err'
8196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); }; } &&
8201 { ac_try
='test -s conftest.$ac_objext'
8202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); }; }; then
8209 echo "$as_me: failed program was:" >&5
8210 sed 's/^/| /' conftest.
$ac_ext >&5
8214 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8216 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8217 echo "${ECHO_T}$ac_cv_c_const" >&6
8218 if test $ac_cv_c_const = no
; then
8220 cat >>confdefs.h
<<\_ACEOF
8226 echo "$as_me:$LINENO: checking for void * support" >&5
8227 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8228 if test "${emacs_cv_void_star+set}" = set; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8231 cat >conftest.
$ac_ext <<_ACEOF
8234 cat confdefs.h
>>conftest.
$ac_ext
8235 cat >>conftest.
$ac_ext <<_ACEOF
8236 /* end confdefs.h. */
8246 rm -f conftest.
$ac_objext
8247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8248 (eval $ac_compile) 2>conftest.er1
8250 grep -v '^ *+' conftest.er1
>conftest.err
8252 cat conftest.err
>&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); } &&
8255 { ac_try
='test -z "$ac_c_werror_flag"
8256 || test ! -s conftest.err'
8257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); }; } &&
8262 { ac_try
='test -s conftest.$ac_objext'
8263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); }; }; then
8268 emacs_cv_void_star
=yes
8270 echo "$as_me: failed program was:" >&5
8271 sed 's/^/| /' conftest.
$ac_ext >&5
8273 emacs_cv_void_star
=no
8275 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8277 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8278 echo "${ECHO_T}$emacs_cv_void_star" >&6
8279 if test $emacs_cv_void_star = yes; then
8280 cat >>confdefs.h
<<\_ACEOF
8281 #define POINTER_TYPE void
8285 cat >>confdefs.h
<<\_ACEOF
8286 #define POINTER_TYPE char
8295 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8296 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8297 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
8298 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8301 cat >conftest.
make <<\_ACEOF
8303 @
echo 'ac_maketemp="$(MAKE)"'
8305 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8306 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8307 if test -n "$ac_maketemp"; then
8308 eval ac_cv_prog_make_
${ac_make}_set
=yes
8310 eval ac_cv_prog_make_
${ac_make}_set
=no
8314 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8315 echo "$as_me:$LINENO: result: yes" >&5
8316 echo "${ECHO_T}yes" >&6
8319 echo "$as_me:$LINENO: result: no" >&5
8320 echo "${ECHO_T}no" >&6
8321 SET_MAKE
="MAKE=${MAKE-make}"
8325 echo "$as_me:$LINENO: checking for long file names" >&5
8326 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8327 if test "${ac_cv_sys_long_file_names+set}" = set; then
8328 echo $ECHO_N "(cached) $ECHO_C" >&6
8330 ac_cv_sys_long_file_names
=yes
8331 # Test for long file names in all the places we know might matter:
8332 # . the current directory, where building will happen
8333 # $prefix/lib where we will be installing things
8334 # $exec_prefix/lib likewise
8335 # eval it to expand exec_prefix.
8336 # $TMPDIR if set, where it might want to write temporary files
8337 # if $TMPDIR is not set:
8338 # /tmp where it might want to write temporary files
8341 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8344 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
8346 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8347 test -d $ac_dir ||
continue
8348 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
8349 ac_xdir
=$ac_dir/cf$$
8350 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
8351 ac_tf1
=$ac_xdir/conftest9012345
8352 ac_tf2
=$ac_xdir/conftest9012346
8353 (echo 1 >$ac_tf1) 2>/dev
/null
8354 (echo 2 >$ac_tf2) 2>/dev
/null
8355 ac_val
=`cat $ac_tf1 2>/dev/null`
8356 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
8357 ac_cv_sys_long_file_names
=no
8358 rm -rf $ac_xdir 2>/dev
/null
8361 rm -rf $ac_xdir 2>/dev
/null
8364 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8365 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8366 if test $ac_cv_sys_long_file_names = yes; then
8368 cat >>confdefs.h
<<\_ACEOF
8369 #define HAVE_LONG_FILE_NAMES 1
8375 #### Choose a window system.
8377 echo "$as_me:$LINENO: checking for X" >&5
8378 echo $ECHO_N "checking for X... $ECHO_C" >&6
8381 # Check whether --with-x or --without-x was given.
8382 if test "${with_x+set}" = set; then
8386 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8387 if test "x$with_x" = xno
; then
8388 # The user explicitly disabled X.
8391 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
8392 # Both variables are already set.
8395 if test "${ac_cv_have_x+set}" = set; then
8396 echo $ECHO_N "(cached) $ECHO_C" >&6
8398 # One or both of the vars are not set, and there is no cached value.
8399 ac_x_includes
=no ac_x_libraries
=no
8401 if mkdir conftest.dir
; then
8403 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8404 cat >Imakefile
<<'_ACEOF'
8406 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8408 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8409 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8410 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8411 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8412 for ac_extension
in a so sl
; do
8413 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
8414 test -f $ac_im_libdir/libX11.
$ac_extension; then
8415 ac_im_usrlibdir
=$ac_im_libdir; break
8418 # Screen out bogus values from the imake configuration. They are
8419 # bogus both because they are the default anyway, and because
8420 # using them would break gcc on systems where it needs fixed includes.
8421 case $ac_im_incroot in
8423 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8425 case $ac_im_usrlibdir in
8427 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8434 # Standard set of common directories for X headers.
8435 # Check X11 before X11Rn because it is often a symlink to the current release.
8447 /usr/local/X11/include
8448 /usr/local/X11R6/include
8449 /usr/local/X11R5/include
8450 /usr/local/X11R4/include
8452 /usr/local/include/X11
8453 /usr/local/include/X11R6
8454 /usr/local/include/X11R5
8455 /usr/local/include/X11R4
8459 /usr/XFree86/include/X11
8463 /usr/unsupported/include
8465 /usr/local/x11r5/include
8466 /usr/lpp/Xamples/include
8468 /usr/openwin/include
8469 /usr/openwin/share/include'
8471 if test "$ac_x_includes" = no
; then
8472 # Guess where to find include files, by looking for Intrinsic.h.
8473 # First, try using that file with no special directory specified.
8474 cat >conftest.
$ac_ext <<_ACEOF
8477 cat confdefs.h
>>conftest.
$ac_ext
8478 cat >>conftest.
$ac_ext <<_ACEOF
8479 /* end confdefs.h. */
8480 #include <X11/Intrinsic.h>
8482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8483 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8485 grep -v '^ *+' conftest.er1
>conftest.err
8487 cat conftest.err
>&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); } >/dev
/null
; then
8490 if test -s conftest.err
; then
8491 ac_cpp_err
=$ac_c_preproc_warn_flag
8492 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8499 if test -z "$ac_cpp_err"; then
8500 # We can compile using X headers with no special include directory.
8503 echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.
$ac_ext >&5
8506 for ac_dir
in $ac_x_header_dirs; do
8507 if test -r "$ac_dir/X11/Intrinsic.h"; then
8508 ac_x_includes
=$ac_dir
8513 rm -f conftest.err conftest.
$ac_ext
8514 fi # $ac_x_includes = no
8516 if test "$ac_x_libraries" = no
; then
8517 # Check for the libraries.
8518 # See if we find them without any special options.
8519 # Don't add to $LIBS permanently.
8522 cat >conftest.
$ac_ext <<_ACEOF
8525 cat confdefs.h
>>conftest.
$ac_ext
8526 cat >>conftest.
$ac_ext <<_ACEOF
8527 /* end confdefs.h. */
8528 #include <X11/Intrinsic.h>
8537 rm -f conftest.
$ac_objext conftest
$ac_exeext
8538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8539 (eval $ac_link) 2>conftest.er1
8541 grep -v '^ *+' conftest.er1
>conftest.err
8543 cat conftest.err
>&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); } &&
8546 { ac_try
='test -z "$ac_c_werror_flag"
8547 || test ! -s conftest.err'
8548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); }; } &&
8553 { ac_try
='test -s conftest$ac_exeext'
8554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); }; }; then
8560 # We can link X programs with no special library path.
8563 echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.
$ac_ext >&5
8567 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8569 # Don't even attempt the hair of trying to link an X program!
8570 for ac_extension
in a so sl
; do
8571 if test -r $ac_dir/libXt.
$ac_extension; then
8572 ac_x_libraries
=$ac_dir
8578 rm -f conftest.err conftest.
$ac_objext \
8579 conftest
$ac_exeext conftest.
$ac_ext
8580 fi # $ac_x_libraries = no
8582 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8583 # Didn't find X anywhere. Cache the known absence of X.
8584 ac_cv_have_x
="have_x=no"
8586 # Record where we found X for the cache.
8587 ac_cv_have_x
="have_x=yes \
8588 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8593 eval "$ac_cv_have_x"
8596 if test "$have_x" != yes; then
8597 echo "$as_me:$LINENO: result: $have_x" >&5
8598 echo "${ECHO_T}$have_x" >&6
8601 # If each of the values was on the command line, it overrides each guess.
8602 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8603 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8604 # Update the cache value to reflect the command line values.
8605 ac_cv_have_x
="have_x=yes \
8606 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8607 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8608 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8611 if test "$no_x" = yes; then
8617 if test "${x_libraries}" != NONE
; then
8618 if test -n "${x_libraries}"; then
8619 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8620 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8622 x_default_search_path
=""
8623 x_search_path
=${x_libraries}
8624 if test -z "${x_search_path}"; then
8625 x_search_path
=/usr
/lib
8627 for x_library
in `echo ${x_search_path}: | \
8628 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8630 ${x_library}/X11/%L/%T/%N%C%S:\
8631 ${x_library}/X11/%l/%T/%N%C%S:\
8632 ${x_library}/X11/%T/%N%C%S:\
8633 ${x_library}/X11/%L/%T/%N%S:\
8634 ${x_library}/X11/%l/%T/%N%S:\
8635 ${x_library}/X11/%T/%N%S"
8636 if test x
"${x_default_search_path}" = x
; then
8637 x_default_search_path
=${x_search_path}
8639 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8643 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8644 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8647 if test x
"${x_includes}" = x
; then
8648 bitmapdir
=/usr
/include
/X11
/bitmaps
8650 # accumulate include directories that have X11 bitmap subdirectories
8652 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8653 if test -d "${bmd}/X11/bitmaps"; then
8654 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8656 if test -d "${bmd}/bitmaps"; then
8657 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8660 if test ${bmd_acc} != "dummyval"; then
8661 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8666 if test "${with_carbon}" != no
; then
8667 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8668 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8669 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8670 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8671 echo $ECHO_N "(cached) $ECHO_C" >&6
8673 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8674 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8676 # Is the header compilable?
8677 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8678 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8679 cat >conftest.
$ac_ext <<_ACEOF
8682 cat confdefs.h
>>conftest.
$ac_ext
8683 cat >>conftest.
$ac_ext <<_ACEOF
8684 /* end confdefs.h. */
8685 $ac_includes_default
8686 #include <Carbon/Carbon.h>
8688 rm -f conftest.
$ac_objext
8689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8690 (eval $ac_compile) 2>conftest.er1
8692 grep -v '^ *+' conftest.er1
>conftest.err
8694 cat conftest.err
>&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } &&
8697 { ac_try
='test -z "$ac_c_werror_flag"
8698 || test ! -s conftest.err'
8699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); }; } &&
8704 { ac_try
='test -s conftest.$ac_objext'
8705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); }; }; then
8710 ac_header_compiler
=yes
8712 echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.
$ac_ext >&5
8715 ac_header_compiler
=no
8717 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8718 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8719 echo "${ECHO_T}$ac_header_compiler" >&6
8721 # Is the header present?
8722 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8723 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8724 cat >conftest.
$ac_ext <<_ACEOF
8727 cat confdefs.h
>>conftest.
$ac_ext
8728 cat >>conftest.
$ac_ext <<_ACEOF
8729 /* end confdefs.h. */
8730 #include <Carbon/Carbon.h>
8732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8733 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8735 grep -v '^ *+' conftest.er1
>conftest.err
8737 cat conftest.err
>&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); } >/dev
/null
; then
8740 if test -s conftest.err
; then
8741 ac_cpp_err
=$ac_c_preproc_warn_flag
8742 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8749 if test -z "$ac_cpp_err"; then
8750 ac_header_preproc
=yes
8752 echo "$as_me: failed program was:" >&5
8753 sed 's/^/| /' conftest.
$ac_ext >&5
8755 ac_header_preproc
=no
8757 rm -f conftest.err conftest.
$ac_ext
8758 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8759 echo "${ECHO_T}$ac_header_preproc" >&6
8761 # So? What about this header?
8762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8764 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8765 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8766 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8767 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8768 ac_header_preproc
=yes
8771 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8772 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8773 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8774 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8775 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8776 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8777 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8778 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8779 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8780 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8781 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8782 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8785 ## ------------------------------------------ ##
8786 ## Report this to the AC_PACKAGE_NAME lists. ##
8787 ## ------------------------------------------ ##
8790 sed "s/^/$as_me: WARNING: /" >&2
8793 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8794 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8795 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8798 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
8800 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8801 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8804 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8810 if test "${window_system}" = x11
&& test "${HAVE_CARBON}" = yes; then
8811 if test "${with_carbon+set}" != set \
8812 && test "${carbon_appdir_x+set}" != set; then
8813 for var
in with_x with_x_toolkit with_gtk with_xim \
8814 with_xpm with_jpeg with_tiff with_gif with_png
; do
8815 if eval test \"\
${$var+set}\" = set; then
8822 if test "${HAVE_CARBON}" = yes; then
8826 case "${window_system}" in
8830 case "${with_x_toolkit}" in
8831 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8832 motif
) USE_X_TOOLKIT
=MOTIF
;;
8834 USE_X_TOOLKIT
=none
;;
8835 no
) USE_X_TOOLKIT
=none
;;
8836 * ) USE_X_TOOLKIT
=maybe
;;
8846 ### If we're using X11, we should use the X menu package.
8849 yes ) HAVE_MENUS
=yes ;;
8852 if test "${opsys}" = "hpux9"; then
8853 case "${x_libraries}" in
8855 opsysfile
="s/hpux9-x11r4.h"
8860 if test "${opsys}" = "hpux9shr"; then
8861 case "${x_libraries}" in
8863 opsysfile
="s/hpux9shxr4.h"
8868 ### Compute the unexec source name from the object name.
8869 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
8871 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8872 # Assume not, until told otherwise.
8875 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8876 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8877 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8878 echo $ECHO_N "(cached) $ECHO_C" >&6
8880 cat >conftest.
$ac_ext <<_ACEOF
8883 cat confdefs.h
>>conftest.
$ac_ext
8884 cat >>conftest.
$ac_ext <<_ACEOF
8885 /* end confdefs.h. */
8886 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8888 #define malloc_get_state innocuous_malloc_get_state
8890 /* System header to define __stub macros and hopefully few prototypes,
8891 which can conflict with char malloc_get_state (); below.
8892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8893 <limits.h> exists even on freestanding compilers. */
8896 # include <limits.h>
8898 # include <assert.h>
8901 #undef malloc_get_state
8903 /* Override any gcc2 internal prototype to avoid an error. */
8908 /* We use char because int might match the return type of a gcc2
8909 builtin and then its argument prototype would still apply. */
8910 char malloc_get_state ();
8911 /* The GNU C library defines this for functions which it implements
8912 to always fail with ENOSYS. Some functions are actually named
8913 something starting with __ and the normal name is an alias. */
8914 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8917 char (*f) () = malloc_get_state;
8926 return f != malloc_get_state;
8931 rm -f conftest.
$ac_objext conftest
$ac_exeext
8932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8933 (eval $ac_link) 2>conftest.er1
8935 grep -v '^ *+' conftest.er1
>conftest.err
8937 cat conftest.err
>&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } &&
8940 { ac_try
='test -z "$ac_c_werror_flag"
8941 || test ! -s conftest.err'
8942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); }; } &&
8947 { ac_try
='test -s conftest$ac_exeext'
8948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); }; }; then
8953 ac_cv_func_malloc_get_state
=yes
8955 echo "$as_me: failed program was:" >&5
8956 sed 's/^/| /' conftest.
$ac_ext >&5
8958 ac_cv_func_malloc_get_state
=no
8960 rm -f conftest.err conftest.
$ac_objext \
8961 conftest
$ac_exeext conftest.
$ac_ext
8963 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8964 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8965 if test $ac_cv_func_malloc_get_state = yes; then
8971 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8972 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8973 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8974 echo $ECHO_N "(cached) $ECHO_C" >&6
8976 cat >conftest.
$ac_ext <<_ACEOF
8979 cat confdefs.h
>>conftest.
$ac_ext
8980 cat >>conftest.
$ac_ext <<_ACEOF
8981 /* end confdefs.h. */
8982 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8984 #define malloc_set_state innocuous_malloc_set_state
8986 /* System header to define __stub macros and hopefully few prototypes,
8987 which can conflict with char malloc_set_state (); below.
8988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8989 <limits.h> exists even on freestanding compilers. */
8992 # include <limits.h>
8994 # include <assert.h>
8997 #undef malloc_set_state
8999 /* Override any gcc2 internal prototype to avoid an error. */
9004 /* We use char because int might match the return type of a gcc2
9005 builtin and then its argument prototype would still apply. */
9006 char malloc_set_state ();
9007 /* The GNU C library defines this for functions which it implements
9008 to always fail with ENOSYS. Some functions are actually named
9009 something starting with __ and the normal name is an alias. */
9010 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
9013 char (*f) () = malloc_set_state;
9022 return f != malloc_set_state;
9027 rm -f conftest.
$ac_objext conftest
$ac_exeext
9028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9029 (eval $ac_link) 2>conftest.er1
9031 grep -v '^ *+' conftest.er1
>conftest.err
9033 cat conftest.err
>&5
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); } &&
9036 { ac_try
='test -z "$ac_c_werror_flag"
9037 || test ! -s conftest.err'
9038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); }; } &&
9043 { ac_try
='test -s conftest$ac_exeext'
9044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); }; }; then
9049 ac_cv_func_malloc_set_state
=yes
9051 echo "$as_me: failed program was:" >&5
9052 sed 's/^/| /' conftest.
$ac_ext >&5
9054 ac_cv_func_malloc_set_state
=no
9056 rm -f conftest.err conftest.
$ac_objext \
9057 conftest
$ac_exeext conftest.
$ac_ext
9059 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9060 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
9061 if test $ac_cv_func_malloc_set_state = yes; then
9067 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9068 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
9069 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9070 echo $ECHO_N "(cached) $ECHO_C" >&6
9072 cat >conftest.
$ac_ext <<_ACEOF
9075 cat confdefs.h
>>conftest.
$ac_ext
9076 cat >>conftest.
$ac_ext <<_ACEOF
9077 /* end confdefs.h. */
9078 extern void (* __after_morecore_hook)();
9082 __after_morecore_hook = 0
9087 rm -f conftest.
$ac_objext conftest
$ac_exeext
9088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9089 (eval $ac_link) 2>conftest.er1
9091 grep -v '^ *+' conftest.er1
>conftest.err
9093 cat conftest.err
>&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); } &&
9096 { ac_try
='test -z "$ac_c_werror_flag"
9097 || test ! -s conftest.err'
9098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); }; } &&
9103 { ac_try
='test -s conftest$ac_exeext'
9104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); }; }; then
9109 emacs_cv_var___after_morecore_hook
=yes
9111 echo "$as_me: failed program was:" >&5
9112 sed 's/^/| /' conftest.
$ac_ext >&5
9114 emacs_cv_var___after_morecore_hook
=no
9116 rm -f conftest.err conftest.
$ac_objext \
9117 conftest
$ac_exeext conftest.
$ac_ext
9119 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9120 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
9121 if test $emacs_cv_var___after_morecore_hook = no
; then
9124 if test "${system_malloc}" = "yes"; then
9127 (The GNU allocators don't work with this system configuration.)"
9129 if test "$doug_lea_malloc" = "yes" ; then
9130 if test "$GNU_MALLOC" = yes ; then
9132 (Using Doug Lea's new malloc from the GNU C Library.)"
9135 cat >>confdefs.h
<<\_ACEOF
9136 #define DOUG_LEA_MALLOC 1
9141 if test x
"${REL_ALLOC}" = x
; then
9142 REL_ALLOC
=${GNU_MALLOC}
9148 for ac_header
in stdlib.h unistd.h
9150 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9152 echo "$as_me:$LINENO: checking for $ac_header" >&5
9153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9155 echo $ECHO_N "(cached) $ECHO_C" >&6
9157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9158 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9160 # Is the header compilable?
9161 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9163 cat >conftest.
$ac_ext <<_ACEOF
9166 cat confdefs.h
>>conftest.
$ac_ext
9167 cat >>conftest.
$ac_ext <<_ACEOF
9168 /* end confdefs.h. */
9169 $ac_includes_default
9170 #include <$ac_header>
9172 rm -f conftest.
$ac_objext
9173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9174 (eval $ac_compile) 2>conftest.er1
9176 grep -v '^ *+' conftest.er1
>conftest.err
9178 cat conftest.err
>&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); } &&
9181 { ac_try
='test -z "$ac_c_werror_flag"
9182 || test ! -s conftest.err'
9183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); }; } &&
9188 { ac_try
='test -s conftest.$ac_objext'
9189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); }; }; then
9194 ac_header_compiler
=yes
9196 echo "$as_me: failed program was:" >&5
9197 sed 's/^/| /' conftest.
$ac_ext >&5
9199 ac_header_compiler
=no
9201 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9202 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9203 echo "${ECHO_T}$ac_header_compiler" >&6
9205 # Is the header present?
9206 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9207 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9208 cat >conftest.
$ac_ext <<_ACEOF
9211 cat confdefs.h
>>conftest.
$ac_ext
9212 cat >>conftest.
$ac_ext <<_ACEOF
9213 /* end confdefs.h. */
9214 #include <$ac_header>
9216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9217 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9219 grep -v '^ *+' conftest.er1
>conftest.err
9221 cat conftest.err
>&5
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); } >/dev
/null
; then
9224 if test -s conftest.err
; then
9225 ac_cpp_err
=$ac_c_preproc_warn_flag
9226 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9233 if test -z "$ac_cpp_err"; then
9234 ac_header_preproc
=yes
9236 echo "$as_me: failed program was:" >&5
9237 sed 's/^/| /' conftest.
$ac_ext >&5
9239 ac_header_preproc
=no
9241 rm -f conftest.err conftest.
$ac_ext
9242 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9243 echo "${ECHO_T}$ac_header_preproc" >&6
9245 # So? What about this header?
9246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9248 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9252 ac_header_preproc
=yes
9255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9258 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9259 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9261 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9262 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9265 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9269 ## ------------------------------------------ ##
9270 ## Report this to the AC_PACKAGE_NAME lists. ##
9271 ## ------------------------------------------ ##
9274 sed "s/^/$as_me: WARNING: /" >&2
9277 echo "$as_me:$LINENO: checking for $ac_header" >&5
9278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9280 echo $ECHO_N "(cached) $ECHO_C" >&6
9282 eval "$as_ac_Header=\$ac_header_preproc"
9284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9289 cat >>confdefs.h
<<_ACEOF
9290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9298 for ac_func
in getpagesize
9300 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9301 echo "$as_me:$LINENO: checking for $ac_func" >&5
9302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9303 if eval "test \"\${$as_ac_var+set}\" = set"; then
9304 echo $ECHO_N "(cached) $ECHO_C" >&6
9306 cat >conftest.
$ac_ext <<_ACEOF
9309 cat confdefs.h
>>conftest.
$ac_ext
9310 cat >>conftest.
$ac_ext <<_ACEOF
9311 /* end confdefs.h. */
9312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9314 #define $ac_func innocuous_$ac_func
9316 /* System header to define __stub macros and hopefully few prototypes,
9317 which can conflict with char $ac_func (); below.
9318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9319 <limits.h> exists even on freestanding compilers. */
9322 # include <limits.h>
9324 # include <assert.h>
9329 /* Override any gcc2 internal prototype to avoid an error. */
9334 /* We use char because int might match the return type of a gcc2
9335 builtin and then its argument prototype would still apply. */
9337 /* The GNU C library defines this for functions which it implements
9338 to always fail with ENOSYS. Some functions are actually named
9339 something starting with __ and the normal name is an alias. */
9340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9343 char (*f) () = $ac_func;
9352 return f != $ac_func;
9357 rm -f conftest.
$ac_objext conftest
$ac_exeext
9358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9359 (eval $ac_link) 2>conftest.er1
9361 grep -v '^ *+' conftest.er1
>conftest.err
9363 cat conftest.err
>&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); } &&
9366 { ac_try
='test -z "$ac_c_werror_flag"
9367 || test ! -s conftest.err'
9368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); }; } &&
9373 { ac_try
='test -s conftest$ac_exeext'
9374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); }; }; then
9379 eval "$as_ac_var=yes"
9381 echo "$as_me: failed program was:" >&5
9382 sed 's/^/| /' conftest.
$ac_ext >&5
9384 eval "$as_ac_var=no"
9386 rm -f conftest.err conftest.
$ac_objext \
9387 conftest
$ac_exeext conftest.
$ac_ext
9389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9391 if test `eval echo '${'$as_ac_var'}'` = yes; then
9392 cat >>confdefs.h
<<_ACEOF
9393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9399 echo "$as_me:$LINENO: checking for working mmap" >&5
9400 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9401 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9402 echo $ECHO_N "(cached) $ECHO_C" >&6
9404 if test "$cross_compiling" = yes; then
9405 ac_cv_func_mmap_fixed_mapped
=no
9407 cat >conftest.
$ac_ext <<_ACEOF
9410 cat confdefs.h
>>conftest.
$ac_ext
9411 cat >>conftest.
$ac_ext <<_ACEOF
9412 /* end confdefs.h. */
9413 $ac_includes_default
9414 /* malloc might have been renamed as rpl_malloc. */
9417 /* Thanks to Mike Haertel and Jim Avera for this test.
9418 Here is a matrix of mmap possibilities:
9419 mmap private not fixed
9420 mmap private fixed at somewhere currently unmapped
9421 mmap private fixed at somewhere already mapped
9422 mmap shared not fixed
9423 mmap shared fixed at somewhere currently unmapped
9424 mmap shared fixed at somewhere already mapped
9425 For private mappings, we should verify that changes cannot be read()
9426 back from the file, nor mmap's back from the file at a different
9427 address. (There have been systems where private was not correctly
9428 implemented like the infamous i386 svr4.0, and systems where the
9429 VM page cache was not coherent with the file system buffer cache
9430 like early versions of FreeBSD and possibly contemporary NetBSD.)
9431 For shared mappings, we should conversely verify that changes get
9432 propagated back to all the places they're supposed to be.
9434 Grep wants private fixed already mapped.
9435 The main things grep needs to know about mmap are:
9436 * does it exist and is it safe to write into the mmap'd area
9437 * how to use it (BSD variants) */
9440 #include <sys/mman.h>
9442 #if !STDC_HEADERS && !HAVE_STDLIB_H
9446 /* This mess was copied from the GNU getpagesize.h. */
9447 #if !HAVE_GETPAGESIZE
9448 /* Assume that all systems that can run configure have sys/param.h. */
9449 # if !HAVE_SYS_PARAM_H
9450 # define HAVE_SYS_PARAM_H 1
9453 # ifdef _SC_PAGESIZE
9454 # define getpagesize() sysconf(_SC_PAGESIZE)
9455 # else /* no _SC_PAGESIZE */
9456 # if HAVE_SYS_PARAM_H
9457 # include <sys/param.h>
9458 # ifdef EXEC_PAGESIZE
9459 # define getpagesize() EXEC_PAGESIZE
9460 # else /* no EXEC_PAGESIZE */
9462 # define getpagesize() NBPG * CLSIZE
9465 # endif /* no CLSIZE */
9466 # else /* no NBPG */
9468 # define getpagesize() NBPC
9469 # else /* no NBPC */
9471 # define getpagesize() PAGESIZE
9472 # endif /* PAGESIZE */
9473 # endif /* no NBPC */
9474 # endif /* no NBPG */
9475 # endif /* no EXEC_PAGESIZE */
9476 # else /* no HAVE_SYS_PARAM_H */
9477 # define getpagesize() 8192 /* punt totally */
9478 # endif /* no HAVE_SYS_PARAM_H */
9479 # endif /* no _SC_PAGESIZE */
9481 #endif /* no HAVE_GETPAGESIZE */
9486 char *data, *data2, *data3;
9490 pagesize = getpagesize ();
9492 /* First, make a file with some known garbage in it. */
9493 data = (char *) malloc (pagesize);
9496 for (i = 0; i < pagesize; ++i)
9497 *(data + i) = rand ();
9499 fd = creat ("conftest.mmap", 0600);
9502 if (write (fd, data, pagesize) != pagesize)
9506 /* Next, try to mmap the file at a fixed address which already has
9507 something else allocated at it. If we can, also make sure that
9508 we see the same garbage. */
9509 fd = open ("conftest.mmap", O_RDWR);
9512 data2 = (char *) malloc (2 * pagesize);
9515 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9516 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9517 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9519 for (i = 0; i < pagesize; ++i)
9520 if (*(data + i) != *(data2 + i))
9523 /* Finally, make sure that changes to the mapped area do not
9524 percolate back to the file as seen by read(). (This is a bug on
9525 some variants of i386 svr4.0.) */
9526 for (i = 0; i < pagesize; ++i)
9527 *(data2 + i) = *(data2 + i) + 1;
9528 data3 = (char *) malloc (pagesize);
9531 if (read (fd, data3, pagesize) != pagesize)
9533 for (i = 0; i < pagesize; ++i)
9534 if (*(data + i) != *(data3 + i))
9540 rm -f conftest
$ac_exeext
9541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9542 (eval $ac_link) 2>&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); }; }; then
9551 ac_cv_func_mmap_fixed_mapped
=yes
9553 echo "$as_me: program exited with status $ac_status" >&5
9554 echo "$as_me: failed program was:" >&5
9555 sed 's/^/| /' conftest.
$ac_ext >&5
9558 ac_cv_func_mmap_fixed_mapped
=no
9560 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9563 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9564 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9565 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9567 cat >>confdefs.h
<<\_ACEOF
9574 if test $use_mmap_for_buffers = yes; then
9578 LIBS
="$libsrc_libs $LIBS"
9581 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9582 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9583 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9584 echo $ECHO_N "(cached) $ECHO_C" >&6
9586 ac_check_lib_save_LIBS
=$LIBS
9588 cat >conftest.
$ac_ext <<_ACEOF
9591 cat confdefs.h
>>conftest.
$ac_ext
9592 cat >>conftest.
$ac_ext <<_ACEOF
9593 /* end confdefs.h. */
9595 /* Override any gcc2 internal prototype to avoid an error. */
9599 /* We use char because int might match the return type of a gcc2
9600 builtin and then its argument prototype would still apply. */
9610 rm -f conftest.
$ac_objext conftest
$ac_exeext
9611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9612 (eval $ac_link) 2>conftest.er1
9614 grep -v '^ *+' conftest.er1
>conftest.err
9616 cat conftest.err
>&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); } &&
9619 { ac_try
='test -z "$ac_c_werror_flag"
9620 || test ! -s conftest.err'
9621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; } &&
9626 { ac_try
='test -s conftest$ac_exeext'
9627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); }; }; then
9632 ac_cv_lib_dnet_dnet_ntoa
=yes
9634 echo "$as_me: failed program was:" >&5
9635 sed 's/^/| /' conftest.
$ac_ext >&5
9637 ac_cv_lib_dnet_dnet_ntoa
=no
9639 rm -f conftest.err conftest.
$ac_objext \
9640 conftest
$ac_exeext conftest.
$ac_ext
9641 LIBS
=$ac_check_lib_save_LIBS
9643 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9644 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9645 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9646 cat >>confdefs.h
<<_ACEOF
9647 #define HAVE_LIBDNET 1
9655 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9656 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9657 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9658 echo $ECHO_N "(cached) $ECHO_C" >&6
9660 ac_check_lib_save_LIBS
=$LIBS
9662 cat >conftest.
$ac_ext <<_ACEOF
9665 cat confdefs.h
>>conftest.
$ac_ext
9666 cat >>conftest.
$ac_ext <<_ACEOF
9667 /* end confdefs.h. */
9678 rm -f conftest.
$ac_objext conftest
$ac_exeext
9679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9680 (eval $ac_link) 2>conftest.er1
9682 grep -v '^ *+' conftest.er1
>conftest.err
9684 cat conftest.err
>&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } &&
9687 { ac_try
='test -z "$ac_c_werror_flag"
9688 || test ! -s conftest.err'
9689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); }; } &&
9694 { ac_try
='test -s conftest$ac_exeext'
9695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); }; }; then
9700 ac_cv_lib_Xbsd_main
=yes
9702 echo "$as_me: failed program was:" >&5
9703 sed 's/^/| /' conftest.
$ac_ext >&5
9705 ac_cv_lib_Xbsd_main
=no
9707 rm -f conftest.err conftest.
$ac_objext \
9708 conftest
$ac_exeext conftest.
$ac_ext
9709 LIBS
=$ac_check_lib_save_LIBS
9711 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9712 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9713 if test $ac_cv_lib_Xbsd_main = yes; then
9714 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9719 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9720 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9721 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9722 echo $ECHO_N "(cached) $ECHO_C" >&6
9724 ac_check_lib_save_LIBS
=$LIBS
9725 LIBS
="-lpthreads $LIBS"
9726 cat >conftest.
$ac_ext <<_ACEOF
9729 cat confdefs.h
>>conftest.
$ac_ext
9730 cat >>conftest.
$ac_ext <<_ACEOF
9731 /* end confdefs.h. */
9733 /* Override any gcc2 internal prototype to avoid an error. */
9737 /* We use char because int might match the return type of a gcc2
9738 builtin and then its argument prototype would still apply. */
9748 rm -f conftest.
$ac_objext conftest
$ac_exeext
9749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9750 (eval $ac_link) 2>conftest.er1
9752 grep -v '^ *+' conftest.er1
>conftest.err
9754 cat conftest.err
>&5
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); } &&
9757 { ac_try
='test -z "$ac_c_werror_flag"
9758 || test ! -s conftest.err'
9759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); }; } &&
9764 { ac_try
='test -s conftest$ac_exeext'
9765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; }; then
9770 ac_cv_lib_pthreads_cma_open
=yes
9772 echo "$as_me: failed program was:" >&5
9773 sed 's/^/| /' conftest.
$ac_ext >&5
9775 ac_cv_lib_pthreads_cma_open
=no
9777 rm -f conftest.err conftest.
$ac_objext \
9778 conftest
$ac_exeext conftest.
$ac_ext
9779 LIBS
=$ac_check_lib_save_LIBS
9781 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9782 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9783 if test $ac_cv_lib_pthreads_cma_open = yes; then
9784 cat >>confdefs.h
<<_ACEOF
9785 #define HAVE_LIBPTHREADS 1
9788 LIBS
="-lpthreads $LIBS"
9793 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9794 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9795 if test -d /usr
/X386
/include
; then
9797 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9801 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9802 echo "${ECHO_T}$HAVE_XFREE386" >&6
9807 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9808 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9809 if test "${gdb_cv_bigtoc+set}" = set; then
9810 echo $ECHO_N "(cached) $ECHO_C" >&6
9814 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9815 *) gdb_cv_bigtoc
=-bbigtoc ;;
9818 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9819 cat >conftest.
$ac_ext <<_ACEOF
9822 cat confdefs.h
>>conftest.
$ac_ext
9823 cat >>conftest.
$ac_ext <<_ACEOF
9824 /* end confdefs.h. */
9834 rm -f conftest.
$ac_objext conftest
$ac_exeext
9835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9836 (eval $ac_link) 2>conftest.er1
9838 grep -v '^ *+' conftest.er1
>conftest.err
9840 cat conftest.err
>&5
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); } &&
9843 { ac_try
='test -z "$ac_c_werror_flag"
9844 || test ! -s conftest.err'
9845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; } &&
9850 { ac_try
='test -s conftest$ac_exeext'
9851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); }; }; then
9858 echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.
$ac_ext >&5
9863 rm -f conftest.err conftest.
$ac_objext \
9864 conftest
$ac_exeext conftest.
$ac_ext
9867 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9868 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9872 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9873 # used for the tests that follow. We set them back to REAL_CFLAGS and
9874 # REAL_CPPFLAGS later on.
9876 REAL_CPPFLAGS
="$CPPFLAGS"
9878 if test "${HAVE_X11}" = "yes"; then
9879 DEFS
="$C_SWITCH_X_SITE $DEFS"
9880 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9882 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9883 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9885 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9886 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9887 # but it's more convenient here to set LD_RUN_PATH
9888 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9889 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9890 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9894 if test "${opsys}" = "gnu-linux"; then
9895 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9896 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9897 cat >conftest.
$ac_ext <<_ACEOF
9900 cat confdefs.h
>>conftest.
$ac_ext
9901 cat >>conftest.
$ac_ext <<_ACEOF
9902 /* end confdefs.h. */
9907 XOpenDisplay ("foo");
9912 rm -f conftest.
$ac_objext conftest
$ac_exeext
9913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9914 (eval $ac_link) 2>conftest.er1
9916 grep -v '^ *+' conftest.er1
>conftest.err
9918 cat conftest.err
>&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); } &&
9921 { ac_try
='test -z "$ac_c_werror_flag"
9922 || test ! -s conftest.err'
9923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); }; } &&
9928 { ac_try
='test -s conftest$ac_exeext'
9929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); }; }; then
9934 xlinux_first_failure
=no
9936 echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.
$ac_ext >&5
9939 xlinux_first_failure
=yes
9941 rm -f conftest.err conftest.
$ac_objext \
9942 conftest
$ac_exeext conftest.
$ac_ext
9943 if test "${xlinux_first_failure}" = "yes"; then
9944 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9945 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9946 OLD_CPPFLAGS
="$CPPFLAGS"
9948 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9949 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9950 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9951 LIBS
="$LIBS -b i486-linuxaout"
9952 cat >conftest.
$ac_ext <<_ACEOF
9955 cat confdefs.h
>>conftest.
$ac_ext
9956 cat >>conftest.
$ac_ext <<_ACEOF
9957 /* end confdefs.h. */
9962 XOpenDisplay ("foo");
9967 rm -f conftest.
$ac_objext conftest
$ac_exeext
9968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9969 (eval $ac_link) 2>conftest.er1
9971 grep -v '^ *+' conftest.er1
>conftest.err
9973 cat conftest.err
>&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); } &&
9976 { ac_try
='test -z "$ac_c_werror_flag"
9977 || test ! -s conftest.err'
9978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; } &&
9983 { ac_try
='test -s conftest$ac_exeext'
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; }; then
9989 xlinux_second_failure
=no
9991 echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.
$ac_ext >&5
9994 xlinux_second_failure
=yes
9996 rm -f conftest.err conftest.
$ac_objext \
9997 conftest
$ac_exeext conftest.
$ac_ext
9998 if test "${xlinux_second_failure}" = "yes"; then
9999 # If we get the same failure with -b, there is no use adding -b.
10000 # So take it out. This plays safe.
10001 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10002 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10003 CPPFLAGS
="$OLD_CPPFLAGS"
10005 echo "$as_me:$LINENO: result: no" >&5
10006 echo "${ECHO_T}no" >&6
10008 echo "$as_me:$LINENO: result: yes" >&5
10009 echo "${ECHO_T}yes" >&6
10012 echo "$as_me:$LINENO: result: no" >&5
10013 echo "${ECHO_T}no" >&6
10017 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10018 # header files included from there.
10019 echo "$as_me:$LINENO: checking for Xkb" >&5
10020 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
10021 cat >conftest.
$ac_ext <<_ACEOF
10024 cat confdefs.h
>>conftest.
$ac_ext
10025 cat >>conftest.
$ac_ext <<_ACEOF
10026 /* end confdefs.h. */
10027 #include <X11/Xlib.h>
10028 #include <X11/XKBlib.h>
10032 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10037 rm -f conftest.
$ac_objext conftest
$ac_exeext
10038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10039 (eval $ac_link) 2>conftest.er1
10041 grep -v '^ *+' conftest.er1
>conftest.err
10043 cat conftest.err
>&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); } &&
10046 { ac_try
='test -z "$ac_c_werror_flag"
10047 || test ! -s conftest.err'
10048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049 (eval $ac_try) 2>&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); }; } &&
10053 { ac_try
='test -s conftest$ac_exeext'
10054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10055 (eval $ac_try) 2>&5
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); }; }; then
10061 echo "$as_me: failed program was:" >&5
10062 sed 's/^/| /' conftest.
$ac_ext >&5
10066 rm -f conftest.err conftest.
$ac_objext \
10067 conftest
$ac_exeext conftest.
$ac_ext
10068 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10069 echo "${ECHO_T}$emacs_xkb" >&6
10070 if test $emacs_xkb = yes; then
10072 cat >>confdefs.h
<<\_ACEOF
10073 #define HAVE_XKBGETKEYBOARD 1
10082 for ac_func
in XrmSetDatabase XScreenResourceString \
10083 XScreenNumberOfScreen XSetWMProtocols
10085 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10086 echo "$as_me:$LINENO: checking for $ac_func" >&5
10087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10088 if eval "test \"\${$as_ac_var+set}\" = set"; then
10089 echo $ECHO_N "(cached) $ECHO_C" >&6
10091 cat >conftest.
$ac_ext <<_ACEOF
10094 cat confdefs.h
>>conftest.
$ac_ext
10095 cat >>conftest.
$ac_ext <<_ACEOF
10096 /* end confdefs.h. */
10097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10099 #define $ac_func innocuous_$ac_func
10101 /* System header to define __stub macros and hopefully few prototypes,
10102 which can conflict with char $ac_func (); below.
10103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10104 <limits.h> exists even on freestanding compilers. */
10107 # include <limits.h>
10109 # include <assert.h>
10114 /* Override any gcc2 internal prototype to avoid an error. */
10119 /* We use char because int might match the return type of a gcc2
10120 builtin and then its argument prototype would still apply. */
10122 /* The GNU C library defines this for functions which it implements
10123 to always fail with ENOSYS. Some functions are actually named
10124 something starting with __ and the normal name is an alias. */
10125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10128 char (*f) () = $ac_func;
10137 return f != $ac_func;
10142 rm -f conftest.
$ac_objext conftest
$ac_exeext
10143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10144 (eval $ac_link) 2>conftest.er1
10146 grep -v '^ *+' conftest.er1
>conftest.err
10148 cat conftest.err
>&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } &&
10151 { ac_try
='test -z "$ac_c_werror_flag"
10152 || test ! -s conftest.err'
10153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10154 (eval $ac_try) 2>&5
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; } &&
10158 { ac_try
='test -s conftest$ac_exeext'
10159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160 (eval $ac_try) 2>&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }; }; then
10164 eval "$as_ac_var=yes"
10166 echo "$as_me: failed program was:" >&5
10167 sed 's/^/| /' conftest.
$ac_ext >&5
10169 eval "$as_ac_var=no"
10171 rm -f conftest.err conftest.
$ac_objext \
10172 conftest
$ac_exeext conftest.
$ac_ext
10174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10175 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10176 if test `eval echo '${'$as_ac_var'}'` = yes; then
10177 cat >>confdefs.h
<<_ACEOF
10178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10186 if test "${window_system}" = "x11"; then
10187 echo "$as_me:$LINENO: checking X11 version 6" >&5
10188 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
10189 if test "${emacs_cv_x11_version_6+set}" = set; then
10190 echo $ECHO_N "(cached) $ECHO_C" >&6
10192 cat >conftest.
$ac_ext <<_ACEOF
10195 cat confdefs.h
>>conftest.
$ac_ext
10196 cat >>conftest.
$ac_ext <<_ACEOF
10197 /* end confdefs.h. */
10198 #include <X11/Xlib.h>
10202 #if XlibSpecificationRelease < 6
10210 rm -f conftest.
$ac_objext conftest
$ac_exeext
10211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10212 (eval $ac_link) 2>conftest.er1
10214 grep -v '^ *+' conftest.er1
>conftest.err
10216 cat conftest.err
>&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); } &&
10219 { ac_try
='test -z "$ac_c_werror_flag"
10220 || test ! -s conftest.err'
10221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10222 (eval $ac_try) 2>&5
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); }; } &&
10226 { ac_try
='test -s conftest$ac_exeext'
10227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10228 (eval $ac_try) 2>&5
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); }; }; then
10232 emacs_cv_x11_version_6
=yes
10234 echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.
$ac_ext >&5
10237 emacs_cv_x11_version_6
=no
10239 rm -f conftest.err conftest.
$ac_objext \
10240 conftest
$ac_exeext conftest.
$ac_ext
10243 if test $emacs_cv_x11_version_6 = yes; then
10244 echo "$as_me:$LINENO: result: 6 or newer" >&5
10245 echo "${ECHO_T}6 or newer" >&6
10247 cat >>confdefs.h
<<\_ACEOF
10248 #define HAVE_X11R6 1
10252 echo "$as_me:$LINENO: result: before 6" >&5
10253 echo "${ECHO_T}before 6" >&6
10257 if test "${window_system}" = "x11"; then
10258 echo "$as_me:$LINENO: checking X11 version 5" >&5
10259 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10260 if test "${emacs_cv_x11_version_5+set}" = set; then
10261 echo $ECHO_N "(cached) $ECHO_C" >&6
10263 cat >conftest.
$ac_ext <<_ACEOF
10266 cat confdefs.h
>>conftest.
$ac_ext
10267 cat >>conftest.
$ac_ext <<_ACEOF
10268 /* end confdefs.h. */
10269 #include <X11/Xlib.h>
10273 #if XlibSpecificationRelease < 5
10281 rm -f conftest.
$ac_objext conftest
$ac_exeext
10282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10283 (eval $ac_link) 2>conftest.er1
10285 grep -v '^ *+' conftest.er1
>conftest.err
10287 cat conftest.err
>&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } &&
10290 { ac_try
='test -z "$ac_c_werror_flag"
10291 || test ! -s conftest.err'
10292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293 (eval $ac_try) 2>&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); }; } &&
10297 { ac_try
='test -s conftest$ac_exeext'
10298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299 (eval $ac_try) 2>&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; }; then
10303 emacs_cv_x11_version_5
=yes
10305 echo "$as_me: failed program was:" >&5
10306 sed 's/^/| /' conftest.
$ac_ext >&5
10308 emacs_cv_x11_version_5
=no
10310 rm -f conftest.err conftest.
$ac_objext \
10311 conftest
$ac_exeext conftest.
$ac_ext
10314 if test $emacs_cv_x11_version_5 = yes; then
10315 echo "$as_me:$LINENO: result: 5 or newer" >&5
10316 echo "${ECHO_T}5 or newer" >&6
10319 cat >>confdefs.h
<<\_ACEOF
10320 #define HAVE_X11R5 1
10325 echo "$as_me:$LINENO: result: before 5" >&5
10326 echo "${ECHO_T}before 5" >&6
10331 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
10332 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10333 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10334 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10335 { (exit 1); exit 1; }; };
10339 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10341 if test "X${with_pkg_config_prog}" != X
; then
10342 PKG_CONFIG
="${with_pkg_config_prog}"
10347 if test -z "$PKG_CONFIG"; then
10348 # Extract the first word of "pkg-config", so it can be a program name with args.
10349 set dummy pkg-config
; ac_word
=$2
10350 echo "$as_me:$LINENO: checking for $ac_word" >&5
10351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10352 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10353 echo $ECHO_N "(cached) $ECHO_C" >&6
10355 case $PKG_CONFIG in
10357 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10360 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10361 for as_dir
in $PATH
10364 test -z "$as_dir" && as_dir
=.
10365 for ac_exec_ext
in '' $ac_executable_extensions; do
10366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10367 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10374 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10378 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10380 if test -n "$PKG_CONFIG"; then
10381 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10382 echo "${ECHO_T}$PKG_CONFIG" >&6
10384 echo "$as_me:$LINENO: result: no" >&5
10385 echo "${ECHO_T}no" >&6
10390 if test "$PKG_CONFIG" = "no" ; then
10391 { { echo "$as_me:$LINENO: error:
10392 *** 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
10393 echo "$as_me: error:
10394 *** 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;}
10395 { (exit 1); exit 1; }; }
10397 PKG_CONFIG_MIN_VERSION
=0.9.0
10398 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10399 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10400 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10402 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10403 echo "$as_me:$LINENO: result: yes" >&5
10404 echo "${ECHO_T}yes" >&6
10407 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10408 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10409 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10410 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10411 echo "${ECHO_T}$GTK_CFLAGS" >&6
10413 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10414 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10415 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
10416 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10417 echo "${ECHO_T}$GTK_LIBS" >&6
10419 echo "$as_me:$LINENO: result: no" >&5
10420 echo "${ECHO_T}no" >&6
10423 ## If we have a custom action on failure, don't print errors, but
10424 ## do set a variable so people can do so.
10425 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10426 echo $GTK_PKG_ERRORS
10432 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10433 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10437 if test $succeeded = yes; then
10440 { { 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
10441 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;}
10442 { (exit 1); exit 1; }; }
10447 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10448 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10449 LIBS
="$GTK_LIBS $LIBS"
10452 cat >>confdefs.h
<<\_ACEOF
10458 if test "$with_toolkit_scroll_bars" != no
; then
10459 with_toolkit_scroll_bars
=yes
10462 HAVE_GTK_MULTIDISPLAY
=no
10464 for ac_func
in gdk_display_open
10466 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10467 echo "$as_me:$LINENO: checking for $ac_func" >&5
10468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10469 if eval "test \"\${$as_ac_var+set}\" = set"; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10472 cat >conftest.
$ac_ext <<_ACEOF
10475 cat confdefs.h
>>conftest.
$ac_ext
10476 cat >>conftest.
$ac_ext <<_ACEOF
10477 /* end confdefs.h. */
10478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10480 #define $ac_func innocuous_$ac_func
10482 /* System header to define __stub macros and hopefully few prototypes,
10483 which can conflict with char $ac_func (); below.
10484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10485 <limits.h> exists even on freestanding compilers. */
10488 # include <limits.h>
10490 # include <assert.h>
10495 /* Override any gcc2 internal prototype to avoid an error. */
10500 /* We use char because int might match the return type of a gcc2
10501 builtin and then its argument prototype would still apply. */
10503 /* The GNU C library defines this for functions which it implements
10504 to always fail with ENOSYS. Some functions are actually named
10505 something starting with __ and the normal name is an alias. */
10506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10509 char (*f) () = $ac_func;
10518 return f != $ac_func;
10523 rm -f conftest.
$ac_objext conftest
$ac_exeext
10524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10525 (eval $ac_link) 2>conftest.er1
10527 grep -v '^ *+' conftest.er1
>conftest.err
10529 cat conftest.err
>&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); } &&
10532 { ac_try
='test -z "$ac_c_werror_flag"
10533 || test ! -s conftest.err'
10534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10535 (eval $ac_try) 2>&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); }; } &&
10539 { ac_try
='test -s conftest$ac_exeext'
10540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10541 (eval $ac_try) 2>&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); }; }; then
10545 eval "$as_ac_var=yes"
10547 echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.
$ac_ext >&5
10550 eval "$as_ac_var=no"
10552 rm -f conftest.err conftest.
$ac_objext \
10553 conftest
$ac_exeext conftest.
$ac_ext
10555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10556 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10557 if test `eval echo '${'$as_ac_var'}'` = yes; then
10558 cat >>confdefs.h
<<_ACEOF
10559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10561 HAVE_GTK_MULTIDISPLAY
=yes
10565 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10567 cat >>confdefs.h
<<\_ACEOF
10568 #define HAVE_GTK_MULTIDISPLAY 1
10572 HAVE_GTK_FILE_SELECTION
=no
10574 for ac_func
in gtk_file_selection_new
10576 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10577 echo "$as_me:$LINENO: checking for $ac_func" >&5
10578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10579 if eval "test \"\${$as_ac_var+set}\" = set"; then
10580 echo $ECHO_N "(cached) $ECHO_C" >&6
10582 cat >conftest.
$ac_ext <<_ACEOF
10585 cat confdefs.h
>>conftest.
$ac_ext
10586 cat >>conftest.
$ac_ext <<_ACEOF
10587 /* end confdefs.h. */
10588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10590 #define $ac_func innocuous_$ac_func
10592 /* System header to define __stub macros and hopefully few prototypes,
10593 which can conflict with char $ac_func (); below.
10594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10595 <limits.h> exists even on freestanding compilers. */
10598 # include <limits.h>
10600 # include <assert.h>
10605 /* Override any gcc2 internal prototype to avoid an error. */
10610 /* We use char because int might match the return type of a gcc2
10611 builtin and then its argument prototype would still apply. */
10613 /* The GNU C library defines this for functions which it implements
10614 to always fail with ENOSYS. Some functions are actually named
10615 something starting with __ and the normal name is an alias. */
10616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10619 char (*f) () = $ac_func;
10628 return f != $ac_func;
10633 rm -f conftest.
$ac_objext conftest
$ac_exeext
10634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10635 (eval $ac_link) 2>conftest.er1
10637 grep -v '^ *+' conftest.er1
>conftest.err
10639 cat conftest.err
>&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); } &&
10642 { ac_try
='test -z "$ac_c_werror_flag"
10643 || test ! -s conftest.err'
10644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10645 (eval $ac_try) 2>&5
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); }; } &&
10649 { ac_try
='test -s conftest$ac_exeext'
10650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10651 (eval $ac_try) 2>&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); }; }; then
10655 eval "$as_ac_var=yes"
10657 echo "$as_me: failed program was:" >&5
10658 sed 's/^/| /' conftest.
$ac_ext >&5
10660 eval "$as_ac_var=no"
10662 rm -f conftest.err conftest.
$ac_objext \
10663 conftest
$ac_exeext conftest.
$ac_ext
10665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10666 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10667 if test `eval echo '${'$as_ac_var'}'` = yes; then
10668 cat >>confdefs.h
<<_ACEOF
10669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10671 HAVE_GTK_FILE_SELECTION
=yes
10676 HAVE_GTK_FILE_CHOOSER
=no
10678 for ac_func
in gtk_file_chooser_dialog_new
10680 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10681 echo "$as_me:$LINENO: checking for $ac_func" >&5
10682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10683 if eval "test \"\${$as_ac_var+set}\" = set"; then
10684 echo $ECHO_N "(cached) $ECHO_C" >&6
10686 cat >conftest.
$ac_ext <<_ACEOF
10689 cat confdefs.h
>>conftest.
$ac_ext
10690 cat >>conftest.
$ac_ext <<_ACEOF
10691 /* end confdefs.h. */
10692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10694 #define $ac_func innocuous_$ac_func
10696 /* System header to define __stub macros and hopefully few prototypes,
10697 which can conflict with char $ac_func (); below.
10698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10699 <limits.h> exists even on freestanding compilers. */
10702 # include <limits.h>
10704 # include <assert.h>
10709 /* Override any gcc2 internal prototype to avoid an error. */
10714 /* We use char because int might match the return type of a gcc2
10715 builtin and then its argument prototype would still apply. */
10717 /* The GNU C library defines this for functions which it implements
10718 to always fail with ENOSYS. Some functions are actually named
10719 something starting with __ and the normal name is an alias. */
10720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10723 char (*f) () = $ac_func;
10732 return f != $ac_func;
10737 rm -f conftest.
$ac_objext conftest
$ac_exeext
10738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10739 (eval $ac_link) 2>conftest.er1
10741 grep -v '^ *+' conftest.er1
>conftest.err
10743 cat conftest.err
>&5
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); } &&
10746 { ac_try
='test -z "$ac_c_werror_flag"
10747 || test ! -s conftest.err'
10748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10749 (eval $ac_try) 2>&5
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); }; } &&
10753 { ac_try
='test -s conftest$ac_exeext'
10754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10755 (eval $ac_try) 2>&5
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); }; }; then
10759 eval "$as_ac_var=yes"
10761 echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.
$ac_ext >&5
10764 eval "$as_ac_var=no"
10766 rm -f conftest.err conftest.
$ac_objext \
10767 conftest
$ac_exeext conftest.
$ac_ext
10769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10770 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10771 if test `eval echo '${'$as_ac_var'}'` = yes; then
10772 cat >>confdefs.h
<<_ACEOF
10773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10775 HAVE_GTK_FILE_CHOOSER
=yes
10780 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10781 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10783 cat >>confdefs.h
<<\_ACEOF
10784 #define HAVE_GTK_FILE_BOTH 1
10789 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10790 HAVE_GTK_AND_PTHREAD
=no
10792 for ac_header
in pthread.h
10794 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10796 echo "$as_me:$LINENO: checking for $ac_header" >&5
10797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10799 echo $ECHO_N "(cached) $ECHO_C" >&6
10801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10804 # Is the header compilable?
10805 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10807 cat >conftest.
$ac_ext <<_ACEOF
10810 cat confdefs.h
>>conftest.
$ac_ext
10811 cat >>conftest.
$ac_ext <<_ACEOF
10812 /* end confdefs.h. */
10813 $ac_includes_default
10814 #include <$ac_header>
10816 rm -f conftest.
$ac_objext
10817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10818 (eval $ac_compile) 2>conftest.er1
10820 grep -v '^ *+' conftest.er1
>conftest.err
10822 cat conftest.err
>&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); } &&
10825 { ac_try
='test -z "$ac_c_werror_flag"
10826 || test ! -s conftest.err'
10827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10828 (eval $ac_try) 2>&5
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); }; } &&
10832 { ac_try
='test -s conftest.$ac_objext'
10833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10834 (eval $ac_try) 2>&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); }; }; then
10838 ac_header_compiler
=yes
10840 echo "$as_me: failed program was:" >&5
10841 sed 's/^/| /' conftest.
$ac_ext >&5
10843 ac_header_compiler
=no
10845 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10846 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10847 echo "${ECHO_T}$ac_header_compiler" >&6
10849 # Is the header present?
10850 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10851 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10852 cat >conftest.
$ac_ext <<_ACEOF
10855 cat confdefs.h
>>conftest.
$ac_ext
10856 cat >>conftest.
$ac_ext <<_ACEOF
10857 /* end confdefs.h. */
10858 #include <$ac_header>
10860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10861 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10863 grep -v '^ *+' conftest.er1
>conftest.err
10865 cat conftest.err
>&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); } >/dev
/null
; then
10868 if test -s conftest.err
; then
10869 ac_cpp_err
=$ac_c_preproc_warn_flag
10870 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10877 if test -z "$ac_cpp_err"; then
10878 ac_header_preproc
=yes
10880 echo "$as_me: failed program was:" >&5
10881 sed 's/^/| /' conftest.
$ac_ext >&5
10883 ac_header_preproc
=no
10885 rm -f conftest.err conftest.
$ac_ext
10886 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10887 echo "${ECHO_T}$ac_header_preproc" >&6
10889 # So? What about this header?
10890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10895 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10896 ac_header_preproc
=yes
10899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10902 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10903 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10904 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10905 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10906 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10909 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10910 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10913 ## ------------------------------------------ ##
10914 ## Report this to the AC_PACKAGE_NAME lists. ##
10915 ## ------------------------------------------ ##
10918 sed "s/^/$as_me: WARNING: /" >&2
10921 echo "$as_me:$LINENO: checking for $ac_header" >&5
10922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10924 echo $ECHO_N "(cached) $ECHO_C" >&6
10926 eval "$as_ac_Header=\$ac_header_preproc"
10928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10933 cat >>confdefs.h
<<_ACEOF
10934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10941 if test "$ac_cv_header_pthread_h"; then
10942 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10943 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10944 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10947 ac_check_lib_save_LIBS
=$LIBS
10948 LIBS
="-lpthread $LIBS"
10949 cat >conftest.
$ac_ext <<_ACEOF
10952 cat confdefs.h
>>conftest.
$ac_ext
10953 cat >>conftest.
$ac_ext <<_ACEOF
10954 /* end confdefs.h. */
10956 /* Override any gcc2 internal prototype to avoid an error. */
10960 /* We use char because int might match the return type of a gcc2
10961 builtin and then its argument prototype would still apply. */
10962 char pthread_self ();
10971 rm -f conftest.
$ac_objext conftest
$ac_exeext
10972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10973 (eval $ac_link) 2>conftest.er1
10975 grep -v '^ *+' conftest.er1
>conftest.err
10977 cat conftest.err
>&5
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } &&
10980 { ac_try
='test -z "$ac_c_werror_flag"
10981 || test ! -s conftest.err'
10982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10983 (eval $ac_try) 2>&5
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); }; } &&
10987 { ac_try
='test -s conftest$ac_exeext'
10988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10989 (eval $ac_try) 2>&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); }; }; then
10993 ac_cv_lib_pthread_pthread_self
=yes
10995 echo "$as_me: failed program was:" >&5
10996 sed 's/^/| /' conftest.
$ac_ext >&5
10998 ac_cv_lib_pthread_pthread_self
=no
11000 rm -f conftest.err conftest.
$ac_objext \
11001 conftest
$ac_exeext conftest.
$ac_ext
11002 LIBS
=$ac_check_lib_save_LIBS
11004 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11005 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
11006 if test $ac_cv_lib_pthread_pthread_self = yes; then
11007 HAVE_GTK_AND_PTHREAD
=yes
11011 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11012 GTK_LIBS
="$GTK_LIBS -lpthread"
11014 cat >>confdefs.h
<<\_ACEOF
11015 #define HAVE_GTK_AND_PTHREAD 1
11022 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
11023 if test x
"${HAVE_X11R5}" = xyes
; then
11024 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11025 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
11026 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
11029 cat >conftest.
$ac_ext <<_ACEOF
11032 cat confdefs.h
>>conftest.
$ac_ext
11033 cat >>conftest.
$ac_ext <<_ACEOF
11034 /* end confdefs.h. */
11036 #include <X11/Intrinsic.h>
11037 #include <X11/Xaw/Simple.h>
11046 rm -f conftest.
$ac_objext conftest
$ac_exeext
11047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11048 (eval $ac_link) 2>conftest.er1
11050 grep -v '^ *+' conftest.er1
>conftest.err
11052 cat conftest.err
>&5
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); } &&
11055 { ac_try
='test -z "$ac_c_werror_flag"
11056 || test ! -s conftest.err'
11057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11058 (eval $ac_try) 2>&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; } &&
11062 { ac_try
='test -s conftest$ac_exeext'
11063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11064 (eval $ac_try) 2>&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); }; }; then
11068 emacs_cv_x11_version_5_with_xaw
=yes
11070 echo "$as_me: failed program was:" >&5
11071 sed 's/^/| /' conftest.
$ac_ext >&5
11073 emacs_cv_x11_version_5_with_xaw
=no
11075 rm -f conftest.err conftest.
$ac_objext \
11076 conftest
$ac_exeext conftest.
$ac_ext
11079 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11080 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11081 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
11082 USE_X_TOOLKIT
=LUCID
11084 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11085 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
11093 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11095 if test "${USE_X_TOOLKIT}" != "none"; then
11096 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11097 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
11098 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11099 echo $ECHO_N "(cached) $ECHO_C" >&6
11101 cat >conftest.
$ac_ext <<_ACEOF
11104 cat confdefs.h
>>conftest.
$ac_ext
11105 cat >>conftest.
$ac_ext <<_ACEOF
11106 /* end confdefs.h. */
11107 #include <X11/Intrinsic.h>
11111 #if XtSpecificationRelease < 6
11119 rm -f conftest.
$ac_objext conftest
$ac_exeext
11120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11121 (eval $ac_link) 2>conftest.er1
11123 grep -v '^ *+' conftest.er1
>conftest.err
11125 cat conftest.err
>&5
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); } &&
11128 { ac_try
='test -z "$ac_c_werror_flag"
11129 || test ! -s conftest.err'
11130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11131 (eval $ac_try) 2>&5
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); }; } &&
11135 { ac_try
='test -s conftest$ac_exeext'
11136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11137 (eval $ac_try) 2>&5
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); }; }; then
11141 emacs_cv_x11_toolkit_version_6
=yes
11143 echo "$as_me: failed program was:" >&5
11144 sed 's/^/| /' conftest.
$ac_ext >&5
11146 emacs_cv_x11_toolkit_version_6
=no
11148 rm -f conftest.err conftest.
$ac_objext \
11149 conftest
$ac_exeext conftest.
$ac_ext
11152 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11153 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11154 echo "$as_me:$LINENO: result: 6 or newer" >&5
11155 echo "${ECHO_T}6 or newer" >&6
11157 cat >>confdefs.h
<<\_ACEOF
11158 #define HAVE_X11XTR6 1
11162 echo "$as_me:$LINENO: result: before 6" >&5
11163 echo "${ECHO_T}before 6" >&6
11167 if test x
$HAVE_X11XTR6 = xyes
; then
11168 LIBS
="-lXt -lSM -lICE $LIBS"
11173 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11174 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
11175 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11176 echo $ECHO_N "(cached) $ECHO_C" >&6
11178 ac_check_lib_save_LIBS
=$LIBS
11180 cat >conftest.
$ac_ext <<_ACEOF
11183 cat confdefs.h
>>conftest.
$ac_ext
11184 cat >>conftest.
$ac_ext <<_ACEOF
11185 /* end confdefs.h. */
11187 /* Override any gcc2 internal prototype to avoid an error. */
11191 /* We use char because int might match the return type of a gcc2
11192 builtin and then its argument prototype would still apply. */
11193 char XmuConvertStandardSelection ();
11197 XmuConvertStandardSelection ();
11202 rm -f conftest.
$ac_objext conftest
$ac_exeext
11203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11204 (eval $ac_link) 2>conftest.er1
11206 grep -v '^ *+' conftest.er1
>conftest.err
11208 cat conftest.err
>&5
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); } &&
11211 { ac_try
='test -z "$ac_c_werror_flag"
11212 || test ! -s conftest.err'
11213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11214 (eval $ac_try) 2>&5
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); }; } &&
11218 { ac_try
='test -s conftest$ac_exeext'
11219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11220 (eval $ac_try) 2>&5
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); }; }; then
11224 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11226 echo "$as_me: failed program was:" >&5
11227 sed 's/^/| /' conftest.
$ac_ext >&5
11229 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11231 rm -f conftest.err conftest.
$ac_objext \
11232 conftest
$ac_exeext conftest.
$ac_ext
11233 LIBS
=$ac_check_lib_save_LIBS
11235 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11236 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
11237 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11238 cat >>confdefs.h
<<_ACEOF
11239 #define HAVE_LIBXMU 1
11246 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11249 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11250 if test "${HAVE_X11}" = "yes"; then
11251 if test "${USE_X_TOOLKIT}" != "none"; then
11253 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11254 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
11255 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11256 echo $ECHO_N "(cached) $ECHO_C" >&6
11258 ac_check_lib_save_LIBS
=$LIBS
11259 LIBS
="-lXext $LIBS"
11260 cat >conftest.
$ac_ext <<_ACEOF
11263 cat confdefs.h
>>conftest.
$ac_ext
11264 cat >>conftest.
$ac_ext <<_ACEOF
11265 /* end confdefs.h. */
11267 /* Override any gcc2 internal prototype to avoid an error. */
11271 /* We use char because int might match the return type of a gcc2
11272 builtin and then its argument prototype would still apply. */
11273 char XShapeQueryExtension ();
11277 XShapeQueryExtension ();
11282 rm -f conftest.
$ac_objext conftest
$ac_exeext
11283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11284 (eval $ac_link) 2>conftest.er1
11286 grep -v '^ *+' conftest.er1
>conftest.err
11288 cat conftest.err
>&5
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); } &&
11291 { ac_try
='test -z "$ac_c_werror_flag"
11292 || test ! -s conftest.err'
11293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11294 (eval $ac_try) 2>&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); }; } &&
11298 { ac_try
='test -s conftest$ac_exeext'
11299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11300 (eval $ac_try) 2>&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); }; }; then
11304 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11306 echo "$as_me: failed program was:" >&5
11307 sed 's/^/| /' conftest.
$ac_ext >&5
11309 ac_cv_lib_Xext_XShapeQueryExtension
=no
11311 rm -f conftest.err conftest.
$ac_objext \
11312 conftest
$ac_exeext conftest.
$ac_ext
11313 LIBS
=$ac_check_lib_save_LIBS
11315 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11316 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11317 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11318 cat >>confdefs.h
<<_ACEOF
11319 #define HAVE_LIBXEXT 1
11322 LIBS
="-lXext $LIBS"
11329 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11330 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11331 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11332 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11333 echo $ECHO_N "(cached) $ECHO_C" >&6
11335 cat >conftest.
$ac_ext <<_ACEOF
11338 cat confdefs.h
>>conftest.
$ac_ext
11339 cat >>conftest.
$ac_ext <<_ACEOF
11340 /* end confdefs.h. */
11345 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11348 Motif version prior to 2.1.
11354 rm -f conftest.
$ac_objext
11355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11356 (eval $ac_compile) 2>conftest.er1
11358 grep -v '^ *+' conftest.er1
>conftest.err
11360 cat conftest.err
>&5
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); } &&
11363 { ac_try
='test -z "$ac_c_werror_flag"
11364 || test ! -s conftest.err'
11365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11366 (eval $ac_try) 2>&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); }; } &&
11370 { ac_try
='test -s conftest.$ac_objext'
11371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11372 (eval $ac_try) 2>&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); }; }; then
11376 emacs_cv_motif_version_2_1
=yes
11378 echo "$as_me: failed program was:" >&5
11379 sed 's/^/| /' conftest.
$ac_ext >&5
11381 emacs_cv_motif_version_2_1
=no
11383 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11385 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11386 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11387 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
11388 if test $emacs_cv_motif_version_2_1 = yes; then
11391 cat >>confdefs.h
<<\_ACEOF
11392 #define HAVE_MOTIF_2_1 1
11395 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11396 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11397 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11398 echo $ECHO_N "(cached) $ECHO_C" >&6
11400 ac_check_lib_save_LIBS
=$LIBS
11402 cat >conftest.
$ac_ext <<_ACEOF
11405 cat confdefs.h
>>conftest.
$ac_ext
11406 cat >>conftest.
$ac_ext <<_ACEOF
11407 /* end confdefs.h. */
11409 /* Override any gcc2 internal prototype to avoid an error. */
11413 /* We use char because int might match the return type of a gcc2
11414 builtin and then its argument prototype would still apply. */
11415 char XpCreateContext ();
11419 XpCreateContext ();
11424 rm -f conftest.
$ac_objext conftest
$ac_exeext
11425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11426 (eval $ac_link) 2>conftest.er1
11428 grep -v '^ *+' conftest.er1
>conftest.err
11430 cat conftest.err
>&5
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); } &&
11433 { ac_try
='test -z "$ac_c_werror_flag"
11434 || test ! -s conftest.err'
11435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11436 (eval $ac_try) 2>&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); }; } &&
11440 { ac_try
='test -s conftest$ac_exeext'
11441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11442 (eval $ac_try) 2>&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); }; }; then
11446 ac_cv_lib_Xp_XpCreateContext
=yes
11448 echo "$as_me: failed program was:" >&5
11449 sed 's/^/| /' conftest.
$ac_ext >&5
11451 ac_cv_lib_Xp_XpCreateContext
=no
11453 rm -f conftest.err conftest.
$ac_objext \
11454 conftest
$ac_exeext conftest.
$ac_ext
11455 LIBS
=$ac_check_lib_save_LIBS
11457 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11458 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11459 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11463 if test ${HAVE_LIBXP} = yes; then
11465 cat >>confdefs.h
<<\_ACEOF
11466 #define HAVE_LIBXP 1
11471 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11472 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11473 if test "${emacs_cv_lesstif+set}" = set; then
11474 echo $ECHO_N "(cached) $ECHO_C" >&6
11476 # We put this in CFLAGS temporarily to precede other -I options
11477 # that might be in CFLAGS temporarily.
11478 # We put this in CPPFLAGS where it precedes the other -I options.
11479 OLD_CPPFLAGS
=$CPPFLAGS
11481 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11482 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11483 cat >conftest.
$ac_ext <<_ACEOF
11486 cat confdefs.h
>>conftest.
$ac_ext
11487 cat >>conftest.
$ac_ext <<_ACEOF
11488 /* end confdefs.h. */
11489 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11498 rm -f conftest.
$ac_objext
11499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11500 (eval $ac_compile) 2>conftest.er1
11502 grep -v '^ *+' conftest.er1
>conftest.err
11504 cat conftest.err
>&5
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); } &&
11507 { ac_try
='test -z "$ac_c_werror_flag"
11508 || test ! -s conftest.err'
11509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11510 (eval $ac_try) 2>&5
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); }; } &&
11514 { ac_try
='test -s conftest.$ac_objext'
11515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11516 (eval $ac_try) 2>&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); }; }; then
11520 emacs_cv_lesstif
=yes
11522 echo "$as_me: failed program was:" >&5
11523 sed 's/^/| /' conftest.
$ac_ext >&5
11525 emacs_cv_lesstif
=no
11527 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11529 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11530 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11531 if test $emacs_cv_lesstif = yes; then
11532 # Make sure this -I option remains in CPPFLAGS after it is set
11533 # back to REAL_CPPFLAGS.
11534 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11535 # have those other -I options anyway. Ultimately, having this
11536 # directory ultimately in CPPFLAGS will be enough.
11537 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11538 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11541 CPPFLAGS
=$OLD_CPPFLAGS
11546 ### Is -lXaw3d available?
11548 if test "${HAVE_X11}" = "yes"; then
11549 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
11550 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11551 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11552 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11553 echo $ECHO_N "(cached) $ECHO_C" >&6
11555 cat >conftest.
$ac_ext <<_ACEOF
11558 cat confdefs.h
>>conftest.
$ac_ext
11559 cat >>conftest.
$ac_ext <<_ACEOF
11560 /* end confdefs.h. */
11561 #include <X11/Xaw3d/Scrollbar.h>
11563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11564 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11566 grep -v '^ *+' conftest.er1
>conftest.err
11568 cat conftest.err
>&5
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); } >/dev
/null
; then
11571 if test -s conftest.err
; then
11572 ac_cpp_err
=$ac_c_preproc_warn_flag
11573 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11580 if test -z "$ac_cpp_err"; then
11581 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
11583 echo "$as_me: failed program was:" >&5
11584 sed 's/^/| /' conftest.
$ac_ext >&5
11586 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
11588 rm -f conftest.err conftest.
$ac_ext
11590 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11591 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11592 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11593 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11594 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11595 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11596 echo $ECHO_N "(cached) $ECHO_C" >&6
11598 ac_check_lib_save_LIBS
=$LIBS
11599 LIBS
="-lXaw3d $LIBS"
11600 cat >conftest.
$ac_ext <<_ACEOF
11603 cat confdefs.h
>>conftest.
$ac_ext
11604 cat >>conftest.
$ac_ext <<_ACEOF
11605 /* end confdefs.h. */
11607 /* Override any gcc2 internal prototype to avoid an error. */
11611 /* We use char because int might match the return type of a gcc2
11612 builtin and then its argument prototype would still apply. */
11613 char XawScrollbarSetThumb ();
11617 XawScrollbarSetThumb ();
11622 rm -f conftest.
$ac_objext conftest
$ac_exeext
11623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11624 (eval $ac_link) 2>conftest.er1
11626 grep -v '^ *+' conftest.er1
>conftest.err
11628 cat conftest.err
>&5
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); } &&
11631 { ac_try
='test -z "$ac_c_werror_flag"
11632 || test ! -s conftest.err'
11633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11634 (eval $ac_try) 2>&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); }; } &&
11638 { ac_try
='test -s conftest$ac_exeext'
11639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11640 (eval $ac_try) 2>&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }; }; then
11644 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11646 echo "$as_me: failed program was:" >&5
11647 sed 's/^/| /' conftest.
$ac_ext >&5
11649 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11651 rm -f conftest.err conftest.
$ac_objext \
11652 conftest
$ac_exeext conftest.
$ac_ext
11653 LIBS
=$ac_check_lib_save_LIBS
11655 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11656 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11657 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11664 if test "${HAVE_XAW3D}" = "yes"; then
11666 cat >>confdefs.h
<<\_ACEOF
11667 #define HAVE_XAW3D 1
11676 USE_TOOLKIT_SCROLL_BARS
=no
11677 if test "${with_toolkit_scroll_bars}" != "no"; then
11678 if test "${USE_X_TOOLKIT}" != "none"; then
11679 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11680 cat >>confdefs.h
<<\_ACEOF
11681 #define USE_TOOLKIT_SCROLL_BARS 1
11685 USE_TOOLKIT_SCROLL_BARS
=yes
11686 elif test "${HAVE_XAW3D}" = "yes"; then
11687 cat >>confdefs.h
<<\_ACEOF
11688 #define USE_TOOLKIT_SCROLL_BARS 1
11691 USE_TOOLKIT_SCROLL_BARS
=yes
11693 elif test "${HAVE_GTK}" = "yes"; then
11694 cat >>confdefs.h
<<\_ACEOF
11695 #define USE_TOOLKIT_SCROLL_BARS 1
11698 USE_TOOLKIT_SCROLL_BARS
=yes
11699 elif test "${HAVE_CARBON}" = "yes"; then
11700 cat >>confdefs.h
<<\_ACEOF
11701 #define USE_TOOLKIT_SCROLL_BARS 1
11704 USE_TOOLKIT_SCROLL_BARS
=yes
11708 cat >conftest.
$ac_ext <<_ACEOF
11711 cat confdefs.h
>>conftest.
$ac_ext
11712 cat >>conftest.
$ac_ext <<_ACEOF
11713 /* end confdefs.h. */
11715 #include <X11/Xlib.h>
11716 #include <X11/Xresource.h>
11725 rm -f conftest.
$ac_objext
11726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11727 (eval $ac_compile) 2>conftest.er1
11729 grep -v '^ *+' conftest.er1
>conftest.err
11731 cat conftest.err
>&5
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); } &&
11734 { ac_try
='test -z "$ac_c_werror_flag"
11735 || test ! -s conftest.err'
11736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737 (eval $ac_try) 2>&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; } &&
11741 { ac_try
='test -s conftest.$ac_objext'
11742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743 (eval $ac_try) 2>&5
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); }; }; then
11749 cat >>confdefs.h
<<\_ACEOF
11754 echo "$as_me: failed program was:" >&5
11755 sed 's/^/| /' conftest.
$ac_ext >&5
11759 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11762 if test "${with_xim}" != "no"; then
11764 cat >>confdefs.h
<<\_ACEOF
11771 if test "${HAVE_XIM}" != "no"; then
11772 late_CFLAGS
=$CFLAGS
11773 if test "$GCC" = yes; then
11774 CFLAGS
="$CFLAGS --pedantic-errors"
11776 cat >conftest.
$ac_ext <<_ACEOF
11779 cat confdefs.h
>>conftest.
$ac_ext
11780 cat >>conftest.
$ac_ext <<_ACEOF
11781 /* end confdefs.h. */
11783 #include <X11/Xlib.h>
11784 #include <X11/Xresource.h>
11793 XPointer *client_data;
11795 /* If we're not using GCC, it's probably not XFree86, and this is
11796 probably right, but we can't use something like --pedantic-errors. */
11797 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11798 char*, XIMProc, XPointer*);
11800 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11806 rm -f conftest.
$ac_objext
11807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11808 (eval $ac_compile) 2>conftest.er1
11810 grep -v '^ *+' conftest.er1
>conftest.err
11812 cat conftest.err
>&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); } &&
11815 { ac_try
='test -z "$ac_c_werror_flag"
11816 || test ! -s conftest.err'
11817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11818 (eval $ac_try) 2>&5
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); }; } &&
11822 { ac_try
='test -s conftest.$ac_objext'
11823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11824 (eval $ac_try) 2>&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); }; }; then
11828 emacs_cv_arg6_star
=yes
11830 echo "$as_me: failed program was:" >&5
11831 sed 's/^/| /' conftest.
$ac_ext >&5
11834 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11836 if test "$emacs_cv_arg6_star" = yes; then
11837 cat >>confdefs.h
<<\_ACEOF
11838 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11842 cat >>confdefs.h
<<\_ACEOF
11843 #define XRegisterIMInstantiateCallback_arg6 XPointer
11847 CFLAGS
=$late_CFLAGS
11850 ### Use -lXpm if available, unless `--with-xpm=no'.
11852 if test "${HAVE_X11}" = "yes"; then
11853 if test "${with_xpm}" != "no"; then
11854 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11855 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11856 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11857 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
11860 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11861 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11863 # Is the header compilable?
11864 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11865 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11866 cat >conftest.
$ac_ext <<_ACEOF
11869 cat confdefs.h
>>conftest.
$ac_ext
11870 cat >>conftest.
$ac_ext <<_ACEOF
11871 /* end confdefs.h. */
11872 $ac_includes_default
11873 #include <X11/xpm.h>
11875 rm -f conftest.
$ac_objext
11876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11877 (eval $ac_compile) 2>conftest.er1
11879 grep -v '^ *+' conftest.er1
>conftest.err
11881 cat conftest.err
>&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); } &&
11884 { ac_try
='test -z "$ac_c_werror_flag"
11885 || test ! -s conftest.err'
11886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887 (eval $ac_try) 2>&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; } &&
11891 { ac_try
='test -s conftest.$ac_objext'
11892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893 (eval $ac_try) 2>&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); }; }; then
11897 ac_header_compiler
=yes
11899 echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.
$ac_ext >&5
11902 ac_header_compiler
=no
11904 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11905 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11906 echo "${ECHO_T}$ac_header_compiler" >&6
11908 # Is the header present?
11909 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11910 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11911 cat >conftest.
$ac_ext <<_ACEOF
11914 cat confdefs.h
>>conftest.
$ac_ext
11915 cat >>conftest.
$ac_ext <<_ACEOF
11916 /* end confdefs.h. */
11917 #include <X11/xpm.h>
11919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11920 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11922 grep -v '^ *+' conftest.er1
>conftest.err
11924 cat conftest.err
>&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } >/dev
/null
; then
11927 if test -s conftest.err
; then
11928 ac_cpp_err
=$ac_c_preproc_warn_flag
11929 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11936 if test -z "$ac_cpp_err"; then
11937 ac_header_preproc
=yes
11939 echo "$as_me: failed program was:" >&5
11940 sed 's/^/| /' conftest.
$ac_ext >&5
11942 ac_header_preproc
=no
11944 rm -f conftest.err conftest.
$ac_ext
11945 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11946 echo "${ECHO_T}$ac_header_preproc" >&6
11948 # So? What about this header?
11949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11951 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11952 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11953 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11954 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11955 ac_header_preproc
=yes
11958 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11959 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11960 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11961 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11962 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11963 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11964 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11965 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11966 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11967 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11968 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11969 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11972 ## ------------------------------------------ ##
11973 ## Report this to the AC_PACKAGE_NAME lists. ##
11974 ## ------------------------------------------ ##
11977 sed "s/^/$as_me: WARNING: /" >&2
11980 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11981 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11982 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11983 echo $ECHO_N "(cached) $ECHO_C" >&6
11985 ac_cv_header_X11_xpm_h
=$ac_header_preproc
11987 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11988 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11991 if test $ac_cv_header_X11_xpm_h = yes; then
11992 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11993 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11994 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11995 echo $ECHO_N "(cached) $ECHO_C" >&6
11997 ac_check_lib_save_LIBS
=$LIBS
11998 LIBS
="-lXpm -lX11 $LIBS"
11999 cat >conftest.
$ac_ext <<_ACEOF
12002 cat confdefs.h
>>conftest.
$ac_ext
12003 cat >>conftest.
$ac_ext <<_ACEOF
12004 /* end confdefs.h. */
12006 /* Override any gcc2 internal prototype to avoid an error. */
12010 /* We use char because int might match the return type of a gcc2
12011 builtin and then its argument prototype would still apply. */
12012 char XpmReadFileToPixmap ();
12016 XpmReadFileToPixmap ();
12021 rm -f conftest.
$ac_objext conftest
$ac_exeext
12022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12023 (eval $ac_link) 2>conftest.er1
12025 grep -v '^ *+' conftest.er1
>conftest.err
12027 cat conftest.err
>&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } &&
12030 { ac_try
='test -z "$ac_c_werror_flag"
12031 || test ! -s conftest.err'
12032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12033 (eval $ac_try) 2>&5
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); }; } &&
12037 { ac_try
='test -s conftest$ac_exeext'
12038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12039 (eval $ac_try) 2>&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); }; }; then
12043 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12045 echo "$as_me: failed program was:" >&5
12046 sed 's/^/| /' conftest.
$ac_ext >&5
12048 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12050 rm -f conftest.err conftest.
$ac_objext \
12051 conftest
$ac_exeext conftest.
$ac_ext
12052 LIBS
=$ac_check_lib_save_LIBS
12054 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12055 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
12056 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12063 if test "${HAVE_XPM}" = "yes"; then
12064 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12065 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
12066 cat >conftest.
$ac_ext <<_ACEOF
12069 cat confdefs.h
>>conftest.
$ac_ext
12070 cat >>conftest.
$ac_ext <<_ACEOF
12071 /* end confdefs.h. */
12072 #include "X11/xpm.h"
12073 #ifndef XpmReturnAllocPixels
12074 no_return_alloc_pixels
12078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12079 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
12087 if test "${HAVE_XPM}" = "yes"; then
12088 echo "$as_me:$LINENO: result: yes" >&5
12089 echo "${ECHO_T}yes" >&6
12091 echo "$as_me:$LINENO: result: no" >&5
12092 echo "${ECHO_T}no" >&6
12097 if test "${HAVE_XPM}" = "yes"; then
12099 cat >>confdefs.h
<<\_ACEOF
12106 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12108 if test "${HAVE_X11}" = "yes"; then
12109 if test "${with_jpeg}" != "no"; then
12110 if test "${ac_cv_header_jerror_h+set}" = set; then
12111 echo "$as_me:$LINENO: checking for jerror.h" >&5
12112 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12113 if test "${ac_cv_header_jerror_h+set}" = set; then
12114 echo $ECHO_N "(cached) $ECHO_C" >&6
12116 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12117 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12119 # Is the header compilable?
12120 echo "$as_me:$LINENO: checking jerror.h usability" >&5
12121 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
12122 cat >conftest.
$ac_ext <<_ACEOF
12125 cat confdefs.h
>>conftest.
$ac_ext
12126 cat >>conftest.
$ac_ext <<_ACEOF
12127 /* end confdefs.h. */
12128 $ac_includes_default
12129 #include <jerror.h>
12131 rm -f conftest.
$ac_objext
12132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12133 (eval $ac_compile) 2>conftest.er1
12135 grep -v '^ *+' conftest.er1
>conftest.err
12137 cat conftest.err
>&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); } &&
12140 { ac_try
='test -z "$ac_c_werror_flag"
12141 || test ! -s conftest.err'
12142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143 (eval $ac_try) 2>&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; } &&
12147 { ac_try
='test -s conftest.$ac_objext'
12148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12149 (eval $ac_try) 2>&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); }; }; then
12153 ac_header_compiler
=yes
12155 echo "$as_me: failed program was:" >&5
12156 sed 's/^/| /' conftest.
$ac_ext >&5
12158 ac_header_compiler
=no
12160 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12161 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12162 echo "${ECHO_T}$ac_header_compiler" >&6
12164 # Is the header present?
12165 echo "$as_me:$LINENO: checking jerror.h presence" >&5
12166 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
12167 cat >conftest.
$ac_ext <<_ACEOF
12170 cat confdefs.h
>>conftest.
$ac_ext
12171 cat >>conftest.
$ac_ext <<_ACEOF
12172 /* end confdefs.h. */
12173 #include <jerror.h>
12175 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12176 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12178 grep -v '^ *+' conftest.er1
>conftest.err
12180 cat conftest.err
>&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); } >/dev
/null
; then
12183 if test -s conftest.err
; then
12184 ac_cpp_err
=$ac_c_preproc_warn_flag
12185 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12192 if test -z "$ac_cpp_err"; then
12193 ac_header_preproc
=yes
12195 echo "$as_me: failed program was:" >&5
12196 sed 's/^/| /' conftest.
$ac_ext >&5
12198 ac_header_preproc
=no
12200 rm -f conftest.err conftest.
$ac_ext
12201 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12202 echo "${ECHO_T}$ac_header_preproc" >&6
12204 # So? What about this header?
12205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12207 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12208 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12209 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12210 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12211 ac_header_preproc
=yes
12214 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12215 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12216 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12217 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12218 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12219 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12220 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12221 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12222 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12223 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12224 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12225 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12228 ## ------------------------------------------ ##
12229 ## Report this to the AC_PACKAGE_NAME lists. ##
12230 ## ------------------------------------------ ##
12233 sed "s/^/$as_me: WARNING: /" >&2
12236 echo "$as_me:$LINENO: checking for jerror.h" >&5
12237 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12238 if test "${ac_cv_header_jerror_h+set}" = set; then
12239 echo $ECHO_N "(cached) $ECHO_C" >&6
12241 ac_cv_header_jerror_h
=$ac_header_preproc
12243 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12244 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12247 if test $ac_cv_header_jerror_h = yes; then
12248 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12249 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
12250 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12251 echo $ECHO_N "(cached) $ECHO_C" >&6
12253 ac_check_lib_save_LIBS
=$LIBS
12254 LIBS
="-ljpeg $LIBS"
12255 cat >conftest.
$ac_ext <<_ACEOF
12258 cat confdefs.h
>>conftest.
$ac_ext
12259 cat >>conftest.
$ac_ext <<_ACEOF
12260 /* end confdefs.h. */
12262 /* Override any gcc2 internal prototype to avoid an error. */
12266 /* We use char because int might match the return type of a gcc2
12267 builtin and then its argument prototype would still apply. */
12268 char jpeg_destroy_compress ();
12272 jpeg_destroy_compress ();
12277 rm -f conftest.
$ac_objext conftest
$ac_exeext
12278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12279 (eval $ac_link) 2>conftest.er1
12281 grep -v '^ *+' conftest.er1
>conftest.err
12283 cat conftest.err
>&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); } &&
12286 { ac_try
='test -z "$ac_c_werror_flag"
12287 || test ! -s conftest.err'
12288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12289 (eval $ac_try) 2>&5
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); }; } &&
12293 { ac_try
='test -s conftest$ac_exeext'
12294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295 (eval $ac_try) 2>&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; }; then
12299 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12301 echo "$as_me: failed program was:" >&5
12302 sed 's/^/| /' conftest.
$ac_ext >&5
12304 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12306 rm -f conftest.err conftest.
$ac_objext \
12307 conftest
$ac_exeext conftest.
$ac_ext
12308 LIBS
=$ac_check_lib_save_LIBS
12310 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12311 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
12312 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12322 if test "${HAVE_JPEG}" = "yes"; then
12323 cat >>confdefs.h
<<\_ACEOF
12324 #define HAVE_JPEG 1
12327 cat >conftest.
$ac_ext <<_ACEOF
12330 cat confdefs.h
>>conftest.
$ac_ext
12331 cat >>conftest.
$ac_ext <<_ACEOF
12332 /* end confdefs.h. */
12333 #include <jpeglib.h>
12334 version=JPEG_LIB_VERSION
12337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12338 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
12339 cat >>confdefs.h
<<\_ACEOF
12340 #define HAVE_JPEG 1
12344 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12345 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12353 ### Use -lpng if available, unless `--with-png=no'.
12355 if test "${HAVE_X11}" = "yes"; then
12356 if test "${with_png}" != "no"; then
12357 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12358 # in /usr/include/libpng.
12361 for ac_header
in png.h libpng
/png.h
12363 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12365 echo "$as_me:$LINENO: checking for $ac_header" >&5
12366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12368 echo $ECHO_N "(cached) $ECHO_C" >&6
12370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12373 # Is the header compilable?
12374 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12376 cat >conftest.
$ac_ext <<_ACEOF
12379 cat confdefs.h
>>conftest.
$ac_ext
12380 cat >>conftest.
$ac_ext <<_ACEOF
12381 /* end confdefs.h. */
12382 $ac_includes_default
12383 #include <$ac_header>
12385 rm -f conftest.
$ac_objext
12386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12387 (eval $ac_compile) 2>conftest.er1
12389 grep -v '^ *+' conftest.er1
>conftest.err
12391 cat conftest.err
>&5
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); } &&
12394 { ac_try
='test -z "$ac_c_werror_flag"
12395 || test ! -s conftest.err'
12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397 (eval $ac_try) 2>&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; } &&
12401 { ac_try
='test -s conftest.$ac_objext'
12402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12403 (eval $ac_try) 2>&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); }; }; then
12407 ac_header_compiler
=yes
12409 echo "$as_me: failed program was:" >&5
12410 sed 's/^/| /' conftest.
$ac_ext >&5
12412 ac_header_compiler
=no
12414 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12415 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12416 echo "${ECHO_T}$ac_header_compiler" >&6
12418 # Is the header present?
12419 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12420 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12421 cat >conftest.
$ac_ext <<_ACEOF
12424 cat confdefs.h
>>conftest.
$ac_ext
12425 cat >>conftest.
$ac_ext <<_ACEOF
12426 /* end confdefs.h. */
12427 #include <$ac_header>
12429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12430 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12432 grep -v '^ *+' conftest.er1
>conftest.err
12434 cat conftest.err
>&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); } >/dev
/null
; then
12437 if test -s conftest.err
; then
12438 ac_cpp_err
=$ac_c_preproc_warn_flag
12439 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12446 if test -z "$ac_cpp_err"; then
12447 ac_header_preproc
=yes
12449 echo "$as_me: failed program was:" >&5
12450 sed 's/^/| /' conftest.
$ac_ext >&5
12452 ac_header_preproc
=no
12454 rm -f conftest.err conftest.
$ac_ext
12455 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12456 echo "${ECHO_T}$ac_header_preproc" >&6
12458 # So? What about this header?
12459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12464 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12465 ac_header_preproc
=yes
12468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12471 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12472 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12473 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12474 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12475 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12478 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12479 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12482 ## ------------------------------------------ ##
12483 ## Report this to the AC_PACKAGE_NAME lists. ##
12484 ## ------------------------------------------ ##
12487 sed "s/^/$as_me: WARNING: /" >&2
12490 echo "$as_me:$LINENO: checking for $ac_header" >&5
12491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12493 echo $ECHO_N "(cached) $ECHO_C" >&6
12495 eval "$as_ac_Header=\$ac_header_preproc"
12497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12502 cat >>confdefs.h
<<_ACEOF
12503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12510 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12511 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12512 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12513 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12516 ac_check_lib_save_LIBS
=$LIBS
12517 LIBS
="-lpng -lz -lm $LIBS"
12518 cat >conftest.
$ac_ext <<_ACEOF
12521 cat confdefs.h
>>conftest.
$ac_ext
12522 cat >>conftest.
$ac_ext <<_ACEOF
12523 /* end confdefs.h. */
12525 /* Override any gcc2 internal prototype to avoid an error. */
12529 /* We use char because int might match the return type of a gcc2
12530 builtin and then its argument prototype would still apply. */
12531 char png_get_channels ();
12535 png_get_channels ();
12540 rm -f conftest.
$ac_objext conftest
$ac_exeext
12541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12542 (eval $ac_link) 2>conftest.er1
12544 grep -v '^ *+' conftest.er1
>conftest.err
12546 cat conftest.err
>&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); } &&
12549 { ac_try
='test -z "$ac_c_werror_flag"
12550 || test ! -s conftest.err'
12551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552 (eval $ac_try) 2>&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; } &&
12556 { ac_try
='test -s conftest$ac_exeext'
12557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12558 (eval $ac_try) 2>&5
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); }; }; then
12562 ac_cv_lib_png_png_get_channels
=yes
12564 echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.
$ac_ext >&5
12567 ac_cv_lib_png_png_get_channels
=no
12569 rm -f conftest.err conftest.
$ac_objext \
12570 conftest
$ac_exeext conftest.
$ac_ext
12571 LIBS
=$ac_check_lib_save_LIBS
12573 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12574 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12575 if test $ac_cv_lib_png_png_get_channels = yes; then
12582 if test "${HAVE_PNG}" = "yes"; then
12584 cat >>confdefs.h
<<\_ACEOF
12591 ### Use -ltiff if available, unless `--with-tiff=no'.
12593 if test "${HAVE_X11}" = "yes"; then
12594 if test "${with_tiff}" != "no"; then
12595 if test "${ac_cv_header_tiffio_h+set}" = set; then
12596 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12597 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12598 if test "${ac_cv_header_tiffio_h+set}" = set; then
12599 echo $ECHO_N "(cached) $ECHO_C" >&6
12601 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12602 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12604 # Is the header compilable?
12605 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12606 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12607 cat >conftest.
$ac_ext <<_ACEOF
12610 cat confdefs.h
>>conftest.
$ac_ext
12611 cat >>conftest.
$ac_ext <<_ACEOF
12612 /* end confdefs.h. */
12613 $ac_includes_default
12614 #include <tiffio.h>
12616 rm -f conftest.
$ac_objext
12617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12618 (eval $ac_compile) 2>conftest.er1
12620 grep -v '^ *+' conftest.er1
>conftest.err
12622 cat conftest.err
>&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } &&
12625 { ac_try
='test -z "$ac_c_werror_flag"
12626 || test ! -s conftest.err'
12627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12628 (eval $ac_try) 2>&5
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); }; } &&
12632 { ac_try
='test -s conftest.$ac_objext'
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634 (eval $ac_try) 2>&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; }; then
12638 ac_header_compiler
=yes
12640 echo "$as_me: failed program was:" >&5
12641 sed 's/^/| /' conftest.
$ac_ext >&5
12643 ac_header_compiler
=no
12645 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12646 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12647 echo "${ECHO_T}$ac_header_compiler" >&6
12649 # Is the header present?
12650 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12651 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12652 cat >conftest.
$ac_ext <<_ACEOF
12655 cat confdefs.h
>>conftest.
$ac_ext
12656 cat >>conftest.
$ac_ext <<_ACEOF
12657 /* end confdefs.h. */
12658 #include <tiffio.h>
12660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12661 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12663 grep -v '^ *+' conftest.er1
>conftest.err
12665 cat conftest.err
>&5
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); } >/dev
/null
; then
12668 if test -s conftest.err
; then
12669 ac_cpp_err
=$ac_c_preproc_warn_flag
12670 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12677 if test -z "$ac_cpp_err"; then
12678 ac_header_preproc
=yes
12680 echo "$as_me: failed program was:" >&5
12681 sed 's/^/| /' conftest.
$ac_ext >&5
12683 ac_header_preproc
=no
12685 rm -f conftest.err conftest.
$ac_ext
12686 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12687 echo "${ECHO_T}$ac_header_preproc" >&6
12689 # So? What about this header?
12690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12692 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12693 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12694 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12695 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12696 ac_header_preproc
=yes
12699 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12700 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12701 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12702 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12703 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12704 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12705 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12706 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12707 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12708 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12709 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12710 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12713 ## ------------------------------------------ ##
12714 ## Report this to the AC_PACKAGE_NAME lists. ##
12715 ## ------------------------------------------ ##
12718 sed "s/^/$as_me: WARNING: /" >&2
12721 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12722 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12723 if test "${ac_cv_header_tiffio_h+set}" = set; then
12724 echo $ECHO_N "(cached) $ECHO_C" >&6
12726 ac_cv_header_tiffio_h
=$ac_header_preproc
12728 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12729 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12732 if test $ac_cv_header_tiffio_h = yes; then
12734 # At least one tiff package requires the jpeg library.
12735 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12736 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12737 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12738 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12739 echo $ECHO_N "(cached) $ECHO_C" >&6
12741 ac_check_lib_save_LIBS
=$LIBS
12742 LIBS
="-ltiff $tifflibs $LIBS"
12743 cat >conftest.
$ac_ext <<_ACEOF
12746 cat confdefs.h
>>conftest.
$ac_ext
12747 cat >>conftest.
$ac_ext <<_ACEOF
12748 /* end confdefs.h. */
12750 /* Override any gcc2 internal prototype to avoid an error. */
12754 /* We use char because int might match the return type of a gcc2
12755 builtin and then its argument prototype would still apply. */
12756 char TIFFGetVersion ();
12765 rm -f conftest.
$ac_objext conftest
$ac_exeext
12766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12767 (eval $ac_link) 2>conftest.er1
12769 grep -v '^ *+' conftest.er1
>conftest.err
12771 cat conftest.err
>&5
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); } &&
12774 { ac_try
='test -z "$ac_c_werror_flag"
12775 || test ! -s conftest.err'
12776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12777 (eval $ac_try) 2>&5
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); }; } &&
12781 { ac_try
='test -s conftest$ac_exeext'
12782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783 (eval $ac_try) 2>&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); }; }; then
12787 ac_cv_lib_tiff_TIFFGetVersion
=yes
12789 echo "$as_me: failed program was:" >&5
12790 sed 's/^/| /' conftest.
$ac_ext >&5
12792 ac_cv_lib_tiff_TIFFGetVersion
=no
12794 rm -f conftest.err conftest.
$ac_objext \
12795 conftest
$ac_exeext conftest.
$ac_ext
12796 LIBS
=$ac_check_lib_save_LIBS
12798 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12799 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12800 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12809 if test "${HAVE_TIFF}" = "yes"; then
12811 cat >>confdefs.h
<<\_ACEOF
12812 #define HAVE_TIFF 1
12818 ### Use -lgif if available, unless `--with-gif=no'.
12820 if test "${HAVE_X11}" = "yes"; then
12821 if test "${with_gif}" != "no"; then
12822 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12823 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12824 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12825 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12826 echo $ECHO_N "(cached) $ECHO_C" >&6
12828 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12829 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12831 # Is the header compilable?
12832 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12833 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12834 cat >conftest.
$ac_ext <<_ACEOF
12837 cat confdefs.h
>>conftest.
$ac_ext
12838 cat >>conftest.
$ac_ext <<_ACEOF
12839 /* end confdefs.h. */
12840 $ac_includes_default
12841 #include <gif_lib.h>
12843 rm -f conftest.
$ac_objext
12844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12845 (eval $ac_compile) 2>conftest.er1
12847 grep -v '^ *+' conftest.er1
>conftest.err
12849 cat conftest.err
>&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } &&
12852 { ac_try
='test -z "$ac_c_werror_flag"
12853 || test ! -s conftest.err'
12854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12855 (eval $ac_try) 2>&5
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); }; } &&
12859 { ac_try
='test -s conftest.$ac_objext'
12860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12861 (eval $ac_try) 2>&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); }; }; then
12865 ac_header_compiler
=yes
12867 echo "$as_me: failed program was:" >&5
12868 sed 's/^/| /' conftest.
$ac_ext >&5
12870 ac_header_compiler
=no
12872 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12873 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12874 echo "${ECHO_T}$ac_header_compiler" >&6
12876 # Is the header present?
12877 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12878 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12879 cat >conftest.
$ac_ext <<_ACEOF
12882 cat confdefs.h
>>conftest.
$ac_ext
12883 cat >>conftest.
$ac_ext <<_ACEOF
12884 /* end confdefs.h. */
12885 #include <gif_lib.h>
12887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12888 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12890 grep -v '^ *+' conftest.er1
>conftest.err
12892 cat conftest.err
>&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); } >/dev
/null
; then
12895 if test -s conftest.err
; then
12896 ac_cpp_err
=$ac_c_preproc_warn_flag
12897 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12904 if test -z "$ac_cpp_err"; then
12905 ac_header_preproc
=yes
12907 echo "$as_me: failed program was:" >&5
12908 sed 's/^/| /' conftest.
$ac_ext >&5
12910 ac_header_preproc
=no
12912 rm -f conftest.err conftest.
$ac_ext
12913 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12914 echo "${ECHO_T}$ac_header_preproc" >&6
12916 # So? What about this header?
12917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12919 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12920 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12921 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12922 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12923 ac_header_preproc
=yes
12926 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12927 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12928 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12929 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12930 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12931 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12932 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12933 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12934 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12935 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12936 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12937 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12940 ## ------------------------------------------ ##
12941 ## Report this to the AC_PACKAGE_NAME lists. ##
12942 ## ------------------------------------------ ##
12945 sed "s/^/$as_me: WARNING: /" >&2
12948 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12949 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12950 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
12953 ac_cv_header_gif_lib_h
=$ac_header_preproc
12955 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12956 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12959 if test $ac_cv_header_gif_lib_h = yes; then
12960 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12961 # Earlier versions can crash Emacs.
12962 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12963 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12964 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12965 echo $ECHO_N "(cached) $ECHO_C" >&6
12967 ac_check_lib_save_LIBS
=$LIBS
12968 LIBS
="-lungif $LIBS"
12969 cat >conftest.
$ac_ext <<_ACEOF
12972 cat confdefs.h
>>conftest.
$ac_ext
12973 cat >>conftest.
$ac_ext <<_ACEOF
12974 /* end confdefs.h. */
12976 /* Override any gcc2 internal prototype to avoid an error. */
12980 /* We use char because int might match the return type of a gcc2
12981 builtin and then its argument prototype would still apply. */
12982 char EGifPutExtensionLast ();
12986 EGifPutExtensionLast ();
12991 rm -f conftest.
$ac_objext conftest
$ac_exeext
12992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12993 (eval $ac_link) 2>conftest.er1
12995 grep -v '^ *+' conftest.er1
>conftest.err
12997 cat conftest.err
>&5
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); } &&
13000 { ac_try
='test -z "$ac_c_werror_flag"
13001 || test ! -s conftest.err'
13002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13003 (eval $ac_try) 2>&5
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); }; } &&
13007 { ac_try
='test -s conftest$ac_exeext'
13008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13009 (eval $ac_try) 2>&5
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); }; }; then
13013 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
13015 echo "$as_me: failed program was:" >&5
13016 sed 's/^/| /' conftest.
$ac_ext >&5
13018 ac_cv_lib_ungif_EGifPutExtensionLast
=no
13020 rm -f conftest.err conftest.
$ac_objext \
13021 conftest
$ac_exeext conftest.
$ac_ext
13022 LIBS
=$ac_check_lib_save_LIBS
13024 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13025 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
13026 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13035 if test "${HAVE_GIF}" = "yes"; then
13037 cat >>confdefs.h
<<\_ACEOF
13044 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13045 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13046 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13047 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13048 echo $ECHO_N "(cached) $ECHO_C" >&6
13050 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13051 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13053 # Is the header compilable?
13054 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13055 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
13056 cat >conftest.
$ac_ext <<_ACEOF
13059 cat confdefs.h
>>conftest.
$ac_ext
13060 cat >>conftest.
$ac_ext <<_ACEOF
13061 /* end confdefs.h. */
13062 $ac_includes_default
13063 #include <malloc/malloc.h>
13065 rm -f conftest.
$ac_objext
13066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13067 (eval $ac_compile) 2>conftest.er1
13069 grep -v '^ *+' conftest.er1
>conftest.err
13071 cat conftest.err
>&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); } &&
13074 { ac_try
='test -z "$ac_c_werror_flag"
13075 || test ! -s conftest.err'
13076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13077 (eval $ac_try) 2>&5
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); }; } &&
13081 { ac_try
='test -s conftest.$ac_objext'
13082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13083 (eval $ac_try) 2>&5
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); }; }; then
13087 ac_header_compiler
=yes
13089 echo "$as_me: failed program was:" >&5
13090 sed 's/^/| /' conftest.
$ac_ext >&5
13092 ac_header_compiler
=no
13094 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13095 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13096 echo "${ECHO_T}$ac_header_compiler" >&6
13098 # Is the header present?
13099 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13100 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
13101 cat >conftest.
$ac_ext <<_ACEOF
13104 cat confdefs.h
>>conftest.
$ac_ext
13105 cat >>conftest.
$ac_ext <<_ACEOF
13106 /* end confdefs.h. */
13107 #include <malloc/malloc.h>
13109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13110 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13112 grep -v '^ *+' conftest.er1
>conftest.err
13114 cat conftest.err
>&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); } >/dev
/null
; then
13117 if test -s conftest.err
; then
13118 ac_cpp_err
=$ac_c_preproc_warn_flag
13119 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13126 if test -z "$ac_cpp_err"; then
13127 ac_header_preproc
=yes
13129 echo "$as_me: failed program was:" >&5
13130 sed 's/^/| /' conftest.
$ac_ext >&5
13132 ac_header_preproc
=no
13134 rm -f conftest.err conftest.
$ac_ext
13135 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13136 echo "${ECHO_T}$ac_header_preproc" >&6
13138 # So? What about this header?
13139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13141 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13142 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13143 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13144 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13145 ac_header_preproc
=yes
13148 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13149 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13150 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13151 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13152 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13153 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13154 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13155 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13156 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13157 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13158 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13159 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13162 ## ------------------------------------------ ##
13163 ## Report this to the AC_PACKAGE_NAME lists. ##
13164 ## ------------------------------------------ ##
13167 sed "s/^/$as_me: WARNING: /" >&2
13170 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13171 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13172 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13173 echo $ECHO_N "(cached) $ECHO_C" >&6
13175 ac_cv_header_malloc_malloc_h
=$ac_header_preproc
13177 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13178 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13181 if test $ac_cv_header_malloc_malloc_h = yes; then
13183 cat >>confdefs.h
<<\_ACEOF
13184 #define HAVE_MALLOC_MALLOC_H 1
13191 ### Use Mac OS X Carbon API to implement GUI.
13192 if test "${HAVE_CARBON}" = "yes"; then
13194 cat >>confdefs.h
<<\_ACEOF
13195 #define HAVE_CARBON 1
13198 ## Specify the install directory
13200 if test "${carbon_appdir_x}" != ""; then
13201 case ${carbon_appdir_x} in
13202 y | ye |
yes) carbon_appdir
=/Applications
;;
13203 * ) carbon_appdir
=${carbon_appdir_x} ;;
13206 # We also have mouse menus.
13209 tmp_CFLAGS
="$CFLAGS"
13210 CFLAGS
="$CFLAGS -framework Carbon"
13211 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
13212 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
13213 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
13214 echo $ECHO_N "(cached) $ECHO_C" >&6
13216 cat >conftest.
$ac_ext <<_ACEOF
13219 cat confdefs.h
>>conftest.
$ac_ext
13220 cat >>conftest.
$ac_ext <<_ACEOF
13221 /* end confdefs.h. */
13222 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
13223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13224 #define CancelMenuTracking innocuous_CancelMenuTracking
13226 /* System header to define __stub macros and hopefully few prototypes,
13227 which can conflict with char CancelMenuTracking (); below.
13228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13229 <limits.h> exists even on freestanding compilers. */
13232 # include <limits.h>
13234 # include <assert.h>
13237 #undef CancelMenuTracking
13239 /* Override any gcc2 internal prototype to avoid an error. */
13244 /* We use char because int might match the return type of a gcc2
13245 builtin and then its argument prototype would still apply. */
13246 char CancelMenuTracking ();
13247 /* The GNU C library defines this for functions which it implements
13248 to always fail with ENOSYS. Some functions are actually named
13249 something starting with __ and the normal name is an alias. */
13250 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
13253 char (*f) () = CancelMenuTracking;
13262 return f != CancelMenuTracking;
13267 rm -f conftest.
$ac_objext conftest
$ac_exeext
13268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13269 (eval $ac_link) 2>conftest.er1
13271 grep -v '^ *+' conftest.er1
>conftest.err
13273 cat conftest.err
>&5
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); } &&
13276 { ac_try
='test -z "$ac_c_werror_flag"
13277 || test ! -s conftest.err'
13278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13279 (eval $ac_try) 2>&5
13281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); }; } &&
13283 { ac_try
='test -s conftest$ac_exeext'
13284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13285 (eval $ac_try) 2>&5
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; }; then
13289 ac_cv_func_CancelMenuTracking
=yes
13291 echo "$as_me: failed program was:" >&5
13292 sed 's/^/| /' conftest.
$ac_ext >&5
13294 ac_cv_func_CancelMenuTracking
=no
13296 rm -f conftest.err conftest.
$ac_objext \
13297 conftest
$ac_exeext conftest.
$ac_ext
13299 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
13300 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
13301 if test $ac_cv_func_CancelMenuTracking = yes; then
13307 if test "$have_cmt" = yes; then
13309 cat >>confdefs.h
<<\_ACEOF
13310 #define HAVE_CANCELMENUTRACKING 1
13314 CFLAGS
="$tmp_CFLAGS"
13317 ### Use session management (-lSM -lICE) if available
13319 if test "${HAVE_X11}" = "yes"; then
13320 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13321 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13322 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13323 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13324 echo $ECHO_N "(cached) $ECHO_C" >&6
13326 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13327 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13329 # Is the header compilable?
13330 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13331 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13332 cat >conftest.
$ac_ext <<_ACEOF
13335 cat confdefs.h
>>conftest.
$ac_ext
13336 cat >>conftest.
$ac_ext <<_ACEOF
13337 /* end confdefs.h. */
13338 $ac_includes_default
13339 #include <X11/SM/SMlib.h>
13341 rm -f conftest.
$ac_objext
13342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13343 (eval $ac_compile) 2>conftest.er1
13345 grep -v '^ *+' conftest.er1
>conftest.err
13347 cat conftest.err
>&5
13348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); } &&
13350 { ac_try
='test -z "$ac_c_werror_flag"
13351 || test ! -s conftest.err'
13352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13353 (eval $ac_try) 2>&5
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); }; } &&
13357 { ac_try
='test -s conftest.$ac_objext'
13358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13359 (eval $ac_try) 2>&5
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); }; }; then
13363 ac_header_compiler
=yes
13365 echo "$as_me: failed program was:" >&5
13366 sed 's/^/| /' conftest.
$ac_ext >&5
13368 ac_header_compiler
=no
13370 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13371 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13372 echo "${ECHO_T}$ac_header_compiler" >&6
13374 # Is the header present?
13375 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13376 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13377 cat >conftest.
$ac_ext <<_ACEOF
13380 cat confdefs.h
>>conftest.
$ac_ext
13381 cat >>conftest.
$ac_ext <<_ACEOF
13382 /* end confdefs.h. */
13383 #include <X11/SM/SMlib.h>
13385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13386 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13388 grep -v '^ *+' conftest.er1
>conftest.err
13390 cat conftest.err
>&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); } >/dev
/null
; then
13393 if test -s conftest.err
; then
13394 ac_cpp_err
=$ac_c_preproc_warn_flag
13395 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13402 if test -z "$ac_cpp_err"; then
13403 ac_header_preproc
=yes
13405 echo "$as_me: failed program was:" >&5
13406 sed 's/^/| /' conftest.
$ac_ext >&5
13408 ac_header_preproc
=no
13410 rm -f conftest.err conftest.
$ac_ext
13411 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13412 echo "${ECHO_T}$ac_header_preproc" >&6
13414 # So? What about this header?
13415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13417 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13418 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13419 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13420 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13421 ac_header_preproc
=yes
13424 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13425 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13426 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13427 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13428 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13429 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13430 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13431 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13432 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13433 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13434 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13435 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13438 ## ------------------------------------------ ##
13439 ## Report this to the AC_PACKAGE_NAME lists. ##
13440 ## ------------------------------------------ ##
13443 sed "s/^/$as_me: WARNING: /" >&2
13446 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13447 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13448 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13449 echo $ECHO_N "(cached) $ECHO_C" >&6
13451 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
13453 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13454 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13457 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13458 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13459 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
13460 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13461 echo $ECHO_N "(cached) $ECHO_C" >&6
13463 ac_check_lib_save_LIBS
=$LIBS
13464 LIBS
="-lSM -lICE $LIBS"
13465 cat >conftest.
$ac_ext <<_ACEOF
13468 cat confdefs.h
>>conftest.
$ac_ext
13469 cat >>conftest.
$ac_ext <<_ACEOF
13470 /* end confdefs.h. */
13472 /* Override any gcc2 internal prototype to avoid an error. */
13476 /* We use char because int might match the return type of a gcc2
13477 builtin and then its argument prototype would still apply. */
13478 char SmcOpenConnection ();
13482 SmcOpenConnection ();
13487 rm -f conftest.
$ac_objext conftest
$ac_exeext
13488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13489 (eval $ac_link) 2>conftest.er1
13491 grep -v '^ *+' conftest.er1
>conftest.err
13493 cat conftest.err
>&5
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); } &&
13496 { ac_try
='test -z "$ac_c_werror_flag"
13497 || test ! -s conftest.err'
13498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13499 (eval $ac_try) 2>&5
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); }; } &&
13503 { ac_try
='test -s conftest$ac_exeext'
13504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505 (eval $ac_try) 2>&5
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); }; }; then
13509 ac_cv_lib_SM_SmcOpenConnection
=yes
13511 echo "$as_me: failed program was:" >&5
13512 sed 's/^/| /' conftest.
$ac_ext >&5
13514 ac_cv_lib_SM_SmcOpenConnection
=no
13516 rm -f conftest.err conftest.
$ac_objext \
13517 conftest
$ac_exeext conftest.
$ac_ext
13518 LIBS
=$ac_check_lib_save_LIBS
13520 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13521 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13522 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13530 if test "${HAVE_X_SM}" = "yes"; then
13532 cat >>confdefs.h
<<\_ACEOF
13533 #define HAVE_X_SM 1
13538 *) LIBS
="-lSM -lICE $LIBS" ;;
13543 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13544 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13545 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13546 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13547 echo $ECHO_N "(cached) $ECHO_C" >&6
13549 cat >conftest.
$ac_ext <<_ACEOF
13552 cat confdefs.h
>>conftest.
$ac_ext
13553 cat >>conftest.
$ac_ext <<_ACEOF
13554 /* end confdefs.h. */
13564 rm -f conftest.
$ac_objext conftest
$ac_exeext
13565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13566 (eval $ac_link) 2>conftest.er1
13568 grep -v '^ *+' conftest.er1
>conftest.err
13570 cat conftest.err
>&5
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); } &&
13573 { ac_try
='test -z "$ac_c_werror_flag"
13574 || test ! -s conftest.err'
13575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13576 (eval $ac_try) 2>&5
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); }; } &&
13580 { ac_try
='test -s conftest$ac_exeext'
13581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13582 (eval $ac_try) 2>&5
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); }; }; then
13586 emacs_cv_netdb_declares_h_errno
=yes
13588 echo "$as_me: failed program was:" >&5
13589 sed 's/^/| /' conftest.
$ac_ext >&5
13591 emacs_cv_netdb_declares_h_errno
=no
13593 rm -f conftest.err conftest.
$ac_objext \
13594 conftest
$ac_exeext conftest.
$ac_ext
13596 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13597 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13598 if test $emacs_cv_netdb_declares_h_errno = yes; then
13600 cat >>confdefs.h
<<\_ACEOF
13601 #define HAVE_H_ERRNO 1
13606 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13607 # for constant arguments. Useless!
13608 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13609 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13610 if test "${ac_cv_working_alloca_h+set}" = set; then
13611 echo $ECHO_N "(cached) $ECHO_C" >&6
13613 cat >conftest.
$ac_ext <<_ACEOF
13616 cat confdefs.h
>>conftest.
$ac_ext
13617 cat >>conftest.
$ac_ext <<_ACEOF
13618 /* end confdefs.h. */
13619 #include <alloca.h>
13623 char *p = (char *) alloca (2 * sizeof (int));
13628 rm -f conftest.
$ac_objext conftest
$ac_exeext
13629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13630 (eval $ac_link) 2>conftest.er1
13632 grep -v '^ *+' conftest.er1
>conftest.err
13634 cat conftest.err
>&5
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); } &&
13637 { ac_try
='test -z "$ac_c_werror_flag"
13638 || test ! -s conftest.err'
13639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13640 (eval $ac_try) 2>&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); }; } &&
13644 { ac_try
='test -s conftest$ac_exeext'
13645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13646 (eval $ac_try) 2>&5
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); }; }; then
13650 ac_cv_working_alloca_h
=yes
13652 echo "$as_me: failed program was:" >&5
13653 sed 's/^/| /' conftest.
$ac_ext >&5
13655 ac_cv_working_alloca_h
=no
13657 rm -f conftest.err conftest.
$ac_objext \
13658 conftest
$ac_exeext conftest.
$ac_ext
13660 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13661 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13662 if test $ac_cv_working_alloca_h = yes; then
13664 cat >>confdefs.h
<<\_ACEOF
13665 #define HAVE_ALLOCA_H 1
13670 echo "$as_me:$LINENO: checking for alloca" >&5
13671 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13672 if test "${ac_cv_func_alloca_works+set}" = set; then
13673 echo $ECHO_N "(cached) $ECHO_C" >&6
13675 cat >conftest.
$ac_ext <<_ACEOF
13678 cat confdefs.h
>>conftest.
$ac_ext
13679 cat >>conftest.
$ac_ext <<_ACEOF
13680 /* end confdefs.h. */
13682 # define alloca __builtin_alloca
13685 # include <malloc.h>
13686 # define alloca _alloca
13689 # include <alloca.h>
13694 # ifndef alloca /* predefined by HP cc +Olibcalls */
13705 char *p = (char *) alloca (1);
13710 rm -f conftest.
$ac_objext conftest
$ac_exeext
13711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13712 (eval $ac_link) 2>conftest.er1
13714 grep -v '^ *+' conftest.er1
>conftest.err
13716 cat conftest.err
>&5
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); } &&
13719 { ac_try
='test -z "$ac_c_werror_flag"
13720 || test ! -s conftest.err'
13721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722 (eval $ac_try) 2>&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; } &&
13726 { ac_try
='test -s conftest$ac_exeext'
13727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728 (eval $ac_try) 2>&5
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); }; }; then
13732 ac_cv_func_alloca_works
=yes
13734 echo "$as_me: failed program was:" >&5
13735 sed 's/^/| /' conftest.
$ac_ext >&5
13737 ac_cv_func_alloca_works
=no
13739 rm -f conftest.err conftest.
$ac_objext \
13740 conftest
$ac_exeext conftest.
$ac_ext
13742 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13743 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13745 if test $ac_cv_func_alloca_works = yes; then
13747 cat >>confdefs.h
<<\_ACEOF
13748 #define HAVE_ALLOCA 1
13752 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13753 # that cause trouble. Some versions do not even contain alloca or
13754 # contain a buggy version. If you still want to use their alloca,
13755 # use ar to extract alloca.o from them instead of compiling alloca.c.
13757 ALLOCA
=alloca.
$ac_objext
13759 cat >>confdefs.h
<<\_ACEOF
13764 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13765 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13766 if test "${ac_cv_os_cray+set}" = set; then
13767 echo $ECHO_N "(cached) $ECHO_C" >&6
13769 cat >conftest.
$ac_ext <<_ACEOF
13772 cat confdefs.h
>>conftest.
$ac_ext
13773 cat >>conftest.
$ac_ext <<_ACEOF
13774 /* end confdefs.h. */
13775 #if defined(CRAY) && ! defined(CRAY2)
13782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13783 $EGREP "webecray" >/dev
/null
2>&1; then
13791 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13792 echo "${ECHO_T}$ac_cv_os_cray" >&6
13793 if test $ac_cv_os_cray = yes; then
13794 for ac_func
in _getb67 GETB67 getb67
; do
13795 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13796 echo "$as_me:$LINENO: checking for $ac_func" >&5
13797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13798 if eval "test \"\${$as_ac_var+set}\" = set"; then
13799 echo $ECHO_N "(cached) $ECHO_C" >&6
13801 cat >conftest.
$ac_ext <<_ACEOF
13804 cat confdefs.h
>>conftest.
$ac_ext
13805 cat >>conftest.
$ac_ext <<_ACEOF
13806 /* end confdefs.h. */
13807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13809 #define $ac_func innocuous_$ac_func
13811 /* System header to define __stub macros and hopefully few prototypes,
13812 which can conflict with char $ac_func (); below.
13813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13814 <limits.h> exists even on freestanding compilers. */
13817 # include <limits.h>
13819 # include <assert.h>
13824 /* Override any gcc2 internal prototype to avoid an error. */
13829 /* We use char because int might match the return type of a gcc2
13830 builtin and then its argument prototype would still apply. */
13832 /* The GNU C library defines this for functions which it implements
13833 to always fail with ENOSYS. Some functions are actually named
13834 something starting with __ and the normal name is an alias. */
13835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13838 char (*f) () = $ac_func;
13847 return f != $ac_func;
13852 rm -f conftest.
$ac_objext conftest
$ac_exeext
13853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13854 (eval $ac_link) 2>conftest.er1
13856 grep -v '^ *+' conftest.er1
>conftest.err
13858 cat conftest.err
>&5
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); } &&
13861 { ac_try
='test -z "$ac_c_werror_flag"
13862 || test ! -s conftest.err'
13863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13864 (eval $ac_try) 2>&5
13866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867 (exit $ac_status); }; } &&
13868 { ac_try
='test -s conftest$ac_exeext'
13869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870 (eval $ac_try) 2>&5
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); }; }; then
13874 eval "$as_ac_var=yes"
13876 echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.
$ac_ext >&5
13879 eval "$as_ac_var=no"
13881 rm -f conftest.err conftest.
$ac_objext \
13882 conftest
$ac_exeext conftest.
$ac_ext
13884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13885 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13886 if test `eval echo '${'$as_ac_var'}'` = yes; then
13888 cat >>confdefs.h
<<_ACEOF
13889 #define CRAY_STACKSEG_END $ac_func
13898 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13899 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13900 if test "${ac_cv_c_stack_direction+set}" = set; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13903 if test "$cross_compiling" = yes; then
13904 ac_cv_c_stack_direction
=0
13906 cat >conftest.
$ac_ext <<_ACEOF
13909 cat confdefs.h
>>conftest.
$ac_ext
13910 cat >>conftest.
$ac_ext <<_ACEOF
13911 /* end confdefs.h. */
13913 find_stack_direction ()
13915 static char *addr = 0;
13920 return find_stack_direction ();
13923 return (&dummy > addr) ? 1 : -1;
13929 exit (find_stack_direction () < 0);
13932 rm -f conftest
$ac_exeext
13933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13934 (eval $ac_link) 2>&5
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13939 (eval $ac_try) 2>&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); }; }; then
13943 ac_cv_c_stack_direction
=1
13945 echo "$as_me: program exited with status $ac_status" >&5
13946 echo "$as_me: failed program was:" >&5
13947 sed 's/^/| /' conftest.
$ac_ext >&5
13949 ( exit $ac_status )
13950 ac_cv_c_stack_direction
=-1
13952 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13955 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13956 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13958 cat >>confdefs.h
<<_ACEOF
13959 #define STACK_DIRECTION $ac_cv_c_stack_direction
13966 # fmod, logb, and frexp are found in -lm on most systems.
13967 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13969 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13970 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13971 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13972 echo $ECHO_N "(cached) $ECHO_C" >&6
13974 ac_check_lib_save_LIBS
=$LIBS
13976 cat >conftest.
$ac_ext <<_ACEOF
13979 cat confdefs.h
>>conftest.
$ac_ext
13980 cat >>conftest.
$ac_ext <<_ACEOF
13981 /* end confdefs.h. */
13983 /* Override any gcc2 internal prototype to avoid an error. */
13987 /* We use char because int might match the return type of a gcc2
13988 builtin and then its argument prototype would still apply. */
13998 rm -f conftest.
$ac_objext conftest
$ac_exeext
13999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14000 (eval $ac_link) 2>conftest.er1
14002 grep -v '^ *+' conftest.er1
>conftest.err
14004 cat conftest.err
>&5
14005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006 (exit $ac_status); } &&
14007 { ac_try
='test -z "$ac_c_werror_flag"
14008 || test ! -s conftest.err'
14009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14010 (eval $ac_try) 2>&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); }; } &&
14014 { ac_try
='test -s conftest$ac_exeext'
14015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14016 (eval $ac_try) 2>&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); }; }; then
14020 ac_cv_lib_m_sqrt
=yes
14022 echo "$as_me: failed program was:" >&5
14023 sed 's/^/| /' conftest.
$ac_ext >&5
14025 ac_cv_lib_m_sqrt
=no
14027 rm -f conftest.err conftest.
$ac_objext \
14028 conftest
$ac_exeext conftest.
$ac_ext
14029 LIBS
=$ac_check_lib_save_LIBS
14031 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
14032 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
14033 if test $ac_cv_lib_m_sqrt = yes; then
14034 cat >>confdefs.h
<<_ACEOF
14035 #define HAVE_LIBM 1
14043 # Check for mail-locking functions in a "mail" library. Probably this should
14044 # have the same check as for liblockfile below.
14046 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
14047 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
14048 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14049 echo $ECHO_N "(cached) $ECHO_C" >&6
14051 ac_check_lib_save_LIBS
=$LIBS
14052 LIBS
="-lmail $LIBS"
14053 cat >conftest.
$ac_ext <<_ACEOF
14056 cat confdefs.h
>>conftest.
$ac_ext
14057 cat >>conftest.
$ac_ext <<_ACEOF
14058 /* end confdefs.h. */
14060 /* Override any gcc2 internal prototype to avoid an error. */
14064 /* We use char because int might match the return type of a gcc2
14065 builtin and then its argument prototype would still apply. */
14075 rm -f conftest.
$ac_objext conftest
$ac_exeext
14076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14077 (eval $ac_link) 2>conftest.er1
14079 grep -v '^ *+' conftest.er1
>conftest.err
14081 cat conftest.err
>&5
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); } &&
14084 { ac_try
='test -z "$ac_c_werror_flag"
14085 || test ! -s conftest.err'
14086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14087 (eval $ac_try) 2>&5
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); }; } &&
14091 { ac_try
='test -s conftest$ac_exeext'
14092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14093 (eval $ac_try) 2>&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); }; }; then
14097 ac_cv_lib_mail_maillock
=yes
14099 echo "$as_me: failed program was:" >&5
14100 sed 's/^/| /' conftest.
$ac_ext >&5
14102 ac_cv_lib_mail_maillock
=no
14104 rm -f conftest.err conftest.
$ac_objext \
14105 conftest
$ac_exeext conftest.
$ac_ext
14106 LIBS
=$ac_check_lib_save_LIBS
14108 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14109 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
14110 if test $ac_cv_lib_mail_maillock = yes; then
14111 cat >>confdefs.h
<<_ACEOF
14112 #define HAVE_LIBMAIL 1
14115 LIBS
="-lmail $LIBS"
14120 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14121 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
14122 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14123 echo $ECHO_N "(cached) $ECHO_C" >&6
14125 ac_check_lib_save_LIBS
=$LIBS
14126 LIBS
="-llockfile $LIBS"
14127 cat >conftest.
$ac_ext <<_ACEOF
14130 cat confdefs.h
>>conftest.
$ac_ext
14131 cat >>conftest.
$ac_ext <<_ACEOF
14132 /* end confdefs.h. */
14134 /* Override any gcc2 internal prototype to avoid an error. */
14138 /* We use char because int might match the return type of a gcc2
14139 builtin and then its argument prototype would still apply. */
14149 rm -f conftest.
$ac_objext conftest
$ac_exeext
14150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14151 (eval $ac_link) 2>conftest.er1
14153 grep -v '^ *+' conftest.er1
>conftest.err
14155 cat conftest.err
>&5
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); } &&
14158 { ac_try
='test -z "$ac_c_werror_flag"
14159 || test ! -s conftest.err'
14160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14161 (eval $ac_try) 2>&5
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); }; } &&
14165 { ac_try
='test -s conftest$ac_exeext'
14166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14167 (eval $ac_try) 2>&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); }; }; then
14171 ac_cv_lib_lockfile_maillock
=yes
14173 echo "$as_me: failed program was:" >&5
14174 sed 's/^/| /' conftest.
$ac_ext >&5
14176 ac_cv_lib_lockfile_maillock
=no
14178 rm -f conftest.err conftest.
$ac_objext \
14179 conftest
$ac_exeext conftest.
$ac_ext
14180 LIBS
=$ac_check_lib_save_LIBS
14182 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14183 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
14184 if test $ac_cv_lib_lockfile_maillock = yes; then
14185 cat >>confdefs.h
<<_ACEOF
14186 #define HAVE_LIBLOCKFILE 1
14189 LIBS
="-llockfile $LIBS"
14193 # If we have the shared liblockfile, assume we must use it for mail
14194 # locking (e.g. Debian). If we couldn't link against liblockfile
14195 # (no liblockfile.a installed), ensure that we don't need to.
14196 if test "$ac_cv_lib_lockfile_maillock" = no
; then
14197 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14198 set dummy liblockfile.so
; ac_word
=$2
14199 echo "$as_me:$LINENO: checking for $ac_word" >&5
14200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14201 if test "${ac_cv_prog_liblockfile+set}" = set; then
14202 echo $ECHO_N "(cached) $ECHO_C" >&6
14204 if test -n "$liblockfile"; then
14205 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
14207 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14208 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14209 for as_dir
in $as_dummy
14212 test -z "$as_dir" && as_dir
=.
14213 for ac_exec_ext
in '' $ac_executable_extensions; do
14214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14215 ac_cv_prog_liblockfile
="yes"
14216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14222 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
14225 liblockfile
=$ac_cv_prog_liblockfile
14226 if test -n "$liblockfile"; then
14227 echo "$as_me:$LINENO: result: $liblockfile" >&5
14228 echo "${ECHO_T}$liblockfile" >&6
14230 echo "$as_me:$LINENO: result: no" >&5
14231 echo "${ECHO_T}no" >&6
14234 if test $ac_cv_prog_liblockfile = yes; then
14235 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14236 This probably means that movemail could lose mail.
14237 There may be a \`development' package to install containing liblockfile." >&5
14238 echo "$as_me: error: Shared liblockfile found but can't link against it.
14239 This probably means that movemail could lose mail.
14240 There may be a \`development' package to install containing liblockfile." >&2;}
14241 { (exit 1); exit 1; }; }
14246 for ac_func
in touchlock
14248 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14249 echo "$as_me:$LINENO: checking for $ac_func" >&5
14250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14251 if eval "test \"\${$as_ac_var+set}\" = set"; then
14252 echo $ECHO_N "(cached) $ECHO_C" >&6
14254 cat >conftest.
$ac_ext <<_ACEOF
14257 cat confdefs.h
>>conftest.
$ac_ext
14258 cat >>conftest.
$ac_ext <<_ACEOF
14259 /* end confdefs.h. */
14260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14262 #define $ac_func innocuous_$ac_func
14264 /* System header to define __stub macros and hopefully few prototypes,
14265 which can conflict with char $ac_func (); below.
14266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14267 <limits.h> exists even on freestanding compilers. */
14270 # include <limits.h>
14272 # include <assert.h>
14277 /* Override any gcc2 internal prototype to avoid an error. */
14282 /* We use char because int might match the return type of a gcc2
14283 builtin and then its argument prototype would still apply. */
14285 /* The GNU C library defines this for functions which it implements
14286 to always fail with ENOSYS. Some functions are actually named
14287 something starting with __ and the normal name is an alias. */
14288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14291 char (*f) () = $ac_func;
14300 return f != $ac_func;
14305 rm -f conftest.
$ac_objext conftest
$ac_exeext
14306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14307 (eval $ac_link) 2>conftest.er1
14309 grep -v '^ *+' conftest.er1
>conftest.err
14311 cat conftest.err
>&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } &&
14314 { ac_try
='test -z "$ac_c_werror_flag"
14315 || test ! -s conftest.err'
14316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317 (eval $ac_try) 2>&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }; } &&
14321 { ac_try
='test -s conftest$ac_exeext'
14322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323 (eval $ac_try) 2>&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; }; then
14327 eval "$as_ac_var=yes"
14329 echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.
$ac_ext >&5
14332 eval "$as_ac_var=no"
14334 rm -f conftest.err conftest.
$ac_objext \
14335 conftest
$ac_exeext conftest.
$ac_ext
14337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14338 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14339 if test `eval echo '${'$as_ac_var'}'` = yes; then
14340 cat >>confdefs.h
<<_ACEOF
14341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14348 for ac_header
in maillock.h
14350 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14352 echo "$as_me:$LINENO: checking for $ac_header" >&5
14353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14355 echo $ECHO_N "(cached) $ECHO_C" >&6
14357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14360 # Is the header compilable?
14361 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14363 cat >conftest.
$ac_ext <<_ACEOF
14366 cat confdefs.h
>>conftest.
$ac_ext
14367 cat >>conftest.
$ac_ext <<_ACEOF
14368 /* end confdefs.h. */
14369 $ac_includes_default
14370 #include <$ac_header>
14372 rm -f conftest.
$ac_objext
14373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14374 (eval $ac_compile) 2>conftest.er1
14376 grep -v '^ *+' conftest.er1
>conftest.err
14378 cat conftest.err
>&5
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); } &&
14381 { ac_try
='test -z "$ac_c_werror_flag"
14382 || test ! -s conftest.err'
14383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14384 (eval $ac_try) 2>&5
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); }; } &&
14388 { ac_try
='test -s conftest.$ac_objext'
14389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14390 (eval $ac_try) 2>&5
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); }; }; then
14394 ac_header_compiler
=yes
14396 echo "$as_me: failed program was:" >&5
14397 sed 's/^/| /' conftest.
$ac_ext >&5
14399 ac_header_compiler
=no
14401 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14403 echo "${ECHO_T}$ac_header_compiler" >&6
14405 # Is the header present?
14406 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14408 cat >conftest.
$ac_ext <<_ACEOF
14411 cat confdefs.h
>>conftest.
$ac_ext
14412 cat >>conftest.
$ac_ext <<_ACEOF
14413 /* end confdefs.h. */
14414 #include <$ac_header>
14416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14417 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14419 grep -v '^ *+' conftest.er1
>conftest.err
14421 cat conftest.err
>&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); } >/dev
/null
; then
14424 if test -s conftest.err
; then
14425 ac_cpp_err
=$ac_c_preproc_warn_flag
14426 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14433 if test -z "$ac_cpp_err"; then
14434 ac_header_preproc
=yes
14436 echo "$as_me: failed program was:" >&5
14437 sed 's/^/| /' conftest.
$ac_ext >&5
14439 ac_header_preproc
=no
14441 rm -f conftest.err conftest.
$ac_ext
14442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14443 echo "${ECHO_T}$ac_header_preproc" >&6
14445 # So? What about this header?
14446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14452 ac_header_preproc
=yes
14455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14462 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14469 ## ------------------------------------------ ##
14470 ## Report this to the AC_PACKAGE_NAME lists. ##
14471 ## ------------------------------------------ ##
14474 sed "s/^/$as_me: WARNING: /" >&2
14477 echo "$as_me:$LINENO: checking for $ac_header" >&5
14478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14480 echo $ECHO_N "(cached) $ECHO_C" >&6
14482 eval "$as_ac_Header=\$ac_header_preproc"
14484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14489 cat >>confdefs.h
<<_ACEOF
14490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14566 for ac_func
in gethostname getdomainname dup2 \
14567 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
14568 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14569 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
14570 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14571 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14572 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14573 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
14574 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14576 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14577 echo "$as_me:$LINENO: checking for $ac_func" >&5
14578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14579 if eval "test \"\${$as_ac_var+set}\" = set"; then
14580 echo $ECHO_N "(cached) $ECHO_C" >&6
14582 cat >conftest.
$ac_ext <<_ACEOF
14585 cat confdefs.h
>>conftest.
$ac_ext
14586 cat >>conftest.
$ac_ext <<_ACEOF
14587 /* end confdefs.h. */
14588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14590 #define $ac_func innocuous_$ac_func
14592 /* System header to define __stub macros and hopefully few prototypes,
14593 which can conflict with char $ac_func (); below.
14594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14595 <limits.h> exists even on freestanding compilers. */
14598 # include <limits.h>
14600 # include <assert.h>
14605 /* Override any gcc2 internal prototype to avoid an error. */
14610 /* We use char because int might match the return type of a gcc2
14611 builtin and then its argument prototype would still apply. */
14613 /* The GNU C library defines this for functions which it implements
14614 to always fail with ENOSYS. Some functions are actually named
14615 something starting with __ and the normal name is an alias. */
14616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14619 char (*f) () = $ac_func;
14628 return f != $ac_func;
14633 rm -f conftest.
$ac_objext conftest
$ac_exeext
14634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14635 (eval $ac_link) 2>conftest.er1
14637 grep -v '^ *+' conftest.er1
>conftest.err
14639 cat conftest.err
>&5
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); } &&
14642 { ac_try
='test -z "$ac_c_werror_flag"
14643 || test ! -s conftest.err'
14644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14645 (eval $ac_try) 2>&5
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); }; } &&
14649 { ac_try
='test -s conftest$ac_exeext'
14650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14651 (eval $ac_try) 2>&5
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); }; }; then
14655 eval "$as_ac_var=yes"
14657 echo "$as_me: failed program was:" >&5
14658 sed 's/^/| /' conftest.
$ac_ext >&5
14660 eval "$as_ac_var=no"
14662 rm -f conftest.err conftest.
$ac_objext \
14663 conftest
$ac_exeext conftest.
$ac_ext
14665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14666 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14667 if test `eval echo '${'$as_ac_var'}'` = yes; then
14668 cat >>confdefs.h
<<_ACEOF
14669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14677 for ac_header
in sys
/un.h
14679 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14681 echo "$as_me:$LINENO: checking for $ac_header" >&5
14682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14684 echo $ECHO_N "(cached) $ECHO_C" >&6
14686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14689 # Is the header compilable?
14690 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14692 cat >conftest.
$ac_ext <<_ACEOF
14695 cat confdefs.h
>>conftest.
$ac_ext
14696 cat >>conftest.
$ac_ext <<_ACEOF
14697 /* end confdefs.h. */
14698 $ac_includes_default
14699 #include <$ac_header>
14701 rm -f conftest.
$ac_objext
14702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14703 (eval $ac_compile) 2>conftest.er1
14705 grep -v '^ *+' conftest.er1
>conftest.err
14707 cat conftest.err
>&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); } &&
14710 { ac_try
='test -z "$ac_c_werror_flag"
14711 || test ! -s conftest.err'
14712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14713 (eval $ac_try) 2>&5
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); }; } &&
14717 { ac_try
='test -s conftest.$ac_objext'
14718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14719 (eval $ac_try) 2>&5
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); }; }; then
14723 ac_header_compiler
=yes
14725 echo "$as_me: failed program was:" >&5
14726 sed 's/^/| /' conftest.
$ac_ext >&5
14728 ac_header_compiler
=no
14730 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14731 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14732 echo "${ECHO_T}$ac_header_compiler" >&6
14734 # Is the header present?
14735 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14736 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14737 cat >conftest.
$ac_ext <<_ACEOF
14740 cat confdefs.h
>>conftest.
$ac_ext
14741 cat >>conftest.
$ac_ext <<_ACEOF
14742 /* end confdefs.h. */
14743 #include <$ac_header>
14745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14746 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14748 grep -v '^ *+' conftest.er1
>conftest.err
14750 cat conftest.err
>&5
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); } >/dev
/null
; then
14753 if test -s conftest.err
; then
14754 ac_cpp_err
=$ac_c_preproc_warn_flag
14755 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14762 if test -z "$ac_cpp_err"; then
14763 ac_header_preproc
=yes
14765 echo "$as_me: failed program was:" >&5
14766 sed 's/^/| /' conftest.
$ac_ext >&5
14768 ac_header_preproc
=no
14770 rm -f conftest.err conftest.
$ac_ext
14771 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14772 echo "${ECHO_T}$ac_header_preproc" >&6
14774 # So? What about this header?
14775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14777 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14778 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14780 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14781 ac_header_preproc
=yes
14784 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14786 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14787 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14788 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14789 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14790 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14791 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14794 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14795 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14798 ## ------------------------------------------ ##
14799 ## Report this to the AC_PACKAGE_NAME lists. ##
14800 ## ------------------------------------------ ##
14803 sed "s/^/$as_me: WARNING: /" >&2
14806 echo "$as_me:$LINENO: checking for $ac_header" >&5
14807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14809 echo $ECHO_N "(cached) $ECHO_C" >&6
14811 eval "$as_ac_Header=\$ac_header_preproc"
14813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14818 cat >>confdefs.h
<<_ACEOF
14819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14830 for ac_header
in stdlib.h sys
/time.h unistd.h
14832 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14834 echo "$as_me:$LINENO: checking for $ac_header" >&5
14835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14837 echo $ECHO_N "(cached) $ECHO_C" >&6
14839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14842 # Is the header compilable?
14843 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14845 cat >conftest.
$ac_ext <<_ACEOF
14848 cat confdefs.h
>>conftest.
$ac_ext
14849 cat >>conftest.
$ac_ext <<_ACEOF
14850 /* end confdefs.h. */
14851 $ac_includes_default
14852 #include <$ac_header>
14854 rm -f conftest.
$ac_objext
14855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14856 (eval $ac_compile) 2>conftest.er1
14858 grep -v '^ *+' conftest.er1
>conftest.err
14860 cat conftest.err
>&5
14861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); } &&
14863 { ac_try
='test -z "$ac_c_werror_flag"
14864 || test ! -s conftest.err'
14865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14866 (eval $ac_try) 2>&5
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); }; } &&
14870 { ac_try
='test -s conftest.$ac_objext'
14871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14872 (eval $ac_try) 2>&5
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); }; }; then
14876 ac_header_compiler
=yes
14878 echo "$as_me: failed program was:" >&5
14879 sed 's/^/| /' conftest.
$ac_ext >&5
14881 ac_header_compiler
=no
14883 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14884 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14885 echo "${ECHO_T}$ac_header_compiler" >&6
14887 # Is the header present?
14888 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14889 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14890 cat >conftest.
$ac_ext <<_ACEOF
14893 cat confdefs.h
>>conftest.
$ac_ext
14894 cat >>conftest.
$ac_ext <<_ACEOF
14895 /* end confdefs.h. */
14896 #include <$ac_header>
14898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14899 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14901 grep -v '^ *+' conftest.er1
>conftest.err
14903 cat conftest.err
>&5
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); } >/dev
/null
; then
14906 if test -s conftest.err
; then
14907 ac_cpp_err
=$ac_c_preproc_warn_flag
14908 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14915 if test -z "$ac_cpp_err"; then
14916 ac_header_preproc
=yes
14918 echo "$as_me: failed program was:" >&5
14919 sed 's/^/| /' conftest.
$ac_ext >&5
14921 ac_header_preproc
=no
14923 rm -f conftest.err conftest.
$ac_ext
14924 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14925 echo "${ECHO_T}$ac_header_preproc" >&6
14927 # So? What about this header?
14928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14930 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14931 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14933 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14934 ac_header_preproc
=yes
14937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14938 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14940 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14941 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14942 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14943 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14944 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14947 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14948 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14951 ## ------------------------------------------ ##
14952 ## Report this to the AC_PACKAGE_NAME lists. ##
14953 ## ------------------------------------------ ##
14956 sed "s/^/$as_me: WARNING: /" >&2
14959 echo "$as_me:$LINENO: checking for $ac_header" >&5
14960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14962 echo $ECHO_N "(cached) $ECHO_C" >&6
14964 eval "$as_ac_Header=\$ac_header_preproc"
14966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14971 cat >>confdefs.h
<<_ACEOF
14972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14980 for ac_func
in alarm
14982 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14983 echo "$as_me:$LINENO: checking for $ac_func" >&5
14984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14985 if eval "test \"\${$as_ac_var+set}\" = set"; then
14986 echo $ECHO_N "(cached) $ECHO_C" >&6
14988 cat >conftest.
$ac_ext <<_ACEOF
14991 cat confdefs.h
>>conftest.
$ac_ext
14992 cat >>conftest.
$ac_ext <<_ACEOF
14993 /* end confdefs.h. */
14994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14996 #define $ac_func innocuous_$ac_func
14998 /* System header to define __stub macros and hopefully few prototypes,
14999 which can conflict with char $ac_func (); below.
15000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15001 <limits.h> exists even on freestanding compilers. */
15004 # include <limits.h>
15006 # include <assert.h>
15011 /* Override any gcc2 internal prototype to avoid an error. */
15016 /* We use char because int might match the return type of a gcc2
15017 builtin and then its argument prototype would still apply. */
15019 /* The GNU C library defines this for functions which it implements
15020 to always fail with ENOSYS. Some functions are actually named
15021 something starting with __ and the normal name is an alias. */
15022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15025 char (*f) () = $ac_func;
15034 return f != $ac_func;
15039 rm -f conftest.
$ac_objext conftest
$ac_exeext
15040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15041 (eval $ac_link) 2>conftest.er1
15043 grep -v '^ *+' conftest.er1
>conftest.err
15045 cat conftest.err
>&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); } &&
15048 { ac_try
='test -z "$ac_c_werror_flag"
15049 || test ! -s conftest.err'
15050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15051 (eval $ac_try) 2>&5
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); }; } &&
15055 { ac_try
='test -s conftest$ac_exeext'
15056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15057 (eval $ac_try) 2>&5
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); }; }; then
15061 eval "$as_ac_var=yes"
15063 echo "$as_me: failed program was:" >&5
15064 sed 's/^/| /' conftest.
$ac_ext >&5
15066 eval "$as_ac_var=no"
15068 rm -f conftest.err conftest.
$ac_objext \
15069 conftest
$ac_exeext conftest.
$ac_ext
15071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15072 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15073 if test `eval echo '${'$as_ac_var'}'` = yes; then
15074 cat >>confdefs.h
<<_ACEOF
15075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15081 echo "$as_me:$LINENO: checking for working mktime" >&5
15082 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
15083 if test "${ac_cv_func_working_mktime+set}" = set; then
15084 echo $ECHO_N "(cached) $ECHO_C" >&6
15086 if test "$cross_compiling" = yes; then
15087 ac_cv_func_working_mktime
=no
15089 cat >conftest.
$ac_ext <<_ACEOF
15092 cat confdefs.h
>>conftest.
$ac_ext
15093 cat >>conftest.
$ac_ext <<_ACEOF
15094 /* end confdefs.h. */
15095 /* Test program from Paul Eggert and Tony Leneis. */
15096 #if TIME_WITH_SYS_TIME
15097 # include <sys/time.h>
15100 # if HAVE_SYS_TIME_H
15101 # include <sys/time.h>
15108 # include <stdlib.h>
15112 # include <unistd.h>
15116 # define alarm(X) /* empty */
15119 /* Work around redefinition to rpl_putenv by other config tests. */
15122 static time_t time_t_max;
15123 static time_t time_t_min;
15125 /* Values we'll use to set the TZ environment variable. */
15126 static char *tz_strings[] = {
15127 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15128 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15130 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15132 /* Fail if mktime fails to convert a date in the spring-forward gap.
15133 Based on a problem report from Andreas Jaeger. */
15135 spring_forward_gap ()
15137 /* glibc (up to about 1998-10-07) failed this test. */
15140 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15141 instead of "TZ=America/Vancouver" in order to detect the bug even
15142 on systems that don't support the Olson extension, or don't have the
15143 full zoneinfo tables installed. */
15144 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15153 if (mktime (&tm) == (time_t)-1)
15162 if ((lt = localtime (&now)) && mktime (lt) != now)
15170 mktime_test1 (now);
15171 mktime_test1 ((time_t) (time_t_max - now));
15172 mktime_test1 ((time_t) (time_t_min + now));
15178 /* Based on code from Ariel Faigon. */
15188 if (tm.tm_mon != 2 || tm.tm_mday != 31)
15198 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15199 now = mktime (&tm);
15200 if (now != (time_t) -1)
15202 struct tm *lt = localtime (&now);
15204 && lt->tm_year == tm.tm_year
15205 && lt->tm_mon == tm.tm_mon
15206 && lt->tm_mday == tm.tm_mday
15207 && lt->tm_hour == tm.tm_hour
15208 && lt->tm_min == tm.tm_min
15209 && lt->tm_sec == tm.tm_sec
15210 && lt->tm_yday == tm.tm_yday
15211 && lt->tm_wday == tm.tm_wday
15212 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15213 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15224 /* This test makes some buggy mktime implementations loop.
15225 Give up after 60 seconds; a mktime slower than that
15226 isn't worth using anyway. */
15229 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15232 if ((time_t) -1 < 0)
15233 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15235 delta = time_t_max / 997; /* a suitable prime number */
15236 for (i = 0; i < N_STRINGS; i++)
15239 putenv (tz_strings[i]);
15241 for (t = 0; t <= time_t_max - delta; t += delta)
15243 mktime_test ((time_t) 1);
15244 mktime_test ((time_t) (60 * 60));
15245 mktime_test ((time_t) (60 * 60 * 24));
15247 for (j = 1; 0 < j; j *= 2)
15249 bigtime_test (j - 1);
15252 spring_forward_gap ();
15256 rm -f conftest
$ac_exeext
15257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15258 (eval $ac_link) 2>&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15263 (eval $ac_try) 2>&5
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); }; }; then
15267 ac_cv_func_working_mktime
=yes
15269 echo "$as_me: program exited with status $ac_status" >&5
15270 echo "$as_me: failed program was:" >&5
15271 sed 's/^/| /' conftest.
$ac_ext >&5
15273 ( exit $ac_status )
15274 ac_cv_func_working_mktime
=no
15276 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15279 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15280 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
15281 if test $ac_cv_func_working_mktime = no
; then
15283 "mktime.$ac_objext" | \
15284 *" mktime.$ac_objext" | \
15285 "mktime.$ac_objext "* | \
15286 *" mktime.$ac_objext "* ) ;;
15287 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
15292 if test "$ac_cv_func_working_mktime" = no
; then
15294 cat >>confdefs.h
<<\_ACEOF
15295 #define BROKEN_MKTIME 1
15300 ac_have_func
=no
# yes means we've found a way to get the load average.
15302 # Make sure getloadavg.c is where it belongs, at configure-time.
15303 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15304 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15305 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15306 { (exit 1); exit 1; }; }
15310 # Check for getloadavg, but be sure not to touch the cache variable.
15311 (echo "$as_me:$LINENO: checking for getloadavg" >&5
15312 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
15313 if test "${ac_cv_func_getloadavg+set}" = set; then
15314 echo $ECHO_N "(cached) $ECHO_C" >&6
15316 cat >conftest.
$ac_ext <<_ACEOF
15319 cat confdefs.h
>>conftest.
$ac_ext
15320 cat >>conftest.
$ac_ext <<_ACEOF
15321 /* end confdefs.h. */
15322 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15324 #define getloadavg innocuous_getloadavg
15326 /* System header to define __stub macros and hopefully few prototypes,
15327 which can conflict with char getloadavg (); below.
15328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15329 <limits.h> exists even on freestanding compilers. */
15332 # include <limits.h>
15334 # include <assert.h>
15339 /* Override any gcc2 internal prototype to avoid an error. */
15344 /* We use char because int might match the return type of a gcc2
15345 builtin and then its argument prototype would still apply. */
15346 char getloadavg ();
15347 /* The GNU C library defines this for functions which it implements
15348 to always fail with ENOSYS. Some functions are actually named
15349 something starting with __ and the normal name is an alias. */
15350 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15353 char (*f) () = getloadavg;
15362 return f != getloadavg;
15367 rm -f conftest.
$ac_objext conftest
$ac_exeext
15368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15369 (eval $ac_link) 2>conftest.er1
15371 grep -v '^ *+' conftest.er1
>conftest.err
15373 cat conftest.err
>&5
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); } &&
15376 { ac_try
='test -z "$ac_c_werror_flag"
15377 || test ! -s conftest.err'
15378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15379 (eval $ac_try) 2>&5
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); }; } &&
15383 { ac_try
='test -s conftest$ac_exeext'
15384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15385 (eval $ac_try) 2>&5
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); }; }; then
15389 ac_cv_func_getloadavg
=yes
15391 echo "$as_me: failed program was:" >&5
15392 sed 's/^/| /' conftest.
$ac_ext >&5
15394 ac_cv_func_getloadavg
=no
15396 rm -f conftest.err conftest.
$ac_objext \
15397 conftest
$ac_exeext conftest.
$ac_ext
15399 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15400 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15401 if test $ac_cv_func_getloadavg = yes; then
15406 ) && ac_have_func
=yes
15408 # On HPUX9, an unprivileged user can get load averages through this function.
15410 for ac_func
in pstat_getdynamic
15412 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15413 echo "$as_me:$LINENO: checking for $ac_func" >&5
15414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15415 if eval "test \"\${$as_ac_var+set}\" = set"; then
15416 echo $ECHO_N "(cached) $ECHO_C" >&6
15418 cat >conftest.
$ac_ext <<_ACEOF
15421 cat confdefs.h
>>conftest.
$ac_ext
15422 cat >>conftest.
$ac_ext <<_ACEOF
15423 /* end confdefs.h. */
15424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15426 #define $ac_func innocuous_$ac_func
15428 /* System header to define __stub macros and hopefully few prototypes,
15429 which can conflict with char $ac_func (); below.
15430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15431 <limits.h> exists even on freestanding compilers. */
15434 # include <limits.h>
15436 # include <assert.h>
15441 /* Override any gcc2 internal prototype to avoid an error. */
15446 /* We use char because int might match the return type of a gcc2
15447 builtin and then its argument prototype would still apply. */
15449 /* The GNU C library defines this for functions which it implements
15450 to always fail with ENOSYS. Some functions are actually named
15451 something starting with __ and the normal name is an alias. */
15452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15455 char (*f) () = $ac_func;
15464 return f != $ac_func;
15469 rm -f conftest.
$ac_objext conftest
$ac_exeext
15470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15471 (eval $ac_link) 2>conftest.er1
15473 grep -v '^ *+' conftest.er1
>conftest.err
15475 cat conftest.err
>&5
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); } &&
15478 { ac_try
='test -z "$ac_c_werror_flag"
15479 || test ! -s conftest.err'
15480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15481 (eval $ac_try) 2>&5
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); }; } &&
15485 { ac_try
='test -s conftest$ac_exeext'
15486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15487 (eval $ac_try) 2>&5
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); }; }; then
15491 eval "$as_ac_var=yes"
15493 echo "$as_me: failed program was:" >&5
15494 sed 's/^/| /' conftest.
$ac_ext >&5
15496 eval "$as_ac_var=no"
15498 rm -f conftest.err conftest.
$ac_objext \
15499 conftest
$ac_exeext conftest.
$ac_ext
15501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15502 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15503 if test `eval echo '${'$as_ac_var'}'` = yes; then
15504 cat >>confdefs.h
<<_ACEOF
15505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15512 # Solaris has libkstat which does not require root.
15514 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15515 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15516 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15517 echo $ECHO_N "(cached) $ECHO_C" >&6
15519 ac_check_lib_save_LIBS
=$LIBS
15520 LIBS
="-lkstat $LIBS"
15521 cat >conftest.
$ac_ext <<_ACEOF
15524 cat confdefs.h
>>conftest.
$ac_ext
15525 cat >>conftest.
$ac_ext <<_ACEOF
15526 /* end confdefs.h. */
15528 /* Override any gcc2 internal prototype to avoid an error. */
15532 /* We use char because int might match the return type of a gcc2
15533 builtin and then its argument prototype would still apply. */
15534 char kstat_open ();
15543 rm -f conftest.
$ac_objext conftest
$ac_exeext
15544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15545 (eval $ac_link) 2>conftest.er1
15547 grep -v '^ *+' conftest.er1
>conftest.err
15549 cat conftest.err
>&5
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); } &&
15552 { ac_try
='test -z "$ac_c_werror_flag"
15553 || test ! -s conftest.err'
15554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15555 (eval $ac_try) 2>&5
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); }; } &&
15559 { ac_try
='test -s conftest$ac_exeext'
15560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15561 (eval $ac_try) 2>&5
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); }; }; then
15565 ac_cv_lib_kstat_kstat_open
=yes
15567 echo "$as_me: failed program was:" >&5
15568 sed 's/^/| /' conftest.
$ac_ext >&5
15570 ac_cv_lib_kstat_kstat_open
=no
15572 rm -f conftest.err conftest.
$ac_objext \
15573 conftest
$ac_exeext conftest.
$ac_ext
15574 LIBS
=$ac_check_lib_save_LIBS
15576 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15577 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15578 if test $ac_cv_lib_kstat_kstat_open = yes; then
15579 cat >>confdefs.h
<<_ACEOF
15580 #define HAVE_LIBKSTAT 1
15583 LIBS
="-lkstat $LIBS"
15587 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
15589 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15590 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15591 # to get the right answer into the cache.
15592 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15593 if test $ac_have_func = no
; then
15594 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15595 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15596 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15597 echo $ECHO_N "(cached) $ECHO_C" >&6
15599 ac_check_lib_save_LIBS
=$LIBS
15601 cat >conftest.
$ac_ext <<_ACEOF
15604 cat confdefs.h
>>conftest.
$ac_ext
15605 cat >>conftest.
$ac_ext <<_ACEOF
15606 /* end confdefs.h. */
15608 /* Override any gcc2 internal prototype to avoid an error. */
15612 /* We use char because int might match the return type of a gcc2
15613 builtin and then its argument prototype would still apply. */
15623 rm -f conftest.
$ac_objext conftest
$ac_exeext
15624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15625 (eval $ac_link) 2>conftest.er1
15627 grep -v '^ *+' conftest.er1
>conftest.err
15629 cat conftest.err
>&5
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); } &&
15632 { ac_try
='test -z "$ac_c_werror_flag"
15633 || test ! -s conftest.err'
15634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15635 (eval $ac_try) 2>&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); }; } &&
15639 { ac_try
='test -s conftest$ac_exeext'
15640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15641 (eval $ac_try) 2>&5
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); }; }; then
15645 ac_cv_lib_elf_elf_begin
=yes
15647 echo "$as_me: failed program was:" >&5
15648 sed 's/^/| /' conftest.
$ac_ext >&5
15650 ac_cv_lib_elf_elf_begin
=no
15652 rm -f conftest.err conftest.
$ac_objext \
15653 conftest
$ac_exeext conftest.
$ac_ext
15654 LIBS
=$ac_check_lib_save_LIBS
15656 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15657 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15658 if test $ac_cv_lib_elf_elf_begin = yes; then
15663 if test $ac_have_func = no
; then
15664 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15665 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15666 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15667 echo $ECHO_N "(cached) $ECHO_C" >&6
15669 ac_check_lib_save_LIBS
=$LIBS
15671 cat >conftest.
$ac_ext <<_ACEOF
15674 cat confdefs.h
>>conftest.
$ac_ext
15675 cat >>conftest.
$ac_ext <<_ACEOF
15676 /* end confdefs.h. */
15678 /* Override any gcc2 internal prototype to avoid an error. */
15682 /* We use char because int might match the return type of a gcc2
15683 builtin and then its argument prototype would still apply. */
15693 rm -f conftest.
$ac_objext conftest
$ac_exeext
15694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15695 (eval $ac_link) 2>conftest.er1
15697 grep -v '^ *+' conftest.er1
>conftest.err
15699 cat conftest.err
>&5
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); } &&
15702 { ac_try
='test -z "$ac_c_werror_flag"
15703 || test ! -s conftest.err'
15704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15705 (eval $ac_try) 2>&5
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); }; } &&
15709 { ac_try
='test -s conftest$ac_exeext'
15710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15711 (eval $ac_try) 2>&5
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); }; }; then
15715 ac_cv_lib_kvm_kvm_open
=yes
15717 echo "$as_me: failed program was:" >&5
15718 sed 's/^/| /' conftest.
$ac_ext >&5
15720 ac_cv_lib_kvm_kvm_open
=no
15722 rm -f conftest.err conftest.
$ac_objext \
15723 conftest
$ac_exeext conftest.
$ac_ext
15724 LIBS
=$ac_check_lib_save_LIBS
15726 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15727 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15728 if test $ac_cv_lib_kvm_kvm_open = yes; then
15732 # Check for the 4.4BSD definition of getloadavg.
15733 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15734 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15735 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15736 echo $ECHO_N "(cached) $ECHO_C" >&6
15738 ac_check_lib_save_LIBS
=$LIBS
15739 LIBS
="-lutil $LIBS"
15740 cat >conftest.
$ac_ext <<_ACEOF
15743 cat confdefs.h
>>conftest.
$ac_ext
15744 cat >>conftest.
$ac_ext <<_ACEOF
15745 /* end confdefs.h. */
15747 /* Override any gcc2 internal prototype to avoid an error. */
15751 /* We use char because int might match the return type of a gcc2
15752 builtin and then its argument prototype would still apply. */
15753 char getloadavg ();
15762 rm -f conftest.
$ac_objext conftest
$ac_exeext
15763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15764 (eval $ac_link) 2>conftest.er1
15766 grep -v '^ *+' conftest.er1
>conftest.err
15768 cat conftest.err
>&5
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); } &&
15771 { ac_try
='test -z "$ac_c_werror_flag"
15772 || test ! -s conftest.err'
15773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774 (eval $ac_try) 2>&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; } &&
15778 { ac_try
='test -s conftest$ac_exeext'
15779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780 (eval $ac_try) 2>&5
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); }; }; then
15784 ac_cv_lib_util_getloadavg
=yes
15786 echo "$as_me: failed program was:" >&5
15787 sed 's/^/| /' conftest.
$ac_ext >&5
15789 ac_cv_lib_util_getloadavg
=no
15791 rm -f conftest.err conftest.
$ac_objext \
15792 conftest
$ac_exeext conftest.
$ac_ext
15793 LIBS
=$ac_check_lib_save_LIBS
15795 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15796 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15797 if test $ac_cv_lib_util_getloadavg = yes; then
15798 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
15803 if test $ac_have_func = no
; then
15804 # There is a commonly available library for RS/6000 AIX.
15805 # Since it is not a standard part of AIX, it might be installed locally.
15806 ac_getloadavg_LIBS
=$LIBS
15807 LIBS
="-L/usr/local/lib $LIBS"
15808 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15809 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15810 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15811 echo $ECHO_N "(cached) $ECHO_C" >&6
15813 ac_check_lib_save_LIBS
=$LIBS
15814 LIBS
="-lgetloadavg $LIBS"
15815 cat >conftest.
$ac_ext <<_ACEOF
15818 cat confdefs.h
>>conftest.
$ac_ext
15819 cat >>conftest.
$ac_ext <<_ACEOF
15820 /* end confdefs.h. */
15822 /* Override any gcc2 internal prototype to avoid an error. */
15826 /* We use char because int might match the return type of a gcc2
15827 builtin and then its argument prototype would still apply. */
15828 char getloadavg ();
15837 rm -f conftest.
$ac_objext conftest
$ac_exeext
15838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15839 (eval $ac_link) 2>conftest.er1
15841 grep -v '^ *+' conftest.er1
>conftest.err
15843 cat conftest.err
>&5
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); } &&
15846 { ac_try
='test -z "$ac_c_werror_flag"
15847 || test ! -s conftest.err'
15848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15849 (eval $ac_try) 2>&5
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); }; } &&
15853 { ac_try
='test -s conftest$ac_exeext'
15854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15855 (eval $ac_try) 2>&5
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); }; }; then
15859 ac_cv_lib_getloadavg_getloadavg
=yes
15861 echo "$as_me: failed program was:" >&5
15862 sed 's/^/| /' conftest.
$ac_ext >&5
15864 ac_cv_lib_getloadavg_getloadavg
=no
15866 rm -f conftest.err conftest.
$ac_objext \
15867 conftest
$ac_exeext conftest.
$ac_ext
15868 LIBS
=$ac_check_lib_save_LIBS
15870 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15871 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15872 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15873 LIBS
="-lgetloadavg $LIBS"
15875 LIBS
=$ac_getloadavg_LIBS
15880 # Make sure it is really in the library, if we think we found it,
15881 # otherwise set up the replacement function.
15883 for ac_func
in getloadavg
15885 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15886 echo "$as_me:$LINENO: checking for $ac_func" >&5
15887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15888 if eval "test \"\${$as_ac_var+set}\" = set"; then
15889 echo $ECHO_N "(cached) $ECHO_C" >&6
15891 cat >conftest.
$ac_ext <<_ACEOF
15894 cat confdefs.h
>>conftest.
$ac_ext
15895 cat >>conftest.
$ac_ext <<_ACEOF
15896 /* end confdefs.h. */
15897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15899 #define $ac_func innocuous_$ac_func
15901 /* System header to define __stub macros and hopefully few prototypes,
15902 which can conflict with char $ac_func (); below.
15903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15904 <limits.h> exists even on freestanding compilers. */
15907 # include <limits.h>
15909 # include <assert.h>
15914 /* Override any gcc2 internal prototype to avoid an error. */
15919 /* We use char because int might match the return type of a gcc2
15920 builtin and then its argument prototype would still apply. */
15922 /* The GNU C library defines this for functions which it implements
15923 to always fail with ENOSYS. Some functions are actually named
15924 something starting with __ and the normal name is an alias. */
15925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15928 char (*f) () = $ac_func;
15937 return f != $ac_func;
15942 rm -f conftest.
$ac_objext conftest
$ac_exeext
15943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15944 (eval $ac_link) 2>conftest.er1
15946 grep -v '^ *+' conftest.er1
>conftest.err
15948 cat conftest.err
>&5
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); } &&
15951 { ac_try
='test -z "$ac_c_werror_flag"
15952 || test ! -s conftest.err'
15953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15954 (eval $ac_try) 2>&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); }; } &&
15958 { ac_try
='test -s conftest$ac_exeext'
15959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15960 (eval $ac_try) 2>&5
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); }; }; then
15964 eval "$as_ac_var=yes"
15966 echo "$as_me: failed program was:" >&5
15967 sed 's/^/| /' conftest.
$ac_ext >&5
15969 eval "$as_ac_var=no"
15971 rm -f conftest.err conftest.
$ac_objext \
15972 conftest
$ac_exeext conftest.
$ac_ext
15974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15975 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15976 if test `eval echo '${'$as_ac_var'}'` = yes; then
15977 cat >>confdefs.h
<<_ACEOF
15978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15983 "getloadavg.$ac_objext" | \
15984 *" getloadavg.$ac_objext" | \
15985 "getloadavg.$ac_objext "* | \
15986 *" getloadavg.$ac_objext "* ) ;;
15987 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
15991 cat >>confdefs.h
<<\_ACEOF
15992 #define C_GETLOADAVG 1
15995 # Figure out what our getloadavg.c needs.
15997 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15998 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15999 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16000 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16001 echo $ECHO_N "(cached) $ECHO_C" >&6
16003 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16004 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16006 # Is the header compilable?
16007 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16008 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
16009 cat >conftest.
$ac_ext <<_ACEOF
16012 cat confdefs.h
>>conftest.
$ac_ext
16013 cat >>conftest.
$ac_ext <<_ACEOF
16014 /* end confdefs.h. */
16015 $ac_includes_default
16016 #include <sys/dg_sys_info.h>
16018 rm -f conftest.
$ac_objext
16019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16020 (eval $ac_compile) 2>conftest.er1
16022 grep -v '^ *+' conftest.er1
>conftest.err
16024 cat conftest.err
>&5
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); } &&
16027 { ac_try
='test -z "$ac_c_werror_flag"
16028 || test ! -s conftest.err'
16029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16030 (eval $ac_try) 2>&5
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); }; } &&
16034 { ac_try
='test -s conftest.$ac_objext'
16035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16036 (eval $ac_try) 2>&5
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); }; }; then
16040 ac_header_compiler
=yes
16042 echo "$as_me: failed program was:" >&5
16043 sed 's/^/| /' conftest.
$ac_ext >&5
16045 ac_header_compiler
=no
16047 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16048 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16049 echo "${ECHO_T}$ac_header_compiler" >&6
16051 # Is the header present?
16052 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16053 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
16054 cat >conftest.
$ac_ext <<_ACEOF
16057 cat confdefs.h
>>conftest.
$ac_ext
16058 cat >>conftest.
$ac_ext <<_ACEOF
16059 /* end confdefs.h. */
16060 #include <sys/dg_sys_info.h>
16062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16063 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16065 grep -v '^ *+' conftest.er1
>conftest.err
16067 cat conftest.err
>&5
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); } >/dev
/null
; then
16070 if test -s conftest.err
; then
16071 ac_cpp_err
=$ac_c_preproc_warn_flag
16072 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16079 if test -z "$ac_cpp_err"; then
16080 ac_header_preproc
=yes
16082 echo "$as_me: failed program was:" >&5
16083 sed 's/^/| /' conftest.
$ac_ext >&5
16085 ac_header_preproc
=no
16087 rm -f conftest.err conftest.
$ac_ext
16088 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16089 echo "${ECHO_T}$ac_header_preproc" >&6
16091 # So? What about this header?
16092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16094 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16095 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16096 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16097 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16098 ac_header_preproc
=yes
16101 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16102 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16103 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16104 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16105 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16106 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16107 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16108 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16109 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16110 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16111 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16112 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16115 ## ------------------------------------------ ##
16116 ## Report this to the AC_PACKAGE_NAME lists. ##
16117 ## ------------------------------------------ ##
16120 sed "s/^/$as_me: WARNING: /" >&2
16123 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16124 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16125 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16126 echo $ECHO_N "(cached) $ECHO_C" >&6
16128 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
16130 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16131 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16134 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16137 cat >>confdefs.h
<<\_ACEOF
16142 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16143 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
16144 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16145 echo $ECHO_N "(cached) $ECHO_C" >&6
16147 ac_check_lib_save_LIBS
=$LIBS
16149 cat >conftest.
$ac_ext <<_ACEOF
16152 cat confdefs.h
>>conftest.
$ac_ext
16153 cat >>conftest.
$ac_ext <<_ACEOF
16154 /* end confdefs.h. */
16156 /* Override any gcc2 internal prototype to avoid an error. */
16160 /* We use char because int might match the return type of a gcc2
16161 builtin and then its argument prototype would still apply. */
16162 char dg_sys_info ();
16171 rm -f conftest.
$ac_objext conftest
$ac_exeext
16172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16173 (eval $ac_link) 2>conftest.er1
16175 grep -v '^ *+' conftest.er1
>conftest.err
16177 cat conftest.err
>&5
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); } &&
16180 { ac_try
='test -z "$ac_c_werror_flag"
16181 || test ! -s conftest.err'
16182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16183 (eval $ac_try) 2>&5
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); }; } &&
16187 { ac_try
='test -s conftest$ac_exeext'
16188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16189 (eval $ac_try) 2>&5
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); }; }; then
16193 ac_cv_lib_dgc_dg_sys_info
=yes
16195 echo "$as_me: failed program was:" >&5
16196 sed 's/^/| /' conftest.
$ac_ext >&5
16198 ac_cv_lib_dgc_dg_sys_info
=no
16200 rm -f conftest.err conftest.
$ac_objext \
16201 conftest
$ac_exeext conftest.
$ac_ext
16202 LIBS
=$ac_check_lib_save_LIBS
16204 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16205 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
16206 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16207 cat >>confdefs.h
<<_ACEOF
16208 #define HAVE_LIBDGC 1
16219 if test "${ac_cv_header_locale_h+set}" = set; then
16220 echo "$as_me:$LINENO: checking for locale.h" >&5
16221 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16222 if test "${ac_cv_header_locale_h+set}" = set; then
16223 echo $ECHO_N "(cached) $ECHO_C" >&6
16225 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16226 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16228 # Is the header compilable?
16229 echo "$as_me:$LINENO: checking locale.h usability" >&5
16230 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
16231 cat >conftest.
$ac_ext <<_ACEOF
16234 cat confdefs.h
>>conftest.
$ac_ext
16235 cat >>conftest.
$ac_ext <<_ACEOF
16236 /* end confdefs.h. */
16237 $ac_includes_default
16238 #include <locale.h>
16240 rm -f conftest.
$ac_objext
16241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16242 (eval $ac_compile) 2>conftest.er1
16244 grep -v '^ *+' conftest.er1
>conftest.err
16246 cat conftest.err
>&5
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); } &&
16249 { ac_try
='test -z "$ac_c_werror_flag"
16250 || test ! -s conftest.err'
16251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16252 (eval $ac_try) 2>&5
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); }; } &&
16256 { ac_try
='test -s conftest.$ac_objext'
16257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16258 (eval $ac_try) 2>&5
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); }; }; then
16262 ac_header_compiler
=yes
16264 echo "$as_me: failed program was:" >&5
16265 sed 's/^/| /' conftest.
$ac_ext >&5
16267 ac_header_compiler
=no
16269 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16270 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16271 echo "${ECHO_T}$ac_header_compiler" >&6
16273 # Is the header present?
16274 echo "$as_me:$LINENO: checking locale.h presence" >&5
16275 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
16276 cat >conftest.
$ac_ext <<_ACEOF
16279 cat confdefs.h
>>conftest.
$ac_ext
16280 cat >>conftest.
$ac_ext <<_ACEOF
16281 /* end confdefs.h. */
16282 #include <locale.h>
16284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16285 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16287 grep -v '^ *+' conftest.er1
>conftest.err
16289 cat conftest.err
>&5
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); } >/dev
/null
; then
16292 if test -s conftest.err
; then
16293 ac_cpp_err
=$ac_c_preproc_warn_flag
16294 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16301 if test -z "$ac_cpp_err"; then
16302 ac_header_preproc
=yes
16304 echo "$as_me: failed program was:" >&5
16305 sed 's/^/| /' conftest.
$ac_ext >&5
16307 ac_header_preproc
=no
16309 rm -f conftest.err conftest.
$ac_ext
16310 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16311 echo "${ECHO_T}$ac_header_preproc" >&6
16313 # So? What about this header?
16314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16316 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16317 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16318 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16319 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16320 ac_header_preproc
=yes
16323 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16324 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16325 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16326 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16327 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16328 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16329 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16330 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16331 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16332 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16333 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16334 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16337 ## ------------------------------------------ ##
16338 ## Report this to the AC_PACKAGE_NAME lists. ##
16339 ## ------------------------------------------ ##
16342 sed "s/^/$as_me: WARNING: /" >&2
16345 echo "$as_me:$LINENO: checking for locale.h" >&5
16346 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16347 if test "${ac_cv_header_locale_h+set}" = set; then
16348 echo $ECHO_N "(cached) $ECHO_C" >&6
16350 ac_cv_header_locale_h
=$ac_header_preproc
16352 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16353 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16359 for ac_func
in setlocale
16361 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16362 echo "$as_me:$LINENO: checking for $ac_func" >&5
16363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16364 if eval "test \"\${$as_ac_var+set}\" = set"; then
16365 echo $ECHO_N "(cached) $ECHO_C" >&6
16367 cat >conftest.
$ac_ext <<_ACEOF
16370 cat confdefs.h
>>conftest.
$ac_ext
16371 cat >>conftest.
$ac_ext <<_ACEOF
16372 /* end confdefs.h. */
16373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16375 #define $ac_func innocuous_$ac_func
16377 /* System header to define __stub macros and hopefully few prototypes,
16378 which can conflict with char $ac_func (); below.
16379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16380 <limits.h> exists even on freestanding compilers. */
16383 # include <limits.h>
16385 # include <assert.h>
16390 /* Override any gcc2 internal prototype to avoid an error. */
16395 /* We use char because int might match the return type of a gcc2
16396 builtin and then its argument prototype would still apply. */
16398 /* The GNU C library defines this for functions which it implements
16399 to always fail with ENOSYS. Some functions are actually named
16400 something starting with __ and the normal name is an alias. */
16401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16404 char (*f) () = $ac_func;
16413 return f != $ac_func;
16418 rm -f conftest.
$ac_objext conftest
$ac_exeext
16419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16420 (eval $ac_link) 2>conftest.er1
16422 grep -v '^ *+' conftest.er1
>conftest.err
16424 cat conftest.err
>&5
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); } &&
16427 { ac_try
='test -z "$ac_c_werror_flag"
16428 || test ! -s conftest.err'
16429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16430 (eval $ac_try) 2>&5
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); }; } &&
16434 { ac_try
='test -s conftest$ac_exeext'
16435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16436 (eval $ac_try) 2>&5
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); }; }; then
16440 eval "$as_ac_var=yes"
16442 echo "$as_me: failed program was:" >&5
16443 sed 's/^/| /' conftest.
$ac_ext >&5
16445 eval "$as_ac_var=no"
16447 rm -f conftest.err conftest.
$ac_objext \
16448 conftest
$ac_exeext conftest.
$ac_ext
16450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16451 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16452 if test `eval echo '${'$as_ac_var'}'` = yes; then
16453 cat >>confdefs.h
<<_ACEOF
16454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16461 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16462 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16463 # Irix 4.0.5F has the header but not the library.
16464 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
16467 cat >>confdefs.h
<<\_ACEOF
16473 if test $ac_have_func = no
; then
16474 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16475 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16476 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16477 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16478 echo $ECHO_N "(cached) $ECHO_C" >&6
16480 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16481 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16483 # Is the header compilable?
16484 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16485 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16486 cat >conftest.
$ac_ext <<_ACEOF
16489 cat confdefs.h
>>conftest.
$ac_ext
16490 cat >>conftest.
$ac_ext <<_ACEOF
16491 /* end confdefs.h. */
16492 $ac_includes_default
16493 #include <inq_stats/cpustats.h>
16495 rm -f conftest.
$ac_objext
16496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16497 (eval $ac_compile) 2>conftest.er1
16499 grep -v '^ *+' conftest.er1
>conftest.err
16501 cat conftest.err
>&5
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); } &&
16504 { ac_try
='test -z "$ac_c_werror_flag"
16505 || test ! -s conftest.err'
16506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16507 (eval $ac_try) 2>&5
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); }; } &&
16511 { ac_try
='test -s conftest.$ac_objext'
16512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16513 (eval $ac_try) 2>&5
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); }; }; then
16517 ac_header_compiler
=yes
16519 echo "$as_me: failed program was:" >&5
16520 sed 's/^/| /' conftest.
$ac_ext >&5
16522 ac_header_compiler
=no
16524 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16525 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16526 echo "${ECHO_T}$ac_header_compiler" >&6
16528 # Is the header present?
16529 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16530 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16531 cat >conftest.
$ac_ext <<_ACEOF
16534 cat confdefs.h
>>conftest.
$ac_ext
16535 cat >>conftest.
$ac_ext <<_ACEOF
16536 /* end confdefs.h. */
16537 #include <inq_stats/cpustats.h>
16539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16540 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16542 grep -v '^ *+' conftest.er1
>conftest.err
16544 cat conftest.err
>&5
16545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546 (exit $ac_status); } >/dev
/null
; then
16547 if test -s conftest.err
; then
16548 ac_cpp_err
=$ac_c_preproc_warn_flag
16549 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16556 if test -z "$ac_cpp_err"; then
16557 ac_header_preproc
=yes
16559 echo "$as_me: failed program was:" >&5
16560 sed 's/^/| /' conftest.
$ac_ext >&5
16562 ac_header_preproc
=no
16564 rm -f conftest.err conftest.
$ac_ext
16565 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16566 echo "${ECHO_T}$ac_header_preproc" >&6
16568 # So? What about this header?
16569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16571 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16572 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16573 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16574 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16575 ac_header_preproc
=yes
16578 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16579 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16580 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16581 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16582 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16583 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16584 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16585 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16586 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16587 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16588 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16589 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16592 ## ------------------------------------------ ##
16593 ## Report this to the AC_PACKAGE_NAME lists. ##
16594 ## ------------------------------------------ ##
16597 sed "s/^/$as_me: WARNING: /" >&2
16600 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16601 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16602 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16603 echo $ECHO_N "(cached) $ECHO_C" >&6
16605 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
16607 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16608 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16611 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16614 cat >>confdefs.h
<<\_ACEOF
16619 cat >>confdefs.h
<<\_ACEOF
16628 if test $ac_have_func = no
; then
16629 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16630 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16631 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16632 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16633 echo $ECHO_N "(cached) $ECHO_C" >&6
16635 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16636 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16638 # Is the header compilable?
16639 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16640 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16641 cat >conftest.
$ac_ext <<_ACEOF
16644 cat confdefs.h
>>conftest.
$ac_ext
16645 cat >>conftest.
$ac_ext <<_ACEOF
16646 /* end confdefs.h. */
16647 $ac_includes_default
16648 #include <sys/cpustats.h>
16650 rm -f conftest.
$ac_objext
16651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16652 (eval $ac_compile) 2>conftest.er1
16654 grep -v '^ *+' conftest.er1
>conftest.err
16656 cat conftest.err
>&5
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); } &&
16659 { ac_try
='test -z "$ac_c_werror_flag"
16660 || test ! -s conftest.err'
16661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16662 (eval $ac_try) 2>&5
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); }; } &&
16666 { ac_try
='test -s conftest.$ac_objext'
16667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16668 (eval $ac_try) 2>&5
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); }; }; then
16672 ac_header_compiler
=yes
16674 echo "$as_me: failed program was:" >&5
16675 sed 's/^/| /' conftest.
$ac_ext >&5
16677 ac_header_compiler
=no
16679 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16680 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16681 echo "${ECHO_T}$ac_header_compiler" >&6
16683 # Is the header present?
16684 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16685 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16686 cat >conftest.
$ac_ext <<_ACEOF
16689 cat confdefs.h
>>conftest.
$ac_ext
16690 cat >>conftest.
$ac_ext <<_ACEOF
16691 /* end confdefs.h. */
16692 #include <sys/cpustats.h>
16694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16695 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16697 grep -v '^ *+' conftest.er1
>conftest.err
16699 cat conftest.err
>&5
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); } >/dev
/null
; then
16702 if test -s conftest.err
; then
16703 ac_cpp_err
=$ac_c_preproc_warn_flag
16704 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16711 if test -z "$ac_cpp_err"; then
16712 ac_header_preproc
=yes
16714 echo "$as_me: failed program was:" >&5
16715 sed 's/^/| /' conftest.
$ac_ext >&5
16717 ac_header_preproc
=no
16719 rm -f conftest.err conftest.
$ac_ext
16720 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16721 echo "${ECHO_T}$ac_header_preproc" >&6
16723 # So? What about this header?
16724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16726 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16727 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16728 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16729 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16730 ac_header_preproc
=yes
16733 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16734 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16735 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16736 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16737 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16738 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16739 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16740 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16741 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16742 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16743 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16744 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16747 ## ------------------------------------------ ##
16748 ## Report this to the AC_PACKAGE_NAME lists. ##
16749 ## ------------------------------------------ ##
16752 sed "s/^/$as_me: WARNING: /" >&2
16755 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16756 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16757 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16758 echo $ECHO_N "(cached) $ECHO_C" >&6
16760 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
16762 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16763 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16766 if test $ac_cv_header_sys_cpustats_h = yes; then
16767 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
16776 if test $ac_have_func = no
; then
16778 for ac_header
in mach
/mach.h
16780 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16782 echo "$as_me:$LINENO: checking for $ac_header" >&5
16783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16785 echo $ECHO_N "(cached) $ECHO_C" >&6
16787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16790 # Is the header compilable?
16791 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16793 cat >conftest.
$ac_ext <<_ACEOF
16796 cat confdefs.h
>>conftest.
$ac_ext
16797 cat >>conftest.
$ac_ext <<_ACEOF
16798 /* end confdefs.h. */
16799 $ac_includes_default
16800 #include <$ac_header>
16802 rm -f conftest.
$ac_objext
16803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16804 (eval $ac_compile) 2>conftest.er1
16806 grep -v '^ *+' conftest.er1
>conftest.err
16808 cat conftest.err
>&5
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); } &&
16811 { ac_try
='test -z "$ac_c_werror_flag"
16812 || test ! -s conftest.err'
16813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814 (eval $ac_try) 2>&5
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; } &&
16818 { ac_try
='test -s conftest.$ac_objext'
16819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16820 (eval $ac_try) 2>&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); }; }; then
16824 ac_header_compiler
=yes
16826 echo "$as_me: failed program was:" >&5
16827 sed 's/^/| /' conftest.
$ac_ext >&5
16829 ac_header_compiler
=no
16831 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16832 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16833 echo "${ECHO_T}$ac_header_compiler" >&6
16835 # Is the header present?
16836 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16838 cat >conftest.
$ac_ext <<_ACEOF
16841 cat confdefs.h
>>conftest.
$ac_ext
16842 cat >>conftest.
$ac_ext <<_ACEOF
16843 /* end confdefs.h. */
16844 #include <$ac_header>
16846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16847 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16849 grep -v '^ *+' conftest.er1
>conftest.err
16851 cat conftest.err
>&5
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); } >/dev
/null
; then
16854 if test -s conftest.err
; then
16855 ac_cpp_err
=$ac_c_preproc_warn_flag
16856 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16863 if test -z "$ac_cpp_err"; then
16864 ac_header_preproc
=yes
16866 echo "$as_me: failed program was:" >&5
16867 sed 's/^/| /' conftest.
$ac_ext >&5
16869 ac_header_preproc
=no
16871 rm -f conftest.err conftest.
$ac_ext
16872 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16873 echo "${ECHO_T}$ac_header_preproc" >&6
16875 # So? What about this header?
16876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16882 ac_header_preproc
=yes
16885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16888 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16892 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16899 ## ------------------------------------------ ##
16900 ## Report this to the AC_PACKAGE_NAME lists. ##
16901 ## ------------------------------------------ ##
16904 sed "s/^/$as_me: WARNING: /" >&2
16907 echo "$as_me:$LINENO: checking for $ac_header" >&5
16908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16910 echo $ECHO_N "(cached) $ECHO_C" >&6
16912 eval "$as_ac_Header=\$ac_header_preproc"
16914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16919 cat >>confdefs.h
<<_ACEOF
16920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16930 for ac_header
in nlist.h
16932 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16934 echo "$as_me:$LINENO: checking for $ac_header" >&5
16935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16937 echo $ECHO_N "(cached) $ECHO_C" >&6
16939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16942 # Is the header compilable?
16943 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16945 cat >conftest.
$ac_ext <<_ACEOF
16948 cat confdefs.h
>>conftest.
$ac_ext
16949 cat >>conftest.
$ac_ext <<_ACEOF
16950 /* end confdefs.h. */
16951 $ac_includes_default
16952 #include <$ac_header>
16954 rm -f conftest.
$ac_objext
16955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16956 (eval $ac_compile) 2>conftest.er1
16958 grep -v '^ *+' conftest.er1
>conftest.err
16960 cat conftest.err
>&5
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); } &&
16963 { ac_try
='test -z "$ac_c_werror_flag"
16964 || test ! -s conftest.err'
16965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16966 (eval $ac_try) 2>&5
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }; } &&
16970 { ac_try
='test -s conftest.$ac_objext'
16971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16972 (eval $ac_try) 2>&5
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); }; }; then
16976 ac_header_compiler
=yes
16978 echo "$as_me: failed program was:" >&5
16979 sed 's/^/| /' conftest.
$ac_ext >&5
16981 ac_header_compiler
=no
16983 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16984 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16985 echo "${ECHO_T}$ac_header_compiler" >&6
16987 # Is the header present?
16988 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16990 cat >conftest.
$ac_ext <<_ACEOF
16993 cat confdefs.h
>>conftest.
$ac_ext
16994 cat >>conftest.
$ac_ext <<_ACEOF
16995 /* end confdefs.h. */
16996 #include <$ac_header>
16998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16999 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17001 grep -v '^ *+' conftest.er1
>conftest.err
17003 cat conftest.err
>&5
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); } >/dev
/null
; then
17006 if test -s conftest.err
; then
17007 ac_cpp_err
=$ac_c_preproc_warn_flag
17008 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17015 if test -z "$ac_cpp_err"; then
17016 ac_header_preproc
=yes
17018 echo "$as_me: failed program was:" >&5
17019 sed 's/^/| /' conftest.
$ac_ext >&5
17021 ac_header_preproc
=no
17023 rm -f conftest.err conftest.
$ac_ext
17024 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17025 echo "${ECHO_T}$ac_header_preproc" >&6
17027 # So? What about this header?
17028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17030 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17033 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17034 ac_header_preproc
=yes
17037 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17038 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17039 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17040 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17041 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17042 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17043 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17044 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17047 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17048 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17051 ## ------------------------------------------ ##
17052 ## Report this to the AC_PACKAGE_NAME lists. ##
17053 ## ------------------------------------------ ##
17056 sed "s/^/$as_me: WARNING: /" >&2
17059 echo "$as_me:$LINENO: checking for $ac_header" >&5
17060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17062 echo $ECHO_N "(cached) $ECHO_C" >&6
17064 eval "$as_ac_Header=\$ac_header_preproc"
17066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17067 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17071 cat >>confdefs.h
<<_ACEOF
17072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17074 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17075 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
17076 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17077 echo $ECHO_N "(cached) $ECHO_C" >&6
17079 cat >conftest.
$ac_ext <<_ACEOF
17082 cat confdefs.h
>>conftest.
$ac_ext
17083 cat >>conftest.
$ac_ext <<_ACEOF
17084 /* end confdefs.h. */
17090 static struct nlist ac_aggr;
17091 if (ac_aggr.n_un.n_name)
17097 rm -f conftest.
$ac_objext
17098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17099 (eval $ac_compile) 2>conftest.er1
17101 grep -v '^ *+' conftest.er1
>conftest.err
17103 cat conftest.err
>&5
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); } &&
17106 { ac_try
='test -z "$ac_c_werror_flag"
17107 || test ! -s conftest.err'
17108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17109 (eval $ac_try) 2>&5
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); }; } &&
17113 { ac_try
='test -s conftest.$ac_objext'
17114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17115 (eval $ac_try) 2>&5
17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); }; }; then
17119 ac_cv_member_struct_nlist_n_un_n_name
=yes
17121 echo "$as_me: failed program was:" >&5
17122 sed 's/^/| /' conftest.
$ac_ext >&5
17124 cat >conftest.
$ac_ext <<_ACEOF
17127 cat confdefs.h
>>conftest.
$ac_ext
17128 cat >>conftest.
$ac_ext <<_ACEOF
17129 /* end confdefs.h. */
17135 static struct nlist ac_aggr;
17136 if (sizeof ac_aggr.n_un.n_name)
17142 rm -f conftest.
$ac_objext
17143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17144 (eval $ac_compile) 2>conftest.er1
17146 grep -v '^ *+' conftest.er1
>conftest.err
17148 cat conftest.err
>&5
17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); } &&
17151 { ac_try
='test -z "$ac_c_werror_flag"
17152 || test ! -s conftest.err'
17153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17154 (eval $ac_try) 2>&5
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); }; } &&
17158 { ac_try
='test -s conftest.$ac_objext'
17159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17160 (eval $ac_try) 2>&5
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); }; }; then
17164 ac_cv_member_struct_nlist_n_un_n_name
=yes
17166 echo "$as_me: failed program was:" >&5
17167 sed 's/^/| /' conftest.
$ac_ext >&5
17169 ac_cv_member_struct_nlist_n_un_n_name
=no
17171 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17173 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17175 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17176 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
17177 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17179 cat >>confdefs.h
<<_ACEOF
17180 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17184 cat >>confdefs.h
<<\_ACEOF
17185 #define NLIST_NAME_UNION 1
17199 # Some definitions of getloadavg require that the program be installed setgid.
17200 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17201 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
17202 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17203 echo $ECHO_N "(cached) $ECHO_C" >&6
17205 cat >conftest.
$ac_ext <<_ACEOF
17208 cat confdefs.h
>>conftest.
$ac_ext
17209 cat >>conftest.
$ac_ext <<_ACEOF
17210 /* end confdefs.h. */
17211 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17212 #ifdef LDAV_PRIVILEGED
17213 Yowza Am I SETGID yet
17216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17217 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
17218 ac_cv_func_getloadavg_setgid
=yes
17220 ac_cv_func_getloadavg_setgid
=no
17225 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17226 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
17227 if test $ac_cv_func_getloadavg_setgid = yes; then
17230 cat >>confdefs.h
<<\_ACEOF
17231 #define GETLOADAVG_PRIVILEGED 1
17238 if test $ac_cv_func_getloadavg_setgid = yes; then
17239 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17240 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
17241 if test "${ac_cv_group_kmem+set}" = set; then
17242 echo $ECHO_N "(cached) $ECHO_C" >&6
17244 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17245 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
17246 # If we got an error (system does not support symlinks), try without -L.
17247 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
17248 ac_cv_group_kmem
=`echo $ac_ls_output \
17249 | sed -ne 's/[ ][ ]*/ /g;
17250 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17254 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17255 echo "${ECHO_T}$ac_cv_group_kmem" >&6
17256 KMEM_GROUP
=$ac_cv_group_kmem
17258 if test "x$ac_save_LIBS" = x
; then
17259 GETLOADAVG_LIBS
=$LIBS
17261 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17267 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17268 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17269 if test "${ac_cv_sys_largefile_source+set}" = set; then
17270 echo $ECHO_N "(cached) $ECHO_C" >&6
17273 ac_cv_sys_largefile_source
=no
17274 cat >conftest.
$ac_ext <<_ACEOF
17277 cat confdefs.h
>>conftest.
$ac_ext
17278 cat >>conftest.
$ac_ext <<_ACEOF
17279 /* end confdefs.h. */
17289 rm -f conftest.
$ac_objext
17290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17291 (eval $ac_compile) 2>conftest.er1
17293 grep -v '^ *+' conftest.er1
>conftest.err
17295 cat conftest.err
>&5
17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 (exit $ac_status); } &&
17298 { ac_try
='test -z "$ac_c_werror_flag"
17299 || test ! -s conftest.err'
17300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17301 (eval $ac_try) 2>&5
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); }; } &&
17305 { ac_try
='test -s conftest.$ac_objext'
17306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17307 (eval $ac_try) 2>&5
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); }; }; then
17313 echo "$as_me: failed program was:" >&5
17314 sed 's/^/| /' conftest.
$ac_ext >&5
17317 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17318 cat >conftest.
$ac_ext <<_ACEOF
17321 cat confdefs.h
>>conftest.
$ac_ext
17322 cat >>conftest.
$ac_ext <<_ACEOF
17323 /* end confdefs.h. */
17324 #define _LARGEFILE_SOURCE 1
17334 rm -f conftest.
$ac_objext
17335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17336 (eval $ac_compile) 2>conftest.er1
17338 grep -v '^ *+' conftest.er1
>conftest.err
17340 cat conftest.err
>&5
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); } &&
17343 { ac_try
='test -z "$ac_c_werror_flag"
17344 || test ! -s conftest.err'
17345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17346 (eval $ac_try) 2>&5
17348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349 (exit $ac_status); }; } &&
17350 { ac_try
='test -s conftest.$ac_objext'
17351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17352 (eval $ac_try) 2>&5
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); }; }; then
17356 ac_cv_sys_largefile_source
=1; break
17358 echo "$as_me: failed program was:" >&5
17359 sed 's/^/| /' conftest.
$ac_ext >&5
17362 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17366 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17367 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17368 if test "$ac_cv_sys_largefile_source" != no
; then
17370 cat >>confdefs.h
<<_ACEOF
17371 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17377 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17378 # in glibc 2.1.3, but that breaks too many other things.
17379 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17380 echo "$as_me:$LINENO: checking for fseeko" >&5
17381 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17382 if test "${ac_cv_func_fseeko+set}" = set; then
17383 echo $ECHO_N "(cached) $ECHO_C" >&6
17385 cat >conftest.
$ac_ext <<_ACEOF
17388 cat confdefs.h
>>conftest.
$ac_ext
17389 cat >>conftest.
$ac_ext <<_ACEOF
17390 /* end confdefs.h. */
17395 return fseeko && fseeko (stdin, 0, 0);
17400 rm -f conftest.
$ac_objext conftest
$ac_exeext
17401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17402 (eval $ac_link) 2>conftest.er1
17404 grep -v '^ *+' conftest.er1
>conftest.err
17406 cat conftest.err
>&5
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); } &&
17409 { ac_try
='test -z "$ac_c_werror_flag"
17410 || test ! -s conftest.err'
17411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17412 (eval $ac_try) 2>&5
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); }; } &&
17416 { ac_try
='test -s conftest$ac_exeext'
17417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17418 (eval $ac_try) 2>&5
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); }; }; then
17422 ac_cv_func_fseeko
=yes
17424 echo "$as_me: failed program was:" >&5
17425 sed 's/^/| /' conftest.
$ac_ext >&5
17427 ac_cv_func_fseeko
=no
17429 rm -f conftest.err conftest.
$ac_objext \
17430 conftest
$ac_exeext conftest.
$ac_ext
17432 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17433 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17434 if test $ac_cv_func_fseeko = yes; then
17436 cat >>confdefs.h
<<\_ACEOF
17437 #define HAVE_FSEEKO 1
17443 # Configure getopt.
17444 # getopt.m4 serial 10
17446 # The getopt module assume you want GNU getopt, with getopt_long etc,
17447 # rather than vanilla POSIX getopt. This means your your code should
17448 # always include <getopt.h> for the getopt prototypes.
17460 # Prerequisites of lib/getopt*.
17467 for ac_header
in getopt.h
17469 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17471 echo "$as_me:$LINENO: checking for $ac_header" >&5
17472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17474 echo $ECHO_N "(cached) $ECHO_C" >&6
17476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17479 # Is the header compilable?
17480 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17482 cat >conftest.
$ac_ext <<_ACEOF
17485 cat confdefs.h
>>conftest.
$ac_ext
17486 cat >>conftest.
$ac_ext <<_ACEOF
17487 /* end confdefs.h. */
17488 $ac_includes_default
17489 #include <$ac_header>
17491 rm -f conftest.
$ac_objext
17492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17493 (eval $ac_compile) 2>conftest.er1
17495 grep -v '^ *+' conftest.er1
>conftest.err
17497 cat conftest.err
>&5
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); } &&
17500 { ac_try
='test -z "$ac_c_werror_flag"
17501 || test ! -s conftest.err'
17502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17503 (eval $ac_try) 2>&5
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); }; } &&
17507 { ac_try
='test -s conftest.$ac_objext'
17508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509 (eval $ac_try) 2>&5
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; }; then
17513 ac_header_compiler
=yes
17515 echo "$as_me: failed program was:" >&5
17516 sed 's/^/| /' conftest.
$ac_ext >&5
17518 ac_header_compiler
=no
17520 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17521 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17522 echo "${ECHO_T}$ac_header_compiler" >&6
17524 # Is the header present?
17525 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17527 cat >conftest.
$ac_ext <<_ACEOF
17530 cat confdefs.h
>>conftest.
$ac_ext
17531 cat >>conftest.
$ac_ext <<_ACEOF
17532 /* end confdefs.h. */
17533 #include <$ac_header>
17535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17536 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17538 grep -v '^ *+' conftest.er1
>conftest.err
17540 cat conftest.err
>&5
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); } >/dev
/null
; then
17543 if test -s conftest.err
; then
17544 ac_cpp_err
=$ac_c_preproc_warn_flag
17545 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17552 if test -z "$ac_cpp_err"; then
17553 ac_header_preproc
=yes
17555 echo "$as_me: failed program was:" >&5
17556 sed 's/^/| /' conftest.
$ac_ext >&5
17558 ac_header_preproc
=no
17560 rm -f conftest.err conftest.
$ac_ext
17561 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17562 echo "${ECHO_T}$ac_header_preproc" >&6
17564 # So? What about this header?
17565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17570 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17571 ac_header_preproc
=yes
17574 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17575 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17576 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17577 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17578 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17579 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17580 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17581 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17584 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17585 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17588 ## ------------------------------------------ ##
17589 ## Report this to the AC_PACKAGE_NAME lists. ##
17590 ## ------------------------------------------ ##
17593 sed "s/^/$as_me: WARNING: /" >&2
17596 echo "$as_me:$LINENO: checking for $ac_header" >&5
17597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17599 echo $ECHO_N "(cached) $ECHO_C" >&6
17601 eval "$as_ac_Header=\$ac_header_preproc"
17603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17608 cat >>confdefs.h
<<_ACEOF
17609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17618 if test -z "$GETOPT_H"; then
17620 for ac_func
in getopt_long_only
17622 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17623 echo "$as_me:$LINENO: checking for $ac_func" >&5
17624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17625 if eval "test \"\${$as_ac_var+set}\" = set"; then
17626 echo $ECHO_N "(cached) $ECHO_C" >&6
17628 cat >conftest.
$ac_ext <<_ACEOF
17631 cat confdefs.h
>>conftest.
$ac_ext
17632 cat >>conftest.
$ac_ext <<_ACEOF
17633 /* end confdefs.h. */
17634 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17636 #define $ac_func innocuous_$ac_func
17638 /* System header to define __stub macros and hopefully few prototypes,
17639 which can conflict with char $ac_func (); below.
17640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17641 <limits.h> exists even on freestanding compilers. */
17644 # include <limits.h>
17646 # include <assert.h>
17651 /* Override any gcc2 internal prototype to avoid an error. */
17656 /* We use char because int might match the return type of a gcc2
17657 builtin and then its argument prototype would still apply. */
17659 /* The GNU C library defines this for functions which it implements
17660 to always fail with ENOSYS. Some functions are actually named
17661 something starting with __ and the normal name is an alias. */
17662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17665 char (*f) () = $ac_func;
17674 return f != $ac_func;
17679 rm -f conftest.
$ac_objext conftest
$ac_exeext
17680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17681 (eval $ac_link) 2>conftest.er1
17683 grep -v '^ *+' conftest.er1
>conftest.err
17685 cat conftest.err
>&5
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); } &&
17688 { ac_try
='test -z "$ac_c_werror_flag"
17689 || test ! -s conftest.err'
17690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17691 (eval $ac_try) 2>&5
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); }; } &&
17695 { ac_try
='test -s conftest$ac_exeext'
17696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17697 (eval $ac_try) 2>&5
17699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700 (exit $ac_status); }; }; then
17701 eval "$as_ac_var=yes"
17703 echo "$as_me: failed program was:" >&5
17704 sed 's/^/| /' conftest.
$ac_ext >&5
17706 eval "$as_ac_var=no"
17708 rm -f conftest.err conftest.
$ac_objext \
17709 conftest
$ac_exeext conftest.
$ac_ext
17711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17712 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17713 if test `eval echo '${'$as_ac_var'}'` = yes; then
17714 cat >>confdefs.h
<<_ACEOF
17715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17725 if test -z "$GETOPT_H"; then
17726 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17727 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17728 if test "${ac_cv_have_decl_optreset+set}" = set; then
17729 echo $ECHO_N "(cached) $ECHO_C" >&6
17731 cat >conftest.
$ac_ext <<_ACEOF
17734 cat confdefs.h
>>conftest.
$ac_ext
17735 cat >>conftest.
$ac_ext <<_ACEOF
17736 /* end confdefs.h. */
17737 #include <getopt.h>
17743 char *p = (char *) optreset;
17750 rm -f conftest.
$ac_objext
17751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17752 (eval $ac_compile) 2>conftest.er1
17754 grep -v '^ *+' conftest.er1
>conftest.err
17756 cat conftest.err
>&5
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); } &&
17759 { ac_try
='test -z "$ac_c_werror_flag"
17760 || test ! -s conftest.err'
17761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762 (eval $ac_try) 2>&5
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); }; } &&
17766 { ac_try
='test -s conftest.$ac_objext'
17767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17768 (eval $ac_try) 2>&5
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; }; then
17772 ac_cv_have_decl_optreset
=yes
17774 echo "$as_me: failed program was:" >&5
17775 sed 's/^/| /' conftest.
$ac_ext >&5
17777 ac_cv_have_decl_optreset
=no
17779 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17781 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17782 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17783 if test $ac_cv_have_decl_optreset = yes; then
17789 if test -z "$GETOPT_H"; then
17790 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17791 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17792 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17793 echo $ECHO_N "(cached) $ECHO_C" >&6
17795 if test "$cross_compiling" = yes; then
17796 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17797 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17798 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17799 echo $ECHO_N "(cached) $ECHO_C" >&6
17801 cat >conftest.
$ac_ext <<_ACEOF
17804 cat confdefs.h
>>conftest.
$ac_ext
17805 cat >>conftest.
$ac_ext <<_ACEOF
17806 /* end confdefs.h. */
17807 #include <getopt.h>
17812 #ifndef getopt_clip
17813 char *p = (char *) getopt_clip;
17820 rm -f conftest.
$ac_objext
17821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17822 (eval $ac_compile) 2>conftest.er1
17824 grep -v '^ *+' conftest.er1
>conftest.err
17826 cat conftest.err
>&5
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); } &&
17829 { ac_try
='test -z "$ac_c_werror_flag"
17830 || test ! -s conftest.err'
17831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17832 (eval $ac_try) 2>&5
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); }; } &&
17836 { ac_try
='test -s conftest.$ac_objext'
17837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17838 (eval $ac_try) 2>&5
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); }; }; then
17842 ac_cv_have_decl_getopt_clip
=yes
17844 echo "$as_me: failed program was:" >&5
17845 sed 's/^/| /' conftest.
$ac_ext >&5
17847 ac_cv_have_decl_getopt_clip
=no
17849 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17851 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17852 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17853 if test $ac_cv_have_decl_getopt_clip = yes; then
17854 gl_cv_func_gnu_getopt
=no
17856 gl_cv_func_gnu_getopt
=yes
17860 cat >conftest.
$ac_ext <<_ACEOF
17863 cat confdefs.h
>>conftest.
$ac_ext
17864 cat >>conftest.
$ac_ext <<_ACEOF
17865 /* end confdefs.h. */
17866 #include <getopt.h>
17872 myargv[0] = "conftest";
17875 return getopt (2, myargv, "+a") != '?';
17881 rm -f conftest
$ac_exeext
17882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17883 (eval $ac_link) 2>&5
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888 (eval $ac_try) 2>&5
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; }; then
17892 gl_cv_func_gnu_getopt
=yes
17894 echo "$as_me: program exited with status $ac_status" >&5
17895 echo "$as_me: failed program was:" >&5
17896 sed 's/^/| /' conftest.
$ac_ext >&5
17898 ( exit $ac_status )
17899 gl_cv_func_gnu_getopt
=no
17901 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17904 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17905 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17906 if test "$gl_cv_func_gnu_getopt" = "no"; then
17913 if test -n "$GETOPT_H"; then
17918 cat >>confdefs.h
<<\_ACEOF
17919 #define __GETOPT_PREFIX rpl_
17925 GETOPTOBJS
='getopt.o getopt1.o'
17932 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17933 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17934 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17935 echo $ECHO_N "(cached) $ECHO_C" >&6
17937 # Use it with a single arg.
17938 cat >conftest.
$ac_ext <<_ACEOF
17941 cat confdefs.h
>>conftest.
$ac_ext
17942 cat >>conftest.
$ac_ext <<_ACEOF
17943 /* end confdefs.h. */
17944 $ac_includes_default
17953 rm -f conftest.
$ac_objext
17954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17955 (eval $ac_compile) 2>conftest.er1
17957 grep -v '^ *+' conftest.er1
>conftest.err
17959 cat conftest.err
>&5
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); } &&
17962 { ac_try
='test -z "$ac_c_werror_flag"
17963 || test ! -s conftest.err'
17964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17965 (eval $ac_try) 2>&5
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); }; } &&
17969 { ac_try
='test -s conftest.$ac_objext'
17970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17971 (eval $ac_try) 2>&5
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); }; }; then
17975 ac_cv_func_getpgrp_void
=no
17977 echo "$as_me: failed program was:" >&5
17978 sed 's/^/| /' conftest.
$ac_ext >&5
17980 ac_cv_func_getpgrp_void
=yes
17982 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17985 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17986 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17987 if test $ac_cv_func_getpgrp_void = yes; then
17989 cat >>confdefs.h
<<\_ACEOF
17990 #define GETPGRP_VOID 1
17997 for ac_func
in strftime
17999 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18000 echo "$as_me:$LINENO: checking for $ac_func" >&5
18001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18002 if eval "test \"\${$as_ac_var+set}\" = set"; then
18003 echo $ECHO_N "(cached) $ECHO_C" >&6
18005 cat >conftest.
$ac_ext <<_ACEOF
18008 cat confdefs.h
>>conftest.
$ac_ext
18009 cat >>conftest.
$ac_ext <<_ACEOF
18010 /* end confdefs.h. */
18011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18013 #define $ac_func innocuous_$ac_func
18015 /* System header to define __stub macros and hopefully few prototypes,
18016 which can conflict with char $ac_func (); below.
18017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18018 <limits.h> exists even on freestanding compilers. */
18021 # include <limits.h>
18023 # include <assert.h>
18028 /* Override any gcc2 internal prototype to avoid an error. */
18033 /* We use char because int might match the return type of a gcc2
18034 builtin and then its argument prototype would still apply. */
18036 /* The GNU C library defines this for functions which it implements
18037 to always fail with ENOSYS. Some functions are actually named
18038 something starting with __ and the normal name is an alias. */
18039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18042 char (*f) () = $ac_func;
18051 return f != $ac_func;
18056 rm -f conftest.
$ac_objext conftest
$ac_exeext
18057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18058 (eval $ac_link) 2>conftest.er1
18060 grep -v '^ *+' conftest.er1
>conftest.err
18062 cat conftest.err
>&5
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); } &&
18065 { ac_try
='test -z "$ac_c_werror_flag"
18066 || test ! -s conftest.err'
18067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18068 (eval $ac_try) 2>&5
18070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); }; } &&
18072 { ac_try
='test -s conftest$ac_exeext'
18073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18074 (eval $ac_try) 2>&5
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); }; }; then
18078 eval "$as_ac_var=yes"
18080 echo "$as_me: failed program was:" >&5
18081 sed 's/^/| /' conftest.
$ac_ext >&5
18083 eval "$as_ac_var=no"
18085 rm -f conftest.err conftest.
$ac_objext \
18086 conftest
$ac_exeext conftest.
$ac_ext
18088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18089 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18090 if test `eval echo '${'$as_ac_var'}'` = yes; then
18091 cat >>confdefs.h
<<_ACEOF
18092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18096 # strftime is in -lintl on SCO UNIX.
18097 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18098 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
18099 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18100 echo $ECHO_N "(cached) $ECHO_C" >&6
18102 ac_check_lib_save_LIBS
=$LIBS
18103 LIBS
="-lintl $LIBS"
18104 cat >conftest.
$ac_ext <<_ACEOF
18107 cat confdefs.h
>>conftest.
$ac_ext
18108 cat >>conftest.
$ac_ext <<_ACEOF
18109 /* end confdefs.h. */
18111 /* Override any gcc2 internal prototype to avoid an error. */
18115 /* We use char because int might match the return type of a gcc2
18116 builtin and then its argument prototype would still apply. */
18126 rm -f conftest.
$ac_objext conftest
$ac_exeext
18127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18128 (eval $ac_link) 2>conftest.er1
18130 grep -v '^ *+' conftest.er1
>conftest.err
18132 cat conftest.err
>&5
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); } &&
18135 { ac_try
='test -z "$ac_c_werror_flag"
18136 || test ! -s conftest.err'
18137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18138 (eval $ac_try) 2>&5
18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141 (exit $ac_status); }; } &&
18142 { ac_try
='test -s conftest$ac_exeext'
18143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18144 (eval $ac_try) 2>&5
18146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147 (exit $ac_status); }; }; then
18148 ac_cv_lib_intl_strftime
=yes
18150 echo "$as_me: failed program was:" >&5
18151 sed 's/^/| /' conftest.
$ac_ext >&5
18153 ac_cv_lib_intl_strftime
=no
18155 rm -f conftest.err conftest.
$ac_objext \
18156 conftest
$ac_exeext conftest.
$ac_ext
18157 LIBS
=$ac_check_lib_save_LIBS
18159 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18160 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18161 if test $ac_cv_lib_intl_strftime = yes; then
18162 cat >>confdefs.h
<<\_ACEOF
18163 #define HAVE_STRFTIME 1
18166 LIBS
="-lintl $LIBS"
18175 for ac_func
in grantpt
18177 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18178 echo "$as_me:$LINENO: checking for $ac_func" >&5
18179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18180 if eval "test \"\${$as_ac_var+set}\" = set"; then
18181 echo $ECHO_N "(cached) $ECHO_C" >&6
18183 cat >conftest.
$ac_ext <<_ACEOF
18186 cat confdefs.h
>>conftest.
$ac_ext
18187 cat >>conftest.
$ac_ext <<_ACEOF
18188 /* end confdefs.h. */
18189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18191 #define $ac_func innocuous_$ac_func
18193 /* System header to define __stub macros and hopefully few prototypes,
18194 which can conflict with char $ac_func (); below.
18195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18196 <limits.h> exists even on freestanding compilers. */
18199 # include <limits.h>
18201 # include <assert.h>
18206 /* Override any gcc2 internal prototype to avoid an error. */
18211 /* We use char because int might match the return type of a gcc2
18212 builtin and then its argument prototype would still apply. */
18214 /* The GNU C library defines this for functions which it implements
18215 to always fail with ENOSYS. Some functions are actually named
18216 something starting with __ and the normal name is an alias. */
18217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18220 char (*f) () = $ac_func;
18229 return f != $ac_func;
18234 rm -f conftest.
$ac_objext conftest
$ac_exeext
18235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18236 (eval $ac_link) 2>conftest.er1
18238 grep -v '^ *+' conftest.er1
>conftest.err
18240 cat conftest.err
>&5
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); } &&
18243 { ac_try
='test -z "$ac_c_werror_flag"
18244 || test ! -s conftest.err'
18245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18246 (eval $ac_try) 2>&5
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); }; } &&
18250 { ac_try
='test -s conftest$ac_exeext'
18251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18252 (eval $ac_try) 2>&5
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); }; }; then
18256 eval "$as_ac_var=yes"
18258 echo "$as_me: failed program was:" >&5
18259 sed 's/^/| /' conftest.
$ac_ext >&5
18261 eval "$as_ac_var=no"
18263 rm -f conftest.err conftest.
$ac_objext \
18264 conftest
$ac_exeext conftest.
$ac_ext
18266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18267 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18268 if test `eval echo '${'$as_ac_var'}'` = yes; then
18269 cat >>confdefs.h
<<_ACEOF
18270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18277 # PTY-related GNU extensions.
18279 for ac_func
in getpt
18281 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18282 echo "$as_me:$LINENO: checking for $ac_func" >&5
18283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18284 if eval "test \"\${$as_ac_var+set}\" = set"; then
18285 echo $ECHO_N "(cached) $ECHO_C" >&6
18287 cat >conftest.
$ac_ext <<_ACEOF
18290 cat confdefs.h
>>conftest.
$ac_ext
18291 cat >>conftest.
$ac_ext <<_ACEOF
18292 /* end confdefs.h. */
18293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18295 #define $ac_func innocuous_$ac_func
18297 /* System header to define __stub macros and hopefully few prototypes,
18298 which can conflict with char $ac_func (); below.
18299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18300 <limits.h> exists even on freestanding compilers. */
18303 # include <limits.h>
18305 # include <assert.h>
18310 /* Override any gcc2 internal prototype to avoid an error. */
18315 /* We use char because int might match the return type of a gcc2
18316 builtin and then its argument prototype would still apply. */
18318 /* The GNU C library defines this for functions which it implements
18319 to always fail with ENOSYS. Some functions are actually named
18320 something starting with __ and the normal name is an alias. */
18321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18324 char (*f) () = $ac_func;
18333 return f != $ac_func;
18338 rm -f conftest.
$ac_objext conftest
$ac_exeext
18339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18340 (eval $ac_link) 2>conftest.er1
18342 grep -v '^ *+' conftest.er1
>conftest.err
18344 cat conftest.err
>&5
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); } &&
18347 { ac_try
='test -z "$ac_c_werror_flag"
18348 || test ! -s conftest.err'
18349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18350 (eval $ac_try) 2>&5
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); }; } &&
18354 { ac_try
='test -s conftest$ac_exeext'
18355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18356 (eval $ac_try) 2>&5
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); }; }; then
18360 eval "$as_ac_var=yes"
18362 echo "$as_me: failed program was:" >&5
18363 sed 's/^/| /' conftest.
$ac_ext >&5
18365 eval "$as_ac_var=no"
18367 rm -f conftest.err conftest.
$ac_objext \
18368 conftest
$ac_exeext conftest.
$ac_ext
18370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18371 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18372 if test `eval echo '${'$as_ac_var'}'` = yes; then
18373 cat >>confdefs.h
<<_ACEOF
18374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18381 # Check this now, so that we will NOT find the above functions in ncurses.
18382 # That is because we have not set up to link ncurses in lib-src.
18383 # It's better to believe a function is not available
18384 # than to expect to find it in ncurses.
18386 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18387 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18388 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18389 echo $ECHO_N "(cached) $ECHO_C" >&6
18391 ac_check_lib_save_LIBS
=$LIBS
18392 LIBS
="-lncurses $LIBS"
18393 cat >conftest.
$ac_ext <<_ACEOF
18396 cat confdefs.h
>>conftest.
$ac_ext
18397 cat >>conftest.
$ac_ext <<_ACEOF
18398 /* end confdefs.h. */
18400 /* Override any gcc2 internal prototype to avoid an error. */
18404 /* We use char because int might match the return type of a gcc2
18405 builtin and then its argument prototype would still apply. */
18415 rm -f conftest.
$ac_objext conftest
$ac_exeext
18416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18417 (eval $ac_link) 2>conftest.er1
18419 grep -v '^ *+' conftest.er1
>conftest.err
18421 cat conftest.err
>&5
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); } &&
18424 { ac_try
='test -z "$ac_c_werror_flag"
18425 || test ! -s conftest.err'
18426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18427 (eval $ac_try) 2>&5
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); }; } &&
18431 { ac_try
='test -s conftest$ac_exeext'
18432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18433 (eval $ac_try) 2>&5
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); }; }; then
18437 ac_cv_lib_ncurses_tparm
=yes
18439 echo "$as_me: failed program was:" >&5
18440 sed 's/^/| /' conftest.
$ac_ext >&5
18442 ac_cv_lib_ncurses_tparm
=no
18444 rm -f conftest.err conftest.
$ac_objext \
18445 conftest
$ac_exeext conftest.
$ac_ext
18446 LIBS
=$ac_check_lib_save_LIBS
18448 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18449 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18450 if test $ac_cv_lib_ncurses_tparm = yes; then
18451 cat >>confdefs.h
<<_ACEOF
18452 #define HAVE_LIBNCURSES 1
18455 LIBS
="-lncurses $LIBS"
18460 # Do we need the Hesiod library to provide the support routines?
18461 if test "$with_hesiod" = yes ; then
18462 # Don't set $LIBS here -- see comments above.
18464 echo "$as_me:$LINENO: checking for res_send" >&5
18465 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
18466 if test "${ac_cv_func_res_send+set}" = set; then
18467 echo $ECHO_N "(cached) $ECHO_C" >&6
18469 cat >conftest.
$ac_ext <<_ACEOF
18472 cat confdefs.h
>>conftest.
$ac_ext
18473 cat >>conftest.
$ac_ext <<_ACEOF
18474 /* end confdefs.h. */
18475 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18477 #define res_send innocuous_res_send
18479 /* System header to define __stub macros and hopefully few prototypes,
18480 which can conflict with char res_send (); below.
18481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18482 <limits.h> exists even on freestanding compilers. */
18485 # include <limits.h>
18487 # include <assert.h>
18492 /* Override any gcc2 internal prototype to avoid an error. */
18497 /* We use char because int might match the return type of a gcc2
18498 builtin and then its argument prototype would still apply. */
18500 /* The GNU C library defines this for functions which it implements
18501 to always fail with ENOSYS. Some functions are actually named
18502 something starting with __ and the normal name is an alias. */
18503 #if defined (__stub_res_send) || defined (__stub___res_send)
18506 char (*f) () = res_send;
18515 return f != res_send;
18520 rm -f conftest.
$ac_objext conftest
$ac_exeext
18521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18522 (eval $ac_link) 2>conftest.er1
18524 grep -v '^ *+' conftest.er1
>conftest.err
18526 cat conftest.err
>&5
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); } &&
18529 { ac_try
='test -z "$ac_c_werror_flag"
18530 || test ! -s conftest.err'
18531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18532 (eval $ac_try) 2>&5
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); }; } &&
18536 { ac_try
='test -s conftest$ac_exeext'
18537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18538 (eval $ac_try) 2>&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); }; }; then
18542 ac_cv_func_res_send
=yes
18544 echo "$as_me: failed program was:" >&5
18545 sed 's/^/| /' conftest.
$ac_ext >&5
18547 ac_cv_func_res_send
=no
18549 rm -f conftest.err conftest.
$ac_objext \
18550 conftest
$ac_exeext conftest.
$ac_ext
18552 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18553 echo "${ECHO_T}$ac_cv_func_res_send" >&6
18554 if test $ac_cv_func_res_send = yes; then
18557 echo "$as_me:$LINENO: checking for __res_send" >&5
18558 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18559 if test "${ac_cv_func___res_send+set}" = set; then
18560 echo $ECHO_N "(cached) $ECHO_C" >&6
18562 cat >conftest.
$ac_ext <<_ACEOF
18565 cat confdefs.h
>>conftest.
$ac_ext
18566 cat >>conftest.
$ac_ext <<_ACEOF
18567 /* end confdefs.h. */
18568 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18570 #define __res_send innocuous___res_send
18572 /* System header to define __stub macros and hopefully few prototypes,
18573 which can conflict with char __res_send (); below.
18574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18575 <limits.h> exists even on freestanding compilers. */
18578 # include <limits.h>
18580 # include <assert.h>
18585 /* Override any gcc2 internal prototype to avoid an error. */
18590 /* We use char because int might match the return type of a gcc2
18591 builtin and then its argument prototype would still apply. */
18592 char __res_send ();
18593 /* The GNU C library defines this for functions which it implements
18594 to always fail with ENOSYS. Some functions are actually named
18595 something starting with __ and the normal name is an alias. */
18596 #if defined (__stub___res_send) || defined (__stub_____res_send)
18599 char (*f) () = __res_send;
18608 return f != __res_send;
18613 rm -f conftest.
$ac_objext conftest
$ac_exeext
18614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18615 (eval $ac_link) 2>conftest.er1
18617 grep -v '^ *+' conftest.er1
>conftest.err
18619 cat conftest.err
>&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } &&
18622 { ac_try
='test -z "$ac_c_werror_flag"
18623 || test ! -s conftest.err'
18624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18625 (eval $ac_try) 2>&5
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); }; } &&
18629 { ac_try
='test -s conftest$ac_exeext'
18630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18631 (eval $ac_try) 2>&5
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); }; }; then
18635 ac_cv_func___res_send
=yes
18637 echo "$as_me: failed program was:" >&5
18638 sed 's/^/| /' conftest.
$ac_ext >&5
18640 ac_cv_func___res_send
=no
18642 rm -f conftest.err conftest.
$ac_objext \
18643 conftest
$ac_exeext conftest.
$ac_ext
18645 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18646 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18647 if test $ac_cv_func___res_send = yes; then
18650 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18651 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18652 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18653 echo $ECHO_N "(cached) $ECHO_C" >&6
18655 ac_check_lib_save_LIBS
=$LIBS
18656 LIBS
="-lresolv $LIBS"
18657 cat >conftest.
$ac_ext <<_ACEOF
18660 cat confdefs.h
>>conftest.
$ac_ext
18661 cat >>conftest.
$ac_ext <<_ACEOF
18662 /* end confdefs.h. */
18664 /* Override any gcc2 internal prototype to avoid an error. */
18668 /* We use char because int might match the return type of a gcc2
18669 builtin and then its argument prototype would still apply. */
18679 rm -f conftest.
$ac_objext conftest
$ac_exeext
18680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18681 (eval $ac_link) 2>conftest.er1
18683 grep -v '^ *+' conftest.er1
>conftest.err
18685 cat conftest.err
>&5
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); } &&
18688 { ac_try
='test -z "$ac_c_werror_flag"
18689 || test ! -s conftest.err'
18690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18691 (eval $ac_try) 2>&5
18693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694 (exit $ac_status); }; } &&
18695 { ac_try
='test -s conftest$ac_exeext'
18696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18697 (eval $ac_try) 2>&5
18699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700 (exit $ac_status); }; }; then
18701 ac_cv_lib_resolv_res_send
=yes
18703 echo "$as_me: failed program was:" >&5
18704 sed 's/^/| /' conftest.
$ac_ext >&5
18706 ac_cv_lib_resolv_res_send
=no
18708 rm -f conftest.err conftest.
$ac_objext \
18709 conftest
$ac_exeext conftest.
$ac_ext
18710 LIBS
=$ac_check_lib_save_LIBS
18712 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18713 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18714 if test $ac_cv_lib_resolv_res_send = yes; then
18717 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18718 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18719 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18720 echo $ECHO_N "(cached) $ECHO_C" >&6
18722 ac_check_lib_save_LIBS
=$LIBS
18723 LIBS
="-lresolv $LIBS"
18724 cat >conftest.
$ac_ext <<_ACEOF
18727 cat confdefs.h
>>conftest.
$ac_ext
18728 cat >>conftest.
$ac_ext <<_ACEOF
18729 /* end confdefs.h. */
18731 /* Override any gcc2 internal prototype to avoid an error. */
18735 /* We use char because int might match the return type of a gcc2
18736 builtin and then its argument prototype would still apply. */
18737 char __res_send ();
18746 rm -f conftest.
$ac_objext conftest
$ac_exeext
18747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18748 (eval $ac_link) 2>conftest.er1
18750 grep -v '^ *+' conftest.er1
>conftest.err
18752 cat conftest.err
>&5
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); } &&
18755 { ac_try
='test -z "$ac_c_werror_flag"
18756 || test ! -s conftest.err'
18757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18758 (eval $ac_try) 2>&5
18760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761 (exit $ac_status); }; } &&
18762 { ac_try
='test -s conftest$ac_exeext'
18763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18764 (eval $ac_try) 2>&5
18766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767 (exit $ac_status); }; }; then
18768 ac_cv_lib_resolv___res_send
=yes
18770 echo "$as_me: failed program was:" >&5
18771 sed 's/^/| /' conftest.
$ac_ext >&5
18773 ac_cv_lib_resolv___res_send
=no
18775 rm -f conftest.err conftest.
$ac_objext \
18776 conftest
$ac_exeext conftest.
$ac_ext
18777 LIBS
=$ac_check_lib_save_LIBS
18779 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18780 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18781 if test $ac_cv_lib_resolv___res_send = yes; then
18791 if test "$resolv" = yes ; then
18794 cat >>confdefs.h
<<\_ACEOF
18795 #define HAVE_LIBRESOLV 1
18801 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18802 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18803 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18804 echo $ECHO_N "(cached) $ECHO_C" >&6
18806 cat >conftest.
$ac_ext <<_ACEOF
18809 cat confdefs.h
>>conftest.
$ac_ext
18810 cat >>conftest.
$ac_ext <<_ACEOF
18811 /* end confdefs.h. */
18812 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18814 #define hes_getmailhost innocuous_hes_getmailhost
18816 /* System header to define __stub macros and hopefully few prototypes,
18817 which can conflict with char hes_getmailhost (); below.
18818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18819 <limits.h> exists even on freestanding compilers. */
18822 # include <limits.h>
18824 # include <assert.h>
18827 #undef hes_getmailhost
18829 /* Override any gcc2 internal prototype to avoid an error. */
18834 /* We use char because int might match the return type of a gcc2
18835 builtin and then its argument prototype would still apply. */
18836 char hes_getmailhost ();
18837 /* The GNU C library defines this for functions which it implements
18838 to always fail with ENOSYS. Some functions are actually named
18839 something starting with __ and the normal name is an alias. */
18840 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18843 char (*f) () = hes_getmailhost;
18852 return f != hes_getmailhost;
18857 rm -f conftest.
$ac_objext conftest
$ac_exeext
18858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18859 (eval $ac_link) 2>conftest.er1
18861 grep -v '^ *+' conftest.er1
>conftest.err
18863 cat conftest.err
>&5
18864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); } &&
18866 { ac_try
='test -z "$ac_c_werror_flag"
18867 || test ! -s conftest.err'
18868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18869 (eval $ac_try) 2>&5
18871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); }; } &&
18873 { ac_try
='test -s conftest$ac_exeext'
18874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18875 (eval $ac_try) 2>&5
18877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878 (exit $ac_status); }; }; then
18879 ac_cv_func_hes_getmailhost
=yes
18881 echo "$as_me: failed program was:" >&5
18882 sed 's/^/| /' conftest.
$ac_ext >&5
18884 ac_cv_func_hes_getmailhost
=no
18886 rm -f conftest.err conftest.
$ac_objext \
18887 conftest
$ac_exeext conftest.
$ac_ext
18889 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18890 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18891 if test $ac_cv_func_hes_getmailhost = yes; then
18894 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18895 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18896 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18897 echo $ECHO_N "(cached) $ECHO_C" >&6
18899 ac_check_lib_save_LIBS
=$LIBS
18900 LIBS
="-lhesiod $RESOLVLIB $LIBS"
18901 cat >conftest.
$ac_ext <<_ACEOF
18904 cat confdefs.h
>>conftest.
$ac_ext
18905 cat >>conftest.
$ac_ext <<_ACEOF
18906 /* end confdefs.h. */
18908 /* Override any gcc2 internal prototype to avoid an error. */
18912 /* We use char because int might match the return type of a gcc2
18913 builtin and then its argument prototype would still apply. */
18914 char hes_getmailhost ();
18918 hes_getmailhost ();
18923 rm -f conftest.
$ac_objext conftest
$ac_exeext
18924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18925 (eval $ac_link) 2>conftest.er1
18927 grep -v '^ *+' conftest.er1
>conftest.err
18929 cat conftest.err
>&5
18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931 (exit $ac_status); } &&
18932 { ac_try
='test -z "$ac_c_werror_flag"
18933 || test ! -s conftest.err'
18934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18935 (eval $ac_try) 2>&5
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); }; } &&
18939 { ac_try
='test -s conftest$ac_exeext'
18940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18941 (eval $ac_try) 2>&5
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); }; }; then
18945 ac_cv_lib_hesiod_hes_getmailhost
=yes
18947 echo "$as_me: failed program was:" >&5
18948 sed 's/^/| /' conftest.
$ac_ext >&5
18950 ac_cv_lib_hesiod_hes_getmailhost
=no
18952 rm -f conftest.err conftest.
$ac_objext \
18953 conftest
$ac_exeext conftest.
$ac_ext
18954 LIBS
=$ac_check_lib_save_LIBS
18956 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18957 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18958 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18960 cat >>confdefs.h
<<\_ACEOF
18961 #define HAVE_LIBHESIOD 1
18972 # These tell us which Kerberos-related libraries to use.
18973 if test "${with_kerberos+set}" = set; then
18975 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18976 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18977 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18978 echo $ECHO_N "(cached) $ECHO_C" >&6
18980 ac_check_lib_save_LIBS
=$LIBS
18981 LIBS
="-lcom_err $LIBS"
18982 cat >conftest.
$ac_ext <<_ACEOF
18985 cat confdefs.h
>>conftest.
$ac_ext
18986 cat >>conftest.
$ac_ext <<_ACEOF
18987 /* end confdefs.h. */
18989 /* Override any gcc2 internal prototype to avoid an error. */
18993 /* We use char because int might match the return type of a gcc2
18994 builtin and then its argument prototype would still apply. */
19004 rm -f conftest.
$ac_objext conftest
$ac_exeext
19005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19006 (eval $ac_link) 2>conftest.er1
19008 grep -v '^ *+' conftest.er1
>conftest.err
19010 cat conftest.err
>&5
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); } &&
19013 { ac_try
='test -z "$ac_c_werror_flag"
19014 || test ! -s conftest.err'
19015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19016 (eval $ac_try) 2>&5
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); }; } &&
19020 { ac_try
='test -s conftest$ac_exeext'
19021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19022 (eval $ac_try) 2>&5
19024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); }; }; then
19026 ac_cv_lib_com_err_com_err
=yes
19028 echo "$as_me: failed program was:" >&5
19029 sed 's/^/| /' conftest.
$ac_ext >&5
19031 ac_cv_lib_com_err_com_err
=no
19033 rm -f conftest.err conftest.
$ac_objext \
19034 conftest
$ac_exeext conftest.
$ac_ext
19035 LIBS
=$ac_check_lib_save_LIBS
19037 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19038 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
19039 if test $ac_cv_lib_com_err_com_err = yes; then
19040 cat >>confdefs.h
<<_ACEOF
19041 #define HAVE_LIBCOM_ERR 1
19044 LIBS
="-lcom_err $LIBS"
19049 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19050 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
19051 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19052 echo $ECHO_N "(cached) $ECHO_C" >&6
19054 ac_check_lib_save_LIBS
=$LIBS
19055 LIBS
="-lk5crypto $LIBS"
19056 cat >conftest.
$ac_ext <<_ACEOF
19059 cat confdefs.h
>>conftest.
$ac_ext
19060 cat >>conftest.
$ac_ext <<_ACEOF
19061 /* end confdefs.h. */
19063 /* Override any gcc2 internal prototype to avoid an error. */
19067 /* We use char because int might match the return type of a gcc2
19068 builtin and then its argument prototype would still apply. */
19069 char mit_des_cbc_encrypt ();
19073 mit_des_cbc_encrypt ();
19078 rm -f conftest.
$ac_objext conftest
$ac_exeext
19079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19080 (eval $ac_link) 2>conftest.er1
19082 grep -v '^ *+' conftest.er1
>conftest.err
19084 cat conftest.err
>&5
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); } &&
19087 { ac_try
='test -z "$ac_c_werror_flag"
19088 || test ! -s conftest.err'
19089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19090 (eval $ac_try) 2>&5
19092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093 (exit $ac_status); }; } &&
19094 { ac_try
='test -s conftest$ac_exeext'
19095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19096 (eval $ac_try) 2>&5
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); }; }; then
19100 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
19102 echo "$as_me: failed program was:" >&5
19103 sed 's/^/| /' conftest.
$ac_ext >&5
19105 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
19107 rm -f conftest.err conftest.
$ac_objext \
19108 conftest
$ac_exeext conftest.
$ac_ext
19109 LIBS
=$ac_check_lib_save_LIBS
19111 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19112 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
19113 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19114 cat >>confdefs.h
<<_ACEOF
19115 #define HAVE_LIBK5CRYPTO 1
19118 LIBS
="-lk5crypto $LIBS"
19123 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19124 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
19125 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19126 echo $ECHO_N "(cached) $ECHO_C" >&6
19128 ac_check_lib_save_LIBS
=$LIBS
19129 LIBS
="-lcrypto $LIBS"
19130 cat >conftest.
$ac_ext <<_ACEOF
19133 cat confdefs.h
>>conftest.
$ac_ext
19134 cat >>conftest.
$ac_ext <<_ACEOF
19135 /* end confdefs.h. */
19137 /* Override any gcc2 internal prototype to avoid an error. */
19141 /* We use char because int might match the return type of a gcc2
19142 builtin and then its argument prototype would still apply. */
19143 char mit_des_cbc_encrypt ();
19147 mit_des_cbc_encrypt ();
19152 rm -f conftest.
$ac_objext conftest
$ac_exeext
19153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19154 (eval $ac_link) 2>conftest.er1
19156 grep -v '^ *+' conftest.er1
>conftest.err
19158 cat conftest.err
>&5
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); } &&
19161 { ac_try
='test -z "$ac_c_werror_flag"
19162 || test ! -s conftest.err'
19163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19164 (eval $ac_try) 2>&5
19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167 (exit $ac_status); }; } &&
19168 { ac_try
='test -s conftest$ac_exeext'
19169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19170 (eval $ac_try) 2>&5
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); }; }; then
19174 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
19176 echo "$as_me: failed program was:" >&5
19177 sed 's/^/| /' conftest.
$ac_ext >&5
19179 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
19181 rm -f conftest.err conftest.
$ac_objext \
19182 conftest
$ac_exeext conftest.
$ac_ext
19183 LIBS
=$ac_check_lib_save_LIBS
19185 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19186 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
19187 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19188 cat >>confdefs.h
<<_ACEOF
19189 #define HAVE_LIBCRYPTO 1
19192 LIBS
="-lcrypto $LIBS"
19197 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19198 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
19199 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19200 echo $ECHO_N "(cached) $ECHO_C" >&6
19202 ac_check_lib_save_LIBS
=$LIBS
19203 LIBS
="-lkrb5 $LIBS"
19204 cat >conftest.
$ac_ext <<_ACEOF
19207 cat confdefs.h
>>conftest.
$ac_ext
19208 cat >>conftest.
$ac_ext <<_ACEOF
19209 /* end confdefs.h. */
19211 /* Override any gcc2 internal prototype to avoid an error. */
19215 /* We use char because int might match the return type of a gcc2
19216 builtin and then its argument prototype would still apply. */
19217 char krb5_init_context ();
19221 krb5_init_context ();
19226 rm -f conftest.
$ac_objext conftest
$ac_exeext
19227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19228 (eval $ac_link) 2>conftest.er1
19230 grep -v '^ *+' conftest.er1
>conftest.err
19232 cat conftest.err
>&5
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); } &&
19235 { ac_try
='test -z "$ac_c_werror_flag"
19236 || test ! -s conftest.err'
19237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19238 (eval $ac_try) 2>&5
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); }; } &&
19242 { ac_try
='test -s conftest$ac_exeext'
19243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19244 (eval $ac_try) 2>&5
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); }; }; then
19248 ac_cv_lib_krb5_krb5_init_context
=yes
19250 echo "$as_me: failed program was:" >&5
19251 sed 's/^/| /' conftest.
$ac_ext >&5
19253 ac_cv_lib_krb5_krb5_init_context
=no
19255 rm -f conftest.err conftest.
$ac_objext \
19256 conftest
$ac_exeext conftest.
$ac_ext
19257 LIBS
=$ac_check_lib_save_LIBS
19259 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19260 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
19261 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19262 cat >>confdefs.h
<<_ACEOF
19263 #define HAVE_LIBKRB5 1
19266 LIBS
="-lkrb5 $LIBS"
19270 if test "${with_kerberos5+set}" != set; then
19272 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19273 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
19274 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19275 echo $ECHO_N "(cached) $ECHO_C" >&6
19277 ac_check_lib_save_LIBS
=$LIBS
19278 LIBS
="-ldes425 $LIBS"
19279 cat >conftest.
$ac_ext <<_ACEOF
19282 cat confdefs.h
>>conftest.
$ac_ext
19283 cat >>conftest.
$ac_ext <<_ACEOF
19284 /* end confdefs.h. */
19286 /* Override any gcc2 internal prototype to avoid an error. */
19290 /* We use char because int might match the return type of a gcc2
19291 builtin and then its argument prototype would still apply. */
19292 char des_cbc_encrypt ();
19296 des_cbc_encrypt ();
19301 rm -f conftest.
$ac_objext conftest
$ac_exeext
19302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19303 (eval $ac_link) 2>conftest.er1
19305 grep -v '^ *+' conftest.er1
>conftest.err
19307 cat conftest.err
>&5
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); } &&
19310 { ac_try
='test -z "$ac_c_werror_flag"
19311 || test ! -s conftest.err'
19312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19313 (eval $ac_try) 2>&5
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); }; } &&
19317 { ac_try
='test -s conftest$ac_exeext'
19318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19319 (eval $ac_try) 2>&5
19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322 (exit $ac_status); }; }; then
19323 ac_cv_lib_des425_des_cbc_encrypt
=yes
19325 echo "$as_me: failed program was:" >&5
19326 sed 's/^/| /' conftest.
$ac_ext >&5
19328 ac_cv_lib_des425_des_cbc_encrypt
=no
19330 rm -f conftest.err conftest.
$ac_objext \
19331 conftest
$ac_exeext conftest.
$ac_ext
19332 LIBS
=$ac_check_lib_save_LIBS
19334 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19335 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
19336 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19337 cat >>confdefs.h
<<_ACEOF
19338 #define HAVE_LIBDES425 1
19341 LIBS
="-ldes425 $LIBS"
19345 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19346 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
19347 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19348 echo $ECHO_N "(cached) $ECHO_C" >&6
19350 ac_check_lib_save_LIBS
=$LIBS
19352 cat >conftest.
$ac_ext <<_ACEOF
19355 cat confdefs.h
>>conftest.
$ac_ext
19356 cat >>conftest.
$ac_ext <<_ACEOF
19357 /* end confdefs.h. */
19359 /* Override any gcc2 internal prototype to avoid an error. */
19363 /* We use char because int might match the return type of a gcc2
19364 builtin and then its argument prototype would still apply. */
19365 char des_cbc_encrypt ();
19369 des_cbc_encrypt ();
19374 rm -f conftest.
$ac_objext conftest
$ac_exeext
19375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19376 (eval $ac_link) 2>conftest.er1
19378 grep -v '^ *+' conftest.er1
>conftest.err
19380 cat conftest.err
>&5
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); } &&
19383 { ac_try
='test -z "$ac_c_werror_flag"
19384 || test ! -s conftest.err'
19385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19386 (eval $ac_try) 2>&5
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); }; } &&
19390 { ac_try
='test -s conftest$ac_exeext'
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; }; then
19396 ac_cv_lib_des_des_cbc_encrypt
=yes
19398 echo "$as_me: failed program was:" >&5
19399 sed 's/^/| /' conftest.
$ac_ext >&5
19401 ac_cv_lib_des_des_cbc_encrypt
=no
19403 rm -f conftest.err conftest.
$ac_objext \
19404 conftest
$ac_exeext conftest.
$ac_ext
19405 LIBS
=$ac_check_lib_save_LIBS
19407 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19408 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19409 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19410 cat >>confdefs.h
<<_ACEOF
19411 #define HAVE_LIBDES 1
19421 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19422 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19423 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19424 echo $ECHO_N "(cached) $ECHO_C" >&6
19426 ac_check_lib_save_LIBS
=$LIBS
19427 LIBS
="-lkrb4 $LIBS"
19428 cat >conftest.
$ac_ext <<_ACEOF
19431 cat confdefs.h
>>conftest.
$ac_ext
19432 cat >>conftest.
$ac_ext <<_ACEOF
19433 /* end confdefs.h. */
19435 /* Override any gcc2 internal prototype to avoid an error. */
19439 /* We use char because int might match the return type of a gcc2
19440 builtin and then its argument prototype would still apply. */
19441 char krb_get_cred ();
19450 rm -f conftest.
$ac_objext conftest
$ac_exeext
19451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19452 (eval $ac_link) 2>conftest.er1
19454 grep -v '^ *+' conftest.er1
>conftest.err
19456 cat conftest.err
>&5
19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458 (exit $ac_status); } &&
19459 { ac_try
='test -z "$ac_c_werror_flag"
19460 || test ! -s conftest.err'
19461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19462 (eval $ac_try) 2>&5
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); }; } &&
19466 { ac_try
='test -s conftest$ac_exeext'
19467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19468 (eval $ac_try) 2>&5
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); }; }; then
19472 ac_cv_lib_krb4_krb_get_cred
=yes
19474 echo "$as_me: failed program was:" >&5
19475 sed 's/^/| /' conftest.
$ac_ext >&5
19477 ac_cv_lib_krb4_krb_get_cred
=no
19479 rm -f conftest.err conftest.
$ac_objext \
19480 conftest
$ac_exeext conftest.
$ac_ext
19481 LIBS
=$ac_check_lib_save_LIBS
19483 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19484 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19485 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19486 cat >>confdefs.h
<<_ACEOF
19487 #define HAVE_LIBKRB4 1
19490 LIBS
="-lkrb4 $LIBS"
19494 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19495 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19496 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19497 echo $ECHO_N "(cached) $ECHO_C" >&6
19499 ac_check_lib_save_LIBS
=$LIBS
19501 cat >conftest.
$ac_ext <<_ACEOF
19504 cat confdefs.h
>>conftest.
$ac_ext
19505 cat >>conftest.
$ac_ext <<_ACEOF
19506 /* end confdefs.h. */
19508 /* Override any gcc2 internal prototype to avoid an error. */
19512 /* We use char because int might match the return type of a gcc2
19513 builtin and then its argument prototype would still apply. */
19514 char krb_get_cred ();
19523 rm -f conftest.
$ac_objext conftest
$ac_exeext
19524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19525 (eval $ac_link) 2>conftest.er1
19527 grep -v '^ *+' conftest.er1
>conftest.err
19529 cat conftest.err
>&5
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 (exit $ac_status); } &&
19532 { ac_try
='test -z "$ac_c_werror_flag"
19533 || test ! -s conftest.err'
19534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19535 (eval $ac_try) 2>&5
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); }; } &&
19539 { ac_try
='test -s conftest$ac_exeext'
19540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19541 (eval $ac_try) 2>&5
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); }; }; then
19545 ac_cv_lib_krb_krb_get_cred
=yes
19547 echo "$as_me: failed program was:" >&5
19548 sed 's/^/| /' conftest.
$ac_ext >&5
19550 ac_cv_lib_krb_krb_get_cred
=no
19552 rm -f conftest.err conftest.
$ac_objext \
19553 conftest
$ac_exeext conftest.
$ac_ext
19554 LIBS
=$ac_check_lib_save_LIBS
19556 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19557 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19558 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19559 cat >>confdefs.h
<<_ACEOF
19560 #define HAVE_LIBKRB 1
19571 if test "${with_kerberos5+set}" = set; then
19573 for ac_header
in krb5.h
19575 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19577 echo "$as_me:$LINENO: checking for $ac_header" >&5
19578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19580 echo $ECHO_N "(cached) $ECHO_C" >&6
19582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19583 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19585 # Is the header compilable?
19586 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19587 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19588 cat >conftest.
$ac_ext <<_ACEOF
19591 cat confdefs.h
>>conftest.
$ac_ext
19592 cat >>conftest.
$ac_ext <<_ACEOF
19593 /* end confdefs.h. */
19594 $ac_includes_default
19595 #include <$ac_header>
19597 rm -f conftest.
$ac_objext
19598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19599 (eval $ac_compile) 2>conftest.er1
19601 grep -v '^ *+' conftest.er1
>conftest.err
19603 cat conftest.err
>&5
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); } &&
19606 { ac_try
='test -z "$ac_c_werror_flag"
19607 || test ! -s conftest.err'
19608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19609 (eval $ac_try) 2>&5
19611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); }; } &&
19613 { ac_try
='test -s conftest.$ac_objext'
19614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19615 (eval $ac_try) 2>&5
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); }; }; then
19619 ac_header_compiler
=yes
19621 echo "$as_me: failed program was:" >&5
19622 sed 's/^/| /' conftest.
$ac_ext >&5
19624 ac_header_compiler
=no
19626 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19627 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19628 echo "${ECHO_T}$ac_header_compiler" >&6
19630 # Is the header present?
19631 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19632 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19633 cat >conftest.
$ac_ext <<_ACEOF
19636 cat confdefs.h
>>conftest.
$ac_ext
19637 cat >>conftest.
$ac_ext <<_ACEOF
19638 /* end confdefs.h. */
19639 #include <$ac_header>
19641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19642 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19644 grep -v '^ *+' conftest.er1
>conftest.err
19646 cat conftest.err
>&5
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); } >/dev
/null
; then
19649 if test -s conftest.err
; then
19650 ac_cpp_err
=$ac_c_preproc_warn_flag
19651 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19658 if test -z "$ac_cpp_err"; then
19659 ac_header_preproc
=yes
19661 echo "$as_me: failed program was:" >&5
19662 sed 's/^/| /' conftest.
$ac_ext >&5
19664 ac_header_preproc
=no
19666 rm -f conftest.err conftest.
$ac_ext
19667 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19668 echo "${ECHO_T}$ac_header_preproc" >&6
19670 # So? What about this header?
19671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19673 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19674 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19676 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19677 ac_header_preproc
=yes
19680 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19681 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19682 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19683 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19684 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19685 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19686 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19687 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19689 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19690 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19691 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19694 ## ------------------------------------------ ##
19695 ## Report this to the AC_PACKAGE_NAME lists. ##
19696 ## ------------------------------------------ ##
19699 sed "s/^/$as_me: WARNING: /" >&2
19702 echo "$as_me:$LINENO: checking for $ac_header" >&5
19703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19705 echo $ECHO_N "(cached) $ECHO_C" >&6
19707 eval "$as_ac_Header=\$ac_header_preproc"
19709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19714 cat >>confdefs.h
<<_ACEOF
19715 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19724 for ac_header
in des.h
19726 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19728 echo "$as_me:$LINENO: checking for $ac_header" >&5
19729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19731 echo $ECHO_N "(cached) $ECHO_C" >&6
19733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19736 # Is the header compilable?
19737 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19739 cat >conftest.
$ac_ext <<_ACEOF
19742 cat confdefs.h
>>conftest.
$ac_ext
19743 cat >>conftest.
$ac_ext <<_ACEOF
19744 /* end confdefs.h. */
19745 $ac_includes_default
19746 #include <$ac_header>
19748 rm -f conftest.
$ac_objext
19749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19750 (eval $ac_compile) 2>conftest.er1
19752 grep -v '^ *+' conftest.er1
>conftest.err
19754 cat conftest.err
>&5
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); } &&
19757 { ac_try
='test -z "$ac_c_werror_flag"
19758 || test ! -s conftest.err'
19759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19760 (eval $ac_try) 2>&5
19762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19763 (exit $ac_status); }; } &&
19764 { ac_try
='test -s conftest.$ac_objext'
19765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19766 (eval $ac_try) 2>&5
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); }; }; then
19770 ac_header_compiler
=yes
19772 echo "$as_me: failed program was:" >&5
19773 sed 's/^/| /' conftest.
$ac_ext >&5
19775 ac_header_compiler
=no
19777 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19778 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19779 echo "${ECHO_T}$ac_header_compiler" >&6
19781 # Is the header present?
19782 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19783 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19784 cat >conftest.
$ac_ext <<_ACEOF
19787 cat confdefs.h
>>conftest.
$ac_ext
19788 cat >>conftest.
$ac_ext <<_ACEOF
19789 /* end confdefs.h. */
19790 #include <$ac_header>
19792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19793 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19795 grep -v '^ *+' conftest.er1
>conftest.err
19797 cat conftest.err
>&5
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); } >/dev
/null
; then
19800 if test -s conftest.err
; then
19801 ac_cpp_err
=$ac_c_preproc_warn_flag
19802 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19809 if test -z "$ac_cpp_err"; then
19810 ac_header_preproc
=yes
19812 echo "$as_me: failed program was:" >&5
19813 sed 's/^/| /' conftest.
$ac_ext >&5
19815 ac_header_preproc
=no
19817 rm -f conftest.err conftest.
$ac_ext
19818 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19819 echo "${ECHO_T}$ac_header_preproc" >&6
19821 # So? What about this header?
19822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19825 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19827 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19828 ac_header_preproc
=yes
19831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19832 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19834 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19835 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19836 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19837 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19838 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19840 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19841 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19842 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19845 ## ------------------------------------------ ##
19846 ## Report this to the AC_PACKAGE_NAME lists. ##
19847 ## ------------------------------------------ ##
19850 sed "s/^/$as_me: WARNING: /" >&2
19853 echo "$as_me:$LINENO: checking for $ac_header" >&5
19854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19856 echo $ECHO_N "(cached) $ECHO_C" >&6
19858 eval "$as_ac_Header=\$ac_header_preproc"
19860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19865 cat >>confdefs.h
<<_ACEOF
19866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19871 for ac_header
in kerberosIV
/des.h
19873 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19875 echo "$as_me:$LINENO: checking for $ac_header" >&5
19876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19878 echo $ECHO_N "(cached) $ECHO_C" >&6
19880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19883 # Is the header compilable?
19884 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19885 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19886 cat >conftest.
$ac_ext <<_ACEOF
19889 cat confdefs.h
>>conftest.
$ac_ext
19890 cat >>conftest.
$ac_ext <<_ACEOF
19891 /* end confdefs.h. */
19892 $ac_includes_default
19893 #include <$ac_header>
19895 rm -f conftest.
$ac_objext
19896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19897 (eval $ac_compile) 2>conftest.er1
19899 grep -v '^ *+' conftest.er1
>conftest.err
19901 cat conftest.err
>&5
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); } &&
19904 { ac_try
='test -z "$ac_c_werror_flag"
19905 || test ! -s conftest.err'
19906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19907 (eval $ac_try) 2>&5
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); }; } &&
19911 { ac_try
='test -s conftest.$ac_objext'
19912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19913 (eval $ac_try) 2>&5
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); }; }; then
19917 ac_header_compiler
=yes
19919 echo "$as_me: failed program was:" >&5
19920 sed 's/^/| /' conftest.
$ac_ext >&5
19922 ac_header_compiler
=no
19924 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19925 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19926 echo "${ECHO_T}$ac_header_compiler" >&6
19928 # Is the header present?
19929 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19930 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19931 cat >conftest.
$ac_ext <<_ACEOF
19934 cat confdefs.h
>>conftest.
$ac_ext
19935 cat >>conftest.
$ac_ext <<_ACEOF
19936 /* end confdefs.h. */
19937 #include <$ac_header>
19939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19940 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19942 grep -v '^ *+' conftest.er1
>conftest.err
19944 cat conftest.err
>&5
19945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); } >/dev
/null
; then
19947 if test -s conftest.err
; then
19948 ac_cpp_err
=$ac_c_preproc_warn_flag
19949 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19956 if test -z "$ac_cpp_err"; then
19957 ac_header_preproc
=yes
19959 echo "$as_me: failed program was:" >&5
19960 sed 's/^/| /' conftest.
$ac_ext >&5
19962 ac_header_preproc
=no
19964 rm -f conftest.err conftest.
$ac_ext
19965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19966 echo "${ECHO_T}$ac_header_preproc" >&6
19968 # So? What about this header?
19969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19974 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19975 ac_header_preproc
=yes
19978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19982 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19983 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19984 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19985 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19988 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19989 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19992 ## ------------------------------------------ ##
19993 ## Report this to the AC_PACKAGE_NAME lists. ##
19994 ## ------------------------------------------ ##
19997 sed "s/^/$as_me: WARNING: /" >&2
20000 echo "$as_me:$LINENO: checking for $ac_header" >&5
20001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20003 echo $ECHO_N "(cached) $ECHO_C" >&6
20005 eval "$as_ac_Header=\$ac_header_preproc"
20007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20012 cat >>confdefs.h
<<_ACEOF
20013 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20018 for ac_header
in kerberos
/des.h
20020 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20022 echo "$as_me:$LINENO: checking for $ac_header" >&5
20023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20025 echo $ECHO_N "(cached) $ECHO_C" >&6
20027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20028 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20030 # Is the header compilable?
20031 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20032 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20033 cat >conftest.
$ac_ext <<_ACEOF
20036 cat confdefs.h
>>conftest.
$ac_ext
20037 cat >>conftest.
$ac_ext <<_ACEOF
20038 /* end confdefs.h. */
20039 $ac_includes_default
20040 #include <$ac_header>
20042 rm -f conftest.
$ac_objext
20043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20044 (eval $ac_compile) 2>conftest.er1
20046 grep -v '^ *+' conftest.er1
>conftest.err
20048 cat conftest.err
>&5
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); } &&
20051 { ac_try
='test -z "$ac_c_werror_flag"
20052 || test ! -s conftest.err'
20053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20054 (eval $ac_try) 2>&5
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); }; } &&
20058 { ac_try
='test -s conftest.$ac_objext'
20059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20060 (eval $ac_try) 2>&5
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); }; }; then
20064 ac_header_compiler
=yes
20066 echo "$as_me: failed program was:" >&5
20067 sed 's/^/| /' conftest.
$ac_ext >&5
20069 ac_header_compiler
=no
20071 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20072 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20073 echo "${ECHO_T}$ac_header_compiler" >&6
20075 # Is the header present?
20076 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20077 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20078 cat >conftest.
$ac_ext <<_ACEOF
20081 cat confdefs.h
>>conftest.
$ac_ext
20082 cat >>conftest.
$ac_ext <<_ACEOF
20083 /* end confdefs.h. */
20084 #include <$ac_header>
20086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20087 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20089 grep -v '^ *+' conftest.er1
>conftest.err
20091 cat conftest.err
>&5
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); } >/dev
/null
; then
20094 if test -s conftest.err
; then
20095 ac_cpp_err
=$ac_c_preproc_warn_flag
20096 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20103 if test -z "$ac_cpp_err"; then
20104 ac_header_preproc
=yes
20106 echo "$as_me: failed program was:" >&5
20107 sed 's/^/| /' conftest.
$ac_ext >&5
20109 ac_header_preproc
=no
20111 rm -f conftest.err conftest.
$ac_ext
20112 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20113 echo "${ECHO_T}$ac_header_preproc" >&6
20115 # So? What about this header?
20116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20118 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20119 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20121 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20122 ac_header_preproc
=yes
20125 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20126 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20127 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20128 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20129 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20130 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20131 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20132 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20135 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20136 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20139 ## ------------------------------------------ ##
20140 ## Report this to the AC_PACKAGE_NAME lists. ##
20141 ## ------------------------------------------ ##
20144 sed "s/^/$as_me: WARNING: /" >&2
20147 echo "$as_me:$LINENO: checking for $ac_header" >&5
20148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20150 echo $ECHO_N "(cached) $ECHO_C" >&6
20152 eval "$as_ac_Header=\$ac_header_preproc"
20154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20159 cat >>confdefs.h
<<_ACEOF
20160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20176 for ac_header
in krb.h
20178 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20180 echo "$as_me:$LINENO: checking for $ac_header" >&5
20181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20183 echo $ECHO_N "(cached) $ECHO_C" >&6
20185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20186 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20188 # Is the header compilable?
20189 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20191 cat >conftest.
$ac_ext <<_ACEOF
20194 cat confdefs.h
>>conftest.
$ac_ext
20195 cat >>conftest.
$ac_ext <<_ACEOF
20196 /* end confdefs.h. */
20197 $ac_includes_default
20198 #include <$ac_header>
20200 rm -f conftest.
$ac_objext
20201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20202 (eval $ac_compile) 2>conftest.er1
20204 grep -v '^ *+' conftest.er1
>conftest.err
20206 cat conftest.err
>&5
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); } &&
20209 { ac_try
='test -z "$ac_c_werror_flag"
20210 || test ! -s conftest.err'
20211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20212 (eval $ac_try) 2>&5
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); }; } &&
20216 { ac_try
='test -s conftest.$ac_objext'
20217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20218 (eval $ac_try) 2>&5
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); }; }; then
20222 ac_header_compiler
=yes
20224 echo "$as_me: failed program was:" >&5
20225 sed 's/^/| /' conftest.
$ac_ext >&5
20227 ac_header_compiler
=no
20229 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20230 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20231 echo "${ECHO_T}$ac_header_compiler" >&6
20233 # Is the header present?
20234 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20235 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20236 cat >conftest.
$ac_ext <<_ACEOF
20239 cat confdefs.h
>>conftest.
$ac_ext
20240 cat >>conftest.
$ac_ext <<_ACEOF
20241 /* end confdefs.h. */
20242 #include <$ac_header>
20244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20245 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20247 grep -v '^ *+' conftest.er1
>conftest.err
20249 cat conftest.err
>&5
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); } >/dev
/null
; then
20252 if test -s conftest.err
; then
20253 ac_cpp_err
=$ac_c_preproc_warn_flag
20254 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20261 if test -z "$ac_cpp_err"; then
20262 ac_header_preproc
=yes
20264 echo "$as_me: failed program was:" >&5
20265 sed 's/^/| /' conftest.
$ac_ext >&5
20267 ac_header_preproc
=no
20269 rm -f conftest.err conftest.
$ac_ext
20270 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20271 echo "${ECHO_T}$ac_header_preproc" >&6
20273 # So? What about this header?
20274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20280 ac_header_preproc
=yes
20283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20286 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20287 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20289 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20290 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20293 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20297 ## ------------------------------------------ ##
20298 ## Report this to the AC_PACKAGE_NAME lists. ##
20299 ## ------------------------------------------ ##
20302 sed "s/^/$as_me: WARNING: /" >&2
20305 echo "$as_me:$LINENO: checking for $ac_header" >&5
20306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20308 echo $ECHO_N "(cached) $ECHO_C" >&6
20310 eval "$as_ac_Header=\$ac_header_preproc"
20312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20316 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20317 cat >>confdefs.h
<<_ACEOF
20318 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20323 for ac_header
in kerberosIV
/krb.h
20325 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20327 echo "$as_me:$LINENO: checking for $ac_header" >&5
20328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20330 echo $ECHO_N "(cached) $ECHO_C" >&6
20332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20335 # Is the header compilable?
20336 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20337 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20338 cat >conftest.
$ac_ext <<_ACEOF
20341 cat confdefs.h
>>conftest.
$ac_ext
20342 cat >>conftest.
$ac_ext <<_ACEOF
20343 /* end confdefs.h. */
20344 $ac_includes_default
20345 #include <$ac_header>
20347 rm -f conftest.
$ac_objext
20348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20349 (eval $ac_compile) 2>conftest.er1
20351 grep -v '^ *+' conftest.er1
>conftest.err
20353 cat conftest.err
>&5
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); } &&
20356 { ac_try
='test -z "$ac_c_werror_flag"
20357 || test ! -s conftest.err'
20358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20359 (eval $ac_try) 2>&5
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); }; } &&
20363 { ac_try
='test -s conftest.$ac_objext'
20364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20365 (eval $ac_try) 2>&5
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); }; }; then
20369 ac_header_compiler
=yes
20371 echo "$as_me: failed program was:" >&5
20372 sed 's/^/| /' conftest.
$ac_ext >&5
20374 ac_header_compiler
=no
20376 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20377 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20378 echo "${ECHO_T}$ac_header_compiler" >&6
20380 # Is the header present?
20381 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20382 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20383 cat >conftest.
$ac_ext <<_ACEOF
20386 cat confdefs.h
>>conftest.
$ac_ext
20387 cat >>conftest.
$ac_ext <<_ACEOF
20388 /* end confdefs.h. */
20389 #include <$ac_header>
20391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20392 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20394 grep -v '^ *+' conftest.er1
>conftest.err
20396 cat conftest.err
>&5
20397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398 (exit $ac_status); } >/dev
/null
; then
20399 if test -s conftest.err
; then
20400 ac_cpp_err
=$ac_c_preproc_warn_flag
20401 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20408 if test -z "$ac_cpp_err"; then
20409 ac_header_preproc
=yes
20411 echo "$as_me: failed program was:" >&5
20412 sed 's/^/| /' conftest.
$ac_ext >&5
20414 ac_header_preproc
=no
20416 rm -f conftest.err conftest.
$ac_ext
20417 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20418 echo "${ECHO_T}$ac_header_preproc" >&6
20420 # So? What about this header?
20421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20427 ac_header_preproc
=yes
20430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20437 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20444 ## ------------------------------------------ ##
20445 ## Report this to the AC_PACKAGE_NAME lists. ##
20446 ## ------------------------------------------ ##
20449 sed "s/^/$as_me: WARNING: /" >&2
20452 echo "$as_me:$LINENO: checking for $ac_header" >&5
20453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20455 echo $ECHO_N "(cached) $ECHO_C" >&6
20457 eval "$as_ac_Header=\$ac_header_preproc"
20459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20464 cat >>confdefs.h
<<_ACEOF
20465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20470 for ac_header
in kerberos
/krb.h
20472 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20474 echo "$as_me:$LINENO: checking for $ac_header" >&5
20475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20477 echo $ECHO_N "(cached) $ECHO_C" >&6
20479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20482 # Is the header compilable?
20483 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20485 cat >conftest.
$ac_ext <<_ACEOF
20488 cat confdefs.h
>>conftest.
$ac_ext
20489 cat >>conftest.
$ac_ext <<_ACEOF
20490 /* end confdefs.h. */
20491 $ac_includes_default
20492 #include <$ac_header>
20494 rm -f conftest.
$ac_objext
20495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20496 (eval $ac_compile) 2>conftest.er1
20498 grep -v '^ *+' conftest.er1
>conftest.err
20500 cat conftest.err
>&5
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); } &&
20503 { ac_try
='test -z "$ac_c_werror_flag"
20504 || test ! -s conftest.err'
20505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20506 (eval $ac_try) 2>&5
20508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509 (exit $ac_status); }; } &&
20510 { ac_try
='test -s conftest.$ac_objext'
20511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20512 (eval $ac_try) 2>&5
20514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515 (exit $ac_status); }; }; then
20516 ac_header_compiler
=yes
20518 echo "$as_me: failed program was:" >&5
20519 sed 's/^/| /' conftest.
$ac_ext >&5
20521 ac_header_compiler
=no
20523 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20524 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20525 echo "${ECHO_T}$ac_header_compiler" >&6
20527 # Is the header present?
20528 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20530 cat >conftest.
$ac_ext <<_ACEOF
20533 cat confdefs.h
>>conftest.
$ac_ext
20534 cat >>conftest.
$ac_ext <<_ACEOF
20535 /* end confdefs.h. */
20536 #include <$ac_header>
20538 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20539 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20541 grep -v '^ *+' conftest.er1
>conftest.err
20543 cat conftest.err
>&5
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); } >/dev
/null
; then
20546 if test -s conftest.err
; then
20547 ac_cpp_err
=$ac_c_preproc_warn_flag
20548 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20555 if test -z "$ac_cpp_err"; then
20556 ac_header_preproc
=yes
20558 echo "$as_me: failed program was:" >&5
20559 sed 's/^/| /' conftest.
$ac_ext >&5
20561 ac_header_preproc
=no
20563 rm -f conftest.err conftest.
$ac_ext
20564 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20565 echo "${ECHO_T}$ac_header_preproc" >&6
20567 # So? What about this header?
20568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20574 ac_header_preproc
=yes
20577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20581 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20583 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20584 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20587 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20591 ## ------------------------------------------ ##
20592 ## Report this to the AC_PACKAGE_NAME lists. ##
20593 ## ------------------------------------------ ##
20596 sed "s/^/$as_me: WARNING: /" >&2
20599 echo "$as_me:$LINENO: checking for $ac_header" >&5
20600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20602 echo $ECHO_N "(cached) $ECHO_C" >&6
20604 eval "$as_ac_Header=\$ac_header_preproc"
20606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20611 cat >>confdefs.h
<<_ACEOF
20612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20629 for ac_header
in com_err.h
20631 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20633 echo "$as_me:$LINENO: checking for $ac_header" >&5
20634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20636 echo $ECHO_N "(cached) $ECHO_C" >&6
20638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20641 # Is the header compilable?
20642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20644 cat >conftest.
$ac_ext <<_ACEOF
20647 cat confdefs.h
>>conftest.
$ac_ext
20648 cat >>conftest.
$ac_ext <<_ACEOF
20649 /* end confdefs.h. */
20650 $ac_includes_default
20651 #include <$ac_header>
20653 rm -f conftest.
$ac_objext
20654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20655 (eval $ac_compile) 2>conftest.er1
20657 grep -v '^ *+' conftest.er1
>conftest.err
20659 cat conftest.err
>&5
20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); } &&
20662 { ac_try
='test -z "$ac_c_werror_flag"
20663 || test ! -s conftest.err'
20664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20665 (eval $ac_try) 2>&5
20667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 (exit $ac_status); }; } &&
20669 { ac_try
='test -s conftest.$ac_objext'
20670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20671 (eval $ac_try) 2>&5
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); }; }; then
20675 ac_header_compiler
=yes
20677 echo "$as_me: failed program was:" >&5
20678 sed 's/^/| /' conftest.
$ac_ext >&5
20680 ac_header_compiler
=no
20682 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20684 echo "${ECHO_T}$ac_header_compiler" >&6
20686 # Is the header present?
20687 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20689 cat >conftest.
$ac_ext <<_ACEOF
20692 cat confdefs.h
>>conftest.
$ac_ext
20693 cat >>conftest.
$ac_ext <<_ACEOF
20694 /* end confdefs.h. */
20695 #include <$ac_header>
20697 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20698 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20700 grep -v '^ *+' conftest.er1
>conftest.err
20702 cat conftest.err
>&5
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704 (exit $ac_status); } >/dev
/null
; then
20705 if test -s conftest.err
; then
20706 ac_cpp_err
=$ac_c_preproc_warn_flag
20707 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20714 if test -z "$ac_cpp_err"; then
20715 ac_header_preproc
=yes
20717 echo "$as_me: failed program was:" >&5
20718 sed 's/^/| /' conftest.
$ac_ext >&5
20720 ac_header_preproc
=no
20722 rm -f conftest.err conftest.
$ac_ext
20723 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20724 echo "${ECHO_T}$ac_header_preproc" >&6
20726 # So? What about this header?
20727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20732 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20733 ac_header_preproc
=yes
20736 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20737 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20738 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20739 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20740 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20741 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20742 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20743 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20746 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20747 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20750 ## ------------------------------------------ ##
20751 ## Report this to the AC_PACKAGE_NAME lists. ##
20752 ## ------------------------------------------ ##
20755 sed "s/^/$as_me: WARNING: /" >&2
20758 echo "$as_me:$LINENO: checking for $ac_header" >&5
20759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20761 echo $ECHO_N "(cached) $ECHO_C" >&6
20763 eval "$as_ac_Header=\$ac_header_preproc"
20765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20770 cat >>confdefs.h
<<_ACEOF
20771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20780 # Solaris requires -lintl if you want strerror (which calls dgettext)
20781 # to return localized messages.
20783 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20784 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20785 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20786 echo $ECHO_N "(cached) $ECHO_C" >&6
20788 ac_check_lib_save_LIBS
=$LIBS
20789 LIBS
="-lintl $LIBS"
20790 cat >conftest.
$ac_ext <<_ACEOF
20793 cat confdefs.h
>>conftest.
$ac_ext
20794 cat >>conftest.
$ac_ext <<_ACEOF
20795 /* end confdefs.h. */
20797 /* Override any gcc2 internal prototype to avoid an error. */
20801 /* We use char because int might match the return type of a gcc2
20802 builtin and then its argument prototype would still apply. */
20812 rm -f conftest.
$ac_objext conftest
$ac_exeext
20813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20814 (eval $ac_link) 2>conftest.er1
20816 grep -v '^ *+' conftest.er1
>conftest.err
20818 cat conftest.err
>&5
20819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820 (exit $ac_status); } &&
20821 { ac_try
='test -z "$ac_c_werror_flag"
20822 || test ! -s conftest.err'
20823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20824 (eval $ac_try) 2>&5
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); }; } &&
20828 { ac_try
='test -s conftest$ac_exeext'
20829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20830 (eval $ac_try) 2>&5
20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); }; }; then
20834 ac_cv_lib_intl_dgettext
=yes
20836 echo "$as_me: failed program was:" >&5
20837 sed 's/^/| /' conftest.
$ac_ext >&5
20839 ac_cv_lib_intl_dgettext
=no
20841 rm -f conftest.err conftest.
$ac_objext \
20842 conftest
$ac_exeext conftest.
$ac_ext
20843 LIBS
=$ac_check_lib_save_LIBS
20845 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20846 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20847 if test $ac_cv_lib_intl_dgettext = yes; then
20848 cat >>confdefs.h
<<_ACEOF
20849 #define HAVE_LIBINTL 1
20852 LIBS
="-lintl $LIBS"
20857 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20858 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20859 if test "${emacs_cv_localtime_cache+set}" = set; then
20860 echo $ECHO_N "(cached) $ECHO_C" >&6
20862 if test x
$ac_cv_func_tzset = xyes
; then
20863 if test "$cross_compiling" = yes; then
20864 # If we have tzset, assume the worst when cross-compiling.
20865 emacs_cv_localtime_cache
=yes
20867 cat >conftest.
$ac_ext <<_ACEOF
20870 cat confdefs.h
>>conftest.
$ac_ext
20871 cat >>conftest.
$ac_ext <<_ACEOF
20872 /* end confdefs.h. */
20874 extern char **environ;
20878 for (to = from = environ; (*to = *from); from++)
20879 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20882 char TZ_GMT0[] = "TZ=GMT0";
20883 char TZ_PST8[] = "TZ=PST8";
20886 time_t now = time ((time_t *) 0);
20887 int hour_GMT0, hour_unset;
20888 if (putenv (TZ_GMT0) != 0)
20890 hour_GMT0 = localtime (&now)->tm_hour;
20892 hour_unset = localtime (&now)->tm_hour;
20893 if (putenv (TZ_PST8) != 0)
20895 if (localtime (&now)->tm_hour == hour_GMT0)
20898 if (localtime (&now)->tm_hour != hour_unset)
20903 rm -f conftest
$ac_exeext
20904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20905 (eval $ac_link) 2>&5
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20910 (eval $ac_try) 2>&5
20912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913 (exit $ac_status); }; }; then
20914 emacs_cv_localtime_cache
=no
20916 echo "$as_me: program exited with status $ac_status" >&5
20917 echo "$as_me: failed program was:" >&5
20918 sed 's/^/| /' conftest.
$ac_ext >&5
20920 ( exit $ac_status )
20921 emacs_cv_localtime_cache
=yes
20923 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20926 # If we lack tzset, report that localtime does not cache TZ,
20927 # since we can't invalidate the cache if we don't have tzset.
20928 emacs_cv_localtime_cache
=no
20931 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20932 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20933 if test $emacs_cv_localtime_cache = yes; then
20935 cat >>confdefs.h
<<\_ACEOF
20936 #define LOCALTIME_CACHE 1
20941 if test "x$HAVE_TIMEVAL" = xyes
; then
20943 for ac_func
in gettimeofday
20945 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20946 echo "$as_me:$LINENO: checking for $ac_func" >&5
20947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20948 if eval "test \"\${$as_ac_var+set}\" = set"; then
20949 echo $ECHO_N "(cached) $ECHO_C" >&6
20951 cat >conftest.
$ac_ext <<_ACEOF
20954 cat confdefs.h
>>conftest.
$ac_ext
20955 cat >>conftest.
$ac_ext <<_ACEOF
20956 /* end confdefs.h. */
20957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20959 #define $ac_func innocuous_$ac_func
20961 /* System header to define __stub macros and hopefully few prototypes,
20962 which can conflict with char $ac_func (); below.
20963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20964 <limits.h> exists even on freestanding compilers. */
20967 # include <limits.h>
20969 # include <assert.h>
20974 /* Override any gcc2 internal prototype to avoid an error. */
20979 /* We use char because int might match the return type of a gcc2
20980 builtin and then its argument prototype would still apply. */
20982 /* The GNU C library defines this for functions which it implements
20983 to always fail with ENOSYS. Some functions are actually named
20984 something starting with __ and the normal name is an alias. */
20985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20988 char (*f) () = $ac_func;
20997 return f != $ac_func;
21002 rm -f conftest.
$ac_objext conftest
$ac_exeext
21003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21004 (eval $ac_link) 2>conftest.er1
21006 grep -v '^ *+' conftest.er1
>conftest.err
21008 cat conftest.err
>&5
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); } &&
21011 { ac_try
='test -z "$ac_c_werror_flag"
21012 || test ! -s conftest.err'
21013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21014 (eval $ac_try) 2>&5
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); }; } &&
21018 { ac_try
='test -s conftest$ac_exeext'
21019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21020 (eval $ac_try) 2>&5
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); }; }; then
21024 eval "$as_ac_var=yes"
21026 echo "$as_me: failed program was:" >&5
21027 sed 's/^/| /' conftest.
$ac_ext >&5
21029 eval "$as_ac_var=no"
21031 rm -f conftest.err conftest.
$ac_objext \
21032 conftest
$ac_exeext conftest.
$ac_ext
21034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21035 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21036 if test `eval echo '${'$as_ac_var'}'` = yes; then
21037 cat >>confdefs.h
<<_ACEOF
21038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21044 if test $ac_cv_func_gettimeofday = yes; then
21045 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21046 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
21047 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21048 echo $ECHO_N "(cached) $ECHO_C" >&6
21050 cat >conftest.
$ac_ext <<_ACEOF
21053 cat confdefs.h
>>conftest.
$ac_ext
21054 cat >>conftest.
$ac_ext <<_ACEOF
21055 /* end confdefs.h. */
21057 #ifdef TIME_WITH_SYS_TIME
21058 #include <sys/time.h>
21061 #ifdef HAVE_SYS_TIME_H
21062 #include <sys/time.h>
21070 struct timeval time;
21071 gettimeofday (&time, 0);
21076 rm -f conftest.
$ac_objext
21077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21078 (eval $ac_compile) 2>conftest.er1
21080 grep -v '^ *+' conftest.er1
>conftest.err
21082 cat conftest.err
>&5
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); } &&
21085 { ac_try
='test -z "$ac_c_werror_flag"
21086 || test ! -s conftest.err'
21087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21088 (eval $ac_try) 2>&5
21090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); }; } &&
21092 { ac_try
='test -s conftest.$ac_objext'
21093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21094 (eval $ac_try) 2>&5
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); }; }; then
21098 emacs_cv_gettimeofday_two_arguments
=yes
21100 echo "$as_me: failed program was:" >&5
21101 sed 's/^/| /' conftest.
$ac_ext >&5
21103 emacs_cv_gettimeofday_two_arguments
=no
21105 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21107 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21108 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
21109 if test $emacs_cv_gettimeofday_two_arguments = no
; then
21111 cat >>confdefs.h
<<\_ACEOF
21112 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21119 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21120 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21121 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21122 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21123 echo $ECHO_N "(cached) $ECHO_C" >&6
21125 cat >conftest.
$ac_ext <<_ACEOF
21128 cat confdefs.h
>>conftest.
$ac_ext
21129 cat >>conftest.
$ac_ext <<_ACEOF
21130 /* end confdefs.h. */
21131 #include <sys/types.h>
21132 #include <$ac_cv_struct_tm>
21138 static struct tm ac_aggr;
21139 if (ac_aggr.tm_zone)
21145 rm -f conftest.
$ac_objext
21146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21147 (eval $ac_compile) 2>conftest.er1
21149 grep -v '^ *+' conftest.er1
>conftest.err
21151 cat conftest.err
>&5
21152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153 (exit $ac_status); } &&
21154 { ac_try
='test -z "$ac_c_werror_flag"
21155 || test ! -s conftest.err'
21156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21157 (eval $ac_try) 2>&5
21159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160 (exit $ac_status); }; } &&
21161 { ac_try
='test -s conftest.$ac_objext'
21162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21163 (eval $ac_try) 2>&5
21165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166 (exit $ac_status); }; }; then
21167 ac_cv_member_struct_tm_tm_zone
=yes
21169 echo "$as_me: failed program was:" >&5
21170 sed 's/^/| /' conftest.
$ac_ext >&5
21172 cat >conftest.
$ac_ext <<_ACEOF
21175 cat confdefs.h
>>conftest.
$ac_ext
21176 cat >>conftest.
$ac_ext <<_ACEOF
21177 /* end confdefs.h. */
21178 #include <sys/types.h>
21179 #include <$ac_cv_struct_tm>
21185 static struct tm ac_aggr;
21186 if (sizeof ac_aggr.tm_zone)
21192 rm -f conftest.
$ac_objext
21193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21194 (eval $ac_compile) 2>conftest.er1
21196 grep -v '^ *+' conftest.er1
>conftest.err
21198 cat conftest.err
>&5
21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200 (exit $ac_status); } &&
21201 { ac_try
='test -z "$ac_c_werror_flag"
21202 || test ! -s conftest.err'
21203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21204 (eval $ac_try) 2>&5
21206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207 (exit $ac_status); }; } &&
21208 { ac_try
='test -s conftest.$ac_objext'
21209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21210 (eval $ac_try) 2>&5
21212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213 (exit $ac_status); }; }; then
21214 ac_cv_member_struct_tm_tm_zone
=yes
21216 echo "$as_me: failed program was:" >&5
21217 sed 's/^/| /' conftest.
$ac_ext >&5
21219 ac_cv_member_struct_tm_tm_zone
=no
21221 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21223 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21225 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21226 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21227 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21229 cat >>confdefs.h
<<_ACEOF
21230 #define HAVE_STRUCT_TM_TM_ZONE 1
21236 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21238 cat >>confdefs.h
<<\_ACEOF
21239 #define HAVE_TM_ZONE 1
21243 echo "$as_me:$LINENO: checking for tzname" >&5
21244 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21245 if test "${ac_cv_var_tzname+set}" = set; then
21246 echo $ECHO_N "(cached) $ECHO_C" >&6
21248 cat >conftest.
$ac_ext <<_ACEOF
21251 cat confdefs.h
>>conftest.
$ac_ext
21252 cat >>conftest.
$ac_ext <<_ACEOF
21253 /* end confdefs.h. */
21255 #ifndef tzname /* For SGI. */
21256 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21267 rm -f conftest.
$ac_objext conftest
$ac_exeext
21268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21269 (eval $ac_link) 2>conftest.er1
21271 grep -v '^ *+' conftest.er1
>conftest.err
21273 cat conftest.err
>&5
21274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275 (exit $ac_status); } &&
21276 { ac_try
='test -z "$ac_c_werror_flag"
21277 || test ! -s conftest.err'
21278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21279 (eval $ac_try) 2>&5
21281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282 (exit $ac_status); }; } &&
21283 { ac_try
='test -s conftest$ac_exeext'
21284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21285 (eval $ac_try) 2>&5
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); }; }; then
21289 ac_cv_var_tzname
=yes
21291 echo "$as_me: failed program was:" >&5
21292 sed 's/^/| /' conftest.
$ac_ext >&5
21294 ac_cv_var_tzname
=no
21296 rm -f conftest.err conftest.
$ac_objext \
21297 conftest
$ac_exeext conftest.
$ac_ext
21299 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21300 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21301 if test $ac_cv_var_tzname = yes; then
21303 cat >>confdefs.h
<<\_ACEOF
21304 #define HAVE_TZNAME 1
21311 if test "$ac_cv_func_gettimeofday" = yes; then
21312 echo "$as_me:$LINENO: checking for struct timezone" >&5
21313 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
21314 if test "${emacs_cv_struct_timezone+set}" = set; then
21315 echo $ECHO_N "(cached) $ECHO_C" >&6
21317 cat >conftest.
$ac_ext <<_ACEOF
21320 cat confdefs.h
>>conftest.
$ac_ext
21321 cat >>conftest.
$ac_ext <<_ACEOF
21322 /* end confdefs.h. */
21323 #include <sys/time.h>
21327 struct timezone tz;
21332 rm -f conftest.
$ac_objext
21333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21334 (eval $ac_compile) 2>conftest.er1
21336 grep -v '^ *+' conftest.er1
>conftest.err
21338 cat conftest.err
>&5
21339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); } &&
21341 { ac_try
='test -z "$ac_c_werror_flag"
21342 || test ! -s conftest.err'
21343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21344 (eval $ac_try) 2>&5
21346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347 (exit $ac_status); }; } &&
21348 { ac_try
='test -s conftest.$ac_objext'
21349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21350 (eval $ac_try) 2>&5
21352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353 (exit $ac_status); }; }; then
21354 if test "$cross_compiling" = yes; then
21355 emacs_cv_struct_timezone
=yes
21357 cat >conftest.
$ac_ext <<_ACEOF
21360 cat confdefs.h
>>conftest.
$ac_ext
21361 cat >>conftest.
$ac_ext <<_ACEOF
21362 /* end confdefs.h. */
21364 #ifdef TIME_WITH_SYS_TIME
21365 #include <sys/time.h>
21368 #ifdef HAVE_SYS_TIME_H
21369 #include <sys/time.h>
21375 struct timeval time;
21376 struct timezone dummy;
21377 exit (gettimeofday (&time, &dummy));
21380 rm -f conftest
$ac_exeext
21381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21382 (eval $ac_link) 2>&5
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21387 (eval $ac_try) 2>&5
21389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390 (exit $ac_status); }; }; then
21391 emacs_cv_struct_timezone
=yes
21393 echo "$as_me: program exited with status $ac_status" >&5
21394 echo "$as_me: failed program was:" >&5
21395 sed 's/^/| /' conftest.
$ac_ext >&5
21397 ( exit $ac_status )
21398 emacs_cv_struct_timezone
=no
21400 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21403 echo "$as_me: failed program was:" >&5
21404 sed 's/^/| /' conftest.
$ac_ext >&5
21406 emacs_cv_struct_timezone
=no
21408 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21410 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21411 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
21415 echo "$as_me:$LINENO: checking for socket" >&5
21416 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21417 if test "${ac_cv_func_socket+set}" = set; then
21418 echo $ECHO_N "(cached) $ECHO_C" >&6
21420 cat >conftest.
$ac_ext <<_ACEOF
21423 cat confdefs.h
>>conftest.
$ac_ext
21424 cat >>conftest.
$ac_ext <<_ACEOF
21425 /* end confdefs.h. */
21426 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21428 #define socket innocuous_socket
21430 /* System header to define __stub macros and hopefully few prototypes,
21431 which can conflict with char socket (); below.
21432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21433 <limits.h> exists even on freestanding compilers. */
21436 # include <limits.h>
21438 # include <assert.h>
21443 /* Override any gcc2 internal prototype to avoid an error. */
21448 /* We use char because int might match the return type of a gcc2
21449 builtin and then its argument prototype would still apply. */
21451 /* The GNU C library defines this for functions which it implements
21452 to always fail with ENOSYS. Some functions are actually named
21453 something starting with __ and the normal name is an alias. */
21454 #if defined (__stub_socket) || defined (__stub___socket)
21457 char (*f) () = socket;
21466 return f != socket;
21471 rm -f conftest.
$ac_objext conftest
$ac_exeext
21472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21473 (eval $ac_link) 2>conftest.er1
21475 grep -v '^ *+' conftest.er1
>conftest.err
21477 cat conftest.err
>&5
21478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); } &&
21480 { ac_try
='test -z "$ac_c_werror_flag"
21481 || test ! -s conftest.err'
21482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21483 (eval $ac_try) 2>&5
21485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486 (exit $ac_status); }; } &&
21487 { ac_try
='test -s conftest$ac_exeext'
21488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21489 (eval $ac_try) 2>&5
21491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492 (exit $ac_status); }; }; then
21493 ac_cv_func_socket
=yes
21495 echo "$as_me: failed program was:" >&5
21496 sed 's/^/| /' conftest.
$ac_ext >&5
21498 ac_cv_func_socket
=no
21500 rm -f conftest.err conftest.
$ac_objext \
21501 conftest
$ac_exeext conftest.
$ac_ext
21503 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21504 echo "${ECHO_T}$ac_cv_func_socket" >&6
21505 if test $ac_cv_func_socket = yes; then
21511 if test $ok_so_far = yes; then
21512 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21513 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21514 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21515 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21516 echo $ECHO_N "(cached) $ECHO_C" >&6
21518 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21519 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21521 # Is the header compilable?
21522 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21523 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21524 cat >conftest.
$ac_ext <<_ACEOF
21527 cat confdefs.h
>>conftest.
$ac_ext
21528 cat >>conftest.
$ac_ext <<_ACEOF
21529 /* end confdefs.h. */
21530 $ac_includes_default
21531 #include <netinet/in.h>
21533 rm -f conftest.
$ac_objext
21534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21535 (eval $ac_compile) 2>conftest.er1
21537 grep -v '^ *+' conftest.er1
>conftest.err
21539 cat conftest.err
>&5
21540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541 (exit $ac_status); } &&
21542 { ac_try
='test -z "$ac_c_werror_flag"
21543 || test ! -s conftest.err'
21544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21545 (eval $ac_try) 2>&5
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); }; } &&
21549 { ac_try
='test -s conftest.$ac_objext'
21550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21551 (eval $ac_try) 2>&5
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); }; }; then
21555 ac_header_compiler
=yes
21557 echo "$as_me: failed program was:" >&5
21558 sed 's/^/| /' conftest.
$ac_ext >&5
21560 ac_header_compiler
=no
21562 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21563 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21564 echo "${ECHO_T}$ac_header_compiler" >&6
21566 # Is the header present?
21567 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21568 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21569 cat >conftest.
$ac_ext <<_ACEOF
21572 cat confdefs.h
>>conftest.
$ac_ext
21573 cat >>conftest.
$ac_ext <<_ACEOF
21574 /* end confdefs.h. */
21575 #include <netinet/in.h>
21577 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21578 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21580 grep -v '^ *+' conftest.er1
>conftest.err
21582 cat conftest.err
>&5
21583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584 (exit $ac_status); } >/dev
/null
; then
21585 if test -s conftest.err
; then
21586 ac_cpp_err
=$ac_c_preproc_warn_flag
21587 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21594 if test -z "$ac_cpp_err"; then
21595 ac_header_preproc
=yes
21597 echo "$as_me: failed program was:" >&5
21598 sed 's/^/| /' conftest.
$ac_ext >&5
21600 ac_header_preproc
=no
21602 rm -f conftest.err conftest.
$ac_ext
21603 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21604 echo "${ECHO_T}$ac_header_preproc" >&6
21606 # So? What about this header?
21607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21609 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21610 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21611 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21612 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21613 ac_header_preproc
=yes
21616 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21617 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21618 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21619 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21620 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21621 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21622 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21623 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21624 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21625 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21626 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21627 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21630 ## ------------------------------------------ ##
21631 ## Report this to the AC_PACKAGE_NAME lists. ##
21632 ## ------------------------------------------ ##
21635 sed "s/^/$as_me: WARNING: /" >&2
21638 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21639 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21640 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21641 echo $ECHO_N "(cached) $ECHO_C" >&6
21643 ac_cv_header_netinet_in_h
=$ac_header_preproc
21645 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21646 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21649 if test $ac_cv_header_netinet_in_h = yes; then
21657 if test $ok_so_far = yes; then
21658 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21659 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21660 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21661 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21662 echo $ECHO_N "(cached) $ECHO_C" >&6
21664 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21665 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21667 # Is the header compilable?
21668 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21669 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21670 cat >conftest.
$ac_ext <<_ACEOF
21673 cat confdefs.h
>>conftest.
$ac_ext
21674 cat >>conftest.
$ac_ext <<_ACEOF
21675 /* end confdefs.h. */
21676 $ac_includes_default
21677 #include <arpa/inet.h>
21679 rm -f conftest.
$ac_objext
21680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21681 (eval $ac_compile) 2>conftest.er1
21683 grep -v '^ *+' conftest.er1
>conftest.err
21685 cat conftest.err
>&5
21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); } &&
21688 { ac_try
='test -z "$ac_c_werror_flag"
21689 || test ! -s conftest.err'
21690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21691 (eval $ac_try) 2>&5
21693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694 (exit $ac_status); }; } &&
21695 { ac_try
='test -s conftest.$ac_objext'
21696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21697 (eval $ac_try) 2>&5
21699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700 (exit $ac_status); }; }; then
21701 ac_header_compiler
=yes
21703 echo "$as_me: failed program was:" >&5
21704 sed 's/^/| /' conftest.
$ac_ext >&5
21706 ac_header_compiler
=no
21708 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21709 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21710 echo "${ECHO_T}$ac_header_compiler" >&6
21712 # Is the header present?
21713 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21714 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21715 cat >conftest.
$ac_ext <<_ACEOF
21718 cat confdefs.h
>>conftest.
$ac_ext
21719 cat >>conftest.
$ac_ext <<_ACEOF
21720 /* end confdefs.h. */
21721 #include <arpa/inet.h>
21723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21724 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21726 grep -v '^ *+' conftest.er1
>conftest.err
21728 cat conftest.err
>&5
21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); } >/dev
/null
; then
21731 if test -s conftest.err
; then
21732 ac_cpp_err
=$ac_c_preproc_warn_flag
21733 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21740 if test -z "$ac_cpp_err"; then
21741 ac_header_preproc
=yes
21743 echo "$as_me: failed program was:" >&5
21744 sed 's/^/| /' conftest.
$ac_ext >&5
21746 ac_header_preproc
=no
21748 rm -f conftest.err conftest.
$ac_ext
21749 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21750 echo "${ECHO_T}$ac_header_preproc" >&6
21752 # So? What about this header?
21753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21755 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21756 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21757 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21758 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21759 ac_header_preproc
=yes
21762 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21763 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21764 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21765 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21766 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21767 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21768 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21769 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21770 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21771 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21772 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21773 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21776 ## ------------------------------------------ ##
21777 ## Report this to the AC_PACKAGE_NAME lists. ##
21778 ## ------------------------------------------ ##
21781 sed "s/^/$as_me: WARNING: /" >&2
21784 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21785 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21786 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21787 echo $ECHO_N "(cached) $ECHO_C" >&6
21789 ac_cv_header_arpa_inet_h
=$ac_header_preproc
21791 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21792 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21795 if test $ac_cv_header_arpa_inet_h = yes; then
21803 if test $ok_so_far = yes; then
21805 cat >>confdefs.h
<<\_ACEOF
21806 #define HAVE_INET_SOCKETS 1
21812 for ac_header
in sys
/ioctl.h
21814 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21816 echo "$as_me:$LINENO: checking for $ac_header" >&5
21817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21819 echo $ECHO_N "(cached) $ECHO_C" >&6
21821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21824 # Is the header compilable?
21825 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21826 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21827 cat >conftest.
$ac_ext <<_ACEOF
21830 cat confdefs.h
>>conftest.
$ac_ext
21831 cat >>conftest.
$ac_ext <<_ACEOF
21832 /* end confdefs.h. */
21833 $ac_includes_default
21834 #include <$ac_header>
21836 rm -f conftest.
$ac_objext
21837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21838 (eval $ac_compile) 2>conftest.er1
21840 grep -v '^ *+' conftest.er1
>conftest.err
21842 cat conftest.err
>&5
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); } &&
21845 { ac_try
='test -z "$ac_c_werror_flag"
21846 || test ! -s conftest.err'
21847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21848 (eval $ac_try) 2>&5
21850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21851 (exit $ac_status); }; } &&
21852 { ac_try
='test -s conftest.$ac_objext'
21853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21854 (eval $ac_try) 2>&5
21856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21857 (exit $ac_status); }; }; then
21858 ac_header_compiler
=yes
21860 echo "$as_me: failed program was:" >&5
21861 sed 's/^/| /' conftest.
$ac_ext >&5
21863 ac_header_compiler
=no
21865 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21866 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21867 echo "${ECHO_T}$ac_header_compiler" >&6
21869 # Is the header present?
21870 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21872 cat >conftest.
$ac_ext <<_ACEOF
21875 cat confdefs.h
>>conftest.
$ac_ext
21876 cat >>conftest.
$ac_ext <<_ACEOF
21877 /* end confdefs.h. */
21878 #include <$ac_header>
21880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21881 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21883 grep -v '^ *+' conftest.er1
>conftest.err
21885 cat conftest.err
>&5
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); } >/dev
/null
; then
21888 if test -s conftest.err
; then
21889 ac_cpp_err
=$ac_c_preproc_warn_flag
21890 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21897 if test -z "$ac_cpp_err"; then
21898 ac_header_preproc
=yes
21900 echo "$as_me: failed program was:" >&5
21901 sed 's/^/| /' conftest.
$ac_ext >&5
21903 ac_header_preproc
=no
21905 rm -f conftest.err conftest.
$ac_ext
21906 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21907 echo "${ECHO_T}$ac_header_preproc" >&6
21909 # So? What about this header?
21910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21912 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21913 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21915 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21916 ac_header_preproc
=yes
21919 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21920 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21921 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21922 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21923 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21924 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21925 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21926 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21929 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21930 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21933 ## ------------------------------------------ ##
21934 ## Report this to the AC_PACKAGE_NAME lists. ##
21935 ## ------------------------------------------ ##
21938 sed "s/^/$as_me: WARNING: /" >&2
21941 echo "$as_me:$LINENO: checking for $ac_header" >&5
21942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21944 echo $ECHO_N "(cached) $ECHO_C" >&6
21946 eval "$as_ac_Header=\$ac_header_preproc"
21948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21953 cat >>confdefs.h
<<_ACEOF
21954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21962 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
21964 cat >>confdefs.h
<<\_ACEOF
21965 #define HAVE_AIX_SMT_EXP 1
21970 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21971 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21972 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
21973 echo "$as_me:$LINENO: result: yes" >&5
21974 echo "${ECHO_T}yes" >&6
21976 cat >>confdefs.h
<<\_ACEOF
21977 #define HAVE_DEV_PTMX 1
21981 echo "$as_me:$LINENO: result: no" >&5
21982 echo "${ECHO_T}no" >&6
21985 echo "$as_me:$LINENO: checking for pid_t" >&5
21986 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21987 if test "${ac_cv_type_pid_t+set}" = set; then
21988 echo $ECHO_N "(cached) $ECHO_C" >&6
21990 cat >conftest.
$ac_ext <<_ACEOF
21993 cat confdefs.h
>>conftest.
$ac_ext
21994 cat >>conftest.
$ac_ext <<_ACEOF
21995 /* end confdefs.h. */
21996 $ac_includes_default
22002 if (sizeof (pid_t))
22008 rm -f conftest.
$ac_objext
22009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22010 (eval $ac_compile) 2>conftest.er1
22012 grep -v '^ *+' conftest.er1
>conftest.err
22014 cat conftest.err
>&5
22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016 (exit $ac_status); } &&
22017 { ac_try
='test -z "$ac_c_werror_flag"
22018 || test ! -s conftest.err'
22019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22020 (eval $ac_try) 2>&5
22022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023 (exit $ac_status); }; } &&
22024 { ac_try
='test -s conftest.$ac_objext'
22025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22026 (eval $ac_try) 2>&5
22028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22029 (exit $ac_status); }; }; then
22030 ac_cv_type_pid_t
=yes
22032 echo "$as_me: failed program was:" >&5
22033 sed 's/^/| /' conftest.
$ac_ext >&5
22035 ac_cv_type_pid_t
=no
22037 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22039 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22040 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22041 if test $ac_cv_type_pid_t = yes; then
22045 cat >>confdefs.h
<<_ACEOF
22053 for ac_header
in unistd.h vfork.h
22055 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22057 echo "$as_me:$LINENO: checking for $ac_header" >&5
22058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22060 echo $ECHO_N "(cached) $ECHO_C" >&6
22062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22065 # Is the header compilable?
22066 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22068 cat >conftest.
$ac_ext <<_ACEOF
22071 cat confdefs.h
>>conftest.
$ac_ext
22072 cat >>conftest.
$ac_ext <<_ACEOF
22073 /* end confdefs.h. */
22074 $ac_includes_default
22075 #include <$ac_header>
22077 rm -f conftest.
$ac_objext
22078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22079 (eval $ac_compile) 2>conftest.er1
22081 grep -v '^ *+' conftest.er1
>conftest.err
22083 cat conftest.err
>&5
22084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085 (exit $ac_status); } &&
22086 { ac_try
='test -z "$ac_c_werror_flag"
22087 || test ! -s conftest.err'
22088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22089 (eval $ac_try) 2>&5
22091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22092 (exit $ac_status); }; } &&
22093 { ac_try
='test -s conftest.$ac_objext'
22094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22095 (eval $ac_try) 2>&5
22097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098 (exit $ac_status); }; }; then
22099 ac_header_compiler
=yes
22101 echo "$as_me: failed program was:" >&5
22102 sed 's/^/| /' conftest.
$ac_ext >&5
22104 ac_header_compiler
=no
22106 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22107 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22108 echo "${ECHO_T}$ac_header_compiler" >&6
22110 # Is the header present?
22111 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22112 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22113 cat >conftest.
$ac_ext <<_ACEOF
22116 cat confdefs.h
>>conftest.
$ac_ext
22117 cat >>conftest.
$ac_ext <<_ACEOF
22118 /* end confdefs.h. */
22119 #include <$ac_header>
22121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22122 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
22124 grep -v '^ *+' conftest.er1
>conftest.err
22126 cat conftest.err
>&5
22127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128 (exit $ac_status); } >/dev
/null
; then
22129 if test -s conftest.err
; then
22130 ac_cpp_err
=$ac_c_preproc_warn_flag
22131 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
22138 if test -z "$ac_cpp_err"; then
22139 ac_header_preproc
=yes
22141 echo "$as_me: failed program was:" >&5
22142 sed 's/^/| /' conftest.
$ac_ext >&5
22144 ac_header_preproc
=no
22146 rm -f conftest.err conftest.
$ac_ext
22147 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22148 echo "${ECHO_T}$ac_header_preproc" >&6
22150 # So? What about this header?
22151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22153 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22156 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22157 ac_header_preproc
=yes
22160 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22162 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22163 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22164 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22165 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22166 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22167 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22170 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22171 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22174 ## ------------------------------------------ ##
22175 ## Report this to the AC_PACKAGE_NAME lists. ##
22176 ## ------------------------------------------ ##
22179 sed "s/^/$as_me: WARNING: /" >&2
22182 echo "$as_me:$LINENO: checking for $ac_header" >&5
22183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22185 echo $ECHO_N "(cached) $ECHO_C" >&6
22187 eval "$as_ac_Header=\$ac_header_preproc"
22189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22194 cat >>confdefs.h
<<_ACEOF
22195 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22204 for ac_func
in fork vfork
22206 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22207 echo "$as_me:$LINENO: checking for $ac_func" >&5
22208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22209 if eval "test \"\${$as_ac_var+set}\" = set"; then
22210 echo $ECHO_N "(cached) $ECHO_C" >&6
22212 cat >conftest.
$ac_ext <<_ACEOF
22215 cat confdefs.h
>>conftest.
$ac_ext
22216 cat >>conftest.
$ac_ext <<_ACEOF
22217 /* end confdefs.h. */
22218 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22220 #define $ac_func innocuous_$ac_func
22222 /* System header to define __stub macros and hopefully few prototypes,
22223 which can conflict with char $ac_func (); below.
22224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22225 <limits.h> exists even on freestanding compilers. */
22228 # include <limits.h>
22230 # include <assert.h>
22235 /* Override any gcc2 internal prototype to avoid an error. */
22240 /* We use char because int might match the return type of a gcc2
22241 builtin and then its argument prototype would still apply. */
22243 /* The GNU C library defines this for functions which it implements
22244 to always fail with ENOSYS. Some functions are actually named
22245 something starting with __ and the normal name is an alias. */
22246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22249 char (*f) () = $ac_func;
22258 return f != $ac_func;
22263 rm -f conftest.
$ac_objext conftest
$ac_exeext
22264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22265 (eval $ac_link) 2>conftest.er1
22267 grep -v '^ *+' conftest.er1
>conftest.err
22269 cat conftest.err
>&5
22270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271 (exit $ac_status); } &&
22272 { ac_try
='test -z "$ac_c_werror_flag"
22273 || test ! -s conftest.err'
22274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22275 (eval $ac_try) 2>&5
22277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278 (exit $ac_status); }; } &&
22279 { ac_try
='test -s conftest$ac_exeext'
22280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22281 (eval $ac_try) 2>&5
22283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284 (exit $ac_status); }; }; then
22285 eval "$as_ac_var=yes"
22287 echo "$as_me: failed program was:" >&5
22288 sed 's/^/| /' conftest.
$ac_ext >&5
22290 eval "$as_ac_var=no"
22292 rm -f conftest.err conftest.
$ac_objext \
22293 conftest
$ac_exeext conftest.
$ac_ext
22295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22296 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22297 if test `eval echo '${'$as_ac_var'}'` = yes; then
22298 cat >>confdefs.h
<<_ACEOF
22299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22305 if test "x$ac_cv_func_fork" = xyes
; then
22306 echo "$as_me:$LINENO: checking for working fork" >&5
22307 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
22308 if test "${ac_cv_func_fork_works+set}" = set; then
22309 echo $ECHO_N "(cached) $ECHO_C" >&6
22311 if test "$cross_compiling" = yes; then
22312 ac_cv_func_fork_works
=cross
22314 cat >conftest.
$ac_ext <<_ACEOF
22315 /* By Ruediger Kuhlmann. */
22316 #include <sys/types.h>
22318 # include <unistd.h>
22320 /* Some systems only have a dummy stub for fork() */
22328 rm -f conftest
$ac_exeext
22329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22330 (eval $ac_link) 2>&5
22332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22333 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22335 (eval $ac_try) 2>&5
22337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338 (exit $ac_status); }; }; then
22339 ac_cv_func_fork_works
=yes
22341 echo "$as_me: program exited with status $ac_status" >&5
22342 echo "$as_me: failed program was:" >&5
22343 sed 's/^/| /' conftest.
$ac_ext >&5
22345 ( exit $ac_status )
22346 ac_cv_func_fork_works
=no
22348 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22351 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22352 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
22355 ac_cv_func_fork_works
=$ac_cv_func_fork
22357 if test "x$ac_cv_func_fork_works" = xcross
; then
22359 *-*-amigaos* |
*-*-msdosdjgpp*)
22360 # Override, as these systems have only a dummy fork() stub
22361 ac_cv_func_fork_works
=no
22364 ac_cv_func_fork_works
=yes
22367 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22368 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22370 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22371 if test "x$ac_cv_func_vfork" = xyes
; then
22372 echo "$as_me:$LINENO: checking for working vfork" >&5
22373 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
22374 if test "${ac_cv_func_vfork_works+set}" = set; then
22375 echo $ECHO_N "(cached) $ECHO_C" >&6
22377 if test "$cross_compiling" = yes; then
22378 ac_cv_func_vfork_works
=cross
22380 cat >conftest.
$ac_ext <<_ACEOF
22383 cat confdefs.h
>>conftest.
$ac_ext
22384 cat >>conftest.
$ac_ext <<_ACEOF
22385 /* end confdefs.h. */
22386 /* Thanks to Paul Eggert for this test. */
22388 #include <stdlib.h>
22389 #include <sys/types.h>
22390 #include <sys/stat.h>
22391 #include <sys/wait.h>
22393 # include <unistd.h>
22396 # include <vfork.h>
22398 /* On some sparc systems, changes by the child to local and incoming
22399 argument registers are propagated back to the parent. The compiler
22400 is told about this with #include <vfork.h>, but some compilers
22401 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22402 static variable whose address is put into a register that is
22403 clobbered by the vfork. */
22406 sparc_address_test (int arg)
22408 sparc_address_test (arg) int arg;
22411 static pid_t child;
22429 pid_t parent = getpid ();
22432 sparc_address_test (0);
22437 /* Here is another test for sparc vfork register problems. This
22438 test uses lots of local variables, at least as many local
22439 variables as main has allocated so far including compiler
22440 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22441 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22442 reuse the register of parent for one of the local variables,
22443 since it will think that parent can't possibly be used any more
22444 in this routine. Assigning to the local variable will thus
22445 munge parent in the parent process. */
22447 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22448 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22449 /* Convince the compiler that p..p7 are live; otherwise, it might
22450 use the same hardware register for all 8 local variables. */
22451 if (p != p1 || p != p2 || p != p3 || p != p4
22452 || p != p5 || p != p6 || p != p7)
22455 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22456 from child file descriptors. If the child closes a descriptor
22457 before it execs or exits, this munges the parent's descriptor
22458 as well. Test for this by closing stdout in the child. */
22459 _exit(close(fileno(stdout)) != 0);
22464 while (wait(&status) != child)
22467 /* Was there some problem with vforking? */
22470 /* Did the child fail? (This shouldn't happen.) */
22473 /* Did the vfork/compiler bug occur? */
22474 || parent != getpid()
22476 /* Did the file descriptor bug occur? */
22477 || fstat(fileno(stdout), &st) != 0
22482 rm -f conftest
$ac_exeext
22483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22484 (eval $ac_link) 2>&5
22486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22489 (eval $ac_try) 2>&5
22491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492 (exit $ac_status); }; }; then
22493 ac_cv_func_vfork_works
=yes
22495 echo "$as_me: program exited with status $ac_status" >&5
22496 echo "$as_me: failed program was:" >&5
22497 sed 's/^/| /' conftest.
$ac_ext >&5
22499 ( exit $ac_status )
22500 ac_cv_func_vfork_works
=no
22502 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22505 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22506 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22509 if test "x$ac_cv_func_fork_works" = xcross
; then
22510 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22511 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22512 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22515 if test "x$ac_cv_func_vfork_works" = xyes
; then
22517 cat >>confdefs.h
<<\_ACEOF
22518 #define HAVE_WORKING_VFORK 1
22523 cat >>confdefs.h
<<\_ACEOF
22528 if test "x$ac_cv_func_fork_works" = xyes
; then
22530 cat >>confdefs.h
<<\_ACEOF
22531 #define HAVE_WORKING_FORK 1
22537 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22538 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
22539 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22540 echo $ECHO_N "(cached) $ECHO_C" >&6
22542 cat >conftest.
$ac_ext <<_ACEOF
22545 cat confdefs.h
>>conftest.
$ac_ext
22546 cat >>conftest.
$ac_ext <<_ACEOF
22547 /* end confdefs.h. */
22548 #include <langinfo.h>
22552 char* cs = nl_langinfo(CODESET);
22557 rm -f conftest.
$ac_objext conftest
$ac_exeext
22558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22559 (eval $ac_link) 2>conftest.er1
22561 grep -v '^ *+' conftest.er1
>conftest.err
22563 cat conftest.err
>&5
22564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); } &&
22566 { ac_try
='test -z "$ac_c_werror_flag"
22567 || test ! -s conftest.err'
22568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22569 (eval $ac_try) 2>&5
22571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572 (exit $ac_status); }; } &&
22573 { ac_try
='test -s conftest$ac_exeext'
22574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22575 (eval $ac_try) 2>&5
22577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578 (exit $ac_status); }; }; then
22579 emacs_cv_langinfo_codeset
=yes
22581 echo "$as_me: failed program was:" >&5
22582 sed 's/^/| /' conftest.
$ac_ext >&5
22584 emacs_cv_langinfo_codeset
=no
22586 rm -f conftest.err conftest.
$ac_objext \
22587 conftest
$ac_exeext conftest.
$ac_ext
22590 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22591 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22592 if test $emacs_cv_langinfo_codeset = yes; then
22594 cat >>confdefs.h
<<\_ACEOF
22595 #define HAVE_LANGINFO_CODESET 1
22600 echo "$as_me:$LINENO: checking for size_t" >&5
22601 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22602 if test "${ac_cv_type_size_t+set}" = set; then
22603 echo $ECHO_N "(cached) $ECHO_C" >&6
22605 cat >conftest.
$ac_ext <<_ACEOF
22608 cat confdefs.h
>>conftest.
$ac_ext
22609 cat >>conftest.
$ac_ext <<_ACEOF
22610 /* end confdefs.h. */
22611 $ac_includes_default
22617 if (sizeof (size_t))
22623 rm -f conftest.
$ac_objext
22624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22625 (eval $ac_compile) 2>conftest.er1
22627 grep -v '^ *+' conftest.er1
>conftest.err
22629 cat conftest.err
>&5
22630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631 (exit $ac_status); } &&
22632 { ac_try
='test -z "$ac_c_werror_flag"
22633 || test ! -s conftest.err'
22634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22635 (eval $ac_try) 2>&5
22637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22638 (exit $ac_status); }; } &&
22639 { ac_try
='test -s conftest.$ac_objext'
22640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22641 (eval $ac_try) 2>&5
22643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644 (exit $ac_status); }; }; then
22645 ac_cv_type_size_t
=yes
22647 echo "$as_me: failed program was:" >&5
22648 sed 's/^/| /' conftest.
$ac_ext >&5
22650 ac_cv_type_size_t
=no
22652 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22654 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22655 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22656 if test $ac_cv_type_size_t = yes; then
22658 cat >>confdefs.h
<<_ACEOF
22659 #define HAVE_SIZE_T 1
22666 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22667 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22668 if test "${ac_cv_type_mbstate_t+set}" = set; then
22669 echo $ECHO_N "(cached) $ECHO_C" >&6
22671 cat >conftest.
$ac_ext <<_ACEOF
22674 cat confdefs.h
>>conftest.
$ac_ext
22675 cat >>conftest.
$ac_ext <<_ACEOF
22676 /* end confdefs.h. */
22677 $ac_includes_default
22678 # include <wchar.h>
22682 mbstate_t x; return sizeof x;
22687 rm -f conftest.
$ac_objext
22688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22689 (eval $ac_compile) 2>conftest.er1
22691 grep -v '^ *+' conftest.er1
>conftest.err
22693 cat conftest.err
>&5
22694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695 (exit $ac_status); } &&
22696 { ac_try
='test -z "$ac_c_werror_flag"
22697 || test ! -s conftest.err'
22698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22699 (eval $ac_try) 2>&5
22701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22702 (exit $ac_status); }; } &&
22703 { ac_try
='test -s conftest.$ac_objext'
22704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22705 (eval $ac_try) 2>&5
22707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22708 (exit $ac_status); }; }; then
22709 ac_cv_type_mbstate_t
=yes
22711 echo "$as_me: failed program was:" >&5
22712 sed 's/^/| /' conftest.
$ac_ext >&5
22714 ac_cv_type_mbstate_t
=no
22716 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22718 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22719 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22720 if test $ac_cv_type_mbstate_t = yes; then
22722 cat >>confdefs.h
<<\_ACEOF
22723 #define HAVE_MBSTATE_T 1
22728 cat >>confdefs.h
<<\_ACEOF
22729 #define mbstate_t int
22734 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22735 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22736 if test "${emacs_cv_c_restrict+set}" = set; then
22737 echo $ECHO_N "(cached) $ECHO_C" >&6
22739 cat >conftest.
$ac_ext <<_ACEOF
22742 cat confdefs.h
>>conftest.
$ac_ext
22743 cat >>conftest.
$ac_ext <<_ACEOF
22744 /* end confdefs.h. */
22745 void fred (int *restrict x);
22754 rm -f conftest.
$ac_objext
22755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22756 (eval $ac_compile) 2>conftest.er1
22758 grep -v '^ *+' conftest.er1
>conftest.err
22760 cat conftest.err
>&5
22761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22762 (exit $ac_status); } &&
22763 { ac_try
='test -z "$ac_c_werror_flag"
22764 || test ! -s conftest.err'
22765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22766 (eval $ac_try) 2>&5
22768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769 (exit $ac_status); }; } &&
22770 { ac_try
='test -s conftest.$ac_objext'
22771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22772 (eval $ac_try) 2>&5
22774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775 (exit $ac_status); }; }; then
22776 emacs_cv_c_restrict
=yes
22778 echo "$as_me: failed program was:" >&5
22779 sed 's/^/| /' conftest.
$ac_ext >&5
22781 cat >conftest.
$ac_ext <<_ACEOF
22784 cat confdefs.h
>>conftest.
$ac_ext
22785 cat >>conftest.
$ac_ext <<_ACEOF
22786 /* end confdefs.h. */
22787 void fred (int *__restrict x);
22796 rm -f conftest.
$ac_objext
22797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22798 (eval $ac_compile) 2>conftest.er1
22800 grep -v '^ *+' conftest.er1
>conftest.err
22802 cat conftest.err
>&5
22803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22804 (exit $ac_status); } &&
22805 { ac_try
='test -z "$ac_c_werror_flag"
22806 || test ! -s conftest.err'
22807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22808 (eval $ac_try) 2>&5
22810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22811 (exit $ac_status); }; } &&
22812 { ac_try
='test -s conftest.$ac_objext'
22813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22814 (eval $ac_try) 2>&5
22816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817 (exit $ac_status); }; }; then
22818 emacs_cv_c_restrict
=__restrict
22820 echo "$as_me: failed program was:" >&5
22821 sed 's/^/| /' conftest.
$ac_ext >&5
22823 emacs_cv_c_restrict
=no
22825 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22827 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22829 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22830 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22831 case "$emacs_cv_c_restrict" in
22832 yes) emacs_restrict
=restrict
;;
22833 no
) emacs_restrict
="";;
22834 *) emacs_restrict
="$emacs_cv_c_restrict";;
22836 if test "$emacs_restrict" != __restrict
; then
22838 cat >>confdefs.h
<<_ACEOF
22839 #define __restrict $emacs_restrict
22844 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22845 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22846 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22847 echo $ECHO_N "(cached) $ECHO_C" >&6
22849 cat >conftest.
$ac_ext <<_ACEOF
22852 cat confdefs.h
>>conftest.
$ac_ext
22853 cat >>conftest.
$ac_ext <<_ACEOF
22854 /* end confdefs.h. */
22855 void fred (int x[__restrict]);
22864 rm -f conftest.
$ac_objext
22865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22866 (eval $ac_compile) 2>conftest.er1
22868 grep -v '^ *+' conftest.er1
>conftest.err
22870 cat conftest.err
>&5
22871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22872 (exit $ac_status); } &&
22873 { ac_try
='test -z "$ac_c_werror_flag"
22874 || test ! -s conftest.err'
22875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22876 (eval $ac_try) 2>&5
22878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879 (exit $ac_status); }; } &&
22880 { ac_try
='test -s conftest.$ac_objext'
22881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22882 (eval $ac_try) 2>&5
22884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885 (exit $ac_status); }; }; then
22886 emacs_cv_c_restrict_arr
=yes
22888 echo "$as_me: failed program was:" >&5
22889 sed 's/^/| /' conftest.
$ac_ext >&5
22891 emacs_cv_c_restrict_arr
=no
22893 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22895 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22896 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22897 if test "$emacs_cv_c_restrict_arr" = yes; then
22899 cat >>confdefs.h
<<\_ACEOF
22900 #define __restrict_arr __restrict
22907 # Set up the CFLAGS for real compilation, so we can substitute it.
22908 CFLAGS
="$REAL_CFLAGS"
22909 CPPFLAGS
="$REAL_CPPFLAGS"
22911 #### Find out which version of Emacs this is.
22912 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22913 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22914 if test x
"${version}" = x
; then
22915 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22916 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22917 { (exit 1); exit 1; }; }
22920 ### Specify what sort of things we'll be editing into Makefile and config.h.
22921 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22957 cat >>confdefs.h
<<_ACEOF
22958 #define EMACS_CONFIGURATION "${canonical}"
22962 cat >>confdefs.h
<<_ACEOF
22963 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22967 cat >>confdefs.h
<<_ACEOF
22968 #define config_machfile "${machfile}"
22972 cat >>confdefs.h
<<_ACEOF
22973 #define config_opsysfile "${opsysfile}"
22977 cat >>confdefs.h
<<_ACEOF
22978 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22982 cat >>confdefs.h
<<_ACEOF
22983 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22987 cat >>confdefs.h
<<_ACEOF
22988 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22992 cat >>confdefs.h
<<_ACEOF
22993 #define UNEXEC_SRC ${UNEXEC_SRC}
22997 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22999 cat >>confdefs.h
<<\_ACEOF
23000 #define HAVE_X_WINDOWS 1
23004 if test "${USE_X_TOOLKIT}" != "none" ; then
23006 cat >>confdefs.h
<<\_ACEOF
23007 #define USE_X_TOOLKIT 1
23011 if test "${HAVE_X11}" = "yes" ; then
23013 cat >>confdefs.h
<<\_ACEOF
23018 if test "${HAVE_XFREE386}" = "yes" ; then
23020 cat >>confdefs.h
<<\_ACEOF
23021 #define HAVE_XFREE386 1
23025 if test "${HAVE_MENUS}" = "yes" ; then
23027 cat >>confdefs.h
<<\_ACEOF
23028 #define HAVE_MENUS 1
23032 if test "${GNU_MALLOC}" = "yes" ; then
23034 cat >>confdefs.h
<<\_ACEOF
23035 #define GNU_MALLOC 1
23039 if test "${REL_ALLOC}" = "yes" ; then
23041 cat >>confdefs.h
<<\_ACEOF
23042 #define REL_ALLOC 1
23051 #### Report on what we decided to do.
23052 #### Report GTK as a toolkit, even if it doesn't use Xt.
23053 #### It makes printing result more understandable as using GTK sets
23054 #### toolkit_scroll_bars to yes by default.
23055 if test "${HAVE_GTK}" = "yes"; then
23060 Configured for \`${canonical}'.
23062 Where should the build process find the source code? ${srcdir}
23063 What operating system and machine description files should Emacs use?
23064 \`${opsysfile}' and \`${machfile}'
23065 What compiler should emacs be built with? ${CC} ${CFLAGS}
23066 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23067 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23068 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23069 What window system should Emacs use? ${window_system}
23070 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23072 if test -n "${x_includes}"; then
23073 echo " Where do we find X Windows header files? ${x_includes}"
23075 echo " Where do we find X Windows header files? Standard dirs"
23077 if test -n "${x_libraries}"; then
23078 echo " Where do we find X Windows libraries? ${x_libraries}"
23080 echo " Where do we find X Windows libraries? Standard dirs"
23083 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23084 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23085 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23086 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23087 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23088 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23089 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23092 if test $USE_XASSERTS = yes; then
23093 echo " Compiling with asserts turned on."
23094 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
23100 # Remove any trailing slashes in these variables.
23101 test "${prefix}" != NONE
&&
23102 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23103 test "${exec_prefix}" != NONE
&&
23104 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23106 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23107 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23108 ## from Makefile.c can correctly provide the arg `-traditional' to the
23111 cat >conftest.
$ac_ext <<_ACEOF
23114 cat confdefs.h
>>conftest.
$ac_ext
23115 cat >>conftest.
$ac_ext <<_ACEOF
23116 /* end confdefs.h. */
23119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23120 $EGREP "yes..yes" >/dev
/null
2>&1; then
23121 CPP_NEED_TRADITIONAL
=no
23123 CPP_NEED_TRADITIONAL
=yes
23128 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"
23129 ac_config_commands
="$ac_config_commands default"
23130 cat >confcache
<<\_ACEOF
23131 # This file is a shell script that caches the results of configure
23132 # tests run on this system so they can be shared between configure
23133 # scripts and configure runs, see configure's option --config-cache.
23134 # It is not useful on other systems. If it contains results you don't
23135 # want to keep, you may remove or edit it.
23137 # config.status only pays attention to the cache file if you give it
23138 # the --recheck option to rerun configure.
23140 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23141 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23142 # following values.
23146 # The following way of writing the cache mishandles newlines in values,
23147 # but we know of no workaround that is simple, portable, and efficient.
23148 # So, don't put newlines in cache variables' values.
23149 # Ultrix sh set writes to stderr and can't be redirected directly,
23150 # and sets the high bit in the cache file unless we assign to the vars.
23153 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23155 # `set' does not quote correctly, so add quotes (double-quote
23156 # substitution turns \\\\ into \\, and sed turns \\ into \).
23159 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23162 # `set' quotes correctly as required by POSIX, so do not add quotes.
23164 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23171 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23173 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23175 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
23176 if test -w $cache_file; then
23177 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23178 cat confcache
>$cache_file
23180 echo "not updating unwritable cache $cache_file"
23185 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
23186 # Let make expand exec_prefix.
23187 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
23189 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23190 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23191 # trailing colons and then remove the whole line if VPATH becomes empty
23192 # (actually we leave an empty line to preserve line numbers).
23193 if test "x$srcdir" = x.
; then
23194 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23195 s/:*\$(srcdir):*/:/;
23196 s/:*\${srcdir}:*/:/;
23198 s/^\([^=]*=[ ]*\):*/\1/;
23204 DEFS
=-DHAVE_CONFIG_H
23208 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
23209 # 1. Remove the extension, and $U if already installed.
23210 ac_i
=`echo "$ac_i" |
23211 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23213 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
23214 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
23216 LIBOBJS
=$ac_libobjs
23218 LTLIBOBJS
=$ac_ltlibobjs
23222 : ${CONFIG_STATUS=./config.status}
23223 ac_clean_files_save
=$ac_clean_files
23224 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
23225 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23226 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23227 cat >$CONFIG_STATUS <<_ACEOF
23229 # Generated by $as_me.
23230 # Run this file to recreate the current configuration.
23231 # Compiler output produced by configure, useful for debugging
23232 # configure, is in config.log if it exists.
23235 ac_cs_recheck=false
23237 SHELL=\${CONFIG_SHELL-$SHELL}
23240 cat >>$CONFIG_STATUS <<\_ACEOF
23241 ## --------------------- ##
23242 ## M4sh Initialization. ##
23243 ## --------------------- ##
23245 # Be Bourne compatible
23246 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
23249 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23250 # is contrary to our usage. Disable this feature.
23251 alias -g '${1+"$@"}'='"$@"'
23252 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
23255 DUALCASE
=1; export DUALCASE
# for MKS sh
23257 # Support unset when possible.
23258 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23265 # Work around bugs in pre-3.0 UWIN ksh.
23266 $as_unset ENV MAIL MAILPATH
23273 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23274 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23275 LC_TELEPHONE LC_TIME
23277 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23278 eval $as_var=C
; export $as_var
23284 # Required to use basename.
23285 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23291 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
23292 as_basename
=basename
23298 # Name of the executable.
23299 as_me
=`$as_basename "$0" ||
23300 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23301 X"$0" : 'X\(//\)$' \| \
23302 X"$0" : 'X\(/\)$' \| \
23303 . : '\(.\)' 2>/dev/null ||
23305 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23306 /^X\/\(\/\/\)$/{ s//\1/; q; }
23307 /^X\/\(\/\).*/{ s//\1/; q; }
23311 # PATH needs CR, and LINENO needs CR and PATH.
23312 # Avoid depending upon Character Ranges.
23313 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
23314 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23315 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
23316 as_cr_digits
='0123456789'
23317 as_cr_alnum
=$as_cr_Letters$as_cr_digits
23319 # The user is always right.
23320 if test "${PATH_SEPARATOR+set}" != set; then
23321 echo "#! /bin/sh" >conf$$.sh
23322 echo "exit 0" >>conf$$.sh
23324 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23333 as_lineno_1
=$LINENO
23334 as_lineno_2
=$LINENO
23335 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
23336 test "x$as_lineno_1" != "x$as_lineno_2" &&
23337 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
23338 # Find who we are. Look in the path if we contain no path at all
23341 *[\\/]* ) as_myself
=$0 ;;
23342 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23343 for as_dir
in $PATH
23346 test -z "$as_dir" && as_dir
=.
23347 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23352 # We did not find ourselves, most probably we were run as `sh COMMAND'
23353 # in which case we are not to be found in the path.
23354 if test "x$as_myself" = x
; then
23357 if test ! -f "$as_myself"; then
23358 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23359 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23360 { (exit 1); exit 1; }; }
23362 case $CONFIG_SHELL in
23364 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23365 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
23368 test -z "$as_dir" && as_dir
=.
23369 for as_base
in sh bash ksh sh5
; do
23372 if ("$as_dir/$as_base" -c '
23373 as_lineno_1=$LINENO
23374 as_lineno_2=$LINENO
23375 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23376 test "x$as_lineno_1" != "x$as_lineno_2" &&
23377 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
23378 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
23379 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
23380 CONFIG_SHELL
=$as_dir/$as_base
23381 export CONFIG_SHELL
23382 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23390 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23391 # uniformly replaced by the line number. The first 'sed' inserts a
23392 # line-number line before each line; the second 'sed' does the real
23393 # work. The second script uses 'N' to pair each line-number line
23394 # with the numbered line, and appends trailing '-' during
23395 # substitution so that $LINENO is not a special case at line end.
23396 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23397 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23398 sed '=' <$as_myself |
23403 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23406 s,^['$as_cr_digits']*\n,,
23407 ' >$as_me.lineno
&&
23408 chmod +x
$as_me.lineno ||
23409 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23410 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23411 { (exit 1); exit 1; }; }
23413 # Don't try to exec as it changes $[0], causing all sort of problems
23414 # (the dirname of $[0] is not the place where we might find the
23415 # original and so on. Autoconf is especially sensible to this).
23417 # Exit status is that of the last command.
23422 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23423 *c
*,-n*) ECHO_N
= ECHO_C
='
23425 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
23426 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
23429 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23435 rm -f conf$$ conf$$.exe conf$$.
file
23437 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23438 # We could just check for DJGPP; but this test a) works b) is more generic
23439 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23440 if test -f conf$$.exe
; then
23441 # Don't use ln at all; we don't have any links
23446 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23451 rm -f conf$$ conf$$.exe conf$$.
file
23453 if mkdir
-p .
2>/dev
/null
; then
23456 test -d .
/-p && rmdir .
/-p
23460 as_executable_p
="test -f"
23462 # Sed expression to map a string onto a valid CPP name.
23463 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23465 # Sed expression to map a string onto a valid variable name.
23466 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23470 # We need space, tab and new line, in precisely that order.
23480 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23481 # report actual input values of CONFIG_FILES etc. instead of their
23482 # values after options handling. Logging --version etc. is OK.
23486 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23487 ## Running $as_me. ##
23492 This file was extended by $as_me, which was
23493 generated by GNU Autoconf 2.59. Invocation command line was
23495 CONFIG_FILES = $CONFIG_FILES
23496 CONFIG_HEADERS = $CONFIG_HEADERS
23497 CONFIG_LINKS = $CONFIG_LINKS
23498 CONFIG_COMMANDS = $CONFIG_COMMANDS
23502 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23506 # Files that config.status was made for.
23507 if test -n "$ac_config_files"; then
23508 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23511 if test -n "$ac_config_headers"; then
23512 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23515 if test -n "$ac_config_links"; then
23516 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23519 if test -n "$ac_config_commands"; then
23520 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23523 cat >>$CONFIG_STATUS <<\_ACEOF
23526 \`$as_me' instantiates files from templates according to the
23527 current configuration.
23529 Usage: $0 [OPTIONS] [FILE]...
23531 -h, --help print this help, then exit
23532 -V, --version print version number, then exit
23533 -q, --quiet do not print progress messages
23534 -d, --debug don't remove temporary files
23535 --recheck update $as_me by reconfiguring in the same conditions
23536 --file=FILE[:TEMPLATE]
23537 instantiate the configuration file FILE
23538 --header=FILE[:TEMPLATE]
23539 instantiate the configuration header FILE
23541 Configuration files:
23544 Configuration headers:
23547 Configuration commands:
23550 Report bugs to <bug-autoconf@gnu.org>."
23553 cat >>$CONFIG_STATUS <<_ACEOF
23556 configured by $0, generated by GNU Autoconf 2.59,
23557 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23559 Copyright (C) 2003 Free Software Foundation, Inc.
23560 This config.status script is free software; the Free Software Foundation
23561 gives unlimited permission to copy, distribute and modify it."
23566 cat >>$CONFIG_STATUS <<\_ACEOF
23567 # If no file are specified by the user, then we need to provide default
23568 # value. By we need to know if files were specified by the user.
23574 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
23575 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
23583 *) # This is not an option, so the user has probably given explicit
23586 ac_need_defaults
=false
;;
23590 # Handling of the options.
23592 cat >>$CONFIG_STATUS <<\_ACEOF
23593 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23595 --version |
--vers* |
-V )
23596 echo "$ac_cs_version"; exit 0 ;;
23598 # Conflict between --help and --header
23599 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23600 Try \`$0 --help' for more information." >&5
23601 echo "$as_me: error: ambiguous option: $1
23602 Try \`$0 --help' for more information." >&2;}
23603 { (exit 1); exit 1; }; };;
23604 --help |
--hel |
-h )
23605 echo "$ac_cs_usage"; exit 0 ;;
23606 --debug |
--d* |
-d )
23608 --file |
--fil |
--fi |
--f )
23610 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23611 ac_need_defaults
=false
;;
23612 --header |
--heade |
--head |
--hea )
23614 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23615 ac_need_defaults
=false
;;
23616 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23617 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23620 # This is an error.
23621 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23622 Try \`$0 --help' for more information." >&5
23623 echo "$as_me: error: unrecognized option: $1
23624 Try \`$0 --help' for more information." >&2;}
23625 { (exit 1); exit 1; }; } ;;
23627 *) ac_config_targets
="$ac_config_targets $1" ;;
23633 ac_configure_extra_args
=
23635 if $ac_cs_silent; then
23637 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23641 cat >>$CONFIG_STATUS <<_ACEOF
23642 if \$ac_cs_recheck; then
23643 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23644 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23649 cat >>$CONFIG_STATUS <<_ACEOF
23651 # INIT-COMMANDS section.
23654 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23660 cat >>$CONFIG_STATUS <<\_ACEOF
23661 for ac_config_target
in $ac_config_targets
23663 case "$ac_config_target" in
23664 # Handling of arguments.
23665 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23666 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23667 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23668 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23669 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23670 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23671 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23672 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23673 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23674 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23675 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23676 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23677 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23678 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23679 { (exit 1); exit 1; }; };;
23683 # If the user did not use the arguments to specify the items to instantiate,
23684 # then the envvar interface is used. Set only those that are not.
23685 # We use the long form for the default assignment because of an extremely
23686 # bizarre bug on SunOS 4.1.3.
23687 if $ac_need_defaults; then
23688 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23689 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23690 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23693 # Have a temporary directory for convenience. Make it in the build tree
23694 # simply because there is no reason to put it here, and in addition,
23695 # creating and moving files from /tmp can sometimes cause problems.
23696 # Create a temporary directory, and hook for its removal unless debugging.
23699 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23700 trap '{ (exit 1); exit 1; }' 1 2 13 15
23703 # Create a (secure) tmp directory for tmp files.
23706 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23707 test -n "$tmp" && test -d "$tmp"
23710 tmp
=.
/confstat$$
-$RANDOM
23711 (umask 077 && mkdir
$tmp)
23714 echo "$me: cannot create a temporary directory in ." >&2
23715 { (exit 1); exit 1; }
23720 cat >>$CONFIG_STATUS <<_ACEOF
23723 # CONFIG_FILES section.
23726 # No need to generate the scripts if there are no CONFIG_FILES.
23727 # This happens for instance when ./config.status config.h
23728 if test -n "\$CONFIG_FILES"; then
23729 # Protect against being on the right side of a sed subst in config.status.
23730 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23731 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23732 s,@SHELL@,$SHELL,;t t
23733 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23734 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23735 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23736 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23737 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23738 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23739 s,@exec_prefix@,$exec_prefix,;t t
23740 s,@prefix@,$prefix,;t t
23741 s,@program_transform_name@,$program_transform_name,;t t
23742 s,@bindir@,$bindir,;t t
23743 s,@sbindir@,$sbindir,;t t
23744 s,@libexecdir@,$libexecdir,;t t
23745 s,@datadir@,$datadir,;t t
23746 s,@sysconfdir@,$sysconfdir,;t t
23747 s,@sharedstatedir@,$sharedstatedir,;t t
23748 s,@localstatedir@,$localstatedir,;t t
23749 s,@libdir@,$libdir,;t t
23750 s,@includedir@,$includedir,;t t
23751 s,@oldincludedir@,$oldincludedir,;t t
23752 s,@infodir@,$infodir,;t t
23753 s,@mandir@,$mandir,;t t
23754 s,@build_alias@,$build_alias,;t t
23755 s,@host_alias@,$host_alias,;t t
23756 s,@target_alias@,$target_alias,;t t
23757 s,@DEFS@,$DEFS,;t t
23758 s,@ECHO_C@,$ECHO_C,;t t
23759 s,@ECHO_N@,$ECHO_N,;t t
23760 s,@ECHO_T@,$ECHO_T,;t t
23761 s,@LIBS@,$LIBS,;t t
23762 s,@MAINT@,$MAINT,;t t
23763 s,@build@,$build,;t t
23764 s,@build_cpu@,$build_cpu,;t t
23765 s,@build_vendor@,$build_vendor,;t t
23766 s,@build_os@,$build_os,;t t
23767 s,@host@,$host,;t t
23768 s,@host_cpu@,$host_cpu,;t t
23769 s,@host_vendor@,$host_vendor,;t t
23770 s,@host_os@,$host_os,;t t
23772 s,@CFLAGS@,$CFLAGS,;t t
23773 s,@LDFLAGS@,$LDFLAGS,;t t
23774 s,@CPPFLAGS@,$CPPFLAGS,;t t
23775 s,@ac_ct_CC@,$ac_ct_CC,;t t
23776 s,@EXEEXT@,$EXEEXT,;t t
23777 s,@OBJEXT@,$OBJEXT,;t t
23779 s,@EGREP@,$EGREP,;t t
23780 s,@LN_S@,$LN_S,;t t
23781 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23782 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23783 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23784 s,@RANLIB@,$RANLIB,;t t
23785 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23786 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23787 s,@GZIP_PROG@,$GZIP_PROG,;t t
23788 s,@LIBSOUND@,$LIBSOUND,;t t
23789 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23790 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
23791 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
23792 s,@CFLAGS_SOUND@,$CFLAGS_SOUND,;t t
23793 s,@SET_MAKE@,$SET_MAKE,;t t
23794 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23795 s,@GTK_LIBS@,$GTK_LIBS,;t t
23796 s,@ALLOCA@,$ALLOCA,;t t
23797 s,@liblockfile@,$liblockfile,;t t
23798 s,@LIBOBJS@,$LIBOBJS,;t t
23799 s,@NEED_SETGID@,$NEED_SETGID,;t t
23800 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23801 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23802 s,@GETOPT_H@,$GETOPT_H,;t t
23803 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23804 s,@version@,$version,;t t
23805 s,@configuration@,$configuration,;t t
23806 s,@canonical@,$canonical,;t t
23807 s,@srcdir@,$srcdir,;t t
23808 s,@lispdir@,$lispdir,;t t
23809 s,@locallisppath@,$locallisppath,;t t
23810 s,@lisppath@,$lisppath,;t t
23811 s,@x_default_search_path@,$x_default_search_path,;t t
23812 s,@etcdir@,$etcdir,;t t
23813 s,@archlibdir@,$archlibdir,;t t
23814 s,@docdir@,$docdir,;t t
23815 s,@bitmapdir@,$bitmapdir,;t t
23816 s,@gamedir@,$gamedir,;t t
23817 s,@gameuser@,$gameuser,;t t
23818 s,@c_switch_system@,$c_switch_system,;t t
23819 s,@c_switch_machine@,$c_switch_machine,;t t
23820 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23821 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23822 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23823 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23824 s,@machfile@,$machfile,;t t
23825 s,@opsysfile@,$opsysfile,;t t
23826 s,@carbon_appdir@,$carbon_appdir,;t t
23827 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23832 cat >>$CONFIG_STATUS <<\_ACEOF
23833 # Split the substitutions into bite-sized pieces for seds with
23834 # small command number limits, like on Digital OSF/1 and HP-UX.
23835 ac_max_sed_lines
=48
23836 ac_sed_frag
=1 # Number of current file.
23837 ac_beg
=1 # First line for current file.
23838 ac_end
=$ac_max_sed_lines # Line after last line for current file.
23841 while $ac_more_lines; do
23842 if test $ac_beg -gt 1; then
23843 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23845 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23847 if test ! -s $tmp/subs.frag
; then
23848 ac_more_lines
=false
23850 # The purpose of the label and of the branching condition is to
23851 # speed up the sed processing (if there are no `@' at all, there
23852 # is no need to browse any of the substitutions).
23853 # These are the two extra sed commands mentioned above.
23855 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
23856 if test -z "$ac_sed_cmds"; then
23857 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
23859 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23861 ac_sed_frag
=`expr $ac_sed_frag + 1`
23863 ac_end
=`expr $ac_end + $ac_max_sed_lines`
23866 if test -z "$ac_sed_cmds"; then
23869 fi # test -n "$CONFIG_FILES"
23872 cat >>$CONFIG_STATUS <<\_ACEOF
23873 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
23874 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23876 - |
*:- |
*:-:* ) # input from stdin
23878 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23879 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23880 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23881 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23882 * ) ac_file_in
=$ac_file.
in ;;
23885 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23886 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23887 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23888 X"$ac_file" : 'X\(//\)[^/]' \| \
23889 X"$ac_file" : 'X\(//\)$' \| \
23890 X"$ac_file" : 'X\(/\)' \| \
23891 . : '\(.\)' 2>/dev/null ||
23893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23894 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23895 /^X\(\/\/\)$/{ s//\1/; q; }
23896 /^X\(\/\).*/{ s//\1/; q; }
23898 { if $as_mkdir_p; then
23903 while test ! -d "$as_dir"; do
23904 as_dirs
="$as_dir $as_dirs"
23905 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23906 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23907 X"$as_dir" : 'X\(//\)[^/]' \| \
23908 X"$as_dir" : 'X\(//\)$' \| \
23909 X"$as_dir" : 'X\(/\)' \| \
23910 . : '\(.\)' 2>/dev/null ||
23912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23913 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23914 /^X\(\/\/\)$/{ s//\1/; q; }
23915 /^X\(\/\).*/{ s//\1/; q; }
23918 test ! -n "$as_dirs" || mkdir
$as_dirs
23919 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23920 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23921 { (exit 1); exit 1; }; }; }
23925 if test "$ac_dir" != .
; then
23926 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23927 # A "../" for each directory in $ac_dir_suffix.
23928 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23930 ac_dir_suffix
= ac_top_builddir
=
23934 .
) # No --srcdir option. We are building in place.
23936 if test -z "$ac_top_builddir"; then
23939 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23941 [\\/]* | ?
:[\\/]* ) # Absolute path.
23942 ac_srcdir
=$srcdir$ac_dir_suffix;
23943 ac_top_srcdir
=$srcdir ;;
23944 *) # Relative path.
23945 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23946 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23949 # Do not use `cd foo && pwd` to compute absolute paths, because
23950 # the directories may not exist.
23952 .
) ac_abs_builddir
="$ac_dir";;
23955 .
) ac_abs_builddir
=`pwd`;;
23956 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23957 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23960 case $ac_abs_builddir in
23961 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23963 case ${ac_top_builddir}.
in
23964 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23965 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23966 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23969 case $ac_abs_builddir in
23970 .
) ac_abs_srcdir
=$ac_srcdir;;
23973 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23974 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23975 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23978 case $ac_abs_builddir in
23979 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23981 case $ac_top_srcdir in
23982 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23983 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23984 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23990 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23991 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
23994 if test x
"$ac_file" != x-
; then
23995 { echo "$as_me:$LINENO: creating $ac_file" >&5
23996 echo "$as_me: creating $ac_file" >&6;}
23999 # Let's still pretend it is `configure' which instantiates (i.e., don't
24000 # use $as_me), people would be surprised to read:
24001 # /* config.h. Generated by config.status. */
24002 if test x
"$ac_file" = x-
; then
24005 configure_input
="$ac_file. "
24007 configure_input
=$configure_input"Generated from `echo $ac_file_in |
24008 sed 's,.*/,,'` by configure."
24010 # First look for the input files in the build tree, otherwise in the
24012 ac_file_inputs
=`IFS=:
24013 for f in $ac_file_in; do
24015 -) echo $tmp/stdin ;;
24017 # Absolute (can't be DOS-style, as IFS=:)
24018 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24019 echo "$as_me: error: cannot find input file: $f" >&2;}
24020 { (exit 1); exit 1; }; }
24023 if test -f "$f"; then
24026 elif test -f "$srcdir/$f"; then
24031 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24032 echo "$as_me: error: cannot find input file: $f" >&2;}
24033 { (exit 1); exit 1; }; }
24036 done` ||
{ (exit 1); exit 1; }
24038 cat >>$CONFIG_STATUS <<_ACEOF
24042 cat >>$CONFIG_STATUS <<\_ACEOF
24044 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24045 s
,@configure_input@
,$configure_input,;t t
24046 s
,@srcdir@
,$ac_srcdir,;t t
24047 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
24048 s
,@top_srcdir@
,$ac_top_srcdir,;t t
24049 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
24050 s
,@builddir@
,$ac_builddir,;t t
24051 s
,@abs_builddir@
,$ac_abs_builddir,;t t
24052 s
,@top_builddir@
,$ac_top_builddir,;t t
24053 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
24054 s
,@INSTALL@
,$ac_INSTALL,;t t
24055 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24057 if test x"$ac_file" != x-; then
24058 mv $tmp/out $ac_file
24066 cat >>$CONFIG_STATUS <<\_ACEOF
24069 # CONFIG_HEADER section.
24072 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
24073 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24075 # ac_d sets the value in "#define NAME VALUE" lines.
24076 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24077 ac_dB
='[ ].*$,\1#\2'
24080 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24081 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24082 ac_uB
='$,\1#\2define\3'
24086 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
24087 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24089 - |
*:- |
*:-:* ) # input from stdin
24091 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24092 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24093 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24094 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24095 * ) ac_file_in
=$ac_file.
in ;;
24098 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
24099 echo "$as_me: creating $ac_file" >&6;}
24101 # First look for the input files in the build tree, otherwise in the
24103 ac_file_inputs
=`IFS=:
24104 for f in $ac_file_in; do
24106 -) echo $tmp/stdin ;;
24108 # Absolute (can't be DOS-style, as IFS=:)
24109 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24110 echo "$as_me: error: cannot find input file: $f" >&2;}
24111 { (exit 1); exit 1; }; }
24112 # Do quote $f, to prevent DOS paths from being IFS'd.
24115 if test -f "$f"; then
24118 elif test -f "$srcdir/$f"; then
24123 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24124 echo "$as_me: error: cannot find input file: $f" >&2;}
24125 { (exit 1); exit 1; }; }
24128 done` ||
{ (exit 1); exit 1; }
24129 # Remove the trailing spaces.
24130 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24134 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24135 # `conftest.undefs', that substitutes the proper values into
24136 # config.h.in to produce config.h. The first handles `#define'
24137 # templates, and the second `#undef' templates.
24138 # And first: Protect against being on the right side of a sed subst in
24139 # config.status. Protect against being in an unquoted here document
24140 # in config.status.
24141 rm -f conftest.defines conftest.undefs
24142 # Using a here document instead of a string reduces the quoting nightmare.
24143 # Putting comments in sed scripts is not portable.
24145 # `end' is used to avoid that the second main sed command (meant for
24146 # 0-ary CPP macros) applies to n-ary macro definitions.
24147 # See the Autoconf documentation for `clear'.
24148 cat >confdef2sed.
sed <<\_ACEOF
24153 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24155 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24158 # If some macros were called several times there might be several times
24159 # the same #defines, which is useless. Nevertheless, we may not want to
24160 # sort them, since we want the *last* AC-DEFINE to be honored.
24161 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24162 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24163 rm -f confdef2sed.sed
24165 # This sed command replaces #undef with comments. This is necessary, for
24166 # example, in the case of _POSIX_SOURCE, which is predefined and required
24167 # on some systems where configure will not decide to define it.
24168 cat >>conftest.undefs <<\_ACEOF
24169 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24172 # Break up conftest.defines because some shells have a limit on the size
24173 # of here documents, and old seds have small limits too (100 cmds).
24174 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24175 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24176 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24177 echo ' :' >>$CONFIG_STATUS
24178 rm -f conftest.tail
24179 while grep . conftest.defines >/dev/null
24181 # Write a limited-size here document to $tmp/defines.sed.
24182 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24183 # Speed up: don't consider the non `#define' lines.
24184 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24185 # Work around the forget-to-reset-the-flag bug.
24186 echo 't clr' >>$CONFIG_STATUS
24187 echo ': clr' >>$CONFIG_STATUS
24188 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
24190 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24192 mv $tmp/out $tmp/in
24194 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
24195 rm -f conftest.defines
24196 mv conftest.
tail conftest.defines
24198 rm -f conftest.defines
24199 echo ' fi # grep' >>$CONFIG_STATUS
24200 echo >>$CONFIG_STATUS
24202 # Break up conftest.undefs because some shells have a limit on the size
24203 # of here documents, and old seds have small limits too (100 cmds).
24204 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24205 rm -f conftest.
tail
24206 while grep . conftest.undefs
>/dev
/null
24208 # Write a limited-size here document to $tmp/undefs.sed.
24209 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24210 # Speed up: don't consider the non
`#undef'
24211 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24212 # Work around the forget-to-reset-the-flag bug.
24213 echo 't clr' >>$CONFIG_STATUS
24214 echo ': clr' >>$CONFIG_STATUS
24215 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24217 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24219 mv $tmp/out $tmp/in
24221 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24222 rm -f conftest.undefs
24223 mv conftest.tail conftest.undefs
24225 rm -f conftest.undefs
24227 cat >>$CONFIG_STATUS <<\_ACEOF
24228 # Let's still pretend it is `configure
' which instantiates (i.e., don't
24229 # use $as_me), people would be surprised to read:
24230 # /* config.h. Generated by config.status. */
24231 if test x
"$ac_file" = x-
; then
24232 echo "/* Generated by configure. */" >$tmp/config.h
24234 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24236 cat $tmp/in >>$tmp/config.h
24238 if test x
"$ac_file" != x-
; then
24239 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
24240 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24241 echo "$as_me: $ac_file is unchanged" >&6;}
24243 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
24244 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24245 X"$ac_file" : 'X\(//\)[^/]' \| \
24246 X"$ac_file" : 'X\(//\)$' \| \
24247 X"$ac_file" : 'X\(/\)' \| \
24248 . : '\(.\)' 2>/dev/null ||
24250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24251 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24252 /^X\(\/\/\)$/{ s//\1/; q; }
24253 /^X\(\/\).*/{ s//\1/; q; }
24255 { if $as_mkdir_p; then
24260 while test ! -d "$as_dir"; do
24261 as_dirs
="$as_dir $as_dirs"
24262 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24263 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24264 X"$as_dir" : 'X\(//\)[^/]' \| \
24265 X"$as_dir" : 'X\(//\)$' \| \
24266 X"$as_dir" : 'X\(/\)' \| \
24267 . : '\(.\)' 2>/dev/null ||
24269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24270 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24271 /^X\(\/\/\)$/{ s//\1/; q; }
24272 /^X\(\/\).*/{ s//\1/; q; }
24275 test ! -n "$as_dirs" || mkdir
$as_dirs
24276 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24277 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24278 { (exit 1); exit 1; }; }; }
24281 mv $tmp/config.h
$ac_file
24285 rm -f $tmp/config.h
24289 cat >>$CONFIG_STATUS <<\_ACEOF
24292 # CONFIG_COMMANDS section.
24294 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
24295 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
24296 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24297 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
24298 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24299 X"$ac_dest" : 'X\(//\)[^/]' \| \
24300 X"$ac_dest" : 'X\(//\)$' \| \
24301 X"$ac_dest" : 'X\(/\)' \| \
24302 . : '\(.\)' 2>/dev/null ||
24304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24305 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24306 /^X\(\/\/\)$/{ s//\1/; q; }
24307 /^X\(\/\).*/{ s//\1/; q; }
24309 { if $as_mkdir_p; then
24314 while test ! -d "$as_dir"; do
24315 as_dirs
="$as_dir $as_dirs"
24316 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24317 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24318 X"$as_dir" : 'X\(//\)[^/]' \| \
24319 X"$as_dir" : 'X\(//\)$' \| \
24320 X"$as_dir" : 'X\(/\)' \| \
24321 . : '\(.\)' 2>/dev/null ||
24323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24324 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24325 /^X\(\/\/\)$/{ s//\1/; q; }
24326 /^X\(\/\).*/{ s//\1/; q; }
24329 test ! -n "$as_dirs" || mkdir
$as_dirs
24330 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24331 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24332 { (exit 1); exit 1; }; }; }
24336 if test "$ac_dir" != .
; then
24337 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24338 # A "../" for each directory in $ac_dir_suffix.
24339 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24341 ac_dir_suffix
= ac_top_builddir
=
24345 .
) # No --srcdir option. We are building in place.
24347 if test -z "$ac_top_builddir"; then
24350 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
24352 [\\/]* | ?
:[\\/]* ) # Absolute path.
24353 ac_srcdir
=$srcdir$ac_dir_suffix;
24354 ac_top_srcdir
=$srcdir ;;
24355 *) # Relative path.
24356 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
24357 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
24360 # Do not use `cd foo && pwd` to compute absolute paths, because
24361 # the directories may not exist.
24363 .
) ac_abs_builddir
="$ac_dir";;
24366 .
) ac_abs_builddir
=`pwd`;;
24367 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
24368 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
24371 case $ac_abs_builddir in
24372 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24374 case ${ac_top_builddir}.
in
24375 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
24376 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24377 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
24380 case $ac_abs_builddir in
24381 .
) ac_abs_srcdir
=$ac_srcdir;;
24384 .
) ac_abs_srcdir
=$ac_abs_builddir;;
24385 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
24386 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
24389 case $ac_abs_builddir in
24390 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
24392 case $ac_top_srcdir in
24393 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
24394 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
24395 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
24400 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24401 echo "$as_me: executing $ac_dest commands" >&6;}
24405 ### Make the necessary directories, if they don't exist.
24406 for dir
in etc lisp
; do
24407 test -d ${dir} || mkdir
${dir}
24410 # Build src/Makefile from ${srcdir}/src/Makefile.c
24411 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24412 # This must be done after src/config.h is built, since we rely on that file.
24414 # Now get this: Some word that is part of the ${srcdir} directory name
24415 # or the ${configuration} value might, just might, happen to be an
24416 # identifier like `sun4' or `i386' or something, and be predefined by
24417 # the C preprocessor to some helpful value like 1, or maybe the empty
24418 # string. Needless to say consequent macro substitutions are less
24419 # than conducive to the makefile finding the correct directory.
24420 undefs
="`echo $top_srcdir $configuration $canonical |
24421 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24422 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24425 echo creating src
/epaths.h
24426 ${MAKE-make} epaths-force
24428 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24429 # `..' to `. .' unless invoked with -traditional
24431 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24432 CPPFLAGS
="$CPPFLAGS -traditional"
24435 echo creating lib-src
/Makefile
24437 rm -f junk.c junk1.c junk2.c
24438 sed -e '/start of cpp stuff/q' \
24439 < Makefile.c
> junk1.c
24440 sed -e '1,/start of cpp stuff/d'\
24441 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24442 < Makefile.c
> junk.c
24443 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24444 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24445 cat junk1.c junk2.c
> Makefile.new
24446 rm -f junk.c junk1.c junk2.c
24447 chmod 444 Makefile.new
24448 mv -f Makefile.new Makefile
24451 echo creating src
/Makefile
24453 rm -f junk.c junk1.c junk2.c
24454 sed -e '/start of cpp stuff/q' \
24455 < Makefile.c
> junk1.c
24456 sed -e '1,/start of cpp stuff/d'\
24457 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24458 < Makefile.c
> junk.c
24459 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24460 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24461 cat junk1.c junk2.c
> Makefile.new
24462 rm -f junk.c junk1.c junk2.c
24463 chmod 444 Makefile.new
24464 mv -f Makefile.new Makefile
24467 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24468 echo creating src
/.gdbinit
24469 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24472 # This is how we know whether to re-run configure in certain cases.
24473 touch src
/config.stamp
24480 cat >>$CONFIG_STATUS <<\_ACEOF
24482 { (exit 0); exit 0; }
24484 chmod +x
$CONFIG_STATUS
24485 ac_clean_files
=$ac_clean_files_save
24488 # configure is writing to config.log, and then calls config.status.
24489 # config.status does its own redirection, appending to config.log.
24490 # Unfortunately, on DOS this fails, as config.log is still kept open
24491 # by configure, so config.status won't be able to write to it; its
24492 # output is simply discarded. So we exec the FD to /dev/null,
24493 # effectively closing config.log, so it can be properly (re)opened and
24494 # appended to by config.status. When coming back to configure, we
24495 # need to make the FD available again.
24496 if test "$no_create" != yes; then
24498 ac_config_status_args
=
24499 test "$silent" = yes &&
24500 ac_config_status_args
="$ac_config_status_args --quiet"
24502 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24504 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24505 # would make configure fail if this is the last instruction.
24506 $ac_cs_success ||
{ (exit 1); exit 1; }