2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
24 # Support unset when possible.
25 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
39 for as_var
in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
41 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42 eval $as_var=C
; export $as_var
48 # Required to use basename.
49 if expr a
: '\(a\)' >/dev
/null
2>&1; then
55 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 # Name of the executable.
63 as_me
=`$as_basename "$0" ||
64 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65 X"$0" : 'X\(//\)$' \| \
66 X"$0" : 'X\(/\)$' \| \
67 . : '\(.\)' 2>/dev/null ||
69 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70 /^X\/\(\/\/\)$/{ s//\1/; q; }
71 /^X\/\(\/\).*/{ s//\1/; q; }
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits
='0123456789'
81 as_cr_alnum
=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
88 if (PATH
="/nonexistent;."; conftest.sh
) >/dev
/null
2>&1; then
99 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
102 # Find who we are. Look in the path if we contain no path at all
105 *[\\/]* ) as_myself
=$0 ;;
106 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
110 test -z "$as_dir" && as_dir
=.
111 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x
; then
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
128 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
131 test -z "$as_dir" && as_dir
=.
132 for as_base
in sh bash ksh sh5
; do
135 if ("$as_dir/$as_base" -c '
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
141 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
142 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
143 CONFIG_SHELL
=$as_dir/$as_base
145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154 # uniformly replaced by the line number. The first 'sed' inserts a
155 # line-number line before each line; the second 'sed' does the real
156 # work. The second script uses 'N' to pair each line-number line
157 # with the numbered line, and appends trailing '-' during
158 # substitution so that $LINENO is not a special case at line end.
159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
161 sed '=' <$as_myself |
166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169 s,^['$as_cr_digits']*\n,,
171 chmod +x
$as_me.lineno ||
172 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173 { (exit 1); exit 1; }; }
175 # Don't try to exec as it changes $[0], causing all sort of problems
176 # (the dirname of $[0] is not the place where we might find the
177 # original and so on. Autoconf is especially sensible to this).
179 # Exit status is that of the last command.
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185 *c
*,-n*) ECHO_N
= ECHO_C
='
187 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
188 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
191 if expr a
: '\(a\)' >/dev
/null
2>&1; then
197 rm -f conf$$ conf$$.exe conf$$.
file
199 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
200 # We could just check for DJGPP; but this test a) works b) is more generic
201 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202 if test -f conf$$.exe
; then
203 # Don't use ln at all; we don't have any links
208 elif ln conf$$.
file conf$$
2>/dev
/null
; then
213 rm -f conf$$ conf$$.exe conf$$.
file
215 if mkdir
-p .
2>/dev
/null
; then
221 as_executable_p
="test -f"
223 # Sed expression to map a string onto a valid CPP name.
224 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
226 # Sed expression to map a string onto a valid variable name.
227 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231 # We need space, tab and new line, in precisely that order.
241 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
242 # so uname gets run too.
243 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
250 ac_default_prefix
=/usr
/local
251 ac_config_libobj_dir
=.
256 SHELL
=${CONFIG_SHELL-/bin/sh}
258 # Maximum number of lines to put in a shell here document.
259 # This variable seems obsolete. It should probably be removed, and
260 # only ac_max_sed_lines should be used.
261 : ${ac_max_here_lines=38}
263 # Identity of this package.
270 ac_unique_file
="src/lisp.h"
271 ac_config_libobj_dir
=src
272 # Factoring default headers for most tests.
273 ac_includes_default
="\
276 # include <sys/types.h>
279 # include <sys/stat.h>
290 # if !STDC_HEADERS && HAVE_MEMORY_H
296 # include <strings.h>
299 # include <inttypes.h>
309 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB EGREP LIBSOUND SET_MAKE ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS 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 LTLIBOBJS'
312 # Initialize some variables set by options.
314 ac_init_version
=false
315 # The variables have the same names as the options, with
316 # dashes changed to underlines.
324 program_transform_name
=s
,x
,x
,
332 # Installation directory options.
333 # These are left unexpanded so users can "make install exec_prefix=/foo"
334 # and all the variables that are supposed to be based on exec_prefix
335 # by default will actually change.
336 # Use braces instead of parens because sh, perl, etc. also accept them.
337 bindir
='${exec_prefix}/bin'
338 sbindir
='${exec_prefix}/sbin'
339 libexecdir
='${exec_prefix}/libexec'
340 datadir
='${prefix}/share'
341 sysconfdir
='${prefix}/etc'
342 sharedstatedir
='${prefix}/com'
343 localstatedir
='${prefix}/var'
344 libdir
='${exec_prefix}/lib'
345 includedir
='${prefix}/include'
346 oldincludedir
='/usr/include'
347 infodir
='${prefix}/info'
348 mandir
='${prefix}/man'
353 # If the previous option needs an argument, assign it.
354 if test -n "$ac_prev"; then
355 eval "$ac_prev=\$ac_option"
360 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
362 # Accept the important Cygnus configure options, so we can diagnose typos.
366 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
368 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
371 -build |
--build |
--buil |
--bui |
--bu)
372 ac_prev
=build_alias
;;
373 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
374 build_alias
=$ac_optarg ;;
376 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
377 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
378 ac_prev
=cache_file
;;
379 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
380 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
381 cache_file
=$ac_optarg ;;
384 cache_file
=config.cache
;;
386 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
388 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
390 datadir
=$ac_optarg ;;
392 -disable-* |
--disable-*)
393 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
394 # Reject names that are not valid shell variable names.
395 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
396 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
397 { (exit 1); exit 1; }; }
398 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
399 eval "enable_$ac_feature=no" ;;
401 -enable-* |
--enable-*)
402 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
403 # Reject names that are not valid shell variable names.
404 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
405 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
406 { (exit 1); exit 1; }; }
407 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
409 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 eval "enable_$ac_feature='$ac_optarg'" ;;
414 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
415 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
416 |
--exec |
--exe |
--ex)
417 ac_prev
=exec_prefix
;;
418 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
419 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
420 |
--exec=* |
--exe=* |
--ex=*)
421 exec_prefix
=$ac_optarg ;;
423 -gas |
--gas |
--ga |
--g)
424 # Obsolete; use --with-gas.
427 -help |
--help |
--hel |
--he |
-h)
429 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
430 ac_init_help
=recursive
;;
431 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
432 ac_init_help
=short
;;
434 -host |
--host |
--hos |
--ho)
435 ac_prev
=host_alias
;;
436 -host=* |
--host=* |
--hos=* |
--ho=*)
437 host_alias
=$ac_optarg ;;
439 -includedir |
--includedir |
--includedi |
--included |
--include \
440 |
--includ |
--inclu |
--incl |
--inc)
441 ac_prev
=includedir
;;
442 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
443 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
444 includedir
=$ac_optarg ;;
446 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
448 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
449 infodir
=$ac_optarg ;;
451 -libdir |
--libdir |
--libdi |
--libd)
453 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
456 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
457 |
--libexe |
--libex |
--libe)
458 ac_prev
=libexecdir
;;
459 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
460 |
--libexe=* |
--libex=* |
--libe=*)
461 libexecdir
=$ac_optarg ;;
463 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
464 |
--localstate |
--localstat |
--localsta |
--localst \
465 |
--locals |
--local |
--loca |
--loc |
--lo)
466 ac_prev
=localstatedir
;;
467 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
468 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
469 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
470 localstatedir
=$ac_optarg ;;
472 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
474 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
478 # Obsolete; use --without-fp.
481 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
482 |
--no-cr |
--no-c |
-n)
485 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
486 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
489 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
490 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
491 |
--oldin |
--oldi |
--old |
--ol |
--o)
492 ac_prev
=oldincludedir
;;
493 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
494 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
495 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
496 oldincludedir
=$ac_optarg ;;
498 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
500 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
503 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
504 |
--program-pre |
--program-pr |
--program-p)
505 ac_prev
=program_prefix
;;
506 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
507 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
508 program_prefix
=$ac_optarg ;;
510 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
511 |
--program-suf |
--program-su |
--program-s)
512 ac_prev
=program_suffix
;;
513 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
514 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
515 program_suffix
=$ac_optarg ;;
517 -program-transform-name |
--program-transform-name \
518 |
--program-transform-nam |
--program-transform-na \
519 |
--program-transform-n |
--program-transform- \
520 |
--program-transform |
--program-transfor \
521 |
--program-transfo |
--program-transf \
522 |
--program-trans |
--program-tran \
523 |
--progr-tra |
--program-tr |
--program-t)
524 ac_prev
=program_transform_name
;;
525 -program-transform-name=* |
--program-transform-name=* \
526 |
--program-transform-nam=* |
--program-transform-na=* \
527 |
--program-transform-n=* |
--program-transform-=* \
528 |
--program-transform=* |
--program-transfor=* \
529 |
--program-transfo=* |
--program-transf=* \
530 |
--program-trans=* |
--program-tran=* \
531 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
532 program_transform_name
=$ac_optarg ;;
534 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
535 |
-silent |
--silent |
--silen |
--sile |
--sil)
538 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
540 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
542 sbindir
=$ac_optarg ;;
544 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
545 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
546 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
548 ac_prev
=sharedstatedir
;;
549 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
550 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
551 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
553 sharedstatedir
=$ac_optarg ;;
555 -site |
--site |
--sit)
557 -site=* |
--site=* |
--sit=*)
560 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
562 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
565 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
566 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
567 ac_prev
=sysconfdir
;;
568 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
569 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
570 sysconfdir
=$ac_optarg ;;
572 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
573 ac_prev
=target_alias
;;
574 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
575 target_alias
=$ac_optarg ;;
577 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
580 -version |
--version |
--versio |
--versi |
--vers |
-V)
584 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
585 # Reject names that are not valid shell variable names.
586 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
587 { echo "$as_me: error: invalid package name: $ac_package" >&2
588 { (exit 1); exit 1; }; }
589 ac_package
=`echo $ac_package| sed 's/-/_/g'`
591 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 eval "with_$ac_package='$ac_optarg'" ;;
596 -without-* |
--without-*)
597 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
598 # Reject names that are not valid shell variable names.
599 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
600 { echo "$as_me: error: invalid package name: $ac_package" >&2
601 { (exit 1); exit 1; }; }
602 ac_package
=`echo $ac_package | sed 's/-/_/g'`
603 eval "with_$ac_package=no" ;;
606 # Obsolete; use --with-x.
609 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
610 |
--x-incl |
--x-inc |
--x-in |
--x-i)
611 ac_prev
=x_includes
;;
612 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
613 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
614 x_includes
=$ac_optarg ;;
616 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
617 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
618 ac_prev
=x_libraries
;;
619 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
620 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
621 x_libraries
=$ac_optarg ;;
623 -*) { echo "$as_me: error: unrecognized option: $ac_option
624 Try \`$0 --help' for more information." >&2
625 { (exit 1); exit 1; }; }
629 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
630 # Reject names that are not valid shell variable names.
631 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
632 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
633 { (exit 1); exit 1; }; }
634 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
635 eval "$ac_envvar='$ac_optarg'"
639 # FIXME: should be removed in autoconf 3.0.
640 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
641 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
642 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
643 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 if test -n "$ac_prev"; then
650 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
651 { echo "$as_me: error: missing argument to $ac_option" >&2
652 { (exit 1); exit 1; }; }
655 # Be sure to have absolute paths.
656 for ac_var
in exec_prefix prefix
658 eval ac_val
=$
`echo $ac_var`
660 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
666 # Be sure to have absolute paths.
667 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
668 localstatedir libdir includedir oldincludedir infodir mandir
670 eval ac_val
=$
`echo $ac_var`
672 [\\/$
]* | ?
:[\\/]* ) ;;
673 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
674 { (exit 1); exit 1; }; };;
678 # There might be people who depend on the old broken behavior: `$host'
679 # used to hold the argument of --host etc.
680 # FIXME: To remove some day.
685 # FIXME: To remove some day.
686 if test "x$host_alias" != x
; then
687 if test "x$build_alias" = x
; then
688 cross_compiling
=maybe
689 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
690 If a cross compiler is detected then cross compile mode will be used." >&2
691 elif test "x$build_alias" != "x$host_alias"; then
697 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
699 test "$silent" = yes && exec 6>/dev
/null
702 # Find the source files, if location was not specified.
703 if test -z "$srcdir"; then
704 ac_srcdir_defaulted
=yes
705 # Try the directory containing this script, then its parent.
706 ac_confdir
=`(dirname "$0") 2>/dev/null ||
707 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
708 X"$0" : 'X\(//\)[^/]' \| \
709 X"$0" : 'X\(//\)$' \| \
710 X"$0" : 'X\(/\)' \| \
711 . : '\(.\)' 2>/dev/null ||
713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
714 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
715 /^X\(\/\/\)$/{ s//\1/; q; }
716 /^X\(\/\).*/{ s//\1/; q; }
719 if test ! -r $srcdir/$ac_unique_file; then
723 ac_srcdir_defaulted
=no
725 if test ! -r $srcdir/$ac_unique_file; then
726 if test "$ac_srcdir_defaulted" = yes; then
727 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
728 { (exit 1); exit 1; }; }
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
731 { (exit 1); exit 1; }; }
734 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
735 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
736 { (exit 1); exit 1; }; }
737 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
738 ac_env_build_alias_set
=${build_alias+set}
739 ac_env_build_alias_value
=$build_alias
740 ac_cv_env_build_alias_set
=${build_alias+set}
741 ac_cv_env_build_alias_value
=$build_alias
742 ac_env_host_alias_set
=${host_alias+set}
743 ac_env_host_alias_value
=$host_alias
744 ac_cv_env_host_alias_set
=${host_alias+set}
745 ac_cv_env_host_alias_value
=$host_alias
746 ac_env_target_alias_set
=${target_alias+set}
747 ac_env_target_alias_value
=$target_alias
748 ac_cv_env_target_alias_set
=${target_alias+set}
749 ac_cv_env_target_alias_value
=$target_alias
750 ac_env_CC_set
=${CC+set}
752 ac_cv_env_CC_set
=${CC+set}
753 ac_cv_env_CC_value
=$CC
754 ac_env_CFLAGS_set
=${CFLAGS+set}
755 ac_env_CFLAGS_value
=$CFLAGS
756 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
757 ac_cv_env_CFLAGS_value
=$CFLAGS
758 ac_env_LDFLAGS_set
=${LDFLAGS+set}
759 ac_env_LDFLAGS_value
=$LDFLAGS
760 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
761 ac_cv_env_LDFLAGS_value
=$LDFLAGS
762 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
763 ac_env_CPPFLAGS_value
=$CPPFLAGS
764 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
765 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
766 ac_env_CPP_set
=${CPP+set}
767 ac_env_CPP_value
=$CPP
768 ac_cv_env_CPP_set
=${CPP+set}
769 ac_cv_env_CPP_value
=$CPP
772 # Report the --help message.
774 if test "$ac_init_help" = "long"; then
775 # Omit some internal or obsolete options to make the list less imposing.
776 # This message is too long to be a string in the A/UX 3.1 sh.
778 \`configure' configures this package to adapt to many kinds of systems.
780 Usage: $0 [OPTION]... [VAR=VALUE]...
782 To assign environment variables (e.g., CC, CFLAGS...), specify them as
783 VAR=VALUE. See below for descriptions of some of the useful variables.
785 Defaults for the options are specified in brackets.
788 -h, --help display this help and exit
789 --help=short display options specific to this package
790 --help=recursive display the short help of all the included packages
791 -V, --version display version information and exit
792 -q, --quiet, --silent do not print \`checking...' messages
793 --cache-file=FILE cache test results in FILE [disabled]
794 -C, --config-cache alias for \`--cache-file=config.cache'
795 -n, --no-create do not create output files
796 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 Installation directories:
802 --prefix=PREFIX install architecture-independent files in PREFIX
804 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807 By default, \`make install' will install all the files in
808 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
809 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
810 for instance \`--prefix=\$HOME'.
812 For better control, use the options below.
814 Fine tuning of the installation directories:
815 --bindir=DIR user executables [EPREFIX/bin]
816 --sbindir=DIR system admin executables [EPREFIX/sbin]
817 --libexecdir=DIR program executables [EPREFIX/libexec]
818 --datadir=DIR read-only architecture-independent data [PREFIX/share]
819 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
820 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
821 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
822 --libdir=DIR object code libraries [EPREFIX/lib]
823 --includedir=DIR C header files [PREFIX/include]
824 --oldincludedir=DIR C header files for non-gcc [/usr/include]
825 --infodir=DIR info documentation [PREFIX/info]
826 --mandir=DIR man documentation [PREFIX/man]
832 --program-prefix=PREFIX prepend PREFIX to installed program names
833 --program-suffix=SUFFIX append SUFFIX to installed program names
834 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
837 --x-includes=DIR X include files are
in DIR
838 --x-libraries=DIR X library files are
in DIR
841 --build=BUILD configure
for building on BUILD
[guessed
]
842 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
846 if test -n "$ac_init_help"; then
851 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
852 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
853 --disable-largefile omit support
for large files
856 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
857 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
858 --without-gcc don
't use GCC to compile Emacs if GCC is found
859 --without-pop don't support POP
mail retrieval with movemail
860 --with-kerberos support Kerberos-authenticated POP
861 --with-kerberos5 support Kerberos version
5 authenticated POP
862 --with-hesiod support Hesiod to get the POP server
host
863 --without-sound don
't compile with sound support
864 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)
865 --with-xpm use -lXpm for displaying XPM images
866 --with-jpeg use -ljpeg for displaying JPEG images
867 --with-tiff use -ltiff for displaying TIFF images
868 --with-gif use -lungif for displaying GIF images
869 --with-png use -lpng for displaying PNG images
870 --without-toolkit-scroll-bars
871 don't use Motif or Xaw3d scroll bars
872 --without-xim don
't use X11 XIM
873 --without-carbon don't use Carbon GUI on Mac OS X
874 --with-x use the X Window System
876 Some influential environment variables
:
877 CC C compiler
command
878 CFLAGS C compiler flags
879 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
880 nonstandard directory
<lib dir
>
881 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
882 headers
in a nonstandard directory
<include dir
>
885 Use these variables to override the choices made by
`configure' or to help
886 it to find libraries and programs with nonstandard names/locations.
891 if test "$ac_init_help" = "recursive"; then
892 # If there are subdirs, report their specific --help.
894 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
895 test -d $ac_dir || continue
898 if test "$ac_dir" != .; then
899 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
900 # A "../" for each directory in $ac_dir_suffix.
901 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
903 ac_dir_suffix= ac_top_builddir=
907 .) # No --srcdir option. We are building in place.
909 if test -z "$ac_top_builddir"; then
912 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
914 [\\/]* | ?:[\\/]* ) # Absolute path.
915 ac_srcdir=$srcdir$ac_dir_suffix;
916 ac_top_srcdir=$srcdir ;;
918 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
919 ac_top_srcdir=$ac_top_builddir$srcdir ;;
921 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
923 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
924 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}.
&& pwd`
925 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
926 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
929 # Check for guested configure; otherwise get Cygnus style configure.
930 if test -f $ac_srcdir/configure.gnu; then
932 $SHELL $ac_srcdir/configure.gnu --help=recursive
933 elif test -f $ac_srcdir/configure; then
935 $SHELL $ac_srcdir/configure --help=recursive
936 elif test -f $ac_srcdir/configure.ac ||
937 test -f $ac_srcdir/configure.in; then
941 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
947 test -n "$ac_init_help" && exit 0
948 if $ac_init_version; then
951 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
952 Free Software Foundation, Inc.
953 This configure script is free software; the Free Software Foundation
954 gives unlimited permission to copy, distribute and modify it.
960 This file contains any messages produced by compilers while
961 running configure, to aid debugging if configure makes a mistake.
963 It was created by $as_me, which was
964 generated by GNU Autoconf 2.54. Invocation command line was
975 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
976 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
977 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
978 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
979 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
981 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
982 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
984 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
985 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
986 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
987 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
988 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
989 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
990 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
998 test -z "$as_dir" && as_dir=.
1014 # Keep a trace of the command line.
1015 # Strip out --no-create and --no-recursion so they do not pile up.
1016 # Also quote any args containing shell meta-characters.
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n ) continue ;;
1024 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1025 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1028 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1030 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1031 # Get rid of the leading space.
1035 # When interrupted or exit'd, cleanup temporary files, and complete
1036 # config.log. We remove comments because anyway the quotes in there
1037 # would cause problems or look ugly.
1038 # WARNING: Be sure not to use single quotes in there, as some shells,
1039 # such as our DU 5.0 friend, will then `close
' the trap.
1040 trap 'exit_status
=$?
1041 # Save into config.log some information that might help in debugging.
1046 ## ---------------- ##
1047 ## Cache variables. ##
1048 ## ---------------- ##
1051 # The following way of writing the cache mishandles newlines in values,
1054 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1057 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1058 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1062 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1069 ## ----------------- ##
1070 ## Output variables. ##
1071 ## ----------------- ##
1074 for ac_var
in $ac_subst_vars
1076 eval ac_val
=$
`echo $ac_var`
1077 echo "$ac_var='"'"'$ac_val'"'"'"
1081 if test -n "$ac_subst_files"; then
1088 for ac_var
in $ac_subst_files
1090 eval ac_val
=$
`echo $ac_var`
1091 echo "$ac_var='"'"'$ac_val'"'"'"
1096 if test -s confdefs.h
; then
1103 sed "/^$/d" confdefs.h |
sort
1106 test "$ac_signal" != 0 &&
1107 echo "$as_me: caught signal $ac_signal"
1108 echo "$as_me: exit $exit_status"
1110 rm -f core core.
* *.core
&&
1111 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1114 for ac_signal in 1 2 13 15; do
1115 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1119 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1120 rm -rf conftest* confdefs.h
1121 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1124 # Predefined preprocessor variables.
1126 cat >>confdefs.h <<_ACEOF
1127 #define PACKAGE_NAME "$PACKAGE_NAME"
1131 cat >>confdefs.h <<_ACEOF
1132 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1136 cat >>confdefs.h <<_ACEOF
1137 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1141 cat >>confdefs.h <<_ACEOF
1142 #define PACKAGE_STRING "$PACKAGE_STRING"
1146 cat >>confdefs.h <<_ACEOF
1147 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1151 # Let the site file select an alternate cache file if it wants to.
1152 # Prefer explicitly selected file to automatically selected ones.
1153 if test -z "$CONFIG_SITE"; then
1154 if test "x$prefix" != xNONE; then
1155 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1157 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1160 for ac_site_file in $CONFIG_SITE; do
1161 if test -r "$ac_site_file"; then
1162 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1163 echo "$as_me: loading site script $ac_site_file" >&6;}
1164 sed 's
/^
/|
/' "$ac_site_file" >&5
1169 if test -r "$cache_file"; then
1170 # Some versions of bash will fail to source /dev/null (special
1171 # files actually), so we avoid doing that.
1172 if test -f "$cache_file"; then
1173 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1174 echo "$as_me: loading cache $cache_file" >&6;}
1176 [\\/]* | ?:[\\/]* ) . $cache_file;;
1177 *) . ./$cache_file;;
1181 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1182 echo "$as_me: creating cache $cache_file" >&6;}
1186 # Check that the precious variables saved in the cache have kept the same
1188 ac_cache_corrupted=false
1189 for ac_var in `(set) 2>&1 |
1190 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1191 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1192 eval ac_new_set=\$ac_env_${ac_var}_set
1193 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1194 eval ac_new_val="\$ac_env_${ac_var}_value"
1195 case $ac_old_set,$ac_new_set in
1197 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1198 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1199 ac_cache_corrupted=: ;;
1201 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1202 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1203 ac_cache_corrupted=: ;;
1206 if test "x$ac_old_val" != "x$ac_new_val"; then
1207 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1208 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1209 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1210 echo "$as_me: former value: $ac_old_val" >&2;}
1211 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1212 echo "$as_me: current value: $ac_new_val" >&2;}
1213 ac_cache_corrupted=:
1216 # Pass precious variables to config.status.
1217 if test "$ac_new_set" = set; then
1219 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1221 *) ac_arg=$ac_var=$ac_new_val ;;
1223 case " $ac_configure_args " in
1224 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1225 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1229 if $ac_cache_corrupted; then
1230 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1231 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1232 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1233 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1234 { (exit 1); exit 1; }; }
1238 ac_cpp='$CPP $CPPFLAGS'
1239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1240 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1261 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1264 test "$program_prefix" != NONE &&
1265 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1266 # Use a double $ so make ignores it.
1267 test "$program_suffix" != NONE &&
1268 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1269 # Double any \ or $. echo might interpret backslashes.
1270 # By default was `s,x,x', remove it
if useless.
1271 cat <<\_ACEOF
>conftest.
sed
1272 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1274 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1278 lispdir
='${datadir}/emacs/${version}/lisp'
1279 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1280 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1281 lisppath
='${locallisppath}:${lispdir}'
1282 etcdir
='${datadir}/emacs/${version}/etc'
1283 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1284 docdir
='${datadir}/emacs/${version}/etc'
1285 gamedir
='${localstatedir}/games/emacs'
1290 # Check whether --with-gcc or --without-gcc was given.
1291 if test "${with_gcc+set}" = set; then
1296 # Check whether --with-pop or --without-pop was given.
1297 if test "${with_pop+set}" = set; then
1299 if test "$withval" = yes; then
1300 cat >>confdefs.h
<<\_ACEOF
1301 #define MAIL_USE_POP 1
1307 cat >>confdefs.h
<<\_ACEOF
1308 #define MAIL_USE_POP 1
1314 # Check whether --with-kerberos or --without-kerberos was given.
1315 if test "${with_kerberos+set}" = set; then
1316 withval
="$with_kerberos"
1317 cat >>confdefs.h
<<\_ACEOF
1324 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1325 if test "${with_kerberos5+set}" = set; then
1326 withval
="$with_kerberos5"
1327 if test "${with_kerberos5+set}" = set; then
1328 if test "${with_kerberos+set}" != set; then
1330 cat >>confdefs.h
<<\_ACEOF
1337 cat >>confdefs.h
<<\_ACEOF
1343 # Check whether --with-hesiod or --without-hesiod was given.
1344 if test "${with_hesiod+set}" = set; then
1345 withval
="$with_hesiod"
1347 cat >>confdefs.h
<<\_ACEOF
1354 # Check whether --with-sound or --without-sound was given.
1355 if test "${with_sound+set}" = set; then
1356 withval
="$with_sound"
1361 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1362 if test "${with_x_toolkit+set}" = set; then
1363 withval
="$with_x_toolkit"
1364 case "${withval}" in
1365 y | ye |
yes ) val
=athena
;;
1367 l | lu | luc | luci | lucid
) val
=lucid
;;
1368 a |
at | ath | athe | athen | athena
) val
=athena
;;
1369 m | mo | mot | moti | motif
) val
=motif
;;
1371 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1372 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1373 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1374 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1375 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1376 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1377 { (exit 1); exit 1; }; }
1384 # Check whether --with-xpm or --without-xpm was given.
1385 if test "${with_xpm+set}" = set; then
1390 # Check whether --with-jpeg or --without-jpeg was given.
1391 if test "${with_jpeg+set}" = set; then
1392 withval
="$with_jpeg"
1396 # Check whether --with-tiff or --without-tiff was given.
1397 if test "${with_tiff+set}" = set; then
1398 withval
="$with_tiff"
1402 # Check whether --with-gif or --without-gif was given.
1403 if test "${with_gif+set}" = set; then
1408 # Check whether --with-png or --without-png was given.
1409 if test "${with_png+set}" = set; then
1414 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1415 if test "${with_toolkit_scroll_bars+set}" = set; then
1416 withval
="$with_toolkit_scroll_bars"
1420 # Check whether --with-xim or --without-xim was given.
1421 if test "${with_xim+set}" = set; then
1426 # Check whether --with-carbon or --without-carbon was given.
1427 if test "${with_carbon+set}" = set; then
1428 withval
="$with_carbon"
1432 #### Make srcdir absolute, if it isn't already. It's important to
1433 #### avoid running the path through pwd unnecessarily, since pwd can
1434 #### give you automounter prefixes, which can go away. We do all this
1435 #### so Emacs can find its files when run uninstalled.
1436 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1441 ## We may be able to use the $PWD environment variable to make this
1442 ## absolute. But sometimes PWD is inaccurate.
1443 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1444 ## but that tested only for a well-formed and valid PWD,
1445 ## it did not object when PWD was well-formed and valid but just wrong.
1446 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1450 srcdir
="`(cd ${srcdir}; pwd)`"
1453 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1456 #### Check if the source directory already has a configured system in it.
1457 if test `pwd` != `(cd ${srcdir} && pwd)` \
1458 && test -f "${srcdir}/src/config.h" ; then
1459 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1460 as a build directory right now; it has been configured in its own
1461 right. To configure in another directory as well, you MUST
1462 use GNU make. If you do not have GNU make, then you must
1463 now do \`make distclean' in ${srcdir},
1464 and then run $0 again." >&5
1465 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1466 as a build directory right now; it has been configured in its own
1467 right. To configure in another directory as well, you MUST
1468 use GNU make. If you do not have GNU make, then you must
1469 now do \`make distclean' in ${srcdir},
1470 and then run $0 again." >&2;}
1472 extrasub
='/^VPATH[ ]*=/c\
1473 vpath %.c $(srcdir)\
1474 vpath %.h $(srcdir)\
1475 vpath %.y $(srcdir)\
1476 vpath %.l $(srcdir)\
1477 vpath %.s $(srcdir)\
1478 vpath %.in $(srcdir)\
1479 vpath %.texi $(srcdir)'
1482 #### Given the configuration name, set machfile and opsysfile to the
1483 #### names of the m/*.h and s/*.h files we should use.
1485 ### Canonicalize the configuration name.
1488 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1489 if test -f $ac_dir/install-sh
; then
1491 ac_install_sh
="$ac_aux_dir/install-sh -c"
1493 elif test -f $ac_dir/install.sh
; then
1495 ac_install_sh
="$ac_aux_dir/install.sh -c"
1497 elif test -f $ac_dir/shtool
; then
1499 ac_install_sh
="$ac_aux_dir/shtool install -c"
1503 if test -z "$ac_aux_dir"; then
1504 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1505 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1506 { (exit 1); exit 1; }; }
1508 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1509 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1510 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1512 # Make sure we can run config.sub.
1513 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1514 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1515 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1516 { (exit 1); exit 1; }; }
1518 echo "$as_me:$LINENO: checking build system type" >&5
1519 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1520 if test "${ac_cv_build+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1523 ac_cv_build_alias
=$build_alias
1524 test -z "$ac_cv_build_alias" &&
1525 ac_cv_build_alias
=`$ac_config_guess`
1526 test -z "$ac_cv_build_alias" &&
1527 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1528 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1529 { (exit 1); exit 1; }; }
1530 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1531 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1532 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1533 { (exit 1); exit 1; }; }
1536 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1537 echo "${ECHO_T}$ac_cv_build" >&6
1539 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1540 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1541 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1544 echo "$as_me:$LINENO: checking host system type" >&5
1545 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1546 if test "${ac_cv_host+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
1549 ac_cv_host_alias
=$host_alias
1550 test -z "$ac_cv_host_alias" &&
1551 ac_cv_host_alias
=$ac_cv_build_alias
1552 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1553 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1554 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1555 { (exit 1); exit 1; }; }
1558 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1559 echo "${ECHO_T}$ac_cv_host" >&6
1561 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1562 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1563 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1567 configuration
=${host_alias-$host}
1571 ### If you add support for a new configuration, add code to this
1572 ### switch statement to recognize your configuration name and select
1573 ### the appropriate operating system and machine description files.
1575 ### You would hope that you could choose an m/*.h file pretty much
1576 ### based on the machine portion of the configuration name, and an s-
1577 ### file based on the operating system portion. However, it turns out
1578 ### that each m/*.h file is pretty manufacturer-specific - for
1579 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1580 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1581 ### machines. So we basically have to have a special case for each
1582 ### configuration name.
1584 ### As far as handling version numbers on operating systems is
1585 ### concerned, make sure things will fail in a fixable way. If
1586 ### /etc/MACHINES doesn't say anything about version numbers, be
1587 ### prepared to handle anything reasonably. If version numbers
1588 ### matter, be sure /etc/MACHINES says something about it.
1590 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1591 ### "System V Release 4"; he writes, "The old convention encouraged
1592 ### confusion between `system' and `release' levels'."
1594 machine
='' opsys
='' unported
=no
1595 case "${canonical}" in
1600 case "${canonical}" in
1601 alpha
*-*-freebsd*) machine
=alpha
;;
1602 i
[3456]86-*-freebsd*) machine
=intel386
;;
1609 case "${canonical}" in
1610 alpha
*-*-netbsd*) machine
=alpha
;;
1611 i
[3456]86-*-netbsd*) machine
=intel386
;;
1613 # This is somewhat bogus.
1614 machine
=hp9000s300
;;
1615 powerpc-apple-netbsd
*) machine
=macppc
;;
1616 mips-
*-netbsd*) machine
=pmax
;;
1617 mipsel-
*-netbsd*) machine
=pmax
;;
1618 mipseb-
*-netbsd*) machine
=pmax
;;
1619 ns32k-
*-netbsd*) machine
=ns32000
;;
1620 powerpc-
*-netbsd*) machine
=macppc
;;
1621 sparc
*-*-netbsd*) machine
=sparc
;;
1622 vax-
*-netbsd*) machine
=vax
;;
1623 arm-
*-netbsd*) machine
=arm
;;
1630 case "${canonical}" in
1631 alpha
*-*-openbsd*) machine
=alpha
;;
1632 i386-
*-openbsd*) machine
=intel386
;;
1633 m68k-
*-openbsd*) machine
=hp9000s300
;;
1634 mipsel-
*-openbsd*) machine
=pmax
;;
1635 ns32k-
*-openbsd*) machine
=ns32000
;;
1636 sparc-
*-openbsd*) machine
=sparc
;;
1637 vax-
*-openbsd*) machine
=vax
;;
1642 arm-acorn-riscix1.1
* )
1643 machine
=acorn opsys
=riscix1-1
1645 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1646 ## This name is riscix12 instead of riscix1.2
1647 ## to avoid a file name conflict on MSDOS.
1648 machine
=acorn opsys
=riscix12
1654 case "${canonical}" in
1655 i
[345]86-*-bsdi*) machine
=intel386
;;
1656 sparc-
*-bsdi*) machine
=sparc
;;
1657 powerpc-
*-bsdi*) machine
=macppc
;;
1659 case "${canonical}" in
1660 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1661 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1662 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1663 *-*-bsdi3* ) opsys
=bsdos3
;;
1664 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1669 ## Strictly speaking, we need the version of the alliant operating
1670 ## system to choose the right machine file, but currently the
1671 ## configuration name doesn't tell us enough to choose the right
1672 ## one; we need to give alliants their own operating system name to
1673 ## do this right. When someone cares, they can help us.
1675 machine
=alliant4 opsys
=bsd4-2
1678 machine
=alliant-2800 opsys
=bsd4-3
1681 ## Alpha (DEC) machines.
1683 machine
=alpha opsys
=osf1
1684 # This is needed to find X11R6.1 libraries for certain tests.
1685 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1686 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1687 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1688 # due to non-traditional preprocessing with the current compiler
1689 # defaults. OSF 4 can also have that compiler version, and there
1690 # seems always to have been a usable /usr/bin/cpp.
1691 NON_GNU_CPP
=/usr
/bin
/cpp
1692 case "${canonical}" in
1693 alpha
*-dec-osf[5-9]*)
1698 alpha
*-*-linux-gnu* )
1699 machine
=alpha opsys
=gnu-linux
1703 machine
=arm opsys
=gnu-linux
1708 machine
=macppc opsys
=gnu-linux
1713 machine
=altos opsys
=usg5-2
1718 machine
=amdahl opsys
=usg5-2-2
1721 ## Apollo, Domain/OS
1723 machine
=apollo opsys
=bsd4-3
1726 ## AT&T 3b2, 3b5, 3b15, 3b20
1728 machine
=att3b opsys
=usg5-2-2
1731 ## AT&T 3b1 - The Mighty Unix PC!
1733 machine
=7300 opsys
=usg5-2-2
1738 machine
=ibmrs6000 opsys
=aix3-2
1743 machine
=dpx2 opsys
=usg5-3
1748 machine
=sps7 opsys
=usg5-2
1751 ## CCI 5/32, 6/32 -- see "Tahoe".
1754 ## I don't know what configuration name to use for this; config.sub
1755 ## doesn't seem to know anything about it. Hey, Celerity users, get
1756 ## in touch with us!
1757 celerity-celerity-bsd
* )
1758 machine
=celerity opsys
=bsd4-2
1762 ## What operating systems does this chip run that Emacs has been
1766 ## We'll use the catch-all code at the bottom to guess the
1767 ## operating system.
1771 mips-compaq-nonstopux
* )
1772 machine
=nonstopux opsys
=nonstopux
1776 *-convex-bsd* |
*-convex-convexos* )
1777 machine
=convex opsys
=bsd4-3
1778 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1779 NON_GNU_CPP
="cc -E -P"
1783 i
[3456]86-cubix-sysv* )
1784 machine
=intel386 opsys
=usg5-3
1788 cydra
*-cydrome-sysv* )
1789 machine
=cydra5 opsys
=usg5-3
1792 ## Data General AViiON Machines
1793 ## DG changed naming conventions with the release of 5.4.4.10, they
1794 ## dropped the initial 5.4 but left the intervening R. Because of the
1795 ## R this shouldn't conflict with older versions of the OS (which I
1796 ## think were named like dgux4.*). In addition, DG new AViiONs series
1797 ## uses either Motorola M88k or Intel Pentium CPUs.
1798 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1799 machine
=aviion opsys
=dgux4
1801 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1802 ## This name is dgux5-4-3 instead of dgux5-4r3
1803 ## to avoid a file name conflict on MSDOS.
1804 machine
=aviion opsys
=dgux5-4-3
1806 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1807 machine
=aviion opsys
=dgux5-4r2
1810 machine
=aviion opsys
=dgux
1813 ## Data General AViiON Intel (x86) Machines
1814 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1815 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1816 i
[345]86-dg-dguxR4* )
1817 machine
=aviion-intel opsys
=dgux4
1821 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1822 machine
=pmax opsys
=bsd4-2
1824 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1825 machine
=pmax opsys
=bsd4-3
1828 machine
=pmax opsys
=ultrix4-3
1831 machine
=pmax opsys
=osf1
1833 mips-dec-mach_bsd4.3
* )
1834 machine
=pmax opsys
=mach-bsd4-3
1837 ## Motorola Delta machines
1838 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1839 machine
=delta opsys
=usg5-3
1840 if test -z "`type gnucc | grep 'not found'`"
1842 if test -s /etc
/167config
1843 then CC
="gnucc -m68040"
1844 else CC
="gnucc -m68881"
1847 if test -z "`type gcc | grep 'not found'`"
1853 m88k-motorola-sysv4
* )
1854 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1855 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1856 # I hope there are not other 4.0 versions for this machine
1857 # which really need usg5-4 instead.
1858 machine
=delta88k opsys
=usg5-4-2
1860 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1861 machine
=delta88k opsys
=usg5-3
1866 machine
=dual opsys
=usg5-2
1868 m68
*-dual-uniplus* )
1869 machine
=dual opsys
=unipl5-2
1874 machine
=elxsi opsys
=usg5-2
1879 machine
=ns16000 opsys
=umax
1882 ## The GEC 63 - apparently, this port isn't really finished yet.
1883 # I'm sure we finished off the last of the machines, though. -- fx
1885 ## Gould Power Node and NP1
1887 machine
=gould opsys
=bsd4-2
1890 machine
=gould opsys
=bsd4-3
1893 machine
=gould-np1 opsys
=bsd4-3
1896 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1897 ## as far as Emacs is concerned).
1899 # Build needs to be different on 7.0 and later releases
1900 case "`uname -r`" in
1901 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1902 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1904 NON_GNU_CPP
="/lib/cpp"
1906 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1908 machine
=nh3000 opsys
=cxux
1910 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1911 powerpc-harris-powerunix
)
1912 machine
=nh6000 opsys
=powerunix
1913 NON_GNU_CPP
="cc -Xo -E -P"
1915 ## SR2001/SR2201 running HI-UX/MPP
1916 hppa1.1
-hitachi-hiuxmpp* )
1917 machine
=sr2k opsys
=hiuxmpp
1919 hppa1.1
-hitachi-hiuxwe2* )
1920 machine
=sr2k opsys
=hiuxwe2
1923 xps
*-honeywell-sysv* )
1924 machine
=xps100 opsys
=usg5-2
1927 ## HP 9000 series 200 or 300
1929 machine
=hp9000s300 opsys
=bsd4-3
1931 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1933 case "`uname -r`" in
1934 ## Someone's system reports A.B8.05 for this.
1935 ## I wonder what other possibilities there are.
1936 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1937 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1938 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
1939 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
1940 *) machine
=hp9000s300 opsys
=hpux
;;
1944 ## HP 9000 series 700 and 800, running HP/UX
1946 machine
=hp800 opsys
=hpux
1949 machine
=hp800 opsys
=hpux8
1951 hppa
*-hp-hpux9shr* )
1952 machine
=hp800 opsys
=hpux9shr
1955 machine
=hp800 opsys
=hpux9
1958 machine
=hp800 opsys
=hpux10
1960 hppa
*-hp-hpux1[1-9]* )
1961 machine
=hp800 opsys
=hpux11
1964 hppa
*-*-linux-gnu* )
1965 machine
=hp800 opsys
=gnu-linux
1968 ## HP 9000 series 700 and 800, running HP/UX
1970 ## Cross-compilation? Nah!
1971 case "`uname -r`" in
1972 ## Someone's system reports A.B8.05 for this.
1973 ## I wonder what other possibilities there are.
1974 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
1975 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
1976 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
1977 *) machine
=hp800 opsys
=hpux10
;;
1981 machine
=hp800 opsys
=nextstep
1986 machine
=orion opsys
=bsd4-2
1988 clipper-orion-bsd
* )
1989 machine
=orion105 opsys
=bsd4-2
1993 i
[3456]86-ibm-aix1.1
* )
1994 machine
=ibmps2-aix opsys
=usg5-2-2
1996 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
1997 machine
=ibmps2-aix opsys
=usg5-3
2000 machine
=ibm370aix opsys
=usg5-3
2003 machine
=ibms390 opsys
=gnu-linux
2005 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2006 machine
=ibmrs6000 opsys
=aix3-1
2008 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2009 machine
=ibmrs6000 opsys
=aix3-2-5
2011 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2012 machine
=ibmrs6000 opsys
=aix4-1
2014 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2015 machine
=ibmrs6000 opsys
=aix4-2
2017 rs6000-ibm-aix5.1
* | powerpc-ibm-aix5.1
* )
2018 machine
=ibmrs6000 opsys
=aix4-2
2020 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2021 machine
=ibmrs6000 opsys
=aix4
2023 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2024 machine
=ibmrs6000 opsys
=aix4-1
2026 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2027 machine
=ibmrs6000 opsys
=aix3-2
2030 machine
=ibmrt opsys
=bsd4-3
2033 machine
=ibmrt opsys
=bsd4-2
2036 machine
=ibmrt opsys
=bsd4-3
2039 machine
=ibmrt opsys
=bsd4-2
2042 machine
=ibmrt opsys
=bsd4-3
2045 machine
=ibmrt opsys
=bsd4-3
2048 machine
=ibmrt-aix opsys
=usg5-2-2
2051 ## Integrated Solutions `Optimum V'
2053 machine
=isi-ov opsys
=bsd4-2
2056 machine
=isi-ov opsys
=bsd4-3
2059 ## Intel 386 machines where we do care about the manufacturer
2060 i
[3456]86-intsys-sysv* )
2061 machine
=is386 opsys
=usg5-2-2
2065 i
[3456]86-prime-sysv* )
2066 machine
=i386 opsys
=usg5-3
2069 ## Sequent Symmetry running Dynix
2070 i
[3456]86-sequent-bsd* )
2071 machine
=symmetry opsys
=bsd4-3
2074 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2075 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2076 machine
=sequent-ptx opsys
=ptx4
2077 NON_GNU_CPP
=/lib
/cpp
2080 ## Sequent Symmetry running DYNIX/ptx
2081 ## Use the old cpp rather than the newer ANSI one.
2082 i
[3456]86-sequent-ptx* )
2083 machine
=sequent-ptx opsys
=ptx
2084 NON_GNU_CPP
="/lib/cpp"
2087 ## ncr machine running svr4.3.
2088 i
[3456]86-ncr-sysv4.3
)
2089 machine
=ncr386 opsys
=usg5-4-3
2092 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2093 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2094 i
[3456]86-ncr-sysv* )
2095 machine
=ncr386 opsys
=usg5-4-2
2098 ## Intel Paragon OSF/1
2100 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2105 machine
=i860 opsys
=usg5-4
2106 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2107 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2110 ## Macintosh PowerPC
2111 powerpc
*-*-linux-gnu* )
2112 machine
=macppc opsys
=gnu-linux
2115 ## Masscomp machines
2116 m68
*-masscomp-rtu* )
2117 machine
=masscomp opsys
=rtu
2120 ## Megatest machines
2121 m68
*-megatest-bsd* )
2122 machine
=mega68 opsys
=bsd4-2
2125 ## Workstations sold by MIPS
2126 ## This is not necessarily all workstations using the MIPS processor -
2127 ## Irises are produced by SGI, and DECstations by DEC.
2129 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2130 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2131 ## it gives for choosing between the alternatives seems to be "Use
2132 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2133 ## the BSD world." I'll assume that these are instructions for
2134 ## handling two odd situations, and that every other situation
2135 ## should use mips.h and usg5-2-2, they being listed first.
2138 ## Fall through to the general code at the bottom to decide on the OS.
2140 mips-mips-riscos4
* )
2141 machine
=mips4 opsys
=bsd4-3
2142 NON_GNU_CC
="cc -systype bsd43"
2143 NON_GNU_CPP
="cc -systype bsd43 -E"
2145 mips-mips-riscos5
* )
2146 machine
=mips4 opsys
=riscos5
2147 NON_GNU_CC
="cc -systype bsd43"
2148 NON_GNU_CPP
="cc -systype bsd43 -E"
2151 machine
=mips opsys
=bsd4-3
2154 machine
=mips opsys
=usg5-2-2
2158 m68
*-next-* | m68k-
*-nextstep* )
2159 machine
=m68k opsys
=nextstep
2162 ## The complete machine from National Semiconductor
2164 machine
=ns32000 opsys
=usg5-2
2168 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2169 machine
=tower32 opsys
=usg5-2-2
2171 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2172 machine
=tower32v3 opsys
=usg5-3
2177 machine
=ews4800 opsys
=ux4800
2180 ## Nixdorf Targon 31
2181 m68
*-nixdorf-sysv* )
2182 machine
=targon31 opsys
=usg5-2-2
2187 machine
=nu opsys
=usg5-2
2192 machine
=plexus opsys
=usg5-2
2196 ## I don't really have any idea what sort of processor the Pyramid has,
2197 ## so I'm assuming it is its own architecture.
2198 pyramid-pyramid-bsd
* )
2199 machine
=pyramid opsys
=bsd4-2
2203 ns32k-sequent-bsd4.2
* )
2204 machine
=sequent opsys
=bsd4-2
2206 ns32k-sequent-bsd4.3
* )
2207 machine
=sequent opsys
=bsd4-3
2211 mips-siemens-sysv
* | mips-sni-sysv
*)
2212 machine
=mips-siemens opsys
=usg5-4
2213 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2214 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2217 ## Silicon Graphics machines
2218 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2220 machine
=irist opsys
=iris3-5
2222 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2223 machine
=irist opsys
=iris3-6
2227 machine
=iris4d opsys
=irix3-3
2230 machine
=iris4d opsys
=irix4-0
2233 machine
=iris4d opsys
=irix6-5
2234 # Without defining _LANGUAGE_C, things get masked out in the headers
2235 # so that, for instance, grepping for `free' in stdlib.h fails and
2236 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2237 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2238 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2241 machine
=iris4d opsys
=irix6-0
2242 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2243 # but presumably it does no harm.
2244 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2245 # -32 probably isn't necessary in later v.6s -- anyone know which?
2246 NON_GCC_TEST_OPTIONS
=-32
2248 mips-sgi-irix5.
[01]* )
2249 machine
=iris4d opsys
=irix5-0
2251 mips-sgi-irix5
* | mips-sgi-irix
* )
2252 machine
=iris4d opsys
=irix5-2
2257 machine
=news opsys
=bsd4-2
2260 machine
=news opsys
=bsd4-3
2262 m68
*-sony-newsos3* | m68
*-sony-news3*)
2263 machine
=news opsys
=bsd4-3
2265 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2266 machine
=news-risc opsys
=bsd4-3
2268 mips-sony-newsos6
* )
2269 machine
=news-r6 opsys
=newsos6
2272 machine
=news-risc opsys
=newsos5
2277 machine
=stride opsys
=usg5-2
2281 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2282 machine
=sparc opsys
=gnu-linux
2285 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2286 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2287 | rs6000-
*-solaris2*)
2288 case "${canonical}" in
2289 m68
*-sunos1* ) machine
=sun1
;;
2290 m68
*-sunos2* ) machine
=sun2
;;
2291 m68
* ) machine
=sun3
;;
2292 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2293 i
[3456]86-*-* ) machine
=intel386
;;
2294 powerpcle
* ) machine
=powerpcle
;;
2295 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2296 sparc
* ) machine
=sparc
;;
2299 case "${canonical}" in
2300 ## The Sun386 didn't get past 4.0.
2301 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2302 *-sunos4.0
* ) opsys
=sunos4-0
;;
2303 *-sunos4.1.
[3-9]*noshare
)
2304 ## This name is sunos413 instead of sunos4-1-3
2305 ## to avoid a file name conflict on MSDOS.
2307 NON_GNU_CPP
=/usr
/lib
/cpp
2308 NON_GCC_TEST_OPTIONS
=-Bstatic
2309 GCC_TEST_OPTIONS
=-static
2311 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2313 NON_GNU_CPP
=/usr
/lib
/cpp
2315 *-sunos4* |
*-sunos )
2317 NON_GCC_TEST_OPTIONS
=-Bstatic
2318 GCC_TEST_OPTIONS
=-static
2320 *-sunos5.3
* |
*-solaris2.3
* )
2322 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2324 *-sunos5.4
* |
*-solaris2.4
* )
2326 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2329 *-sunos5.5
* |
*-solaris2.5
* )
2331 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2334 *-sunos5.6
* |
*-solaris2.6
* )
2336 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2339 *-sunos5.8
* |
*-solaris2.8
* )
2341 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2344 *-sunos5* |
*-solaris* )
2346 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2350 ## Watch out for a compiler that we know will not work.
2351 case "${canonical}" in
2352 *-solaris* |
*-sunos5* )
2353 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2354 ## /usr/ucb/cc doesn't work;
2355 ## we should find some other compiler that does work.
2363 machine
=sparc opsys
=nextstep
2367 m68
*-tadpole-sysv* )
2368 machine
=tad68k opsys
=usg5-3
2372 tahoe-tahoe-bsd4.2
* )
2373 machine
=tahoe opsys
=bsd4-2
2375 tahoe-tahoe-bsd4.3
* )
2376 machine
=tahoe opsys
=bsd4-3
2379 ## Tandem Integrity S2
2381 machine
=tandem-s2 opsys
=usg5-3
2385 m88k-tektronix-sysv3
* )
2386 machine
=tekxd88 opsys
=usg5-3
2389 ## Tektronix 16000 box (6130?)
2390 ns16k-tektronix-bsd
* )
2391 machine
=ns16000 opsys
=bsd4-2
2394 ## src/m/tek4300.h hints that this is a m68k machine.
2395 m68
*-tektronix-bsd* )
2396 machine
=tek4300 opsys
=bsd4-3
2400 ## We seem to have lost the machine-description file titan.h!
2402 machine
=titan opsys
=usg5-3
2405 ## Ustation E30 (SS5E)
2406 m68
*-unisys-uniplus* )
2407 machine
=ustation opsystem
=unipl5-2
2413 case "${canonical}" in
2414 *-bsd4.1
* ) opsys
=bsd4-1
;;
2415 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2416 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2417 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2418 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2419 *-vms* ) opsys
=vms
;;
2425 ns16k-whitechapel-
* )
2427 ## We don't know what sort of OS runs on these; we'll let the
2428 ## operating system guessing code below try.
2433 machine
=wicat opsys
=usg5-2
2438 machine
=ia64 opsys
=gnu-linux
2441 ## Intel 386 machines where we don't care about the manufacturer
2444 case "${canonical}" in
2445 *-lynxos* ) opsys
=lynxos
;;
2446 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2447 *-isc2.2
* ) opsys
=isc2-2
;;
2448 *-isc4.0
* ) opsys
=isc4-0
;;
2449 *-isc4.
* ) opsys
=isc4-1
2450 GCC_TEST_OPTIONS
=-posix
2451 NON_GCC_TEST_OPTIONS
=-Xp
2453 *-isc* ) opsys
=isc3-0
;;
2454 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2455 *-esix* ) opsys
=esix
;;
2456 *-xenix* ) opsys
=xenix
;;
2457 *-linux-gnu* ) opsys
=gnu-linux
;;
2458 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2459 *-sco3.2v5
* ) opsys
=sco5
2460 NON_GNU_CPP
=/lib
/cpp
2461 # Prevent -belf from being passed to $CPP.
2462 # /lib/cpp does not accept it.
2463 OVERRIDE_CPPFLAGS
=" "
2465 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2466 *-386bsd* ) opsys
=386bsd
;;
2467 *-nextstep* ) opsys
=nextstep
;;
2468 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2472 ## m68k Linux-based GNU system
2474 machine
=m68k opsys
=gnu-linux
2477 ## Mips Linux-based GNU system
2479 machine
=mips opsys
=gnu-linux
2483 sparc-fujitsu-sysv4
* )
2484 machine
=sparc opsys
=uxpds
2485 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2490 f301-fujitsu-uxpv4.1
)
2491 machine
=f301 opsys
=uxpv
2494 ## Darwin / Mac OS X
2495 powerpc-apple-darwin
* )
2496 machine
=powermac opsys
=darwin
2497 # Define CPP as follows to make autoconf work correctly.
2498 CPP
="cc -E -traditional-cpp"
2501 ## AMD x86-64 Linux-based GNU system
2502 x86_64-
*-linux-gnu* )
2503 machine
=amdx86-64 opsys
=gnu-linux
2511 ### If the code above didn't choose an operating system, just choose
2512 ### an operating system based on the configuration name. You really
2513 ### only want to use this when you have no idea what the right
2514 ### operating system is; if you know what operating systems a machine
2515 ### runs, it's cleaner to make it explicit in the case statement
2517 if test x
"${opsys}" = x
; then
2518 case "${canonical}" in
2519 *-gnu* ) opsys
=gnu
;;
2520 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2521 *-bsd4.2
) opsys
=bsd4-2
;;
2522 *-bsd4.3
) opsys
=bsd4-3
;;
2523 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2524 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2525 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2526 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2527 *-sysv4.2uw
* ) opsys
=unixware
;;
2528 *-sysv4.1
* |
*-sysvr4.1
* )
2529 NON_GNU_CPP
=/usr
/lib
/cpp
2531 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2532 if [ x
$NON_GNU_CPP = x
]; then
2533 if [ -f /usr
/ccs
/lib
/cpp
]; then
2534 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2536 NON_GNU_CPP
=/lib
/cpp
2540 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2549 if test $unported = yes; then
2550 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2551 Check \`etc/MACHINES' for recognized configuration names." >&5
2552 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2553 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2554 { (exit 1); exit 1; }; }
2557 machfile
="m/${machine}.h"
2558 opsysfile
="s/${opsys}.h"
2561 #### Choose a compiler.
2562 test -n "$CC" && cc_specified
=yes
2564 # Save the value of CFLAGS that the user specified.
2565 SPECIFIED_CFLAGS
="$CFLAGS"
2568 "yes" ) CC
="gcc" GCC
=yes ;;
2569 "no" ) : ${CC=cc} ;;
2573 ac_cpp
='$CPP $CPPFLAGS'
2574 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2575 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2576 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2577 if test -n "$ac_tool_prefix"; then
2578 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2579 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2580 echo "$as_me:$LINENO: checking for $ac_word" >&5
2581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2582 if test "${ac_cv_prog_CC+set}" = set; then
2583 echo $ECHO_N "(cached) $ECHO_C" >&6
2585 if test -n "$CC"; then
2586 ac_cv_prog_CC
="$CC" # Let the user override the test.
2588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2592 test -z "$as_dir" && as_dir
=.
2593 for ac_exec_ext
in '' $ac_executable_extensions; do
2594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2595 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2605 if test -n "$CC"; then
2606 echo "$as_me:$LINENO: result: $CC" >&5
2607 echo "${ECHO_T}$CC" >&6
2609 echo "$as_me:$LINENO: result: no" >&5
2610 echo "${ECHO_T}no" >&6
2614 if test -z "$ac_cv_prog_CC"; then
2616 # Extract the first word of "gcc", so it can be a program name with args.
2617 set dummy gcc
; ac_word
=$2
2618 echo "$as_me:$LINENO: checking for $ac_word" >&5
2619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2620 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2623 if test -n "$ac_ct_CC"; then
2624 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2626 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2630 test -z "$as_dir" && as_dir
=.
2631 for ac_exec_ext
in '' $ac_executable_extensions; do
2632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2633 ac_cv_prog_ac_ct_CC
="gcc"
2634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2642 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2643 if test -n "$ac_ct_CC"; then
2644 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2645 echo "${ECHO_T}$ac_ct_CC" >&6
2647 echo "$as_me:$LINENO: result: no" >&5
2648 echo "${ECHO_T}no" >&6
2656 if test -z "$CC"; then
2657 if test -n "$ac_tool_prefix"; then
2658 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2659 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2660 echo "$as_me:$LINENO: checking for $ac_word" >&5
2661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2662 if test "${ac_cv_prog_CC+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 if test -n "$CC"; then
2666 ac_cv_prog_CC
="$CC" # Let the user override the test.
2668 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2672 test -z "$as_dir" && as_dir
=.
2673 for ac_exec_ext
in '' $ac_executable_extensions; do
2674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2675 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2685 if test -n "$CC"; then
2686 echo "$as_me:$LINENO: result: $CC" >&5
2687 echo "${ECHO_T}$CC" >&6
2689 echo "$as_me:$LINENO: result: no" >&5
2690 echo "${ECHO_T}no" >&6
2694 if test -z "$ac_cv_prog_CC"; then
2696 # Extract the first word of "cc", so it can be a program name with args.
2697 set dummy cc
; ac_word
=$2
2698 echo "$as_me:$LINENO: checking for $ac_word" >&5
2699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2700 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2701 echo $ECHO_N "(cached) $ECHO_C" >&6
2703 if test -n "$ac_ct_CC"; then
2704 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2706 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2710 test -z "$as_dir" && as_dir
=.
2711 for ac_exec_ext
in '' $ac_executable_extensions; do
2712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2713 ac_cv_prog_ac_ct_CC
="cc"
2714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2722 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2723 if test -n "$ac_ct_CC"; then
2724 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2725 echo "${ECHO_T}$ac_ct_CC" >&6
2727 echo "$as_me:$LINENO: result: no" >&5
2728 echo "${ECHO_T}no" >&6
2737 if test -z "$CC"; then
2738 # Extract the first word of "cc", so it can be a program name with args.
2739 set dummy cc
; ac_word
=$2
2740 echo "$as_me:$LINENO: checking for $ac_word" >&5
2741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2742 if test "${ac_cv_prog_CC+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2745 if test -n "$CC"; then
2746 ac_cv_prog_CC
="$CC" # Let the user override the test.
2749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2753 test -z "$as_dir" && as_dir
=.
2754 for ac_exec_ext
in '' $ac_executable_extensions; do
2755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2756 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2757 ac_prog_rejected
=yes
2761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 if test $ac_prog_rejected = yes; then
2768 # We found a bogon in the path, so make sure we never use it.
2769 set dummy
$ac_cv_prog_CC
2771 if test $# != 0; then
2772 # We chose a different compiler from the bogus one.
2773 # However, it has the same basename, so the bogon will be chosen
2774 # first if we set CC to just the basename; use the full file name.
2776 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2782 if test -n "$CC"; then
2783 echo "$as_me:$LINENO: result: $CC" >&5
2784 echo "${ECHO_T}$CC" >&6
2786 echo "$as_me:$LINENO: result: no" >&5
2787 echo "${ECHO_T}no" >&6
2791 if test -z "$CC"; then
2792 if test -n "$ac_tool_prefix"; then
2795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2796 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2797 echo "$as_me:$LINENO: checking for $ac_word" >&5
2798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2799 if test "${ac_cv_prog_CC+set}" = set; then
2800 echo $ECHO_N "(cached) $ECHO_C" >&6
2802 if test -n "$CC"; then
2803 ac_cv_prog_CC
="$CC" # Let the user override the test.
2805 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2809 test -z "$as_dir" && as_dir
=.
2810 for ac_exec_ext
in '' $ac_executable_extensions; do
2811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2812 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 if test -n "$CC"; then
2823 echo "$as_me:$LINENO: result: $CC" >&5
2824 echo "${ECHO_T}$CC" >&6
2826 echo "$as_me:$LINENO: result: no" >&5
2827 echo "${ECHO_T}no" >&6
2830 test -n "$CC" && break
2833 if test -z "$CC"; then
2837 # Extract the first word of "$ac_prog", so it can be a program name with args.
2838 set dummy
$ac_prog; ac_word
=$2
2839 echo "$as_me:$LINENO: checking for $ac_word" >&5
2840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2841 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
2844 if test -n "$ac_ct_CC"; then
2845 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2847 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2851 test -z "$as_dir" && as_dir
=.
2852 for ac_exec_ext
in '' $ac_executable_extensions; do
2853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854 ac_cv_prog_ac_ct_CC
="$ac_prog"
2855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2863 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2864 if test -n "$ac_ct_CC"; then
2865 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2866 echo "${ECHO_T}$ac_ct_CC" >&6
2868 echo "$as_me:$LINENO: result: no" >&5
2869 echo "${ECHO_T}no" >&6
2872 test -n "$ac_ct_CC" && break
2881 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2882 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2883 { (exit 1); exit 1; }; }
2885 # Provide some information about the compiler.
2886 echo "$as_me:$LINENO:" \
2887 "checking for C compiler version" >&5
2888 ac_compiler
=`set X $ac_compile; echo $2`
2889 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2890 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }
2894 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2895 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }
2899 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2900 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }
2905 cat >conftest.
$ac_ext <<_ACEOF
2906 #line $LINENO "configure"
2907 #include "confdefs.h"
2917 ac_clean_files_save
=$ac_clean_files
2918 ac_clean_files
="$ac_clean_files a.out a.exe"
2919 # Try to create an executable without -o first, disregard a.out.
2920 # It will help us diagnose broken compilers, and finding out an intuition
2922 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2923 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2924 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2925 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2926 (eval $ac_link_default) 2>&5
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); }; then
2930 # Find the output, starting from the most likely. This scheme is
2931 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2934 # Be careful to initialize this variable, since it used to be cached.
2935 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2937 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
*; do
2938 test -f "$ac_file" ||
continue
2940 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2941 a.out
) # We found the default executable, but exeext='' is most
2944 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2945 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2952 echo "$as_me: failed program was:" >&5
2953 cat conftest.
$ac_ext >&5
2954 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2955 check \`config.log' for details." >&5
2956 echo "$as_me: error: C compiler cannot create executables
2957 check \`config.log' for details." >&2;}
2958 { (exit 77); exit 77; }; }
2961 ac_exeext
=$ac_cv_exeext
2962 echo "$as_me:$LINENO: result: $ac_file" >&5
2963 echo "${ECHO_T}$ac_file" >&6
2965 # Check the compiler produces executables we can run. If not, either
2966 # the compiler is broken, or we cross compile.
2967 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2968 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2969 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2970 # If not cross compiling, check that we can run a simple program.
2971 if test "$cross_compiling" != yes; then
2972 if { ac_try
='./$ac_file'
2973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); }; }; then
2980 if test "$cross_compiling" = maybe
; then
2983 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2984 If you meant to cross compile, use \`--host'." >&5
2985 echo "$as_me: error: cannot run C compiled programs.
2986 If you meant to cross compile, use \`--host'." >&2;}
2987 { (exit 1); exit 1; }; }
2991 echo "$as_me:$LINENO: result: yes" >&5
2992 echo "${ECHO_T}yes" >&6
2994 rm -f a.out a.exe conftest
$ac_cv_exeext
2995 ac_clean_files
=$ac_clean_files_save
2996 # Check the compiler produces executables we can run. If not, either
2997 # the compiler is broken, or we cross compile.
2998 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2999 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3000 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3001 echo "${ECHO_T}$cross_compiling" >&6
3003 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3004 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3006 (eval $ac_link) 2>&5
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); }; then
3010 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3011 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3012 # work properly (i.e., refer to `conftest.exe'), while it won't with
3014 for ac_file
in conftest.exe conftest conftest.
*; do
3015 test -f "$ac_file" ||
continue
3017 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3018 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3025 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
3026 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
3027 { (exit 1); exit 1; }; }
3030 rm -f conftest
$ac_cv_exeext
3031 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3032 echo "${ECHO_T}$ac_cv_exeext" >&6
3034 rm -f conftest.
$ac_ext
3035 EXEEXT
=$ac_cv_exeext
3037 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3038 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3039 if test "${ac_cv_objext+set}" = set; then
3040 echo $ECHO_N "(cached) $ECHO_C" >&6
3042 cat >conftest.
$ac_ext <<_ACEOF
3043 #line $LINENO "configure"
3044 #include "confdefs.h"
3054 rm -f conftest.o conftest.obj
3055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3056 (eval $ac_compile) 2>&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; then
3060 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3062 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3063 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3068 echo "$as_me: failed program was:" >&5
3069 cat conftest.
$ac_ext >&5
3070 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
3071 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
3072 { (exit 1); exit 1; }; }
3075 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3077 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3078 echo "${ECHO_T}$ac_cv_objext" >&6
3079 OBJEXT
=$ac_cv_objext
3081 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3082 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3083 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
3086 cat >conftest.
$ac_ext <<_ACEOF
3087 #line $LINENO "configure"
3088 #include "confdefs.h"
3101 rm -f conftest.
$ac_objext
3102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3103 (eval $ac_compile) 2>&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } &&
3107 { ac_try
='test -s conftest.$ac_objext'
3108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; }; then
3115 echo "$as_me: failed program was:" >&5
3116 cat conftest.
$ac_ext >&5
3119 rm -f conftest.
$ac_objext conftest.
$ac_ext
3120 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3123 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3124 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3125 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3126 ac_test_CFLAGS
=${CFLAGS+set}
3127 ac_save_CFLAGS
=$CFLAGS
3129 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3130 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3131 if test "${ac_cv_prog_cc_g+set}" = set; then
3132 echo $ECHO_N "(cached) $ECHO_C" >&6
3134 cat >conftest.
$ac_ext <<_ACEOF
3135 #line $LINENO "configure"
3136 #include "confdefs.h"
3146 rm -f conftest.
$ac_objext
3147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3148 (eval $ac_compile) 2>&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } &&
3152 { ac_try
='test -s conftest.$ac_objext'
3153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; }; then
3160 echo "$as_me: failed program was:" >&5
3161 cat conftest.
$ac_ext >&5
3164 rm -f conftest.
$ac_objext conftest.
$ac_ext
3166 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3167 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3168 if test "$ac_test_CFLAGS" = set; then
3169 CFLAGS
=$ac_save_CFLAGS
3170 elif test $ac_cv_prog_cc_g = yes; then
3171 if test "$GCC" = yes; then
3177 if test "$GCC" = yes; then
3183 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3184 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3185 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3186 echo $ECHO_N "(cached) $ECHO_C" >&6
3188 ac_cv_prog_cc_stdc
=no
3190 cat >conftest.
$ac_ext <<_ACEOF
3191 #line $LINENO "configure"
3192 #include "confdefs.h"
3195 #include <sys/types.h>
3196 #include <sys/stat.h>
3197 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3198 struct buf { int x; };
3199 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3200 static char *e (p, i)
3206 static char *f (char * (*g) (char **, int), char **p, ...)
3211 s = g (p, va_arg (v,int));
3215 int test (int i, double x);
3216 struct s1 {int (*f) (int a);};
3217 struct s2 {int (*f) (double a);};
3218 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3224 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3229 # Don't try gcc -ansi; that turns off useful extensions and
3230 # breaks some systems' header files.
3231 # AIX -qlanglvl=ansi
3232 # Ultrix and OSF/1 -std1
3233 # HP-UX 10.20 and later -Ae
3234 # HP-UX older versions -Aa -D_HPUX_SOURCE
3235 # SVR4 -Xc -D__EXTENSIONS__
3236 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3238 CC
="$ac_save_CC $ac_arg"
3239 rm -f conftest.
$ac_objext
3240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3241 (eval $ac_compile) 2>&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); } &&
3245 { ac_try
='test -s conftest.$ac_objext'
3246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }; }; then
3251 ac_cv_prog_cc_stdc
=$ac_arg
3254 echo "$as_me: failed program was:" >&5
3255 cat conftest.
$ac_ext >&5
3257 rm -f conftest.
$ac_objext
3259 rm -f conftest.
$ac_ext conftest.
$ac_objext
3264 case "x$ac_cv_prog_cc_stdc" in
3266 echo "$as_me:$LINENO: result: none needed" >&5
3267 echo "${ECHO_T}none needed" >&6 ;;
3269 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3270 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3271 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3274 # Some people use a C++ compiler to compile C. Since we use `exit',
3275 # in C++ we need to declare it. In case someone uses the same compiler
3276 # for both compiling C and C++ we need to have the C++ compiler decide
3277 # the declaration of exit, since it's the most demanding environment.
3278 cat >conftest.
$ac_ext <<_ACEOF
3283 rm -f conftest.
$ac_objext
3284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3285 (eval $ac_compile) 2>&5
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); } &&
3289 { ac_try
='test -s conftest.$ac_objext'
3290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }; }; then
3295 for ac_declaration
in \
3297 '#include <stdlib.h>' \
3298 'extern "C" void std::exit (int) throw (); using std::exit;' \
3299 'extern "C" void std::exit (int); using std::exit;' \
3300 'extern "C" void exit (int) throw ();' \
3301 'extern "C" void exit (int);' \
3304 cat >conftest.
$ac_ext <<_ACEOF
3305 #line $LINENO "configure"
3306 #include "confdefs.h"
3317 rm -f conftest.
$ac_objext
3318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3319 (eval $ac_compile) 2>&5
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); } &&
3323 { ac_try
='test -s conftest.$ac_objext'
3324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }; }; then
3331 echo "$as_me: failed program was:" >&5
3332 cat conftest.
$ac_ext >&5
3335 rm -f conftest.
$ac_objext conftest.
$ac_ext
3336 cat >conftest.
$ac_ext <<_ACEOF
3337 #line $LINENO "configure"
3338 #include "confdefs.h"
3348 rm -f conftest.
$ac_objext
3349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3350 (eval $ac_compile) 2>&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); } &&
3354 { ac_try
='test -s conftest.$ac_objext'
3355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; }; then
3362 echo "$as_me: failed program was:" >&5
3363 cat conftest.
$ac_ext >&5
3365 rm -f conftest.
$ac_objext conftest.
$ac_ext
3368 if test -n "$ac_declaration"; then
3369 echo '#ifdef __cplusplus' >>confdefs.h
3370 echo $ac_declaration >>confdefs.h
3371 echo '#endif' >>confdefs.h
3375 echo "$as_me: failed program was:" >&5
3376 cat conftest.
$ac_ext >&5
3378 rm -f conftest.
$ac_objext conftest.
$ac_ext
3380 ac_cpp
='$CPP $CPPFLAGS'
3381 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3382 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3386 # On Suns, sometimes $CPP names a directory.
3387 if test -n "$CPP" && test -d "$CPP"; then
3391 #### Some systems specify a CPP to use unless we are using GCC.
3392 #### Now that we know whether we are using GCC, we can decide whether
3393 #### to use that one.
3394 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3399 #### Some systems specify a CC to use unless we are using GCC.
3400 #### Now that we know whether we are using GCC, we can decide whether
3401 #### to use that one.
3402 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3403 test x
$cc_specified != xyes
3408 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3410 CC
="$CC $GCC_TEST_OPTIONS"
3413 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3415 CC
="$CC $NON_GCC_TEST_OPTIONS"
3418 #### Some other nice autoconf tests. If you add a test here which
3419 #### should make an entry in src/config.h, don't forget to add an
3420 #### #undef clause to src/config.h.in for autoconf to modify.
3422 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3423 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3425 if test "$LN_S" = "ln -s"; then
3426 echo "$as_me:$LINENO: result: yes" >&5
3427 echo "${ECHO_T}yes" >&6
3429 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3430 echo "${ECHO_T}no, using $LN_S" >&6
3434 ac_cpp
='$CPP $CPPFLAGS'
3435 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3436 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3437 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3438 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3439 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3440 # On Suns, sometimes $CPP names a directory.
3441 if test -n "$CPP" && test -d "$CPP"; then
3444 if test -z "$CPP"; then
3445 if test "${ac_cv_prog_CPP+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3448 # Double quotes because CPP needs to be expanded
3449 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3452 for ac_c_preproc_warn_flag
in '' yes
3454 # Use a header file that comes with gcc, so configuring glibc
3455 # with a fresh cross-compiler works.
3456 # On the NeXT, cc -E runs the code through the compiler's parser,
3457 # not just through cpp. "Syntax error" is here to catch this case.
3458 cat >conftest.
$ac_ext <<_ACEOF
3459 #line $LINENO "configure"
3460 #include "confdefs.h"
3464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3465 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3467 grep -v '^ *+' conftest.er1
>conftest.err
3469 cat conftest.err
>&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); } >/dev
/null
; then
3472 if test -s conftest.err
; then
3473 ac_cpp_err
=$ac_c_preproc_warn_flag
3480 if test -z "$ac_cpp_err"; then
3483 echo "$as_me: failed program was:" >&5
3484 cat conftest.
$ac_ext >&5
3485 # Broken: fails on valid input.
3488 rm -f conftest.err conftest.
$ac_ext
3490 # OK, works on sane cases. Now check whether non-existent headers
3491 # can be detected and how.
3492 cat >conftest.
$ac_ext <<_ACEOF
3493 #line $LINENO "configure"
3494 #include "confdefs.h"
3495 #include <ac_nonexistent.h>
3497 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3498 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3500 grep -v '^ *+' conftest.er1
>conftest.err
3502 cat conftest.err
>&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); } >/dev
/null
; then
3505 if test -s conftest.err
; then
3506 ac_cpp_err
=$ac_c_preproc_warn_flag
3513 if test -z "$ac_cpp_err"; then
3514 # Broken: success on invalid input.
3517 echo "$as_me: failed program was:" >&5
3518 cat conftest.
$ac_ext >&5
3519 # Passes both tests.
3523 rm -f conftest.err conftest.
$ac_ext
3526 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3527 rm -f conftest.err conftest.
$ac_ext
3528 if $ac_preproc_ok; then
3540 echo "$as_me:$LINENO: result: $CPP" >&5
3541 echo "${ECHO_T}$CPP" >&6
3543 for ac_c_preproc_warn_flag
in '' yes
3545 # Use a header file that comes with gcc, so configuring glibc
3546 # with a fresh cross-compiler works.
3547 # On the NeXT, cc -E runs the code through the compiler's parser,
3548 # not just through cpp. "Syntax error" is here to catch this case.
3549 cat >conftest.
$ac_ext <<_ACEOF
3550 #line $LINENO "configure"
3551 #include "confdefs.h"
3555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3556 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3558 grep -v '^ *+' conftest.er1
>conftest.err
3560 cat conftest.err
>&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } >/dev
/null
; then
3563 if test -s conftest.err
; then
3564 ac_cpp_err
=$ac_c_preproc_warn_flag
3571 if test -z "$ac_cpp_err"; then
3574 echo "$as_me: failed program was:" >&5
3575 cat conftest.
$ac_ext >&5
3576 # Broken: fails on valid input.
3579 rm -f conftest.err conftest.
$ac_ext
3581 # OK, works on sane cases. Now check whether non-existent headers
3582 # can be detected and how.
3583 cat >conftest.
$ac_ext <<_ACEOF
3584 #line $LINENO "configure"
3585 #include "confdefs.h"
3586 #include <ac_nonexistent.h>
3588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3589 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3591 grep -v '^ *+' conftest.er1
>conftest.err
3593 cat conftest.err
>&5
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); } >/dev
/null
; then
3596 if test -s conftest.err
; then
3597 ac_cpp_err
=$ac_c_preproc_warn_flag
3604 if test -z "$ac_cpp_err"; then
3605 # Broken: success on invalid input.
3608 echo "$as_me: failed program was:" >&5
3609 cat conftest.
$ac_ext >&5
3610 # Passes both tests.
3614 rm -f conftest.err conftest.
$ac_ext
3617 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3618 rm -f conftest.err conftest.
$ac_ext
3619 if $ac_preproc_ok; then
3622 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3623 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3624 { (exit 1); exit 1; }; }
3628 ac_cpp
='$CPP $CPPFLAGS'
3629 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3633 # Find a good install program. We prefer a C program (faster),
3634 # so one script is as good as another. But avoid the broken or
3635 # incompatible versions:
3636 # SysV /etc/install, /usr/sbin/install
3637 # SunOS /usr/etc/install
3638 # IRIX /sbin/install
3640 # AmigaOS /C/install, which installs bootblocks on floppy discs
3641 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3642 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3643 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3644 # ./install, which can be erroneously created by make from ./install.sh.
3645 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3646 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3647 if test -z "$INSTALL"; then
3648 if test "${ac_cv_path_install+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3651 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3655 test -z "$as_dir" && as_dir
=.
3656 # Account for people who put trailing slashes in PATH elements.
3658 .
/ | .
// |
/cC
/* | \
3659 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3662 # OSF1 and SCO ODT 3.0 have their own names for install.
3663 # Don't use installbsd from OSF since it installs stuff as root
3665 for ac_prog
in ginstall scoinst
install; do
3666 for ac_exec_ext
in '' $ac_executable_extensions; do
3667 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3668 if test $ac_prog = install &&
3669 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3670 # AIX install. It has an incompatible calling convention.
3672 elif test $ac_prog = install &&
3673 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3674 # program-specific install script used by HP pwplus--don't use.
3677 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3689 if test "${ac_cv_path_install+set}" = set; then
3690 INSTALL
=$ac_cv_path_install
3692 # As a last resort, use the slow shell script. We don't cache a
3693 # path for INSTALL within a source directory, because that will
3694 # break other packages using the cache if that directory is
3695 # removed, or if the path is relative.
3696 INSTALL
=$ac_install_sh
3699 echo "$as_me:$LINENO: result: $INSTALL" >&5
3700 echo "${ECHO_T}$INSTALL" >&6
3702 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3703 # It thinks the first close brace ends the variable substitution.
3704 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3706 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3708 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3710 if test "x$RANLIB" = x
; then
3711 if test -n "$ac_tool_prefix"; then
3712 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3713 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3714 echo "$as_me:$LINENO: checking for $ac_word" >&5
3715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3716 if test "${ac_cv_prog_RANLIB+set}" = set; then
3717 echo $ECHO_N "(cached) $ECHO_C" >&6
3719 if test -n "$RANLIB"; then
3720 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3722 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3726 test -z "$as_dir" && as_dir
=.
3727 for ac_exec_ext
in '' $ac_executable_extensions; do
3728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3729 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3738 RANLIB
=$ac_cv_prog_RANLIB
3739 if test -n "$RANLIB"; then
3740 echo "$as_me:$LINENO: result: $RANLIB" >&5
3741 echo "${ECHO_T}$RANLIB" >&6
3743 echo "$as_me:$LINENO: result: no" >&5
3744 echo "${ECHO_T}no" >&6
3748 if test -z "$ac_cv_prog_RANLIB"; then
3749 ac_ct_RANLIB
=$RANLIB
3750 # Extract the first word of "ranlib", so it can be a program name with args.
3751 set dummy ranlib
; ac_word
=$2
3752 echo "$as_me:$LINENO: checking for $ac_word" >&5
3753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3754 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 if test -n "$ac_ct_RANLIB"; then
3758 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3760 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3764 test -z "$as_dir" && as_dir
=.
3765 for ac_exec_ext
in '' $ac_executable_extensions; do
3766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3767 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3774 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3777 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3778 if test -n "$ac_ct_RANLIB"; then
3779 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3780 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3782 echo "$as_me:$LINENO: result: no" >&5
3783 echo "${ECHO_T}no" >&6
3786 RANLIB
=$ac_ct_RANLIB
3788 RANLIB
="$ac_cv_prog_RANLIB"
3794 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
3796 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
3799 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
3801 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
3806 echo "$as_me:$LINENO: checking for egrep" >&5
3807 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3808 if test "${ac_cv_prog_egrep+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3812 then ac_cv_prog_egrep
='grep -E'
3813 else ac_cv_prog_egrep
='egrep'
3816 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3817 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3818 EGREP
=$ac_cv_prog_egrep
3822 echo "$as_me:$LINENO: checking for AIX" >&5
3823 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3824 cat >conftest.
$ac_ext <<_ACEOF
3825 #line $LINENO "configure"
3826 #include "confdefs.h"
3832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3833 $EGREP "yes" >/dev
/null
2>&1; then
3834 echo "$as_me:$LINENO: result: yes" >&5
3835 echo "${ECHO_T}yes" >&6
3836 cat >>confdefs.h
<<\_ACEOF
3837 #define _ALL_SOURCE 1
3841 echo "$as_me:$LINENO: result: no" >&5
3842 echo "${ECHO_T}no" >&6
3848 #### Extract some information from the operating system and machine files.
3850 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
3851 - which libraries the lib-src programs will want, and
3852 - whether the GNU malloc routines are usable..." >&5
3853 echo "$as_me: checking the machine- and system-dependent files to find out
3854 - which libraries the lib-src programs will want, and
3855 - whether the GNU malloc routines are usable..." >&6;}
3857 ### First figure out CFLAGS (which we use for running the compiler here)
3858 ### and REAL_CFLAGS (which we use for real compilation).
3859 ### The two are the same except on a few systems, where they are made
3860 ### different to work around various lossages. For example,
3861 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3862 ### as implying static linking.
3864 ### If the CFLAGS env var is specified, we use that value
3865 ### instead of the default.
3867 ### It's not important that this name contain the PID; you can't run
3868 ### two configures in the same directory and have anything work
3870 tempcname
="conftest.c"
3873 #include "'${srcdir}'/src/'${opsysfile}'"
3874 #include "'${srcdir}'/src/'${machfile}'"
3875 #ifndef LIBS_MACHINE
3876 #define LIBS_MACHINE
3881 #ifndef C_SWITCH_SYSTEM
3882 #define C_SWITCH_SYSTEM
3884 #ifndef C_SWITCH_MACHINE
3885 #define C_SWITCH_MACHINE
3887 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3888 configure___ c_switch_system=C_SWITCH_SYSTEM
3889 configure___ c_switch_machine=C_SWITCH_MACHINE
3892 #define LIB_X11_LIB -lX11
3895 #ifndef LIBX11_MACHINE
3896 #define LIBX11_MACHINE
3899 #ifndef LIBX11_SYSTEM
3900 #define LIBX11_SYSTEM
3902 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3905 configure___ unexec=UNEXEC
3907 configure___ unexec=unexec.o
3910 #ifdef SYSTEM_MALLOC
3911 configure___ system_malloc=yes
3913 configure___ system_malloc=no
3916 #ifdef USE_MMAP_FOR_BUFFERS
3917 configure___ use_mmap_for_buffers=yes
3919 configure___ use_mmap_for_buffers=no
3922 #ifndef C_DEBUG_SWITCH
3923 #define C_DEBUG_SWITCH -g
3926 #ifndef C_OPTIMIZE_SWITCH
3928 #define C_OPTIMIZE_SWITCH -O2
3930 #define C_OPTIMIZE_SWITCH -O
3934 #ifndef LD_SWITCH_MACHINE
3935 #define LD_SWITCH_MACHINE
3938 #ifndef LD_SWITCH_SYSTEM
3939 #define LD_SWITCH_SYSTEM
3942 #ifndef LD_SWITCH_X_SITE_AUX
3943 #define LD_SWITCH_X_SITE_AUX
3946 configure___ ld_switch_system=LD_SWITCH_SYSTEM
3947 configure___ ld_switch_machine=LD_SWITCH_MACHINE
3949 #ifdef THIS_IS_CONFIGURE
3951 /* Get the CFLAGS for tests in configure. */
3953 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3955 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3958 #else /* not THIS_IS_CONFIGURE */
3960 /* Get the CFLAGS for real compilation. */
3962 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3964 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3967 #endif /* not THIS_IS_CONFIGURE */
3970 # The value of CPP is a quoted variable reference, so we need to do this
3971 # to get its actual value...
3972 CPP
=`eval "echo $CPP"`
3973 eval `${CPP} -Isrc ${tempcname} \
3974 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3975 if test "x$SPECIFIED_CFLAGS" = x
; then
3976 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
3977 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3979 REAL_CFLAGS
="$CFLAGS"
3983 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
3985 ### Make sure subsequent tests use flags consistent with the build flags.
3987 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
3988 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
3990 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
3996 cat >>confdefs.h
<<\_ACEOF
3997 #define _GNU_SOURCE 1
4002 # Check whether --enable-largefile or --disable-largefile was given.
4003 if test "${enable_largefile+set}" = set; then
4004 enableval
="$enable_largefile"
4007 if test "$enable_largefile" != no
; then
4009 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4010 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4011 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4012 echo $ECHO_N "(cached) $ECHO_C" >&6
4014 ac_cv_sys_largefile_CC
=no
4015 if test "$GCC" != yes; then
4018 # IRIX 6.2 and later do not support large files by default,
4019 # so use the C compiler's -n32 option if that helps.
4020 cat >conftest.
$ac_ext <<_ACEOF
4021 #line $LINENO "configure"
4022 #include "confdefs.h"
4023 #include <sys/types.h>
4024 /* Check that off_t can represent 2**63 - 1 correctly.
4025 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4026 since some C++ compilers masquerading as C compilers
4027 incorrectly reject 9223372036854775807. */
4028 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4029 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4030 && LARGE_OFF_T % 2147483647 == 1)
4040 rm -f conftest.
$ac_objext
4041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4042 (eval $ac_compile) 2>&5
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); } &&
4046 { ac_try
='test -s conftest.$ac_objext'
4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; }; then
4054 echo "$as_me: failed program was:" >&5
4055 cat conftest.
$ac_ext >&5
4057 rm -f conftest.
$ac_objext
4059 rm -f conftest.
$ac_objext
4060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4061 (eval $ac_compile) 2>&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } &&
4065 { ac_try
='test -s conftest.$ac_objext'
4066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); }; }; then
4071 ac_cv_sys_largefile_CC
=' -n32'; break
4073 echo "$as_me: failed program was:" >&5
4074 cat conftest.
$ac_ext >&5
4076 rm -f conftest.
$ac_objext
4080 rm -f conftest.
$ac_ext
4083 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4084 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4085 if test "$ac_cv_sys_largefile_CC" != no
; then
4086 CC
=$CC$ac_cv_sys_largefile_CC
4089 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4090 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4091 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4095 ac_cv_sys_file_offset_bits
=no
4096 cat >conftest.
$ac_ext <<_ACEOF
4097 #line $LINENO "configure"
4098 #include "confdefs.h"
4099 #include <sys/types.h>
4100 /* Check that off_t can represent 2**63 - 1 correctly.
4101 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4102 since some C++ compilers masquerading as C compilers
4103 incorrectly reject 9223372036854775807. */
4104 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4105 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4106 && LARGE_OFF_T % 2147483647 == 1)
4116 rm -f conftest.
$ac_objext
4117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4118 (eval $ac_compile) 2>&5
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); } &&
4122 { ac_try
='test -s conftest.$ac_objext'
4123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; }; then
4130 echo "$as_me: failed program was:" >&5
4131 cat conftest.
$ac_ext >&5
4133 rm -f conftest.
$ac_objext conftest.
$ac_ext
4134 cat >conftest.
$ac_ext <<_ACEOF
4135 #line $LINENO "configure"
4136 #include "confdefs.h"
4137 #define _FILE_OFFSET_BITS 64
4138 #include <sys/types.h>
4139 /* Check that off_t can represent 2**63 - 1 correctly.
4140 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4141 since some C++ compilers masquerading as C compilers
4142 incorrectly reject 9223372036854775807. */
4143 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4144 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4145 && LARGE_OFF_T % 2147483647 == 1)
4155 rm -f conftest.
$ac_objext
4156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4157 (eval $ac_compile) 2>&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); } &&
4161 { ac_try
='test -s conftest.$ac_objext'
4162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; }; then
4167 ac_cv_sys_file_offset_bits
=64; break
4169 echo "$as_me: failed program was:" >&5
4170 cat conftest.
$ac_ext >&5
4172 rm -f conftest.
$ac_objext conftest.
$ac_ext
4176 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4177 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4178 if test "$ac_cv_sys_file_offset_bits" != no
; then
4180 cat >>confdefs.h
<<_ACEOF
4181 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4186 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4187 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4188 if test "${ac_cv_sys_large_files+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4192 ac_cv_sys_large_files
=no
4193 cat >conftest.
$ac_ext <<_ACEOF
4194 #line $LINENO "configure"
4195 #include "confdefs.h"
4196 #include <sys/types.h>
4197 /* Check that off_t can represent 2**63 - 1 correctly.
4198 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4199 since some C++ compilers masquerading as C compilers
4200 incorrectly reject 9223372036854775807. */
4201 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4202 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4203 && LARGE_OFF_T % 2147483647 == 1)
4213 rm -f conftest.
$ac_objext
4214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4215 (eval $ac_compile) 2>&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); } &&
4219 { ac_try
='test -s conftest.$ac_objext'
4220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); }; }; then
4227 echo "$as_me: failed program was:" >&5
4228 cat conftest.
$ac_ext >&5
4230 rm -f conftest.
$ac_objext conftest.
$ac_ext
4231 cat >conftest.
$ac_ext <<_ACEOF
4232 #line $LINENO "configure"
4233 #include "confdefs.h"
4234 #define _LARGE_FILES 1
4235 #include <sys/types.h>
4236 /* Check that off_t can represent 2**63 - 1 correctly.
4237 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4238 since some C++ compilers masquerading as C compilers
4239 incorrectly reject 9223372036854775807. */
4240 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4241 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4242 && LARGE_OFF_T % 2147483647 == 1)
4252 rm -f conftest.
$ac_objext
4253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4254 (eval $ac_compile) 2>&5
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); } &&
4258 { ac_try
='test -s conftest.$ac_objext'
4259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; }; then
4264 ac_cv_sys_large_files
=1; break
4266 echo "$as_me: failed program was:" >&5
4267 cat conftest.
$ac_ext >&5
4269 rm -f conftest.
$ac_objext conftest.
$ac_ext
4273 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4274 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4275 if test "$ac_cv_sys_large_files" != no
; then
4277 cat >>confdefs.h
<<_ACEOF
4278 #define _LARGE_FILES $ac_cv_sys_large_files
4286 if test "${with_sound}" != "no"; then
4287 # Sound support for GNU/Linux and the free BSDs.
4288 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4289 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4290 if test "${ac_cv_header_stdc+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4293 cat >conftest.
$ac_ext <<_ACEOF
4294 #line $LINENO "configure"
4295 #include "confdefs.h"
4302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4303 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4305 grep -v '^ *+' conftest.er1
>conftest.err
4307 cat conftest.err
>&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); } >/dev
/null
; then
4310 if test -s conftest.err
; then
4311 ac_cpp_err
=$ac_c_preproc_warn_flag
4318 if test -z "$ac_cpp_err"; then
4319 ac_cv_header_stdc
=yes
4321 echo "$as_me: failed program was:" >&5
4322 cat conftest.
$ac_ext >&5
4323 ac_cv_header_stdc
=no
4325 rm -f conftest.err conftest.
$ac_ext
4327 if test $ac_cv_header_stdc = yes; then
4328 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4329 cat >conftest.
$ac_ext <<_ACEOF
4330 #line $LINENO "configure"
4331 #include "confdefs.h"
4335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4336 $EGREP "memchr" >/dev
/null
2>&1; then
4339 ac_cv_header_stdc
=no
4345 if test $ac_cv_header_stdc = yes; then
4346 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4347 cat >conftest.
$ac_ext <<_ACEOF
4348 #line $LINENO "configure"
4349 #include "confdefs.h"
4353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4354 $EGREP "free" >/dev
/null
2>&1; then
4357 ac_cv_header_stdc
=no
4363 if test $ac_cv_header_stdc = yes; then
4364 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4365 if test "$cross_compiling" = yes; then
4368 cat >conftest.
$ac_ext <<_ACEOF
4369 #line $LINENO "configure"
4370 #include "confdefs.h"
4372 #if ((' ' & 0x0FF) == 0x020)
4373 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4374 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4376 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4377 || ('j' <= (c) && (c) <= 'r') \
4378 || ('s' <= (c) && (c) <= 'z'))
4379 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4382 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4387 for (i = 0; i < 256; i++)
4388 if (XOR (islower (i), ISLOWER (i))
4389 || toupper (i) != TOUPPER (i))
4394 rm -f conftest
$ac_exeext
4395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4396 (eval $ac_link) 2>&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); }; }; then
4407 echo "$as_me: program exited with status $ac_status" >&5
4408 echo "$as_me: failed program was:" >&5
4409 cat conftest.
$ac_ext >&5
4411 ac_cv_header_stdc
=no
4413 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4417 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4418 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4419 if test $ac_cv_header_stdc = yes; then
4421 cat >>confdefs.h
<<\_ACEOF
4422 #define STDC_HEADERS 1
4427 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4437 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4438 inttypes.h stdint.h unistd.h
4440 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4441 echo "$as_me:$LINENO: checking for $ac_header" >&5
4442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 cat >conftest.
$ac_ext <<_ACEOF
4447 #line $LINENO "configure"
4448 #include "confdefs.h"
4449 $ac_includes_default
4451 #include <$ac_header>
4453 rm -f conftest.
$ac_objext
4454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4455 (eval $ac_compile) 2>&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } &&
4459 { ac_try
='test -s conftest.$ac_objext'
4460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }; }; then
4465 eval "$as_ac_Header=yes"
4467 echo "$as_me: failed program was:" >&5
4468 cat conftest.
$ac_ext >&5
4469 eval "$as_ac_Header=no"
4471 rm -f conftest.
$ac_objext conftest.
$ac_ext
4473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4476 cat >>confdefs.h
<<_ACEOF
4477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4488 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
4490 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4492 echo "$as_me:$LINENO: checking for $ac_header" >&5
4493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4495 echo $ECHO_N "(cached) $ECHO_C" >&6
4497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4500 # Is the header compilable?
4501 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4503 cat >conftest.
$ac_ext <<_ACEOF
4504 #line $LINENO "configure"
4505 #include "confdefs.h"
4506 $ac_includes_default
4507 #include <$ac_header>
4509 rm -f conftest.
$ac_objext
4510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4511 (eval $ac_compile) 2>&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); } &&
4515 { ac_try
='test -s conftest.$ac_objext'
4516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }; }; then
4521 ac_header_compiler
=yes
4523 echo "$as_me: failed program was:" >&5
4524 cat conftest.
$ac_ext >&5
4525 ac_header_compiler
=no
4527 rm -f conftest.
$ac_objext conftest.
$ac_ext
4528 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4529 echo "${ECHO_T}$ac_header_compiler" >&6
4531 # Is the header present?
4532 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4533 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4534 cat >conftest.
$ac_ext <<_ACEOF
4535 #line $LINENO "configure"
4536 #include "confdefs.h"
4537 #include <$ac_header>
4539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4540 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4542 grep -v '^ *+' conftest.er1
>conftest.err
4544 cat conftest.err
>&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } >/dev
/null
; then
4547 if test -s conftest.err
; then
4548 ac_cpp_err
=$ac_c_preproc_warn_flag
4555 if test -z "$ac_cpp_err"; then
4556 ac_header_preproc
=yes
4558 echo "$as_me: failed program was:" >&5
4559 cat conftest.
$ac_ext >&5
4560 ac_header_preproc
=no
4562 rm -f conftest.err conftest.
$ac_ext
4563 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4564 echo "${ECHO_T}$ac_header_preproc" >&6
4566 # So? What about this header?
4567 case $ac_header_compiler:$ac_header_preproc in
4569 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4574 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4575 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4576 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4577 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4581 echo "$as_me:$LINENO: checking for $ac_header" >&5
4582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4584 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 eval "$as_ac_Header=$ac_header_preproc"
4588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4593 cat >>confdefs.h
<<_ACEOF
4594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4601 # Emulation library used on NetBSD.
4602 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4603 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4604 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4607 ac_check_lib_save_LIBS
=$LIBS
4608 LIBS
="-lossaudio $LIBS"
4609 cat >conftest.
$ac_ext <<_ACEOF
4610 #line $LINENO "configure"
4611 #include "confdefs.h"
4613 /* Override any gcc2 internal prototype to avoid an error. */
4617 /* We use char because int might match the return type of a gcc2
4618 builtin and then its argument prototype would still apply. */
4628 rm -f conftest.
$ac_objext conftest
$ac_exeext
4629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4630 (eval $ac_link) 2>&5
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); } &&
4634 { ac_try
='test -s conftest$ac_exeext'
4635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); }; }; then
4640 ac_cv_lib_ossaudio__oss_ioctl
=yes
4642 echo "$as_me: failed program was:" >&5
4643 cat conftest.
$ac_ext >&5
4644 ac_cv_lib_ossaudio__oss_ioctl
=no
4646 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4647 LIBS
=$ac_check_lib_save_LIBS
4649 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4650 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4651 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4682 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
4683 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
4684 termcap.h stdio_ext.h fcntl.h term.h
strings.h coff.h pty.h sys
/mman.h \
4685 sys
/param.h sys
/vlimit.h sys
/resource.h
4687 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4689 echo "$as_me:$LINENO: checking for $ac_header" >&5
4690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4697 # Is the header compilable?
4698 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4699 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4700 cat >conftest.
$ac_ext <<_ACEOF
4701 #line $LINENO "configure"
4702 #include "confdefs.h"
4703 $ac_includes_default
4704 #include <$ac_header>
4706 rm -f conftest.
$ac_objext
4707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4708 (eval $ac_compile) 2>&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); } &&
4712 { ac_try
='test -s conftest.$ac_objext'
4713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); }; }; then
4718 ac_header_compiler
=yes
4720 echo "$as_me: failed program was:" >&5
4721 cat conftest.
$ac_ext >&5
4722 ac_header_compiler
=no
4724 rm -f conftest.
$ac_objext conftest.
$ac_ext
4725 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4726 echo "${ECHO_T}$ac_header_compiler" >&6
4728 # Is the header present?
4729 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4730 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4731 cat >conftest.
$ac_ext <<_ACEOF
4732 #line $LINENO "configure"
4733 #include "confdefs.h"
4734 #include <$ac_header>
4736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4737 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4739 grep -v '^ *+' conftest.er1
>conftest.err
4741 cat conftest.err
>&5
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); } >/dev
/null
; then
4744 if test -s conftest.err
; then
4745 ac_cpp_err
=$ac_c_preproc_warn_flag
4752 if test -z "$ac_cpp_err"; then
4753 ac_header_preproc
=yes
4755 echo "$as_me: failed program was:" >&5
4756 cat conftest.
$ac_ext >&5
4757 ac_header_preproc
=no
4759 rm -f conftest.err conftest.
$ac_ext
4760 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4761 echo "${ECHO_T}$ac_header_preproc" >&6
4763 # So? What about this header?
4764 case $ac_header_compiler:$ac_header_preproc in
4766 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4767 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4774 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4778 echo "$as_me:$LINENO: checking for $ac_header" >&5
4779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
4783 eval "$as_ac_Header=$ac_header_preproc"
4785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4790 cat >>confdefs.h
<<_ACEOF
4791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4799 for ac_header
in term.h
4801 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4802 echo "$as_me:$LINENO: checking for $ac_header" >&5
4803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
4807 cat >conftest.
$ac_ext <<_ACEOF
4808 #line $LINENO "configure"
4809 #include "confdefs.h"
4810 #include <$ac_header>
4812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4813 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4815 grep -v '^ *+' conftest.er1
>conftest.err
4817 cat conftest.err
>&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); } >/dev
/null
; then
4820 if test -s conftest.err
; then
4821 ac_cpp_err
=$ac_c_preproc_warn_flag
4828 if test -z "$ac_cpp_err"; then
4829 eval "$as_ac_Header=yes"
4831 echo "$as_me: failed program was:" >&5
4832 cat conftest.
$ac_ext >&5
4833 eval "$as_ac_Header=no"
4835 rm -f conftest.err conftest.
$ac_ext
4837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4840 cat >>confdefs.h
<<_ACEOF
4841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4848 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4849 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4850 if test "${ac_cv_header_stdc+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4853 cat >conftest.
$ac_ext <<_ACEOF
4854 #line $LINENO "configure"
4855 #include "confdefs.h"
4862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4863 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4865 grep -v '^ *+' conftest.er1
>conftest.err
4867 cat conftest.err
>&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } >/dev
/null
; then
4870 if test -s conftest.err
; then
4871 ac_cpp_err
=$ac_c_preproc_warn_flag
4878 if test -z "$ac_cpp_err"; then
4879 ac_cv_header_stdc
=yes
4881 echo "$as_me: failed program was:" >&5
4882 cat conftest.
$ac_ext >&5
4883 ac_cv_header_stdc
=no
4885 rm -f conftest.err conftest.
$ac_ext
4887 if test $ac_cv_header_stdc = yes; then
4888 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4889 cat >conftest.
$ac_ext <<_ACEOF
4890 #line $LINENO "configure"
4891 #include "confdefs.h"
4895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4896 $EGREP "memchr" >/dev
/null
2>&1; then
4899 ac_cv_header_stdc
=no
4905 if test $ac_cv_header_stdc = yes; then
4906 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4907 cat >conftest.
$ac_ext <<_ACEOF
4908 #line $LINENO "configure"
4909 #include "confdefs.h"
4913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4914 $EGREP "free" >/dev
/null
2>&1; then
4917 ac_cv_header_stdc
=no
4923 if test $ac_cv_header_stdc = yes; then
4924 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4925 if test "$cross_compiling" = yes; then
4928 cat >conftest.
$ac_ext <<_ACEOF
4929 #line $LINENO "configure"
4930 #include "confdefs.h"
4932 #if ((' ' & 0x0FF) == 0x020)
4933 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4934 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4936 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4937 || ('j' <= (c) && (c) <= 'r') \
4938 || ('s' <= (c) && (c) <= 'z'))
4939 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4942 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4947 for (i = 0; i < 256; i++)
4948 if (XOR (islower (i), ISLOWER (i))
4949 || toupper (i) != TOUPPER (i))
4954 rm -f conftest
$ac_exeext
4955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4956 (eval $ac_link) 2>&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; }; then
4967 echo "$as_me: program exited with status $ac_status" >&5
4968 echo "$as_me: failed program was:" >&5
4969 cat conftest.
$ac_ext >&5
4971 ac_cv_header_stdc
=no
4973 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4977 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4978 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4979 if test $ac_cv_header_stdc = yes; then
4981 cat >>confdefs.h
<<\_ACEOF
4982 #define STDC_HEADERS 1
4987 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4988 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4989 if test "${ac_cv_header_time+set}" = set; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
4992 cat >conftest.
$ac_ext <<_ACEOF
4993 #line $LINENO "configure"
4994 #include "confdefs.h"
4995 #include <sys/types.h>
4996 #include <sys/time.h>
5002 if ((struct tm *) 0)
5008 rm -f conftest.
$ac_objext
5009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5010 (eval $ac_compile) 2>&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); } &&
5014 { ac_try
='test -s conftest.$ac_objext'
5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; }; then
5020 ac_cv_header_time
=yes
5022 echo "$as_me: failed program was:" >&5
5023 cat conftest.
$ac_ext >&5
5024 ac_cv_header_time
=no
5026 rm -f conftest.
$ac_objext conftest.
$ac_ext
5028 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5029 echo "${ECHO_T}$ac_cv_header_time" >&6
5030 if test $ac_cv_header_time = yes; then
5032 cat >>confdefs.h
<<\_ACEOF
5033 #define TIME_WITH_SYS_TIME 1
5038 echo "$as_me:$LINENO: checking for sys_siglist declaration in signal.h or unistd.h" >&5
5039 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
5040 if test "${ac_cv_decl_sys_siglist+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5043 cat >conftest.
$ac_ext <<_ACEOF
5044 #line $LINENO "configure"
5045 #include "confdefs.h"
5046 #include <sys/types.h>
5048 /* NetBSD declares sys_siglist in unistd.h. */
5050 # include <unistd.h>
5056 char *msg = *(sys_siglist + 1);
5061 rm -f conftest.
$ac_objext
5062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5063 (eval $ac_compile) 2>&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); } &&
5067 { ac_try
='test -s conftest.$ac_objext'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; }; then
5073 ac_cv_decl_sys_siglist
=yes
5075 echo "$as_me: failed program was:" >&5
5076 cat conftest.
$ac_ext >&5
5077 ac_cv_decl_sys_siglist
=no
5079 rm -f conftest.
$ac_objext conftest.
$ac_ext
5081 echo "$as_me:$LINENO: result: $ac_cv_decl_sys_siglist" >&5
5082 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
5083 if test $ac_cv_decl_sys_siglist = yes; then
5085 cat >>confdefs.h
<<\_ACEOF
5086 #define SYS_SIGLIST_DECLARED 1
5091 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5092 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5093 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
5096 cat >conftest.
$ac_ext <<_ACEOF
5097 #line $LINENO "configure"
5098 #include "confdefs.h"
5099 #include <sys/types.h>
5100 #include <sys/wait.h>
5102 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5105 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5113 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5118 rm -f conftest.
$ac_objext
5119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5120 (eval $ac_compile) 2>&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); } &&
5124 { ac_try
='test -s conftest.$ac_objext'
5125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }; }; then
5130 ac_cv_header_sys_wait_h
=yes
5132 echo "$as_me: failed program was:" >&5
5133 cat conftest.
$ac_ext >&5
5134 ac_cv_header_sys_wait_h
=no
5136 rm -f conftest.
$ac_objext conftest.
$ac_ext
5138 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5139 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5140 if test $ac_cv_header_sys_wait_h = yes; then
5142 cat >>confdefs.h
<<\_ACEOF
5143 #define HAVE_SYS_WAIT_H 1
5149 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5150 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5151 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5152 echo $ECHO_N "(cached) $ECHO_C" >&6
5154 cat >conftest.
$ac_ext <<_ACEOF
5155 #line $LINENO "configure"
5156 #include "confdefs.h"
5157 #ifdef TIME_WITH_SYS_TIME
5158 #include <sys/time.h>
5161 #ifdef HAVE_SYS_TIME_H
5162 #include <sys/time.h>
5173 static struct utimbuf x; x.actime = x.modtime;
5178 rm -f conftest.
$ac_objext
5179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5180 (eval $ac_compile) 2>&5
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); } &&
5184 { ac_try
='test -s conftest.$ac_objext'
5185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }; }; then
5190 emacs_cv_struct_utimbuf
=yes
5192 echo "$as_me: failed program was:" >&5
5193 cat conftest.
$ac_ext >&5
5194 emacs_cv_struct_utimbuf
=no
5196 rm -f conftest.
$ac_objext conftest.
$ac_ext
5198 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5199 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5200 if test $emacs_cv_struct_utimbuf = yes; then
5202 cat >>confdefs.h
<<\_ACEOF
5203 #define HAVE_STRUCT_UTIMBUF 1
5208 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5209 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5210 if test "${ac_cv_type_signal+set}" = set; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5213 cat >conftest.
$ac_ext <<_ACEOF
5214 #line $LINENO "configure"
5215 #include "confdefs.h"
5216 #include <sys/types.h>
5222 extern "C" void (*signal (int, void (*)(int)))(int);
5224 void (*signal ()) ();
5235 rm -f conftest.
$ac_objext
5236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5237 (eval $ac_compile) 2>&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } &&
5241 { ac_try
='test -s conftest.$ac_objext'
5242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); }; }; then
5247 ac_cv_type_signal
=void
5249 echo "$as_me: failed program was:" >&5
5250 cat conftest.
$ac_ext >&5
5251 ac_cv_type_signal
=int
5253 rm -f conftest.
$ac_objext conftest.
$ac_ext
5255 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5256 echo "${ECHO_T}$ac_cv_type_signal" >&6
5258 cat >>confdefs.h
<<_ACEOF
5259 #define RETSIGTYPE $ac_cv_type_signal
5264 echo "$as_me:$LINENO: checking for speed_t" >&5
5265 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5266 if test "${emacs_cv_speed_t+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5269 cat >conftest.
$ac_ext <<_ACEOF
5270 #line $LINENO "configure"
5271 #include "confdefs.h"
5272 #include <termios.h>
5281 rm -f conftest.
$ac_objext
5282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5283 (eval $ac_compile) 2>&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); } &&
5287 { ac_try
='test -s conftest.$ac_objext'
5288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }; }; then
5293 emacs_cv_speed_t
=yes
5295 echo "$as_me: failed program was:" >&5
5296 cat conftest.
$ac_ext >&5
5299 rm -f conftest.
$ac_objext conftest.
$ac_ext
5301 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5302 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5303 if test $emacs_cv_speed_t = yes; then
5305 cat >>confdefs.h
<<\_ACEOF
5306 #define HAVE_SPEED_T 1
5311 echo "$as_me:$LINENO: checking for struct timeval" >&5
5312 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5313 if test "${emacs_cv_struct_timeval+set}" = set; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 cat >conftest.
$ac_ext <<_ACEOF
5317 #line $LINENO "configure"
5318 #include "confdefs.h"
5319 #ifdef TIME_WITH_SYS_TIME
5320 #include <sys/time.h>
5323 #ifdef HAVE_SYS_TIME_H
5324 #include <sys/time.h>
5332 static struct timeval x; x.tv_sec = x.tv_usec;
5337 rm -f conftest.
$ac_objext
5338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5339 (eval $ac_compile) 2>&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); } &&
5343 { ac_try
='test -s conftest.$ac_objext'
5344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); }; }; then
5349 emacs_cv_struct_timeval
=yes
5351 echo "$as_me: failed program was:" >&5
5352 cat conftest.
$ac_ext >&5
5353 emacs_cv_struct_timeval
=no
5355 rm -f conftest.
$ac_objext conftest.
$ac_ext
5357 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5358 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5359 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
5360 if test $emacs_cv_struct_timeval = yes; then
5362 cat >>confdefs.h
<<\_ACEOF
5363 #define HAVE_TIMEVAL 1
5368 echo "$as_me:$LINENO: checking for struct exception" >&5
5369 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5370 if test "${emacs_cv_struct_exception+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5373 cat >conftest.
$ac_ext <<_ACEOF
5374 #line $LINENO "configure"
5375 #include "confdefs.h"
5380 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5385 rm -f conftest.
$ac_objext
5386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5387 (eval $ac_compile) 2>&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); } &&
5391 { ac_try
='test -s conftest.$ac_objext'
5392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); }; }; then
5397 emacs_cv_struct_exception
=yes
5399 echo "$as_me: failed program was:" >&5
5400 cat conftest.
$ac_ext >&5
5401 emacs_cv_struct_exception
=no
5403 rm -f conftest.
$ac_objext conftest.
$ac_ext
5405 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5406 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5407 HAVE_EXCEPTION
=$emacs_cv_struct_exception
5408 if test $emacs_cv_struct_exception != yes; then
5410 cat >>confdefs.h
<<\_ACEOF
5411 #define NO_MATHERR 1
5416 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5417 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5418 if test "${ac_cv_struct_tm+set}" = set; then
5419 echo $ECHO_N "(cached) $ECHO_C" >&6
5421 cat >conftest.
$ac_ext <<_ACEOF
5422 #line $LINENO "configure"
5423 #include "confdefs.h"
5424 #include <sys/types.h>
5430 struct tm *tp; tp->tm_sec;
5435 rm -f conftest.
$ac_objext
5436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5437 (eval $ac_compile) 2>&5
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); } &&
5441 { ac_try
='test -s conftest.$ac_objext'
5442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }; }; then
5447 ac_cv_struct_tm
=time.h
5449 echo "$as_me: failed program was:" >&5
5450 cat conftest.
$ac_ext >&5
5451 ac_cv_struct_tm
=sys
/time.h
5453 rm -f conftest.
$ac_objext conftest.
$ac_ext
5455 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5456 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5457 if test $ac_cv_struct_tm = sys
/time.h
; then
5459 cat >>confdefs.h
<<\_ACEOF
5460 #define TM_IN_SYS_TIME 1
5465 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5466 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5467 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5468 echo $ECHO_N "(cached) $ECHO_C" >&6
5470 cat >conftest.
$ac_ext <<_ACEOF
5471 #line $LINENO "configure"
5472 #include "confdefs.h"
5473 #include <sys/types.h>
5474 #include <$ac_cv_struct_tm>
5480 static struct tm ac_aggr;
5481 if (ac_aggr.tm_zone)
5487 rm -f conftest.
$ac_objext
5488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5489 (eval $ac_compile) 2>&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); } &&
5493 { ac_try
='test -s conftest.$ac_objext'
5494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); }; }; then
5499 ac_cv_member_struct_tm_tm_zone
=yes
5501 echo "$as_me: failed program was:" >&5
5502 cat conftest.
$ac_ext >&5
5503 cat >conftest.
$ac_ext <<_ACEOF
5504 #line $LINENO "configure"
5505 #include "confdefs.h"
5506 #include <sys/types.h>
5507 #include <$ac_cv_struct_tm>
5513 static struct tm ac_aggr;
5514 if (sizeof ac_aggr.tm_zone)
5520 rm -f conftest.
$ac_objext
5521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5522 (eval $ac_compile) 2>&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); } &&
5526 { ac_try
='test -s conftest.$ac_objext'
5527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); }; }; then
5532 ac_cv_member_struct_tm_tm_zone
=yes
5534 echo "$as_me: failed program was:" >&5
5535 cat conftest.
$ac_ext >&5
5536 ac_cv_member_struct_tm_tm_zone
=no
5538 rm -f conftest.
$ac_objext conftest.
$ac_ext
5540 rm -f conftest.
$ac_objext conftest.
$ac_ext
5542 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5543 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5544 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5546 cat >>confdefs.h
<<_ACEOF
5547 #define HAVE_STRUCT_TM_TM_ZONE 1
5553 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5555 cat >>confdefs.h
<<\_ACEOF
5556 #define HAVE_TM_ZONE 1
5560 echo "$as_me:$LINENO: checking for tzname" >&5
5561 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5562 if test "${ac_cv_var_tzname+set}" = set; then
5563 echo $ECHO_N "(cached) $ECHO_C" >&6
5565 cat >conftest.
$ac_ext <<_ACEOF
5566 #line $LINENO "configure"
5567 #include "confdefs.h"
5569 #ifndef tzname /* For SGI. */
5570 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5581 rm -f conftest.
$ac_objext conftest
$ac_exeext
5582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5583 (eval $ac_link) 2>&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } &&
5587 { ac_try
='test -s conftest$ac_exeext'
5588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); }; }; then
5593 ac_cv_var_tzname
=yes
5595 echo "$as_me: failed program was:" >&5
5596 cat conftest.
$ac_ext >&5
5599 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5601 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5602 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5603 if test $ac_cv_var_tzname = yes; then
5605 cat >>confdefs.h
<<\_ACEOF
5606 #define HAVE_TZNAME 1
5612 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
5613 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
5614 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
5615 echo $ECHO_N "(cached) $ECHO_C" >&6
5617 cat >conftest.
$ac_ext <<_ACEOF
5618 #line $LINENO "configure"
5619 #include "confdefs.h"
5625 static struct tm ac_aggr;
5626 if (ac_aggr.tm_gmtoff)
5632 rm -f conftest.
$ac_objext
5633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5634 (eval $ac_compile) 2>&5
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); } &&
5638 { ac_try
='test -s conftest.$ac_objext'
5639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); }; }; then
5644 ac_cv_member_struct_tm_tm_gmtoff
=yes
5646 echo "$as_me: failed program was:" >&5
5647 cat conftest.
$ac_ext >&5
5648 cat >conftest.
$ac_ext <<_ACEOF
5649 #line $LINENO "configure"
5650 #include "confdefs.h"
5656 static struct tm ac_aggr;
5657 if (sizeof ac_aggr.tm_gmtoff)
5663 rm -f conftest.
$ac_objext
5664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5665 (eval $ac_compile) 2>&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } &&
5669 { ac_try
='test -s conftest.$ac_objext'
5670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; }; then
5675 ac_cv_member_struct_tm_tm_gmtoff
=yes
5677 echo "$as_me: failed program was:" >&5
5678 cat conftest.
$ac_ext >&5
5679 ac_cv_member_struct_tm_tm_gmtoff
=no
5681 rm -f conftest.
$ac_objext conftest.
$ac_ext
5683 rm -f conftest.
$ac_objext conftest.
$ac_ext
5685 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
5686 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
5687 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
5689 cat >>confdefs.h
<<\_ACEOF
5690 #define HAVE_TM_GMTOFF 1
5697 echo "$as_me:$LINENO: checking for function prototypes" >&5
5698 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5699 if test "$ac_cv_prog_cc_stdc" != no
; then
5700 echo "$as_me:$LINENO: result: yes" >&5
5701 echo "${ECHO_T}yes" >&6
5703 cat >>confdefs.h
<<\_ACEOF
5704 #define PROTOTYPES 1
5708 cat >>confdefs.h
<<\_ACEOF
5709 #define __PROTOTYPES 1
5713 echo "$as_me:$LINENO: result: no" >&5
5714 echo "${ECHO_T}no" >&6
5717 echo "$as_me:$LINENO: checking for working volatile" >&5
5718 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
5719 if test "${ac_cv_c_volatile+set}" = set; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
5722 cat >conftest.
$ac_ext <<_ACEOF
5723 #line $LINENO "configure"
5724 #include "confdefs.h"
5736 rm -f conftest.
$ac_objext
5737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5738 (eval $ac_compile) 2>&5
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); } &&
5742 { ac_try
='test -s conftest.$ac_objext'
5743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; }; then
5748 ac_cv_c_volatile
=yes
5750 echo "$as_me: failed program was:" >&5
5751 cat conftest.
$ac_ext >&5
5754 rm -f conftest.
$ac_objext conftest.
$ac_ext
5756 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
5757 echo "${ECHO_T}$ac_cv_c_volatile" >&6
5758 if test $ac_cv_c_volatile = no
; then
5760 cat >>confdefs.h
<<\_ACEOF
5766 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5767 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5768 if test "${ac_cv_c_const+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5771 cat >conftest.
$ac_ext <<_ACEOF
5772 #line $LINENO "configure"
5773 #include "confdefs.h"
5778 /* FIXME: Include the comments suggested by Paul. */
5780 /* Ultrix mips cc rejects this. */
5781 typedef int charset[2];
5783 /* SunOS 4.1.1 cc rejects this. */
5784 char const *const *ccp;
5786 /* NEC SVR4.0.2 mips cc rejects this. */
5787 struct point {int x, y;};
5788 static struct point const zero = {0,0};
5789 /* AIX XL C 1.02.0.0 rejects this.
5790 It does not let you subtract one const X* pointer from another in
5791 an arm of an if-expression whose if-part is not a constant
5793 const char *g = "string";
5794 ccp = &g + (g ? g-g : 0);
5795 /* HPUX 7.0 cc rejects these. */
5798 ccp = (char const *const *) p;
5799 { /* SCO 3.2v4 cc rejects this. */
5801 char const *s = 0 ? (char *) 0 : (char const *) 0;
5805 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5807 const int *foo = &x[0];
5810 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5811 typedef const int *iptr;
5815 { /* AIX XL C 1.02.0.0 rejects this saying
5816 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5817 struct s { int j; const int *ap[3]; };
5818 struct s *b; b->j = 5;
5820 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5829 rm -f conftest.
$ac_objext
5830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5831 (eval $ac_compile) 2>&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } &&
5835 { ac_try
='test -s conftest.$ac_objext'
5836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; }; then
5843 echo "$as_me: failed program was:" >&5
5844 cat conftest.
$ac_ext >&5
5847 rm -f conftest.
$ac_objext conftest.
$ac_ext
5849 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5850 echo "${ECHO_T}$ac_cv_c_const" >&6
5851 if test $ac_cv_c_const = no
; then
5853 cat >>confdefs.h
<<\_ACEOF
5859 echo "$as_me:$LINENO: checking for void * support" >&5
5860 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
5861 if test "${emacs_cv_void_star+set}" = set; then
5862 echo $ECHO_N "(cached) $ECHO_C" >&6
5864 cat >conftest.
$ac_ext <<_ACEOF
5865 #line $LINENO "configure"
5866 #include "confdefs.h"
5876 rm -f conftest.
$ac_objext
5877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5878 (eval $ac_compile) 2>&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } &&
5882 { ac_try
='test -s conftest.$ac_objext'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; }; then
5888 emacs_cv_void_star
=yes
5890 echo "$as_me: failed program was:" >&5
5891 cat conftest.
$ac_ext >&5
5892 emacs_cv_void_star
=no
5894 rm -f conftest.
$ac_objext conftest.
$ac_ext
5896 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
5897 echo "${ECHO_T}$emacs_cv_void_star" >&6
5898 if test $emacs_cv_void_star = yes; then
5899 cat >>confdefs.h
<<\_ACEOF
5900 #define POINTER_TYPE void
5904 cat >>confdefs.h
<<\_ACEOF
5905 #define POINTER_TYPE char
5911 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
5912 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5913 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
5914 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5917 cat >conftest.
make <<\_ACEOF
5919 @
echo 'ac_maketemp="${MAKE}"'
5921 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5922 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5923 if test -n "$ac_maketemp"; then
5924 eval ac_cv_prog_make_
${ac_make}_set
=yes
5926 eval ac_cv_prog_make_
${ac_make}_set
=no
5930 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5931 echo "$as_me:$LINENO: result: yes" >&5
5932 echo "${ECHO_T}yes" >&6
5935 echo "$as_me:$LINENO: result: no" >&5
5936 echo "${ECHO_T}no" >&6
5937 SET_MAKE
="MAKE=${MAKE-make}"
5941 echo "$as_me:$LINENO: checking for long file names" >&5
5942 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
5943 if test "${ac_cv_sys_long_file_names+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5946 ac_cv_sys_long_file_names
=yes
5947 # Test for long file names in all the places we know might matter:
5948 # . the current directory, where building will happen
5949 # $prefix/lib where we will be installing things
5950 # $exec_prefix/lib likewise
5951 # eval it to expand exec_prefix.
5952 # $TMPDIR if set, where it might want to write temporary files
5953 # if $TMPDIR is not set:
5954 # /tmp where it might want to write temporary files
5957 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
5960 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
5962 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
5963 test -d $ac_dir ||
continue
5964 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
5965 ac_xdir
=$ac_dir/cf$$
5966 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
5967 ac_tf1
=$ac_xdir/conftest9012345
5968 ac_tf2
=$ac_xdir/conftest9012346
5969 (echo 1 >$ac_tf1) 2>/dev
/null
5970 (echo 2 >$ac_tf2) 2>/dev
/null
5971 ac_val
=`cat $ac_tf1 2>/dev/null`
5972 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
5973 ac_cv_sys_long_file_names
=no
5974 rm -rf $ac_xdir 2>/dev
/null
5977 rm -rf $ac_xdir 2>/dev
/null
5980 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
5981 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
5982 if test $ac_cv_sys_long_file_names = yes; then
5984 cat >>confdefs.h
<<\_ACEOF
5985 #define HAVE_LONG_FILE_NAMES 1
5991 #### Choose a window system.
5993 echo "$as_me:$LINENO: checking for X" >&5
5994 echo $ECHO_N "checking for X... $ECHO_C" >&6
5997 # Check whether --with-x or --without-x was given.
5998 if test "${with_x+set}" = set; then
6002 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6003 if test "x$with_x" = xno
; then
6004 # The user explicitly disabled X.
6007 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
6008 # Both variables are already set.
6011 if test "${ac_cv_have_x+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6014 # One or both of the vars are not set, and there is no cached value.
6015 ac_x_includes
=no ac_x_libraries
=no
6017 if mkdir conftest.dir
; then
6019 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6020 cat >Imakefile
<<'_ACEOF'
6022 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6024 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6025 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6026 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6027 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6028 for ac_extension
in a so sl
; do
6029 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
6030 test -f $ac_im_libdir/libX11.
$ac_extension; then
6031 ac_im_usrlibdir
=$ac_im_libdir; break
6034 # Screen out bogus values from the imake configuration. They are
6035 # bogus both because they are the default anyway, and because
6036 # using them would break gcc on systems where it needs fixed includes.
6037 case $ac_im_incroot in
6039 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6041 case $ac_im_usrlibdir in
6043 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6050 # Standard set of common directories for X headers.
6051 # Check X11 before X11Rn because it is often a symlink to the current release.
6063 /usr/local/X11/include
6064 /usr/local/X11R6/include
6065 /usr/local/X11R5/include
6066 /usr/local/X11R4/include
6068 /usr/local/include/X11
6069 /usr/local/include/X11R6
6070 /usr/local/include/X11R5
6071 /usr/local/include/X11R4
6075 /usr/XFree86/include/X11
6079 /usr/unsupported/include
6081 /usr/local/x11r5/include
6082 /usr/lpp/Xamples/include
6084 /usr/openwin/include
6085 /usr/openwin/share/include'
6087 if test "$ac_x_includes" = no
; then
6088 # Guess where to find include files, by looking for Intrinsic.h.
6089 # First, try using that file with no special directory specified.
6090 cat >conftest.
$ac_ext <<_ACEOF
6091 #line $LINENO "configure"
6092 #include "confdefs.h"
6093 #include <X11/Intrinsic.h>
6095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6096 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6098 grep -v '^ *+' conftest.er1
>conftest.err
6100 cat conftest.err
>&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); } >/dev
/null
; then
6103 if test -s conftest.err
; then
6104 ac_cpp_err
=$ac_c_preproc_warn_flag
6111 if test -z "$ac_cpp_err"; then
6112 # We can compile using X headers with no special include directory.
6115 echo "$as_me: failed program was:" >&5
6116 cat conftest.
$ac_ext >&5
6117 for ac_dir
in $ac_x_header_dirs; do
6118 if test -r "$ac_dir/X11/Intrinsic.h"; then
6119 ac_x_includes
=$ac_dir
6124 rm -f conftest.err conftest.
$ac_ext
6125 fi # $ac_x_includes = no
6127 if test "$ac_x_libraries" = no
; then
6128 # Check for the libraries.
6129 # See if we find them without any special options.
6130 # Don't add to $LIBS permanently.
6133 cat >conftest.
$ac_ext <<_ACEOF
6134 #line $LINENO "configure"
6135 #include "confdefs.h"
6136 #include <X11/Intrinsic.h>
6145 rm -f conftest.
$ac_objext conftest
$ac_exeext
6146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6147 (eval $ac_link) 2>&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } &&
6151 { ac_try
='test -s conftest$ac_exeext'
6152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); }; }; then
6158 # We can link X programs with no special library path.
6161 echo "$as_me: failed program was:" >&5
6162 cat conftest.
$ac_ext >&5
6164 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6166 # Don't even attempt the hair of trying to link an X program!
6167 for ac_extension
in a so sl
; do
6168 if test -r $ac_dir/libXt.
$ac_extension; then
6169 ac_x_libraries
=$ac_dir
6175 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6176 fi # $ac_x_libraries = no
6178 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
6179 # Didn't find X anywhere. Cache the known absence of X.
6180 ac_cv_have_x
="have_x=no"
6182 # Record where we found X for the cache.
6183 ac_cv_have_x
="have_x=yes \
6184 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6189 eval "$ac_cv_have_x"
6192 if test "$have_x" != yes; then
6193 echo "$as_me:$LINENO: result: $have_x" >&5
6194 echo "${ECHO_T}$have_x" >&6
6197 # If each of the values was on the command line, it overrides each guess.
6198 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6199 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6200 # Update the cache value to reflect the command line values.
6201 ac_cv_have_x
="have_x=yes \
6202 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6203 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6204 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6207 if test "$no_x" = yes; then
6213 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
6214 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6215 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6216 x_default_search_path
=""
6217 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6219 ${x_library}/X11/%L/%T/%N%C%S:\
6220 ${x_library}/X11/%l/%T/%N%C%S:\
6221 ${x_library}/X11/%T/%N%C%S:\
6222 ${x_library}/X11/%L/%T/%N%S:\
6223 ${x_library}/X11/%l/%T/%N%S:\
6224 ${x_library}/X11/%T/%N%S"
6225 if test x
"${x_default_search_path}" = x
; then
6226 x_default_search_path
=${x_search_path}
6228 x_default_search_path
="${x_search_path}:${x_default_search_path}"
6232 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
6233 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6236 if test x
"${x_includes}" = x
; then
6237 bitmapdir
=/usr
/include
/X11
/bitmaps
6239 # accumulate include directories that have X11 bitmap subdirectories
6241 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6242 if test -d "${bmd}/X11/bitmaps"; then
6243 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
6245 if test -d "${bmd}/bitmaps"; then
6246 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
6249 if test ${bmd_acc} != "dummyval"; then
6250 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6254 case "${window_system}" in
6258 case "${with_x_toolkit}" in
6259 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
6260 motif
) USE_X_TOOLKIT
=MOTIF
;;
6261 no
) USE_X_TOOLKIT
=none
;;
6262 * ) USE_X_TOOLKIT
=maybe
;;
6272 ### If we're using X11, we should use the X menu package.
6275 yes ) HAVE_MENUS
=yes ;;
6278 if test "${opsys}" = "hpux9"; then
6279 case "${x_libraries}" in
6281 opsysfile
="s/hpux9-x11r4.h"
6286 if test "${opsys}" = "hpux9shr"; then
6287 case "${x_libraries}" in
6289 opsysfile
="s/hpux9shxr4.h"
6294 ### Compute the unexec source name from the object name.
6295 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
6297 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6298 # Assume not, until told otherwise.
6301 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6302 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6303 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6306 cat >conftest.
$ac_ext <<_ACEOF
6307 #line $LINENO "configure"
6308 #include "confdefs.h"
6309 /* System header to define __stub macros and hopefully few prototypes,
6310 which can conflict with char malloc_get_state (); below. */
6312 /* Override any gcc2 internal prototype to avoid an error. */
6316 /* We use char because int might match the return type of a gcc2
6317 builtin and then its argument prototype would still apply. */
6318 char malloc_get_state ();
6324 /* The GNU C library defines this for functions which it implements
6325 to always fail with ENOSYS. Some functions are actually named
6326 something starting with __ and the normal name is an alias. */
6327 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6330 f = malloc_get_state;
6337 rm -f conftest.
$ac_objext conftest
$ac_exeext
6338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6339 (eval $ac_link) 2>&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); } &&
6343 { ac_try
='test -s conftest$ac_exeext'
6344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }; }; then
6349 ac_cv_func_malloc_get_state
=yes
6351 echo "$as_me: failed program was:" >&5
6352 cat conftest.
$ac_ext >&5
6353 ac_cv_func_malloc_get_state
=no
6355 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6357 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6358 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6359 if test $ac_cv_func_malloc_get_state = yes; then
6365 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6366 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6367 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6370 cat >conftest.
$ac_ext <<_ACEOF
6371 #line $LINENO "configure"
6372 #include "confdefs.h"
6373 /* System header to define __stub macros and hopefully few prototypes,
6374 which can conflict with char malloc_set_state (); below. */
6376 /* Override any gcc2 internal prototype to avoid an error. */
6380 /* We use char because int might match the return type of a gcc2
6381 builtin and then its argument prototype would still apply. */
6382 char malloc_set_state ();
6388 /* The GNU C library defines this for functions which it implements
6389 to always fail with ENOSYS. Some functions are actually named
6390 something starting with __ and the normal name is an alias. */
6391 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
6394 f = malloc_set_state;
6401 rm -f conftest.
$ac_objext conftest
$ac_exeext
6402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6403 (eval $ac_link) 2>&5
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); } &&
6407 { ac_try
='test -s conftest$ac_exeext'
6408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); }; }; then
6413 ac_cv_func_malloc_set_state
=yes
6415 echo "$as_me: failed program was:" >&5
6416 cat conftest.
$ac_ext >&5
6417 ac_cv_func_malloc_set_state
=no
6419 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6421 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
6422 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
6423 if test $ac_cv_func_malloc_set_state = yes; then
6429 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
6430 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
6431 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6434 cat >conftest.
$ac_ext <<_ACEOF
6435 #line $LINENO "configure"
6436 #include "confdefs.h"
6437 extern void (* __after_morecore_hook)();
6441 __after_morecore_hook = 0
6446 rm -f conftest.
$ac_objext conftest
$ac_exeext
6447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6448 (eval $ac_link) 2>&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } &&
6452 { ac_try
='test -s conftest$ac_exeext'
6453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); }; }; then
6458 emacs_cv_var___after_morecore_hook
=yes
6460 echo "$as_me: failed program was:" >&5
6461 cat conftest.
$ac_ext >&5
6462 emacs_cv_var___after_morecore_hook
=no
6464 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6466 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
6467 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
6468 if test $emacs_cv_var___after_morecore_hook = no
; then
6471 if test "${system_malloc}" = "yes"; then
6474 (The GNU allocators don't work with this system configuration.)"
6476 if test "$doug_lea_malloc" = "yes" ; then
6477 if test "$GNU_MALLOC" = yes ; then
6479 (Using Doug Lea's new malloc from the GNU C Library.)"
6482 cat >>confdefs.h
<<\_ACEOF
6483 #define DOUG_LEA_MALLOC 1
6488 if test x
"${REL_ALLOC}" = x
; then
6489 REL_ALLOC
=${GNU_MALLOC}
6495 for ac_header
in stdlib.h unistd.h
6497 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6499 echo "$as_me:$LINENO: checking for $ac_header" >&5
6500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6507 # Is the header compilable?
6508 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6510 cat >conftest.
$ac_ext <<_ACEOF
6511 #line $LINENO "configure"
6512 #include "confdefs.h"
6513 $ac_includes_default
6514 #include <$ac_header>
6516 rm -f conftest.
$ac_objext
6517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6518 (eval $ac_compile) 2>&5
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); } &&
6522 { ac_try
='test -s conftest.$ac_objext'
6523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); }; }; then
6528 ac_header_compiler
=yes
6530 echo "$as_me: failed program was:" >&5
6531 cat conftest.
$ac_ext >&5
6532 ac_header_compiler
=no
6534 rm -f conftest.
$ac_objext conftest.
$ac_ext
6535 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6536 echo "${ECHO_T}$ac_header_compiler" >&6
6538 # Is the header present?
6539 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6541 cat >conftest.
$ac_ext <<_ACEOF
6542 #line $LINENO "configure"
6543 #include "confdefs.h"
6544 #include <$ac_header>
6546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6547 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6549 grep -v '^ *+' conftest.er1
>conftest.err
6551 cat conftest.err
>&5
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); } >/dev
/null
; then
6554 if test -s conftest.err
; then
6555 ac_cpp_err
=$ac_c_preproc_warn_flag
6562 if test -z "$ac_cpp_err"; then
6563 ac_header_preproc
=yes
6565 echo "$as_me: failed program was:" >&5
6566 cat conftest.
$ac_ext >&5
6567 ac_header_preproc
=no
6569 rm -f conftest.err conftest.
$ac_ext
6570 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6571 echo "${ECHO_T}$ac_header_preproc" >&6
6573 # So? What about this header?
6574 case $ac_header_compiler:$ac_header_preproc in
6576 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6581 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6582 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6583 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6584 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6588 echo "$as_me:$LINENO: checking for $ac_header" >&5
6589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6591 echo $ECHO_N "(cached) $ECHO_C" >&6
6593 eval "$as_ac_Header=$ac_header_preproc"
6595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6600 cat >>confdefs.h
<<_ACEOF
6601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6609 for ac_func
in getpagesize
6611 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6612 echo "$as_me:$LINENO: checking for $ac_func" >&5
6613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6614 if eval "test \"\${$as_ac_var+set}\" = set"; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 cat >conftest.
$ac_ext <<_ACEOF
6618 #line $LINENO "configure"
6619 #include "confdefs.h"
6620 /* System header to define __stub macros and hopefully few prototypes,
6621 which can conflict with char $ac_func (); below. */
6623 /* Override any gcc2 internal prototype to avoid an error. */
6627 /* We use char because int might match the return type of a gcc2
6628 builtin and then its argument prototype would still apply. */
6635 /* The GNU C library defines this for functions which it implements
6636 to always fail with ENOSYS. Some functions are actually named
6637 something starting with __ and the normal name is an alias. */
6638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6648 rm -f conftest.
$ac_objext conftest
$ac_exeext
6649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6650 (eval $ac_link) 2>&5
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); } &&
6654 { ac_try
='test -s conftest$ac_exeext'
6655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); }; }; then
6660 eval "$as_ac_var=yes"
6662 echo "$as_me: failed program was:" >&5
6663 cat conftest.
$ac_ext >&5
6664 eval "$as_ac_var=no"
6666 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6669 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6670 if test `eval echo '${'$as_ac_var'}'` = yes; then
6671 cat >>confdefs.h
<<_ACEOF
6672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6678 echo "$as_me:$LINENO: checking for working mmap" >&5
6679 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6680 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6681 echo $ECHO_N "(cached) $ECHO_C" >&6
6683 if test "$cross_compiling" = yes; then
6684 ac_cv_func_mmap_fixed_mapped
=no
6686 cat >conftest.
$ac_ext <<_ACEOF
6687 #line $LINENO "configure"
6688 #include "confdefs.h"
6689 $ac_includes_default
6690 /* malloc might have been renamed as rpl_malloc. */
6693 /* Thanks to Mike Haertel and Jim Avera for this test.
6694 Here is a matrix of mmap possibilities:
6695 mmap private not fixed
6696 mmap private fixed at somewhere currently unmapped
6697 mmap private fixed at somewhere already mapped
6698 mmap shared not fixed
6699 mmap shared fixed at somewhere currently unmapped
6700 mmap shared fixed at somewhere already mapped
6701 For private mappings, we should verify that changes cannot be read()
6702 back from the file, nor mmap's back from the file at a different
6703 address. (There have been systems where private was not correctly
6704 implemented like the infamous i386 svr4.0, and systems where the
6705 VM page cache was not coherent with the file system buffer cache
6706 like early versions of FreeBSD and possibly contemporary NetBSD.)
6707 For shared mappings, we should conversely verify that changes get
6708 propagated back to all the places they're supposed to be.
6710 Grep wants private fixed already mapped.
6711 The main things grep needs to know about mmap are:
6712 * does it exist and is it safe to write into the mmap'd area
6713 * how to use it (BSD variants) */
6716 #include <sys/mman.h>
6718 #if !STDC_HEADERS && !HAVE_STDLIB_H
6722 /* This mess was copied from the GNU getpagesize.h. */
6723 #if !HAVE_GETPAGESIZE
6724 /* Assume that all systems that can run configure have sys/param.h. */
6725 # if !HAVE_SYS_PARAM_H
6726 # define HAVE_SYS_PARAM_H 1
6729 # ifdef _SC_PAGESIZE
6730 # define getpagesize() sysconf(_SC_PAGESIZE)
6731 # else /* no _SC_PAGESIZE */
6732 # if HAVE_SYS_PARAM_H
6733 # include <sys/param.h>
6734 # ifdef EXEC_PAGESIZE
6735 # define getpagesize() EXEC_PAGESIZE
6736 # else /* no EXEC_PAGESIZE */
6738 # define getpagesize() NBPG * CLSIZE
6741 # endif /* no CLSIZE */
6742 # else /* no NBPG */
6744 # define getpagesize() NBPC
6745 # else /* no NBPC */
6747 # define getpagesize() PAGESIZE
6748 # endif /* PAGESIZE */
6749 # endif /* no NBPC */
6750 # endif /* no NBPG */
6751 # endif /* no EXEC_PAGESIZE */
6752 # else /* no HAVE_SYS_PARAM_H */
6753 # define getpagesize() 8192 /* punt totally */
6754 # endif /* no HAVE_SYS_PARAM_H */
6755 # endif /* no _SC_PAGESIZE */
6757 #endif /* no HAVE_GETPAGESIZE */
6762 char *data, *data2, *data3;
6766 pagesize = getpagesize ();
6768 /* First, make a file with some known garbage in it. */
6769 data = (char *) malloc (pagesize);
6772 for (i = 0; i < pagesize; ++i)
6773 *(data + i) = rand ();
6775 fd = creat ("conftest.mmap", 0600);
6778 if (write (fd, data, pagesize) != pagesize)
6782 /* Next, try to mmap the file at a fixed address which already has
6783 something else allocated at it. If we can, also make sure that
6784 we see the same garbage. */
6785 fd = open ("conftest.mmap", O_RDWR);
6788 data2 = (char *) malloc (2 * pagesize);
6791 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6792 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6793 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6795 for (i = 0; i < pagesize; ++i)
6796 if (*(data + i) != *(data2 + i))
6799 /* Finally, make sure that changes to the mapped area do not
6800 percolate back to the file as seen by read(). (This is a bug on
6801 some variants of i386 svr4.0.) */
6802 for (i = 0; i < pagesize; ++i)
6803 *(data2 + i) = *(data2 + i) + 1;
6804 data3 = (char *) malloc (pagesize);
6807 if (read (fd, data3, pagesize) != pagesize)
6809 for (i = 0; i < pagesize; ++i)
6810 if (*(data + i) != *(data3 + i))
6816 rm -f conftest
$ac_exeext
6817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6818 (eval $ac_link) 2>&5
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); }; }; then
6827 ac_cv_func_mmap_fixed_mapped
=yes
6829 echo "$as_me: program exited with status $ac_status" >&5
6830 echo "$as_me: failed program was:" >&5
6831 cat conftest.
$ac_ext >&5
6833 ac_cv_func_mmap_fixed_mapped
=no
6835 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6838 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6839 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6840 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6842 cat >>confdefs.h
<<\_ACEOF
6849 if test $use_mmap_for_buffers = yes; then
6853 LIBS
="$libsrc_libs $LIBS"
6856 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6857 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6858 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 ac_check_lib_save_LIBS
=$LIBS
6863 cat >conftest.
$ac_ext <<_ACEOF
6864 #line $LINENO "configure"
6865 #include "confdefs.h"
6867 /* Override any gcc2 internal prototype to avoid an error. */
6871 /* We use char because int might match the return type of a gcc2
6872 builtin and then its argument prototype would still apply. */
6882 rm -f conftest.
$ac_objext conftest
$ac_exeext
6883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6884 (eval $ac_link) 2>&5
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); } &&
6888 { ac_try
='test -s conftest$ac_exeext'
6889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); }; }; then
6894 ac_cv_lib_dnet_dnet_ntoa
=yes
6896 echo "$as_me: failed program was:" >&5
6897 cat conftest.
$ac_ext >&5
6898 ac_cv_lib_dnet_dnet_ntoa
=no
6900 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6901 LIBS
=$ac_check_lib_save_LIBS
6903 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6904 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6905 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6906 cat >>confdefs.h
<<_ACEOF
6907 #define HAVE_LIBDNET 1
6915 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
6916 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
6917 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6920 ac_check_lib_save_LIBS
=$LIBS
6922 cat >conftest.
$ac_ext <<_ACEOF
6923 #line $LINENO "configure"
6924 #include "confdefs.h"
6935 rm -f conftest.
$ac_objext conftest
$ac_exeext
6936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6937 (eval $ac_link) 2>&5
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); } &&
6941 { ac_try
='test -s conftest$ac_exeext'
6942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); }; }; then
6947 ac_cv_lib_Xbsd_main
=yes
6949 echo "$as_me: failed program was:" >&5
6950 cat conftest.
$ac_ext >&5
6951 ac_cv_lib_Xbsd_main
=no
6953 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6954 LIBS
=$ac_check_lib_save_LIBS
6956 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
6957 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
6958 if test $ac_cv_lib_Xbsd_main = yes; then
6959 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
6964 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
6965 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
6966 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6969 ac_check_lib_save_LIBS
=$LIBS
6970 LIBS
="-lpthreads $LIBS"
6971 cat >conftest.
$ac_ext <<_ACEOF
6972 #line $LINENO "configure"
6973 #include "confdefs.h"
6975 /* Override any gcc2 internal prototype to avoid an error. */
6979 /* We use char because int might match the return type of a gcc2
6980 builtin and then its argument prototype would still apply. */
6990 rm -f conftest.
$ac_objext conftest
$ac_exeext
6991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6992 (eval $ac_link) 2>&5
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); } &&
6996 { ac_try
='test -s conftest$ac_exeext'
6997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); }; }; then
7002 ac_cv_lib_pthreads_cma_open
=yes
7004 echo "$as_me: failed program was:" >&5
7005 cat conftest.
$ac_ext >&5
7006 ac_cv_lib_pthreads_cma_open
=no
7008 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7009 LIBS
=$ac_check_lib_save_LIBS
7011 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7012 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7013 if test $ac_cv_lib_pthreads_cma_open = yes; then
7014 cat >>confdefs.h
<<_ACEOF
7015 #define HAVE_LIBPTHREADS 1
7018 LIBS
="-lpthreads $LIBS"
7023 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7024 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7025 if test -d /usr
/X386
/include
; then
7027 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7031 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7032 echo "${ECHO_T}$HAVE_XFREE386" >&6
7034 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7035 # used for the tests that follow. We set them back to REAL_CFLAGS and
7036 # REAL_CPPFLAGS later on.
7038 REAL_CPPFLAGS
="$CPPFLAGS"
7040 if test "${HAVE_X11}" = "yes"; then
7041 DEFS
="$C_SWITCH_X_SITE $DEFS"
7042 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
7044 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
7045 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
7047 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7048 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7049 # but it's more convenient here to set LD_RUN_PATH
7050 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7051 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
7052 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7056 if test "${opsys}" = "gnu-linux"; then
7057 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7058 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7059 cat >conftest.
$ac_ext <<_ACEOF
7060 #line $LINENO "configure"
7061 #include "confdefs.h"
7066 XOpenDisplay ("foo");
7071 rm -f conftest.
$ac_objext conftest
$ac_exeext
7072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7073 (eval $ac_link) 2>&5
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); } &&
7077 { ac_try
='test -s conftest$ac_exeext'
7078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); }; }; then
7083 xlinux_first_failure
=no
7085 echo "$as_me: failed program was:" >&5
7086 cat conftest.
$ac_ext >&5
7087 xlinux_first_failure
=yes
7089 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7090 if test "${xlinux_first_failure}" = "yes"; then
7091 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
7092 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
7093 OLD_CPPFLAGS
="$CPPFLAGS"
7095 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
7096 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
7097 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
7098 LIBS
="$LIBS -b i486-linuxaout"
7099 cat >conftest.
$ac_ext <<_ACEOF
7100 #line $LINENO "configure"
7101 #include "confdefs.h"
7106 XOpenDisplay ("foo");
7111 rm -f conftest.
$ac_objext conftest
$ac_exeext
7112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7113 (eval $ac_link) 2>&5
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); } &&
7117 { ac_try
='test -s conftest$ac_exeext'
7118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); }; }; then
7123 xlinux_second_failure
=no
7125 echo "$as_me: failed program was:" >&5
7126 cat conftest.
$ac_ext >&5
7127 xlinux_second_failure
=yes
7129 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7130 if test "${xlinux_second_failure}" = "yes"; then
7131 # If we get the same failure with -b, there is no use adding -b.
7132 # So take it out. This plays safe.
7133 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
7134 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
7135 CPPFLAGS
="$OLD_CPPFLAGS"
7137 echo "$as_me:$LINENO: result: no" >&5
7138 echo "${ECHO_T}no" >&6
7140 echo "$as_me:$LINENO: result: yes" >&5
7141 echo "${ECHO_T}yes" >&6
7144 echo "$as_me:$LINENO: result: no" >&5
7145 echo "${ECHO_T}no" >&6
7149 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7150 # header files included from there.
7151 echo "$as_me:$LINENO: checking for Xkb" >&5
7152 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7153 cat >conftest.
$ac_ext <<_ACEOF
7154 #line $LINENO "configure"
7155 #include "confdefs.h"
7156 #include <X11/Xlib.h>
7157 #include <X11/XKBlib.h>
7161 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7166 rm -f conftest.
$ac_objext conftest
$ac_exeext
7167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7168 (eval $ac_link) 2>&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); } &&
7172 { ac_try
='test -s conftest$ac_exeext'
7173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); }; }; then
7180 echo "$as_me: failed program was:" >&5
7181 cat conftest.
$ac_ext >&5
7184 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7185 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7186 echo "${ECHO_T}$emacs_xkb" >&6
7187 if test $emacs_xkb = yes; then
7189 cat >>confdefs.h
<<\_ACEOF
7190 #define HAVE_XKBGETKEYBOARD 1
7199 for ac_func
in XrmSetDatabase XScreenResourceString \
7200 XScreenNumberOfScreen XSetWMProtocols
7202 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7203 echo "$as_me:$LINENO: checking for $ac_func" >&5
7204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7205 if eval "test \"\${$as_ac_var+set}\" = set"; then
7206 echo $ECHO_N "(cached) $ECHO_C" >&6
7208 cat >conftest.
$ac_ext <<_ACEOF
7209 #line $LINENO "configure"
7210 #include "confdefs.h"
7211 /* System header to define __stub macros and hopefully few prototypes,
7212 which can conflict with char $ac_func (); below. */
7214 /* Override any gcc2 internal prototype to avoid an error. */
7218 /* We use char because int might match the return type of a gcc2
7219 builtin and then its argument prototype would still apply. */
7226 /* The GNU C library defines this for functions which it implements
7227 to always fail with ENOSYS. Some functions are actually named
7228 something starting with __ and the normal name is an alias. */
7229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7239 rm -f conftest.
$ac_objext conftest
$ac_exeext
7240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7241 (eval $ac_link) 2>&5
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); } &&
7245 { ac_try
='test -s conftest$ac_exeext'
7246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); }; }; then
7251 eval "$as_ac_var=yes"
7253 echo "$as_me: failed program was:" >&5
7254 cat conftest.
$ac_ext >&5
7255 eval "$as_ac_var=no"
7257 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7260 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7261 if test `eval echo '${'$as_ac_var'}'` = yes; then
7262 cat >>confdefs.h
<<_ACEOF
7263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7271 if test "${window_system}" = "x11"; then
7272 echo "$as_me:$LINENO: checking X11 version 6" >&5
7273 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
7274 if test "${emacs_cv_x11_version_6+set}" = set; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
7277 cat >conftest.
$ac_ext <<_ACEOF
7278 #line $LINENO "configure"
7279 #include "confdefs.h"
7280 #include <X11/Xlib.h>
7284 #if XlibSpecificationRelease < 6
7292 rm -f conftest.
$ac_objext conftest
$ac_exeext
7293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7294 (eval $ac_link) 2>&5
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); } &&
7298 { ac_try
='test -s conftest$ac_exeext'
7299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); }; }; then
7304 emacs_cv_x11_version_6
=yes
7306 echo "$as_me: failed program was:" >&5
7307 cat conftest.
$ac_ext >&5
7308 emacs_cv_x11_version_6
=no
7310 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7313 if test $emacs_cv_x11_version_6 = yes; then
7314 echo "$as_me:$LINENO: result: 6 or newer" >&5
7315 echo "${ECHO_T}6 or newer" >&6
7317 cat >>confdefs.h
<<\_ACEOF
7318 #define HAVE_X11R6 1
7322 echo "$as_me:$LINENO: result: before 6" >&5
7323 echo "${ECHO_T}before 6" >&6
7327 if test "${window_system}" = "x11"; then
7328 echo "$as_me:$LINENO: checking X11 version 5" >&5
7329 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
7330 if test "${emacs_cv_x11_version_5+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7333 cat >conftest.
$ac_ext <<_ACEOF
7334 #line $LINENO "configure"
7335 #include "confdefs.h"
7336 #include <X11/Xlib.h>
7340 #if XlibSpecificationRelease < 5
7348 rm -f conftest.
$ac_objext conftest
$ac_exeext
7349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7350 (eval $ac_link) 2>&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); } &&
7354 { ac_try
='test -s conftest$ac_exeext'
7355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); }; }; then
7360 emacs_cv_x11_version_5
=yes
7362 echo "$as_me: failed program was:" >&5
7363 cat conftest.
$ac_ext >&5
7364 emacs_cv_x11_version_5
=no
7366 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7369 if test $emacs_cv_x11_version_5 = yes; then
7370 echo "$as_me:$LINENO: result: 5 or newer" >&5
7371 echo "${ECHO_T}5 or newer" >&6
7374 cat >>confdefs.h
<<\_ACEOF
7375 #define HAVE_X11R5 1
7380 echo "$as_me:$LINENO: result: before 5" >&5
7381 echo "${ECHO_T}before 5" >&6
7385 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
7386 if test x
"${HAVE_X11R5}" = xyes
; then
7387 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
7388 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
7389 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
7392 cat >conftest.
$ac_ext <<_ACEOF
7393 #line $LINENO "configure"
7394 #include "confdefs.h"
7396 #include <X11/Intrinsic.h>
7397 #include <X11/Xaw/Simple.h>
7406 rm -f conftest.
$ac_objext conftest
$ac_exeext
7407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7408 (eval $ac_link) 2>&5
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); } &&
7412 { ac_try
='test -s conftest$ac_exeext'
7413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); }; }; then
7418 emacs_cv_x11_version_5_with_xaw
=yes
7420 echo "$as_me: failed program was:" >&5
7421 cat conftest.
$ac_ext >&5
7422 emacs_cv_x11_version_5_with_xaw
=no
7424 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7427 if test $emacs_cv_x11_version_5_with_xaw = yes; then
7428 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
7429 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
7432 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
7433 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
7441 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
7443 if test "${USE_X_TOOLKIT}" != "none"; then
7444 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
7445 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
7446 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
7447 echo $ECHO_N "(cached) $ECHO_C" >&6
7449 cat >conftest.
$ac_ext <<_ACEOF
7450 #line $LINENO "configure"
7451 #include "confdefs.h"
7452 #include <X11/Intrinsic.h>
7456 #if XtSpecificationRelease < 6
7464 rm -f conftest.
$ac_objext conftest
$ac_exeext
7465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7466 (eval $ac_link) 2>&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } &&
7470 { ac_try
='test -s conftest$ac_exeext'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; }; then
7476 emacs_cv_x11_toolkit_version_6
=yes
7478 echo "$as_me: failed program was:" >&5
7479 cat conftest.
$ac_ext >&5
7480 emacs_cv_x11_toolkit_version_6
=no
7482 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7485 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
7486 if test $emacs_cv_x11_toolkit_version_6 = yes; then
7487 echo "$as_me:$LINENO: result: 6 or newer" >&5
7488 echo "${ECHO_T}6 or newer" >&6
7490 cat >>confdefs.h
<<\_ACEOF
7491 #define HAVE_X11XTR6 1
7495 echo "$as_me:$LINENO: result: before 6" >&5
7496 echo "${ECHO_T}before 6" >&6
7500 if test x
$HAVE_X11XTR6 = xyes
; then
7501 LIBS
="-lXt -lSM -lICE $LIBS"
7506 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
7507 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
7508 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7511 ac_check_lib_save_LIBS
=$LIBS
7513 cat >conftest.
$ac_ext <<_ACEOF
7514 #line $LINENO "configure"
7515 #include "confdefs.h"
7517 /* Override any gcc2 internal prototype to avoid an error. */
7521 /* We use char because int might match the return type of a gcc2
7522 builtin and then its argument prototype would still apply. */
7523 char XmuConvertStandardSelection ();
7527 XmuConvertStandardSelection ();
7532 rm -f conftest.
$ac_objext conftest
$ac_exeext
7533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7534 (eval $ac_link) 2>&5
7536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537 (exit $ac_status); } &&
7538 { ac_try
='test -s conftest$ac_exeext'
7539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); }; }; then
7544 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
7546 echo "$as_me: failed program was:" >&5
7547 cat conftest.
$ac_ext >&5
7548 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
7550 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7551 LIBS
=$ac_check_lib_save_LIBS
7553 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
7554 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
7555 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
7556 cat >>confdefs.h
<<_ACEOF
7557 #define HAVE_LIBXMU 1
7564 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
7567 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
7568 if test "${HAVE_X11}" = "yes"; then
7569 if test "${USE_X_TOOLKIT}" != "none"; then
7571 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7572 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7573 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7576 ac_check_lib_save_LIBS
=$LIBS
7578 cat >conftest.
$ac_ext <<_ACEOF
7579 #line $LINENO "configure"
7580 #include "confdefs.h"
7582 /* Override any gcc2 internal prototype to avoid an error. */
7586 /* We use char because int might match the return type of a gcc2
7587 builtin and then its argument prototype would still apply. */
7588 char XShapeQueryExtension ();
7592 XShapeQueryExtension ();
7597 rm -f conftest.
$ac_objext conftest
$ac_exeext
7598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7599 (eval $ac_link) 2>&5
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); } &&
7603 { ac_try
='test -s conftest$ac_exeext'
7604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); }; }; then
7609 ac_cv_lib_Xext_XShapeQueryExtension
=yes
7611 echo "$as_me: failed program was:" >&5
7612 cat conftest.
$ac_ext >&5
7613 ac_cv_lib_Xext_XShapeQueryExtension
=no
7615 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7616 LIBS
=$ac_check_lib_save_LIBS
7618 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7619 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7620 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7621 cat >>confdefs.h
<<_ACEOF
7622 #define HAVE_LIBXEXT 1
7632 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
7633 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
7634 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
7635 if test "${emacs_cv_lesstif+set}" = set; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7638 # We put this in CFLAGS temporarily to precede other -I options
7639 # that might be in CFLAGS temporarily.
7640 # We put this in CPPFLAGS where it precedes the other -I options.
7641 OLD_CPPFLAGS
=$CPPFLAGS
7643 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
7644 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
7645 cat >conftest.
$ac_ext <<_ACEOF
7646 #line $LINENO "configure"
7647 #include "confdefs.h"
7648 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
7657 rm -f conftest.
$ac_objext
7658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7659 (eval $ac_compile) 2>&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } &&
7663 { ac_try
='test -s conftest.$ac_objext'
7664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); }; }; then
7669 emacs_cv_lesstif
=yes
7671 echo "$as_me: failed program was:" >&5
7672 cat conftest.
$ac_ext >&5
7675 rm -f conftest.
$ac_objext conftest.
$ac_ext
7677 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
7678 echo "${ECHO_T}$emacs_cv_lesstif" >&6
7679 if test $emacs_cv_lesstif = yes; then
7680 # Make sure this -I option remains in CPPFLAGS after it is set
7681 # back to REAL_CPPFLAGS.
7682 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
7683 # have those other -I options anyway. Ultimately, having this
7684 # directory ultimately in CPPFLAGS will be enough.
7685 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
7686 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
7689 CPPFLAGS
=$OLD_CPPFLAGS
7691 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
7692 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
7693 if test "${emacs_cv_motif_version_2_1+set}" = set; then
7694 echo $ECHO_N "(cached) $ECHO_C" >&6
7696 cat >conftest.
$ac_ext <<_ACEOF
7697 #line $LINENO "configure"
7698 #include "confdefs.h"
7703 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
7706 Motif version prior to 2.1.
7712 rm -f conftest.
$ac_objext
7713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7714 (eval $ac_compile) 2>&5
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); } &&
7718 { ac_try
='test -s conftest.$ac_objext'
7719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); }; }; then
7724 emacs_cv_motif_version_2_1
=yes
7726 echo "$as_me: failed program was:" >&5
7727 cat conftest.
$ac_ext >&5
7728 emacs_cv_motif_version_2_1
=no
7730 rm -f conftest.
$ac_objext conftest.
$ac_ext
7732 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
7733 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
7734 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
7735 if test $emacs_cv_motif_version_2_1 = yes; then
7738 cat >>confdefs.h
<<\_ACEOF
7739 #define HAVE_MOTIF_2_1 1
7742 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
7743 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
7744 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7747 ac_check_lib_save_LIBS
=$LIBS
7749 cat >conftest.
$ac_ext <<_ACEOF
7750 #line $LINENO "configure"
7751 #include "confdefs.h"
7753 /* Override any gcc2 internal prototype to avoid an error. */
7757 /* We use char because int might match the return type of a gcc2
7758 builtin and then its argument prototype would still apply. */
7759 char XpCreateContext ();
7768 rm -f conftest.
$ac_objext conftest
$ac_exeext
7769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7770 (eval $ac_link) 2>&5
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); } &&
7774 { ac_try
='test -s conftest$ac_exeext'
7775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); }; }; then
7780 ac_cv_lib_Xp_XpCreateContext
=yes
7782 echo "$as_me: failed program was:" >&5
7783 cat conftest.
$ac_ext >&5
7784 ac_cv_lib_Xp_XpCreateContext
=no
7786 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7787 LIBS
=$ac_check_lib_save_LIBS
7789 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
7790 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
7791 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
7795 if test ${HAVE_LIBXP} = yes; then
7797 cat >>confdefs.h
<<\_ACEOF
7798 #define HAVE_LIBXP 1
7805 ### Is -lXaw3d available?
7807 if test "${HAVE_X11}" = "yes"; then
7808 if test "${USE_X_TOOLKIT}" != "none"; then
7809 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
7810 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
7811 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
7814 cat >conftest.
$ac_ext <<_ACEOF
7815 #line $LINENO "configure"
7816 #include "confdefs.h"
7817 #include <X11/Xaw3d/Scrollbar.h>
7819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7820 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7822 grep -v '^ *+' conftest.er1
>conftest.err
7824 cat conftest.err
>&5
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); } >/dev
/null
; then
7827 if test -s conftest.err
; then
7828 ac_cpp_err
=$ac_c_preproc_warn_flag
7835 if test -z "$ac_cpp_err"; then
7836 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
7838 echo "$as_me: failed program was:" >&5
7839 cat conftest.
$ac_ext >&5
7840 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
7842 rm -f conftest.err conftest.
$ac_ext
7844 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
7845 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
7846 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
7847 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
7848 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
7849 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7852 ac_check_lib_save_LIBS
=$LIBS
7853 LIBS
="-lXaw3d $LIBS"
7854 cat >conftest.
$ac_ext <<_ACEOF
7855 #line $LINENO "configure"
7856 #include "confdefs.h"
7858 /* Override any gcc2 internal prototype to avoid an error. */
7862 /* We use char because int might match the return type of a gcc2
7863 builtin and then its argument prototype would still apply. */
7864 char XawScrollbarSetThumb ();
7868 XawScrollbarSetThumb ();
7873 rm -f conftest.
$ac_objext conftest
$ac_exeext
7874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7875 (eval $ac_link) 2>&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); } &&
7879 { ac_try
='test -s conftest$ac_exeext'
7880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); }; }; then
7885 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
7887 echo "$as_me: failed program was:" >&5
7888 cat conftest.
$ac_ext >&5
7889 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
7891 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7892 LIBS
=$ac_check_lib_save_LIBS
7894 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
7895 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
7896 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
7903 if test "${HAVE_XAW3D}" = "yes"; then
7905 cat >>confdefs.h
<<\_ACEOF
7906 #define HAVE_XAW3D 1
7915 USE_TOOLKIT_SCROLL_BARS
=no
7916 if test "${with_toolkit_scroll_bars}" != "no"; then
7917 if test "${USE_X_TOOLKIT}" != "none"; then
7918 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
7919 cat >>confdefs.h
<<\_ACEOF
7920 #define USE_TOOLKIT_SCROLL_BARS 1
7924 USE_TOOLKIT_SCROLL_BARS
=yes
7925 elif test "${HAVE_XAW3D}" = "yes"; then
7926 cat >>confdefs.h
<<\_ACEOF
7927 #define USE_TOOLKIT_SCROLL_BARS 1
7930 USE_TOOLKIT_SCROLL_BARS
=yes
7936 if test "${with_xim}" != "no"; then
7938 cat >>confdefs.h
<<\_ACEOF
7944 ### Use -lXpm if available, unless `--with-xpm=no'.
7946 if test "${HAVE_X11}" = "yes"; then
7947 if test "${with_xpm}" != "no"; then
7948 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
7949 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
7950 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
7951 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
7952 echo $ECHO_N "(cached) $ECHO_C" >&6
7954 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
7955 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
7957 # Is the header compilable?
7958 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
7959 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
7960 cat >conftest.
$ac_ext <<_ACEOF
7961 #line $LINENO "configure"
7962 #include "confdefs.h"
7963 $ac_includes_default
7964 #include <X11/xpm.h>
7966 rm -f conftest.
$ac_objext
7967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7968 (eval $ac_compile) 2>&5
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); } &&
7972 { ac_try
='test -s conftest.$ac_objext'
7973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; }; then
7978 ac_header_compiler
=yes
7980 echo "$as_me: failed program was:" >&5
7981 cat conftest.
$ac_ext >&5
7982 ac_header_compiler
=no
7984 rm -f conftest.
$ac_objext conftest.
$ac_ext
7985 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7986 echo "${ECHO_T}$ac_header_compiler" >&6
7988 # Is the header present?
7989 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
7990 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
7991 cat >conftest.
$ac_ext <<_ACEOF
7992 #line $LINENO "configure"
7993 #include "confdefs.h"
7994 #include <X11/xpm.h>
7996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7997 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7999 grep -v '^ *+' conftest.er1
>conftest.err
8001 cat conftest.err
>&5
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); } >/dev
/null
; then
8004 if test -s conftest.err
; then
8005 ac_cpp_err
=$ac_c_preproc_warn_flag
8012 if test -z "$ac_cpp_err"; then
8013 ac_header_preproc
=yes
8015 echo "$as_me: failed program was:" >&5
8016 cat conftest.
$ac_ext >&5
8017 ac_header_preproc
=no
8019 rm -f conftest.err conftest.
$ac_ext
8020 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8021 echo "${ECHO_T}$ac_header_preproc" >&6
8023 # So? What about this header?
8024 case $ac_header_compiler:$ac_header_preproc in
8026 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8027 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8028 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8029 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;};;
8031 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
8032 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
8033 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
8034 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
8035 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8036 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;};;
8038 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8039 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8040 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8041 echo $ECHO_N "(cached) $ECHO_C" >&6
8043 ac_cv_header_X11_xpm_h
=$ac_header_preproc
8045 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8046 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8049 if test $ac_cv_header_X11_xpm_h = yes; then
8050 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
8051 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
8052 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
8053 echo $ECHO_N "(cached) $ECHO_C" >&6
8055 ac_check_lib_save_LIBS
=$LIBS
8056 LIBS
="-lXpm -lX11 $LIBS"
8057 cat >conftest.
$ac_ext <<_ACEOF
8058 #line $LINENO "configure"
8059 #include "confdefs.h"
8061 /* Override any gcc2 internal prototype to avoid an error. */
8065 /* We use char because int might match the return type of a gcc2
8066 builtin and then its argument prototype would still apply. */
8067 char XpmReadFileToPixmap ();
8071 XpmReadFileToPixmap ();
8076 rm -f conftest.
$ac_objext conftest
$ac_exeext
8077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8078 (eval $ac_link) 2>&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } &&
8082 { ac_try
='test -s conftest$ac_exeext'
8083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); }; }; then
8088 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
8090 echo "$as_me: failed program was:" >&5
8091 cat conftest.
$ac_ext >&5
8092 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
8094 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8095 LIBS
=$ac_check_lib_save_LIBS
8097 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
8098 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
8099 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
8106 if test "${HAVE_XPM}" = "yes"; then
8107 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
8108 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
8109 cat >conftest.
$ac_ext <<_ACEOF
8110 #line $LINENO "configure"
8111 #include "confdefs.h"
8112 #include "X11/xpm.h"
8113 #ifndef XpmReturnAllocPixels
8114 no_return_alloc_pixels
8118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8119 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
8127 if test "${HAVE_XPM}" = "yes"; then
8128 echo "$as_me:$LINENO: result: yes" >&5
8129 echo "${ECHO_T}yes" >&6
8131 echo "$as_me:$LINENO: result: no" >&5
8132 echo "${ECHO_T}no" >&6
8137 if test "${HAVE_XPM}" = "yes"; then
8139 cat >>confdefs.h
<<\_ACEOF
8146 ### Use -ljpeg if available, unless `--with-jpeg=no'.
8148 if test "${HAVE_X11}" = "yes"; then
8149 if test "${with_jpeg}" != "no"; then
8150 if test "${ac_cv_header_jerror_h+set}" = set; then
8151 echo "$as_me:$LINENO: checking for jerror.h" >&5
8152 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8153 if test "${ac_cv_header_jerror_h+set}" = set; then
8154 echo $ECHO_N "(cached) $ECHO_C" >&6
8156 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
8157 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8159 # Is the header compilable?
8160 echo "$as_me:$LINENO: checking jerror.h usability" >&5
8161 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
8162 cat >conftest.
$ac_ext <<_ACEOF
8163 #line $LINENO "configure"
8164 #include "confdefs.h"
8165 $ac_includes_default
8168 rm -f conftest.
$ac_objext
8169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8170 (eval $ac_compile) 2>&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); } &&
8174 { ac_try
='test -s conftest.$ac_objext'
8175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); }; }; then
8180 ac_header_compiler
=yes
8182 echo "$as_me: failed program was:" >&5
8183 cat conftest.
$ac_ext >&5
8184 ac_header_compiler
=no
8186 rm -f conftest.
$ac_objext conftest.
$ac_ext
8187 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8188 echo "${ECHO_T}$ac_header_compiler" >&6
8190 # Is the header present?
8191 echo "$as_me:$LINENO: checking jerror.h presence" >&5
8192 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
8193 cat >conftest.
$ac_ext <<_ACEOF
8194 #line $LINENO "configure"
8195 #include "confdefs.h"
8198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8199 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8201 grep -v '^ *+' conftest.er1
>conftest.err
8203 cat conftest.err
>&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); } >/dev
/null
; then
8206 if test -s conftest.err
; then
8207 ac_cpp_err
=$ac_c_preproc_warn_flag
8214 if test -z "$ac_cpp_err"; then
8215 ac_header_preproc
=yes
8217 echo "$as_me: failed program was:" >&5
8218 cat conftest.
$ac_ext >&5
8219 ac_header_preproc
=no
8221 rm -f conftest.err conftest.
$ac_ext
8222 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8223 echo "${ECHO_T}$ac_header_preproc" >&6
8225 # So? What about this header?
8226 case $ac_header_compiler:$ac_header_preproc in
8228 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
8229 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8230 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
8231 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;};;
8233 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
8234 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
8235 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
8236 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
8237 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
8238 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;};;
8240 echo "$as_me:$LINENO: checking for jerror.h" >&5
8241 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8242 if test "${ac_cv_header_jerror_h+set}" = set; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
8245 ac_cv_header_jerror_h
=$ac_header_preproc
8247 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
8248 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8251 if test $ac_cv_header_jerror_h = yes; then
8252 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
8253 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
8254 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
8255 echo $ECHO_N "(cached) $ECHO_C" >&6
8257 ac_check_lib_save_LIBS
=$LIBS
8259 cat >conftest.
$ac_ext <<_ACEOF
8260 #line $LINENO "configure"
8261 #include "confdefs.h"
8263 /* Override any gcc2 internal prototype to avoid an error. */
8267 /* We use char because int might match the return type of a gcc2
8268 builtin and then its argument prototype would still apply. */
8269 char jpeg_destroy_compress ();
8273 jpeg_destroy_compress ();
8278 rm -f conftest.
$ac_objext conftest
$ac_exeext
8279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8280 (eval $ac_link) 2>&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); } &&
8284 { ac_try
='test -s conftest$ac_exeext'
8285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; }; then
8290 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
8292 echo "$as_me: failed program was:" >&5
8293 cat conftest.
$ac_ext >&5
8294 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
8296 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8297 LIBS
=$ac_check_lib_save_LIBS
8299 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
8300 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
8301 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
8311 if test "${HAVE_JPEG}" = "yes"; then
8312 cat >>confdefs.h
<<\_ACEOF
8316 cat >conftest.
$ac_ext <<_ACEOF
8317 #line $LINENO "configure"
8318 #include "confdefs.h"
8319 #include <jpeglib.h>
8320 version=JPEG_LIB_VERSION
8323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8324 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
8325 cat >>confdefs.h
<<\_ACEOF
8330 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
8331 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
8339 ### Use -lpng if available, unless `--with-png=no'.
8341 if test "${HAVE_X11}" = "yes"; then
8342 if test "${with_png}" != "no"; then
8343 if test "${ac_cv_header_png_h+set}" = set; then
8344 echo "$as_me:$LINENO: checking for png.h" >&5
8345 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
8346 if test "${ac_cv_header_png_h+set}" = set; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
8349 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
8350 echo "${ECHO_T}$ac_cv_header_png_h" >&6
8352 # Is the header compilable?
8353 echo "$as_me:$LINENO: checking png.h usability" >&5
8354 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
8355 cat >conftest.
$ac_ext <<_ACEOF
8356 #line $LINENO "configure"
8357 #include "confdefs.h"
8358 $ac_includes_default
8361 rm -f conftest.
$ac_objext
8362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8363 (eval $ac_compile) 2>&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); } &&
8367 { ac_try
='test -s conftest.$ac_objext'
8368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); }; }; then
8373 ac_header_compiler
=yes
8375 echo "$as_me: failed program was:" >&5
8376 cat conftest.
$ac_ext >&5
8377 ac_header_compiler
=no
8379 rm -f conftest.
$ac_objext conftest.
$ac_ext
8380 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8381 echo "${ECHO_T}$ac_header_compiler" >&6
8383 # Is the header present?
8384 echo "$as_me:$LINENO: checking png.h presence" >&5
8385 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
8386 cat >conftest.
$ac_ext <<_ACEOF
8387 #line $LINENO "configure"
8388 #include "confdefs.h"
8391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8392 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8394 grep -v '^ *+' conftest.er1
>conftest.err
8396 cat conftest.err
>&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); } >/dev
/null
; then
8399 if test -s conftest.err
; then
8400 ac_cpp_err
=$ac_c_preproc_warn_flag
8407 if test -z "$ac_cpp_err"; then
8408 ac_header_preproc
=yes
8410 echo "$as_me: failed program was:" >&5
8411 cat conftest.
$ac_ext >&5
8412 ac_header_preproc
=no
8414 rm -f conftest.err conftest.
$ac_ext
8415 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8416 echo "${ECHO_T}$ac_header_preproc" >&6
8418 # So? What about this header?
8419 case $ac_header_compiler:$ac_header_preproc in
8421 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
8422 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8423 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
8424 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};;
8426 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
8427 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
8428 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
8429 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
8430 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
8431 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};;
8433 echo "$as_me:$LINENO: checking for png.h" >&5
8434 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
8435 if test "${ac_cv_header_png_h+set}" = set; then
8436 echo $ECHO_N "(cached) $ECHO_C" >&6
8438 ac_cv_header_png_h
=$ac_header_preproc
8440 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
8441 echo "${ECHO_T}$ac_cv_header_png_h" >&6
8444 if test $ac_cv_header_png_h = yes; then
8445 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
8446 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
8447 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
8448 echo $ECHO_N "(cached) $ECHO_C" >&6
8450 ac_check_lib_save_LIBS
=$LIBS
8451 LIBS
="-lpng -lz -lm $LIBS"
8452 cat >conftest.
$ac_ext <<_ACEOF
8453 #line $LINENO "configure"
8454 #include "confdefs.h"
8456 /* Override any gcc2 internal prototype to avoid an error. */
8460 /* We use char because int might match the return type of a gcc2
8461 builtin and then its argument prototype would still apply. */
8462 char png_get_channels ();
8466 png_get_channels ();
8471 rm -f conftest.
$ac_objext conftest
$ac_exeext
8472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8473 (eval $ac_link) 2>&5
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); } &&
8477 { ac_try
='test -s conftest$ac_exeext'
8478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); }; }; then
8483 ac_cv_lib_png_png_get_channels
=yes
8485 echo "$as_me: failed program was:" >&5
8486 cat conftest.
$ac_ext >&5
8487 ac_cv_lib_png_png_get_channels
=no
8489 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8490 LIBS
=$ac_check_lib_save_LIBS
8492 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
8493 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
8494 if test $ac_cv_lib_png_png_get_channels = yes; then
8503 if test "${HAVE_PNG}" = "yes"; then
8505 cat >>confdefs.h
<<\_ACEOF
8512 ### Use -ltiff if available, unless `--with-tiff=no'.
8514 if test "${HAVE_X11}" = "yes"; then
8515 if test "${with_tiff}" != "no"; then
8516 if test "${ac_cv_header_tiffio_h+set}" = set; then
8517 echo "$as_me:$LINENO: checking for tiffio.h" >&5
8518 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
8519 if test "${ac_cv_header_tiffio_h+set}" = set; then
8520 echo $ECHO_N "(cached) $ECHO_C" >&6
8522 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
8523 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
8525 # Is the header compilable?
8526 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
8527 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
8528 cat >conftest.
$ac_ext <<_ACEOF
8529 #line $LINENO "configure"
8530 #include "confdefs.h"
8531 $ac_includes_default
8534 rm -f conftest.
$ac_objext
8535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8536 (eval $ac_compile) 2>&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); } &&
8540 { ac_try
='test -s conftest.$ac_objext'
8541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; }; then
8546 ac_header_compiler
=yes
8548 echo "$as_me: failed program was:" >&5
8549 cat conftest.
$ac_ext >&5
8550 ac_header_compiler
=no
8552 rm -f conftest.
$ac_objext conftest.
$ac_ext
8553 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8554 echo "${ECHO_T}$ac_header_compiler" >&6
8556 # Is the header present?
8557 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
8558 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
8559 cat >conftest.
$ac_ext <<_ACEOF
8560 #line $LINENO "configure"
8561 #include "confdefs.h"
8564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8565 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8567 grep -v '^ *+' conftest.er1
>conftest.err
8569 cat conftest.err
>&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); } >/dev
/null
; then
8572 if test -s conftest.err
; then
8573 ac_cpp_err
=$ac_c_preproc_warn_flag
8580 if test -z "$ac_cpp_err"; then
8581 ac_header_preproc
=yes
8583 echo "$as_me: failed program was:" >&5
8584 cat conftest.
$ac_ext >&5
8585 ac_header_preproc
=no
8587 rm -f conftest.err conftest.
$ac_ext
8588 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8589 echo "${ECHO_T}$ac_header_preproc" >&6
8591 # So? What about this header?
8592 case $ac_header_compiler:$ac_header_preproc in
8594 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
8595 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8596 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
8597 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};;
8599 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
8600 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
8601 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
8602 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
8603 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
8604 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};;
8606 echo "$as_me:$LINENO: checking for tiffio.h" >&5
8607 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
8608 if test "${ac_cv_header_tiffio_h+set}" = set; then
8609 echo $ECHO_N "(cached) $ECHO_C" >&6
8611 ac_cv_header_tiffio_h
=$ac_header_preproc
8613 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
8614 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
8617 if test $ac_cv_header_tiffio_h = yes; then
8619 # At least one tiff package requires the jpeg library.
8620 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
8621 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
8622 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
8623 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
8624 echo $ECHO_N "(cached) $ECHO_C" >&6
8626 ac_check_lib_save_LIBS
=$LIBS
8627 LIBS
="-ltiff $tifflibs $LIBS"
8628 cat >conftest.
$ac_ext <<_ACEOF
8629 #line $LINENO "configure"
8630 #include "confdefs.h"
8632 /* Override any gcc2 internal prototype to avoid an error. */
8636 /* We use char because int might match the return type of a gcc2
8637 builtin and then its argument prototype would still apply. */
8638 char TIFFGetVersion ();
8647 rm -f conftest.
$ac_objext conftest
$ac_exeext
8648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8649 (eval $ac_link) 2>&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } &&
8653 { ac_try
='test -s conftest$ac_exeext'
8654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); }; }; then
8659 ac_cv_lib_tiff_TIFFGetVersion
=yes
8661 echo "$as_me: failed program was:" >&5
8662 cat conftest.
$ac_ext >&5
8663 ac_cv_lib_tiff_TIFFGetVersion
=no
8665 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8666 LIBS
=$ac_check_lib_save_LIBS
8668 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
8669 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
8670 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
8679 if test "${HAVE_TIFF}" = "yes"; then
8681 cat >>confdefs.h
<<\_ACEOF
8688 ### Use -lgif if available, unless `--with-gif=no'.
8690 if test "${HAVE_X11}" = "yes"; then
8691 if test "${with_gif}" != "no"; then
8692 if test "${ac_cv_header_gif_lib_h+set}" = set; then
8693 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
8694 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
8695 if test "${ac_cv_header_gif_lib_h+set}" = set; then
8696 echo $ECHO_N "(cached) $ECHO_C" >&6
8698 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
8699 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
8701 # Is the header compilable?
8702 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
8703 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
8704 cat >conftest.
$ac_ext <<_ACEOF
8705 #line $LINENO "configure"
8706 #include "confdefs.h"
8707 $ac_includes_default
8708 #include <gif_lib.h>
8710 rm -f conftest.
$ac_objext
8711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8712 (eval $ac_compile) 2>&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } &&
8716 { ac_try
='test -s conftest.$ac_objext'
8717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); }; }; then
8722 ac_header_compiler
=yes
8724 echo "$as_me: failed program was:" >&5
8725 cat conftest.
$ac_ext >&5
8726 ac_header_compiler
=no
8728 rm -f conftest.
$ac_objext conftest.
$ac_ext
8729 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8730 echo "${ECHO_T}$ac_header_compiler" >&6
8732 # Is the header present?
8733 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
8734 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
8735 cat >conftest.
$ac_ext <<_ACEOF
8736 #line $LINENO "configure"
8737 #include "confdefs.h"
8738 #include <gif_lib.h>
8740 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8741 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8743 grep -v '^ *+' conftest.er1
>conftest.err
8745 cat conftest.err
>&5
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); } >/dev
/null
; then
8748 if test -s conftest.err
; then
8749 ac_cpp_err
=$ac_c_preproc_warn_flag
8756 if test -z "$ac_cpp_err"; then
8757 ac_header_preproc
=yes
8759 echo "$as_me: failed program was:" >&5
8760 cat conftest.
$ac_ext >&5
8761 ac_header_preproc
=no
8763 rm -f conftest.err conftest.
$ac_ext
8764 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8765 echo "${ECHO_T}$ac_header_preproc" >&6
8767 # So? What about this header?
8768 case $ac_header_compiler:$ac_header_preproc in
8770 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8771 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8772 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
8773 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;};;
8775 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
8776 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
8777 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
8778 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
8779 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
8780 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;};;
8782 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
8783 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
8784 if test "${ac_cv_header_gif_lib_h+set}" = set; then
8785 echo $ECHO_N "(cached) $ECHO_C" >&6
8787 ac_cv_header_gif_lib_h
=$ac_header_preproc
8789 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
8790 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
8793 if test $ac_cv_header_gif_lib_h = yes; then
8794 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
8795 # Earlier versions can crash Emacs.
8796 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
8797 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
8798 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
8799 echo $ECHO_N "(cached) $ECHO_C" >&6
8801 ac_check_lib_save_LIBS
=$LIBS
8802 LIBS
="-lungif $LIBS"
8803 cat >conftest.
$ac_ext <<_ACEOF
8804 #line $LINENO "configure"
8805 #include "confdefs.h"
8807 /* Override any gcc2 internal prototype to avoid an error. */
8811 /* We use char because int might match the return type of a gcc2
8812 builtin and then its argument prototype would still apply. */
8813 char EGifPutExtensionLast ();
8817 EGifPutExtensionLast ();
8822 rm -f conftest.
$ac_objext conftest
$ac_exeext
8823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8824 (eval $ac_link) 2>&5
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); } &&
8828 { ac_try
='test -s conftest$ac_exeext'
8829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); }; }; then
8834 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
8836 echo "$as_me: failed program was:" >&5
8837 cat conftest.
$ac_ext >&5
8838 ac_cv_lib_ungif_EGifPutExtensionLast
=no
8840 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8841 LIBS
=$ac_check_lib_save_LIBS
8843 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
8844 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
8845 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
8854 if test "${HAVE_GIF}" = "yes"; then
8856 cat >>confdefs.h
<<\_ACEOF
8863 ### Use Mac OS X Carbon API to implement GUI.
8865 if test "${with_carbon}" != "no"; then
8866 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8867 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8868 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8869 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8870 echo $ECHO_N "(cached) $ECHO_C" >&6
8872 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8873 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8875 # Is the header compilable?
8876 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8877 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8878 cat >conftest.
$ac_ext <<_ACEOF
8879 #line $LINENO "configure"
8880 #include "confdefs.h"
8881 $ac_includes_default
8882 #include <Carbon/Carbon.h>
8884 rm -f conftest.
$ac_objext
8885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8886 (eval $ac_compile) 2>&5
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); } &&
8890 { ac_try
='test -s conftest.$ac_objext'
8891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); }; }; then
8896 ac_header_compiler
=yes
8898 echo "$as_me: failed program was:" >&5
8899 cat conftest.
$ac_ext >&5
8900 ac_header_compiler
=no
8902 rm -f conftest.
$ac_objext conftest.
$ac_ext
8903 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8904 echo "${ECHO_T}$ac_header_compiler" >&6
8906 # Is the header present?
8907 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8908 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8909 cat >conftest.
$ac_ext <<_ACEOF
8910 #line $LINENO "configure"
8911 #include "confdefs.h"
8912 #include <Carbon/Carbon.h>
8914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8915 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8917 grep -v '^ *+' conftest.er1
>conftest.err
8919 cat conftest.err
>&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); } >/dev
/null
; then
8922 if test -s conftest.err
; then
8923 ac_cpp_err
=$ac_c_preproc_warn_flag
8930 if test -z "$ac_cpp_err"; then
8931 ac_header_preproc
=yes
8933 echo "$as_me: failed program was:" >&5
8934 cat conftest.
$ac_ext >&5
8935 ac_header_preproc
=no
8937 rm -f conftest.err conftest.
$ac_ext
8938 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8939 echo "${ECHO_T}$ac_header_preproc" >&6
8941 # So? What about this header?
8942 case $ac_header_compiler:$ac_header_preproc in
8944 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8945 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8946 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8947 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;};;
8949 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8950 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8951 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8952 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8953 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8954 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;};;
8956 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8957 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8958 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8959 echo $ECHO_N "(cached) $ECHO_C" >&6
8961 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
8963 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8964 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8967 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8974 if test "${HAVE_CARBON}" = "yes"; then
8976 cat >>confdefs.h
<<\_ACEOF
8977 #define HAVE_CARBON 1
8982 ### Use session management (-lSM -lICE) if available
8984 if test "${HAVE_X11}" = "yes"; then
8985 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
8986 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
8987 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
8988 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
8989 echo $ECHO_N "(cached) $ECHO_C" >&6
8991 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
8992 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
8994 # Is the header compilable?
8995 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
8996 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
8997 cat >conftest.
$ac_ext <<_ACEOF
8998 #line $LINENO "configure"
8999 #include "confdefs.h"
9000 $ac_includes_default
9001 #include <X11/SM/SMlib.h>
9003 rm -f conftest.
$ac_objext
9004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9005 (eval $ac_compile) 2>&5
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); } &&
9009 { ac_try
='test -s conftest.$ac_objext'
9010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); }; }; then
9015 ac_header_compiler
=yes
9017 echo "$as_me: failed program was:" >&5
9018 cat conftest.
$ac_ext >&5
9019 ac_header_compiler
=no
9021 rm -f conftest.
$ac_objext conftest.
$ac_ext
9022 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9023 echo "${ECHO_T}$ac_header_compiler" >&6
9025 # Is the header present?
9026 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
9027 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
9028 cat >conftest.
$ac_ext <<_ACEOF
9029 #line $LINENO "configure"
9030 #include "confdefs.h"
9031 #include <X11/SM/SMlib.h>
9033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9034 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9036 grep -v '^ *+' conftest.er1
>conftest.err
9038 cat conftest.err
>&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); } >/dev
/null
; then
9041 if test -s conftest.err
; then
9042 ac_cpp_err
=$ac_c_preproc_warn_flag
9049 if test -z "$ac_cpp_err"; then
9050 ac_header_preproc
=yes
9052 echo "$as_me: failed program was:" >&5
9053 cat conftest.
$ac_ext >&5
9054 ac_header_preproc
=no
9056 rm -f conftest.err conftest.
$ac_ext
9057 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9058 echo "${ECHO_T}$ac_header_preproc" >&6
9060 # So? What about this header?
9061 case $ac_header_compiler:$ac_header_preproc in
9063 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9064 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9065 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
9066 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;};;
9068 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
9069 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
9070 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
9071 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
9072 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
9073 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;};;
9075 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
9076 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
9077 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9080 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
9082 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
9083 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
9086 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
9087 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
9088 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
9089 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
9090 echo $ECHO_N "(cached) $ECHO_C" >&6
9092 ac_check_lib_save_LIBS
=$LIBS
9094 cat >conftest.
$ac_ext <<_ACEOF
9095 #line $LINENO "configure"
9096 #include "confdefs.h"
9098 /* Override any gcc2 internal prototype to avoid an error. */
9102 /* We use char because int might match the return type of a gcc2
9103 builtin and then its argument prototype would still apply. */
9104 char SmcOpenConnection ();
9108 SmcOpenConnection ();
9113 rm -f conftest.
$ac_objext conftest
$ac_exeext
9114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9115 (eval $ac_link) 2>&5
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); } &&
9119 { ac_try
='test -s conftest$ac_exeext'
9120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); }; }; then
9125 ac_cv_lib_SM_SmcOpenConnection
=yes
9127 echo "$as_me: failed program was:" >&5
9128 cat conftest.
$ac_ext >&5
9129 ac_cv_lib_SM_SmcOpenConnection
=no
9131 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9132 LIBS
=$ac_check_lib_save_LIBS
9134 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
9135 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
9136 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
9146 if test "${HAVE_X_SM}" = "yes"; then
9148 cat >>confdefs.h
<<\_ACEOF
9154 *) LIBS
="-lSM -lICE $LIBS" ;;
9159 # If netdb.h doesn't declare h_errno, we must declare it by hand.
9160 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
9161 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
9162 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
9165 cat >conftest.
$ac_ext <<_ACEOF
9166 #line $LINENO "configure"
9167 #include "confdefs.h"
9177 rm -f conftest.
$ac_objext conftest
$ac_exeext
9178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9179 (eval $ac_link) 2>&5
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); } &&
9183 { ac_try
='test -s conftest$ac_exeext'
9184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); }; }; then
9189 emacs_cv_netdb_declares_h_errno
=yes
9191 echo "$as_me: failed program was:" >&5
9192 cat conftest.
$ac_ext >&5
9193 emacs_cv_netdb_declares_h_errno
=no
9195 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9197 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
9198 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
9199 if test $emacs_cv_netdb_declares_h_errno = yes; then
9201 cat >>confdefs.h
<<\_ACEOF
9202 #define HAVE_H_ERRNO 1
9207 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9208 # for constant arguments. Useless!
9209 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9210 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9211 if test "${ac_cv_working_alloca_h+set}" = set; then
9212 echo $ECHO_N "(cached) $ECHO_C" >&6
9214 cat >conftest.
$ac_ext <<_ACEOF
9215 #line $LINENO "configure"
9216 #include "confdefs.h"
9221 char *p = (char *) alloca (2 * sizeof (int));
9226 rm -f conftest.
$ac_objext conftest
$ac_exeext
9227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9228 (eval $ac_link) 2>&5
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); } &&
9232 { ac_try
='test -s conftest$ac_exeext'
9233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); }; }; then
9238 ac_cv_working_alloca_h
=yes
9240 echo "$as_me: failed program was:" >&5
9241 cat conftest.
$ac_ext >&5
9242 ac_cv_working_alloca_h
=no
9244 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9246 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9247 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9248 if test $ac_cv_working_alloca_h = yes; then
9250 cat >>confdefs.h
<<\_ACEOF
9251 #define HAVE_ALLOCA_H 1
9256 echo "$as_me:$LINENO: checking for alloca" >&5
9257 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9258 if test "${ac_cv_func_alloca_works+set}" = set; then
9259 echo $ECHO_N "(cached) $ECHO_C" >&6
9261 cat >conftest.
$ac_ext <<_ACEOF
9262 #line $LINENO "configure"
9263 #include "confdefs.h"
9265 # define alloca __builtin_alloca
9268 # include <malloc.h>
9269 # define alloca _alloca
9272 # include <alloca.h>
9277 # ifndef alloca /* predefined by HP cc +Olibcalls */
9288 char *p = (char *) alloca (1);
9293 rm -f conftest.
$ac_objext conftest
$ac_exeext
9294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9295 (eval $ac_link) 2>&5
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); } &&
9299 { ac_try
='test -s conftest$ac_exeext'
9300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); }; }; then
9305 ac_cv_func_alloca_works
=yes
9307 echo "$as_me: failed program was:" >&5
9308 cat conftest.
$ac_ext >&5
9309 ac_cv_func_alloca_works
=no
9311 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9313 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9314 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9316 if test $ac_cv_func_alloca_works = yes; then
9318 cat >>confdefs.h
<<\_ACEOF
9319 #define HAVE_ALLOCA 1
9323 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9324 # that cause trouble. Some versions do not even contain alloca or
9325 # contain a buggy version. If you still want to use their alloca,
9326 # use ar to extract alloca.o from them instead of compiling alloca.c.
9328 ALLOCA
=alloca.
$ac_objext
9330 cat >>confdefs.h
<<\_ACEOF
9335 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9336 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9337 if test "${ac_cv_os_cray+set}" = set; then
9338 echo $ECHO_N "(cached) $ECHO_C" >&6
9340 cat >conftest.
$ac_ext <<_ACEOF
9341 #line $LINENO "configure"
9342 #include "confdefs.h"
9343 #if defined(CRAY) && ! defined(CRAY2)
9350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9351 $EGREP "webecray" >/dev
/null
2>&1; then
9359 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9360 echo "${ECHO_T}$ac_cv_os_cray" >&6
9361 if test $ac_cv_os_cray = yes; then
9362 for ac_func
in _getb67 GETB67 getb67
; do
9363 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9364 echo "$as_me:$LINENO: checking for $ac_func" >&5
9365 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9366 if eval "test \"\${$as_ac_var+set}\" = set"; then
9367 echo $ECHO_N "(cached) $ECHO_C" >&6
9369 cat >conftest.
$ac_ext <<_ACEOF
9370 #line $LINENO "configure"
9371 #include "confdefs.h"
9372 /* System header to define __stub macros and hopefully few prototypes,
9373 which can conflict with char $ac_func (); below. */
9375 /* Override any gcc2 internal prototype to avoid an error. */
9379 /* We use char because int might match the return type of a gcc2
9380 builtin and then its argument prototype would still apply. */
9387 /* The GNU C library defines this for functions which it implements
9388 to always fail with ENOSYS. Some functions are actually named
9389 something starting with __ and the normal name is an alias. */
9390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9400 rm -f conftest.
$ac_objext conftest
$ac_exeext
9401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9402 (eval $ac_link) 2>&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); } &&
9406 { ac_try
='test -s conftest$ac_exeext'
9407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); }; }; then
9412 eval "$as_ac_var=yes"
9414 echo "$as_me: failed program was:" >&5
9415 cat conftest.
$ac_ext >&5
9416 eval "$as_ac_var=no"
9418 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9421 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9422 if test `eval echo '${'$as_ac_var'}'` = yes; then
9424 cat >>confdefs.h
<<_ACEOF
9425 #define CRAY_STACKSEG_END $ac_func
9434 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9435 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9436 if test "${ac_cv_c_stack_direction+set}" = set; then
9437 echo $ECHO_N "(cached) $ECHO_C" >&6
9439 if test "$cross_compiling" = yes; then
9440 ac_cv_c_stack_direction
=0
9442 cat >conftest.
$ac_ext <<_ACEOF
9443 #line $LINENO "configure"
9444 #include "confdefs.h"
9446 find_stack_direction ()
9448 static char *addr = 0;
9453 return find_stack_direction ();
9456 return (&dummy > addr) ? 1 : -1;
9462 exit (find_stack_direction () < 0);
9465 rm -f conftest
$ac_exeext
9466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9467 (eval $ac_link) 2>&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); }; }; then
9476 ac_cv_c_stack_direction
=1
9478 echo "$as_me: program exited with status $ac_status" >&5
9479 echo "$as_me: failed program was:" >&5
9480 cat conftest.
$ac_ext >&5
9482 ac_cv_c_stack_direction
=-1
9484 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9487 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9488 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9490 cat >>confdefs.h
<<_ACEOF
9491 #define STACK_DIRECTION $ac_cv_c_stack_direction
9498 # fmod, logb, and frexp are found in -lm on most systems.
9499 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
9501 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
9502 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
9503 if test "${ac_cv_lib_m_sqrt+set}" = set; then
9504 echo $ECHO_N "(cached) $ECHO_C" >&6
9506 ac_check_lib_save_LIBS
=$LIBS
9508 cat >conftest.
$ac_ext <<_ACEOF
9509 #line $LINENO "configure"
9510 #include "confdefs.h"
9512 /* Override any gcc2 internal prototype to avoid an error. */
9516 /* We use char because int might match the return type of a gcc2
9517 builtin and then its argument prototype would still apply. */
9527 rm -f conftest.
$ac_objext conftest
$ac_exeext
9528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9529 (eval $ac_link) 2>&5
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); } &&
9533 { ac_try
='test -s conftest$ac_exeext'
9534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); }; }; then
9539 ac_cv_lib_m_sqrt
=yes
9541 echo "$as_me: failed program was:" >&5
9542 cat conftest.
$ac_ext >&5
9545 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9546 LIBS
=$ac_check_lib_save_LIBS
9548 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
9549 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
9550 if test $ac_cv_lib_m_sqrt = yes; then
9551 cat >>confdefs.h
<<_ACEOF
9560 # Check for mail-locking functions in a "mail" library
9562 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
9563 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
9564 if test "${ac_cv_lib_mail_maillock+set}" = set; then
9565 echo $ECHO_N "(cached) $ECHO_C" >&6
9567 ac_check_lib_save_LIBS
=$LIBS
9569 cat >conftest.
$ac_ext <<_ACEOF
9570 #line $LINENO "configure"
9571 #include "confdefs.h"
9573 /* Override any gcc2 internal prototype to avoid an error. */
9577 /* We use char because int might match the return type of a gcc2
9578 builtin and then its argument prototype would still apply. */
9588 rm -f conftest.
$ac_objext conftest
$ac_exeext
9589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9590 (eval $ac_link) 2>&5
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); } &&
9594 { ac_try
='test -s conftest$ac_exeext'
9595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); }; }; then
9600 ac_cv_lib_mail_maillock
=yes
9602 echo "$as_me: failed program was:" >&5
9603 cat conftest.
$ac_ext >&5
9604 ac_cv_lib_mail_maillock
=no
9606 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9607 LIBS
=$ac_check_lib_save_LIBS
9609 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
9610 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
9611 if test $ac_cv_lib_mail_maillock = yes; then
9612 cat >>confdefs.h
<<_ACEOF
9613 #define HAVE_LIBMAIL 1
9621 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
9622 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
9623 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
9624 echo $ECHO_N "(cached) $ECHO_C" >&6
9626 ac_check_lib_save_LIBS
=$LIBS
9627 LIBS
="-llockfile $LIBS"
9628 cat >conftest.
$ac_ext <<_ACEOF
9629 #line $LINENO "configure"
9630 #include "confdefs.h"
9632 /* Override any gcc2 internal prototype to avoid an error. */
9636 /* We use char because int might match the return type of a gcc2
9637 builtin and then its argument prototype would still apply. */
9647 rm -f conftest.
$ac_objext conftest
$ac_exeext
9648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9649 (eval $ac_link) 2>&5
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); } &&
9653 { ac_try
='test -s conftest$ac_exeext'
9654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); }; }; then
9659 ac_cv_lib_lockfile_maillock
=yes
9661 echo "$as_me: failed program was:" >&5
9662 cat conftest.
$ac_ext >&5
9663 ac_cv_lib_lockfile_maillock
=no
9665 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9666 LIBS
=$ac_check_lib_save_LIBS
9668 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
9669 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
9670 if test $ac_cv_lib_lockfile_maillock = yes; then
9671 cat >>confdefs.h
<<_ACEOF
9672 #define HAVE_LIBLOCKFILE 1
9675 LIBS
="-llockfile $LIBS"
9679 # If we have the shared liblockfile, assume we must use it for mail
9680 # locking (e.g. Debian). If we couldn't link against liblockfile
9681 # (no liblockfile.a installed), ensure that we don't need to.
9682 if test "$ac_cv_lib_lockfile_maillock" = no
; then
9683 # Extract the first word of "liblockfile.so", so it can be a program name with args.
9684 set dummy liblockfile.so
; ac_word
=$2
9685 echo "$as_me:$LINENO: checking for $ac_word" >&5
9686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9687 if test "${ac_cv_prog_liblockfile+set}" = set; then
9688 echo $ECHO_N "(cached) $ECHO_C" >&6
9690 if test -n "$liblockfile"; then
9691 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
9693 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9694 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
9695 for as_dir
in $as_dummy
9698 test -z "$as_dir" && as_dir
=.
9699 for ac_exec_ext
in '' $ac_executable_extensions; do
9700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9701 ac_cv_prog_liblockfile
="yes"
9702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9708 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
9711 liblockfile
=$ac_cv_prog_liblockfile
9712 if test -n "$liblockfile"; then
9713 echo "$as_me:$LINENO: result: $liblockfile" >&5
9714 echo "${ECHO_T}$liblockfile" >&6
9716 echo "$as_me:$LINENO: result: no" >&5
9717 echo "${ECHO_T}no" >&6
9720 if test $ac_cv_prog_liblockfile = yes; then
9721 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
9722 This probably means that movemail could lose mail.
9723 There may be a \`development' package to install containing liblockfile." >&5
9724 echo "$as_me: error: Shared liblockfile found but can't link against it.
9725 This probably means that movemail could lose mail.
9726 There may be a \`development' package to install containing liblockfile." >&2;}
9727 { (exit 1); exit 1; }; }
9729 cat >>confdefs.h
<<\_ACEOF
9730 #define LIBMAIL -llockfile
9737 for ac_func
in touchlock
9739 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9740 echo "$as_me:$LINENO: checking for $ac_func" >&5
9741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9742 if eval "test \"\${$as_ac_var+set}\" = set"; then
9743 echo $ECHO_N "(cached) $ECHO_C" >&6
9745 cat >conftest.
$ac_ext <<_ACEOF
9746 #line $LINENO "configure"
9747 #include "confdefs.h"
9748 /* System header to define __stub macros and hopefully few prototypes,
9749 which can conflict with char $ac_func (); below. */
9751 /* Override any gcc2 internal prototype to avoid an error. */
9755 /* We use char because int might match the return type of a gcc2
9756 builtin and then its argument prototype would still apply. */
9763 /* The GNU C library defines this for functions which it implements
9764 to always fail with ENOSYS. Some functions are actually named
9765 something starting with __ and the normal name is an alias. */
9766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9776 rm -f conftest.
$ac_objext conftest
$ac_exeext
9777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9778 (eval $ac_link) 2>&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } &&
9782 { ac_try
='test -s conftest$ac_exeext'
9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; }; then
9788 eval "$as_ac_var=yes"
9790 echo "$as_me: failed program was:" >&5
9791 cat conftest.
$ac_ext >&5
9792 eval "$as_ac_var=no"
9794 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9797 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9798 if test `eval echo '${'$as_ac_var'}'` = yes; then
9799 cat >>confdefs.h
<<_ACEOF
9800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9807 for ac_header
in maillock.h
9809 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9811 echo "$as_me:$LINENO: checking for $ac_header" >&5
9812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9814 echo $ECHO_N "(cached) $ECHO_C" >&6
9816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9819 # Is the header compilable?
9820 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9822 cat >conftest.
$ac_ext <<_ACEOF
9823 #line $LINENO "configure"
9824 #include "confdefs.h"
9825 $ac_includes_default
9826 #include <$ac_header>
9828 rm -f conftest.
$ac_objext
9829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9830 (eval $ac_compile) 2>&5
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); } &&
9834 { ac_try
='test -s conftest.$ac_objext'
9835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); }; }; then
9840 ac_header_compiler
=yes
9842 echo "$as_me: failed program was:" >&5
9843 cat conftest.
$ac_ext >&5
9844 ac_header_compiler
=no
9846 rm -f conftest.
$ac_objext conftest.
$ac_ext
9847 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9848 echo "${ECHO_T}$ac_header_compiler" >&6
9850 # Is the header present?
9851 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9853 cat >conftest.
$ac_ext <<_ACEOF
9854 #line $LINENO "configure"
9855 #include "confdefs.h"
9856 #include <$ac_header>
9858 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9859 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9861 grep -v '^ *+' conftest.er1
>conftest.err
9863 cat conftest.err
>&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); } >/dev
/null
; then
9866 if test -s conftest.err
; then
9867 ac_cpp_err
=$ac_c_preproc_warn_flag
9874 if test -z "$ac_cpp_err"; then
9875 ac_header_preproc
=yes
9877 echo "$as_me: failed program was:" >&5
9878 cat conftest.
$ac_ext >&5
9879 ac_header_preproc
=no
9881 rm -f conftest.err conftest.
$ac_ext
9882 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9883 echo "${ECHO_T}$ac_header_preproc" >&6
9885 # So? What about this header?
9886 case $ac_header_compiler:$ac_header_preproc in
9888 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9889 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9893 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9895 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9896 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9900 echo "$as_me:$LINENO: checking for $ac_header" >&5
9901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9903 echo $ECHO_N "(cached) $ECHO_C" >&6
9905 eval "$as_ac_Header=$ac_header_preproc"
9907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9912 cat >>confdefs.h
<<_ACEOF
9913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9980 for ac_func
in gethostname getdomainname dup2 \
9981 rename closedir mkdir
rmdir sysinfo \
9982 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
9983 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
9984 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
9985 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
9986 sendto recvfrom getsockopt setsockopt getsockname getpeername \
9987 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero
9989 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9990 echo "$as_me:$LINENO: checking for $ac_func" >&5
9991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9992 if eval "test \"\${$as_ac_var+set}\" = set"; then
9993 echo $ECHO_N "(cached) $ECHO_C" >&6
9995 cat >conftest.
$ac_ext <<_ACEOF
9996 #line $LINENO "configure"
9997 #include "confdefs.h"
9998 /* System header to define __stub macros and hopefully few prototypes,
9999 which can conflict with char $ac_func (); below. */
10000 #include <assert.h>
10001 /* Override any gcc2 internal prototype to avoid an error. */
10005 /* We use char because int might match the return type of a gcc2
10006 builtin and then its argument prototype would still apply. */
10013 /* The GNU C library defines this for functions which it implements
10014 to always fail with ENOSYS. Some functions are actually named
10015 something starting with __ and the normal name is an alias. */
10016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10026 rm -f conftest.
$ac_objext conftest
$ac_exeext
10027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10028 (eval $ac_link) 2>&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); } &&
10032 { ac_try
='test -s conftest$ac_exeext'
10033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10034 (eval $ac_try) 2>&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); }; }; then
10038 eval "$as_ac_var=yes"
10040 echo "$as_me: failed program was:" >&5
10041 cat conftest.
$ac_ext >&5
10042 eval "$as_ac_var=no"
10044 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10047 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10048 if test `eval echo '${'$as_ac_var'}'` = yes; then
10049 cat >>confdefs.h
<<_ACEOF
10050 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10058 for ac_header
in sys
/un.h
10060 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10062 echo "$as_me:$LINENO: checking for $ac_header" >&5
10063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10065 echo $ECHO_N "(cached) $ECHO_C" >&6
10067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10068 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10070 # Is the header compilable?
10071 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10072 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10073 cat >conftest.
$ac_ext <<_ACEOF
10074 #line $LINENO "configure"
10075 #include "confdefs.h"
10076 $ac_includes_default
10077 #include <$ac_header>
10079 rm -f conftest.
$ac_objext
10080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10081 (eval $ac_compile) 2>&5
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); } &&
10085 { ac_try
='test -s conftest.$ac_objext'
10086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10087 (eval $ac_try) 2>&5
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); }; }; then
10091 ac_header_compiler
=yes
10093 echo "$as_me: failed program was:" >&5
10094 cat conftest.
$ac_ext >&5
10095 ac_header_compiler
=no
10097 rm -f conftest.
$ac_objext conftest.
$ac_ext
10098 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10099 echo "${ECHO_T}$ac_header_compiler" >&6
10101 # Is the header present?
10102 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10104 cat >conftest.
$ac_ext <<_ACEOF
10105 #line $LINENO "configure"
10106 #include "confdefs.h"
10107 #include <$ac_header>
10109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10110 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10112 grep -v '^ *+' conftest.er1
>conftest.err
10114 cat conftest.err
>&5
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); } >/dev
/null
; then
10117 if test -s conftest.err
; then
10118 ac_cpp_err
=$ac_c_preproc_warn_flag
10125 if test -z "$ac_cpp_err"; then
10126 ac_header_preproc
=yes
10128 echo "$as_me: failed program was:" >&5
10129 cat conftest.
$ac_ext >&5
10130 ac_header_preproc
=no
10132 rm -f conftest.err conftest.
$ac_ext
10133 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10134 echo "${ECHO_T}$ac_header_preproc" >&6
10136 # So? What about this header?
10137 case $ac_header_compiler:$ac_header_preproc in
10139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10144 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10145 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10146 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10147 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10149 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10151 echo "$as_me:$LINENO: checking for $ac_header" >&5
10152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 eval "$as_ac_Header=$ac_header_preproc"
10158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10163 cat >>confdefs.h
<<_ACEOF
10164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10174 for ac_header
in sys
/time.h unistd.h
10176 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10178 echo "$as_me:$LINENO: checking for $ac_header" >&5
10179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10186 # Is the header compilable?
10187 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10188 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10189 cat >conftest.
$ac_ext <<_ACEOF
10190 #line $LINENO "configure"
10191 #include "confdefs.h"
10192 $ac_includes_default
10193 #include <$ac_header>
10195 rm -f conftest.
$ac_objext
10196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10197 (eval $ac_compile) 2>&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } &&
10201 { ac_try
='test -s conftest.$ac_objext'
10202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203 (eval $ac_try) 2>&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; }; then
10207 ac_header_compiler
=yes
10209 echo "$as_me: failed program was:" >&5
10210 cat conftest.
$ac_ext >&5
10211 ac_header_compiler
=no
10213 rm -f conftest.
$ac_objext conftest.
$ac_ext
10214 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10215 echo "${ECHO_T}$ac_header_compiler" >&6
10217 # Is the header present?
10218 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10220 cat >conftest.
$ac_ext <<_ACEOF
10221 #line $LINENO "configure"
10222 #include "confdefs.h"
10223 #include <$ac_header>
10225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10226 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10228 grep -v '^ *+' conftest.er1
>conftest.err
10230 cat conftest.err
>&5
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); } >/dev
/null
; then
10233 if test -s conftest.err
; then
10234 ac_cpp_err
=$ac_c_preproc_warn_flag
10241 if test -z "$ac_cpp_err"; then
10242 ac_header_preproc
=yes
10244 echo "$as_me: failed program was:" >&5
10245 cat conftest.
$ac_ext >&5
10246 ac_header_preproc
=no
10248 rm -f conftest.err conftest.
$ac_ext
10249 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10250 echo "${ECHO_T}$ac_header_preproc" >&6
10252 # So? What about this header?
10253 case $ac_header_compiler:$ac_header_preproc in
10255 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10256 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10260 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10261 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10262 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10263 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10267 echo "$as_me:$LINENO: checking for $ac_header" >&5
10268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10270 echo $ECHO_N "(cached) $ECHO_C" >&6
10272 eval "$as_ac_Header=$ac_header_preproc"
10274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10279 cat >>confdefs.h
<<_ACEOF
10280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10288 for ac_func
in alarm
10290 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10291 echo "$as_me:$LINENO: checking for $ac_func" >&5
10292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10293 if eval "test \"\${$as_ac_var+set}\" = set"; then
10294 echo $ECHO_N "(cached) $ECHO_C" >&6
10296 cat >conftest.
$ac_ext <<_ACEOF
10297 #line $LINENO "configure"
10298 #include "confdefs.h"
10299 /* System header to define __stub macros and hopefully few prototypes,
10300 which can conflict with char $ac_func (); below. */
10301 #include <assert.h>
10302 /* Override any gcc2 internal prototype to avoid an error. */
10306 /* We use char because int might match the return type of a gcc2
10307 builtin and then its argument prototype would still apply. */
10314 /* The GNU C library defines this for functions which it implements
10315 to always fail with ENOSYS. Some functions are actually named
10316 something starting with __ and the normal name is an alias. */
10317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10327 rm -f conftest.
$ac_objext conftest
$ac_exeext
10328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10329 (eval $ac_link) 2>&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } &&
10333 { ac_try
='test -s conftest$ac_exeext'
10334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10335 (eval $ac_try) 2>&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; }; then
10339 eval "$as_ac_var=yes"
10341 echo "$as_me: failed program was:" >&5
10342 cat conftest.
$ac_ext >&5
10343 eval "$as_ac_var=no"
10345 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10348 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10349 if test `eval echo '${'$as_ac_var'}'` = yes; then
10350 cat >>confdefs.h
<<_ACEOF
10351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10357 echo "$as_me:$LINENO: checking for working mktime" >&5
10358 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
10359 if test "${ac_cv_func_working_mktime+set}" = set; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
10362 if test "$cross_compiling" = yes; then
10363 ac_cv_func_working_mktime
=no
10365 cat >conftest.
$ac_ext <<_ACEOF
10366 #line $LINENO "configure"
10367 #include "confdefs.h"
10368 /* Test program from Paul Eggert and Tony Leneis. */
10369 #if TIME_WITH_SYS_TIME
10370 # include <sys/time.h>
10373 # if HAVE_SYS_TIME_H
10374 # include <sys/time.h>
10381 # include <unistd.h>
10385 # define alarm(X) /* empty */
10388 /* Work around redefinition to rpl_putenv by other config tests. */
10391 static time_t time_t_max;
10393 /* Values we'll use to set the TZ environment variable. */
10394 static const char *const tz_strings[] = {
10395 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
10396 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10398 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10400 /* Fail if mktime fails to convert a date in the spring-forward gap.
10401 Based on a problem report from Andreas Jaeger. */
10403 spring_forward_gap ()
10405 /* glibc (up to about 1998-10-07) failed this test. */
10408 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10409 instead of "TZ=America/Vancouver" in order to detect the bug even
10410 on systems that don't support the Olson extension, or don't have the
10411 full zoneinfo tables installed. */
10412 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
10421 if (mktime (&tm) == (time_t)-1)
10430 if ((lt = localtime (&now)) && mktime (lt) != now)
10432 now = time_t_max - now;
10433 if ((lt = localtime (&now)) && mktime (lt) != now)
10440 /* Based on code from Ariel Faigon. */
10450 if (tm.tm_mon != 2 || tm.tm_mday != 31)
10460 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
10461 now = mktime (&tm);
10462 if (now != (time_t) -1)
10464 struct tm *lt = localtime (&now);
10466 && lt->tm_year == tm.tm_year
10467 && lt->tm_mon == tm.tm_mon
10468 && lt->tm_mday == tm.tm_mday
10469 && lt->tm_hour == tm.tm_hour
10470 && lt->tm_min == tm.tm_min
10471 && lt->tm_sec == tm.tm_sec
10472 && lt->tm_yday == tm.tm_yday
10473 && lt->tm_wday == tm.tm_wday
10474 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
10475 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
10486 /* This test makes some buggy mktime implementations loop.
10487 Give up after 60 seconds; a mktime slower than that
10488 isn't worth using anyway. */
10491 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
10494 delta = time_t_max / 997; /* a suitable prime number */
10495 for (i = 0; i < N_STRINGS; i++)
10498 putenv (tz_strings[i]);
10500 for (t = 0; t <= time_t_max - delta; t += delta)
10502 mktime_test ((time_t) 60 * 60);
10503 mktime_test ((time_t) 60 * 60 * 24);
10505 for (j = 1; 0 < j; j *= 2)
10507 bigtime_test (j - 1);
10510 spring_forward_gap ();
10514 rm -f conftest
$ac_exeext
10515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10516 (eval $ac_link) 2>&5
10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10521 (eval $ac_try) 2>&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); }; }; then
10525 ac_cv_func_working_mktime
=yes
10527 echo "$as_me: program exited with status $ac_status" >&5
10528 echo "$as_me: failed program was:" >&5
10529 cat conftest.
$ac_ext >&5
10530 ( exit $ac_status )
10531 ac_cv_func_working_mktime
=no
10533 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10536 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
10537 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
10538 if test $ac_cv_func_working_mktime = no
; then
10539 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
10542 if test "$ac_cv_func_working_mktime" = no
; then
10544 cat >>confdefs.h
<<\_ACEOF
10545 #define BROKEN_MKTIME 1
10550 ac_have_func
=no
# yes means we've found a way to get the load average.
10552 # Make sure getloadavg.c is where it belongs, at configure-time.
10553 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
10554 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
10555 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
10556 { (exit 1); exit 1; }; }
10560 # Check for getloadavg, but be sure not to touch the cache variable.
10561 (echo "$as_me:$LINENO: checking for getloadavg" >&5
10562 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
10563 if test "${ac_cv_func_getloadavg+set}" = set; then
10564 echo $ECHO_N "(cached) $ECHO_C" >&6
10566 cat >conftest.
$ac_ext <<_ACEOF
10567 #line $LINENO "configure"
10568 #include "confdefs.h"
10569 /* System header to define __stub macros and hopefully few prototypes,
10570 which can conflict with char getloadavg (); below. */
10571 #include <assert.h>
10572 /* Override any gcc2 internal prototype to avoid an error. */
10576 /* We use char because int might match the return type of a gcc2
10577 builtin and then its argument prototype would still apply. */
10578 char getloadavg ();
10584 /* The GNU C library defines this for functions which it implements
10585 to always fail with ENOSYS. Some functions are actually named
10586 something starting with __ and the normal name is an alias. */
10587 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
10597 rm -f conftest.
$ac_objext conftest
$ac_exeext
10598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10599 (eval $ac_link) 2>&5
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); } &&
10603 { ac_try
='test -s conftest$ac_exeext'
10604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605 (eval $ac_try) 2>&5
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); }; }; then
10609 ac_cv_func_getloadavg
=yes
10611 echo "$as_me: failed program was:" >&5
10612 cat conftest.
$ac_ext >&5
10613 ac_cv_func_getloadavg
=no
10615 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10617 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
10618 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
10619 if test $ac_cv_func_getloadavg = yes; then
10624 ) && ac_have_func
=yes
10626 # On HPUX9, an unprivileged user can get load averages through this function.
10628 for ac_func
in pstat_getdynamic
10630 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10631 echo "$as_me:$LINENO: checking for $ac_func" >&5
10632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10633 if eval "test \"\${$as_ac_var+set}\" = set"; then
10634 echo $ECHO_N "(cached) $ECHO_C" >&6
10636 cat >conftest.
$ac_ext <<_ACEOF
10637 #line $LINENO "configure"
10638 #include "confdefs.h"
10639 /* System header to define __stub macros and hopefully few prototypes,
10640 which can conflict with char $ac_func (); below. */
10641 #include <assert.h>
10642 /* Override any gcc2 internal prototype to avoid an error. */
10646 /* We use char because int might match the return type of a gcc2
10647 builtin and then its argument prototype would still apply. */
10654 /* The GNU C library defines this for functions which it implements
10655 to always fail with ENOSYS. Some functions are actually named
10656 something starting with __ and the normal name is an alias. */
10657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10667 rm -f conftest.
$ac_objext conftest
$ac_exeext
10668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10669 (eval $ac_link) 2>&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); } &&
10673 { ac_try
='test -s conftest$ac_exeext'
10674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10675 (eval $ac_try) 2>&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); }; }; then
10679 eval "$as_ac_var=yes"
10681 echo "$as_me: failed program was:" >&5
10682 cat conftest.
$ac_ext >&5
10683 eval "$as_ac_var=no"
10685 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10688 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10689 if test `eval echo '${'$as_ac_var'}'` = yes; then
10690 cat >>confdefs.h
<<_ACEOF
10691 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10698 # Solaris has libkstat which does not require root.
10700 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
10701 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
10702 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
10703 echo $ECHO_N "(cached) $ECHO_C" >&6
10705 ac_check_lib_save_LIBS
=$LIBS
10706 LIBS
="-lkstat $LIBS"
10707 cat >conftest.
$ac_ext <<_ACEOF
10708 #line $LINENO "configure"
10709 #include "confdefs.h"
10711 /* Override any gcc2 internal prototype to avoid an error. */
10715 /* We use char because int might match the return type of a gcc2
10716 builtin and then its argument prototype would still apply. */
10717 char kstat_open ();
10726 rm -f conftest.
$ac_objext conftest
$ac_exeext
10727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10728 (eval $ac_link) 2>&5
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); } &&
10732 { ac_try
='test -s conftest$ac_exeext'
10733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10734 (eval $ac_try) 2>&5
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); }; }; then
10738 ac_cv_lib_kstat_kstat_open
=yes
10740 echo "$as_me: failed program was:" >&5
10741 cat conftest.
$ac_ext >&5
10742 ac_cv_lib_kstat_kstat_open
=no
10744 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10745 LIBS
=$ac_check_lib_save_LIBS
10747 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
10748 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
10749 if test $ac_cv_lib_kstat_kstat_open = yes; then
10750 cat >>confdefs.h
<<_ACEOF
10751 #define HAVE_LIBKSTAT 1
10754 LIBS
="-lkstat $LIBS"
10758 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
10760 # Some systems with -lutil have (and need) -lkvm as well, some do not.
10761 # On Solaris, -lkvm requires nlist from -lelf, so check that first
10762 # to get the right answer into the cache.
10763 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
10764 if test $ac_have_func = no
; then
10765 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
10766 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
10767 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
10768 echo $ECHO_N "(cached) $ECHO_C" >&6
10770 ac_check_lib_save_LIBS
=$LIBS
10772 cat >conftest.
$ac_ext <<_ACEOF
10773 #line $LINENO "configure"
10774 #include "confdefs.h"
10776 /* Override any gcc2 internal prototype to avoid an error. */
10780 /* We use char because int might match the return type of a gcc2
10781 builtin and then its argument prototype would still apply. */
10791 rm -f conftest.
$ac_objext conftest
$ac_exeext
10792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10793 (eval $ac_link) 2>&5
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); } &&
10797 { ac_try
='test -s conftest$ac_exeext'
10798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10799 (eval $ac_try) 2>&5
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }; }; then
10803 ac_cv_lib_elf_elf_begin
=yes
10805 echo "$as_me: failed program was:" >&5
10806 cat conftest.
$ac_ext >&5
10807 ac_cv_lib_elf_elf_begin
=no
10809 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10810 LIBS
=$ac_check_lib_save_LIBS
10812 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
10813 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
10814 if test $ac_cv_lib_elf_elf_begin = yes; then
10819 if test $ac_have_func = no
; then
10820 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
10821 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
10822 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10825 ac_check_lib_save_LIBS
=$LIBS
10827 cat >conftest.
$ac_ext <<_ACEOF
10828 #line $LINENO "configure"
10829 #include "confdefs.h"
10831 /* Override any gcc2 internal prototype to avoid an error. */
10835 /* We use char because int might match the return type of a gcc2
10836 builtin and then its argument prototype would still apply. */
10846 rm -f conftest.
$ac_objext conftest
$ac_exeext
10847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10848 (eval $ac_link) 2>&5
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); } &&
10852 { ac_try
='test -s conftest$ac_exeext'
10853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10854 (eval $ac_try) 2>&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); }; }; then
10858 ac_cv_lib_kvm_kvm_open
=yes
10860 echo "$as_me: failed program was:" >&5
10861 cat conftest.
$ac_ext >&5
10862 ac_cv_lib_kvm_kvm_open
=no
10864 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10865 LIBS
=$ac_check_lib_save_LIBS
10867 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
10868 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
10869 if test $ac_cv_lib_kvm_kvm_open = yes; then
10873 # Check for the 4.4BSD definition of getloadavg.
10874 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
10875 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
10876 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
10877 echo $ECHO_N "(cached) $ECHO_C" >&6
10879 ac_check_lib_save_LIBS
=$LIBS
10880 LIBS
="-lutil $LIBS"
10881 cat >conftest.
$ac_ext <<_ACEOF
10882 #line $LINENO "configure"
10883 #include "confdefs.h"
10885 /* Override any gcc2 internal prototype to avoid an error. */
10889 /* We use char because int might match the return type of a gcc2
10890 builtin and then its argument prototype would still apply. */
10891 char getloadavg ();
10900 rm -f conftest.
$ac_objext conftest
$ac_exeext
10901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10902 (eval $ac_link) 2>&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); } &&
10906 { ac_try
='test -s conftest$ac_exeext'
10907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10908 (eval $ac_try) 2>&5
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); }; }; then
10912 ac_cv_lib_util_getloadavg
=yes
10914 echo "$as_me: failed program was:" >&5
10915 cat conftest.
$ac_ext >&5
10916 ac_cv_lib_util_getloadavg
=no
10918 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10919 LIBS
=$ac_check_lib_save_LIBS
10921 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
10922 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
10923 if test $ac_cv_lib_util_getloadavg = yes; then
10924 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
10929 if test $ac_have_func = no
; then
10930 # There is a commonly available library for RS/6000 AIX.
10931 # Since it is not a standard part of AIX, it might be installed locally.
10932 ac_getloadavg_LIBS
=$LIBS
10933 LIBS
="-L/usr/local/lib $LIBS"
10934 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
10935 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
10936 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10939 ac_check_lib_save_LIBS
=$LIBS
10940 LIBS
="-lgetloadavg $LIBS"
10941 cat >conftest.
$ac_ext <<_ACEOF
10942 #line $LINENO "configure"
10943 #include "confdefs.h"
10945 /* Override any gcc2 internal prototype to avoid an error. */
10949 /* We use char because int might match the return type of a gcc2
10950 builtin and then its argument prototype would still apply. */
10951 char getloadavg ();
10960 rm -f conftest.
$ac_objext conftest
$ac_exeext
10961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10962 (eval $ac_link) 2>&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); } &&
10966 { ac_try
='test -s conftest$ac_exeext'
10967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10968 (eval $ac_try) 2>&5
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); }; }; then
10972 ac_cv_lib_getloadavg_getloadavg
=yes
10974 echo "$as_me: failed program was:" >&5
10975 cat conftest.
$ac_ext >&5
10976 ac_cv_lib_getloadavg_getloadavg
=no
10978 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10979 LIBS
=$ac_check_lib_save_LIBS
10981 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
10982 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
10983 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
10984 LIBS
="-lgetloadavg $LIBS"
10986 LIBS
=$ac_getloadavg_LIBS
10991 # Make sure it is really in the library, if we think we found it,
10992 # otherwise set up the replacement function.
10994 for ac_func
in getloadavg
10996 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10997 echo "$as_me:$LINENO: checking for $ac_func" >&5
10998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10999 if eval "test \"\${$as_ac_var+set}\" = set"; then
11000 echo $ECHO_N "(cached) $ECHO_C" >&6
11002 cat >conftest.
$ac_ext <<_ACEOF
11003 #line $LINENO "configure"
11004 #include "confdefs.h"
11005 /* System header to define __stub macros and hopefully few prototypes,
11006 which can conflict with char $ac_func (); below. */
11007 #include <assert.h>
11008 /* Override any gcc2 internal prototype to avoid an error. */
11012 /* We use char because int might match the return type of a gcc2
11013 builtin and then its argument prototype would still apply. */
11020 /* The GNU C library defines this for functions which it implements
11021 to always fail with ENOSYS. Some functions are actually named
11022 something starting with __ and the normal name is an alias. */
11023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11033 rm -f conftest.
$ac_objext conftest
$ac_exeext
11034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11035 (eval $ac_link) 2>&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } &&
11039 { ac_try
='test -s conftest$ac_exeext'
11040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11041 (eval $ac_try) 2>&5
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); }; }; then
11045 eval "$as_ac_var=yes"
11047 echo "$as_me: failed program was:" >&5
11048 cat conftest.
$ac_ext >&5
11049 eval "$as_ac_var=no"
11051 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11054 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11055 if test `eval echo '${'$as_ac_var'}'` = yes; then
11056 cat >>confdefs.h
<<_ACEOF
11057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11061 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
11063 cat >>confdefs.h
<<\_ACEOF
11064 #define C_GETLOADAVG 1
11067 # Figure out what our getloadavg.c needs.
11069 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11070 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
11071 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
11072 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11073 echo $ECHO_N "(cached) $ECHO_C" >&6
11075 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
11076 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
11078 # Is the header compilable?
11079 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
11080 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
11081 cat >conftest.
$ac_ext <<_ACEOF
11082 #line $LINENO "configure"
11083 #include "confdefs.h"
11084 $ac_includes_default
11085 #include <sys/dg_sys_info.h>
11087 rm -f conftest.
$ac_objext
11088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11089 (eval $ac_compile) 2>&5
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); } &&
11093 { ac_try
='test -s conftest.$ac_objext'
11094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11095 (eval $ac_try) 2>&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); }; }; then
11099 ac_header_compiler
=yes
11101 echo "$as_me: failed program was:" >&5
11102 cat conftest.
$ac_ext >&5
11103 ac_header_compiler
=no
11105 rm -f conftest.
$ac_objext conftest.
$ac_ext
11106 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11107 echo "${ECHO_T}$ac_header_compiler" >&6
11109 # Is the header present?
11110 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
11111 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
11112 cat >conftest.
$ac_ext <<_ACEOF
11113 #line $LINENO "configure"
11114 #include "confdefs.h"
11115 #include <sys/dg_sys_info.h>
11117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11118 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11120 grep -v '^ *+' conftest.er1
>conftest.err
11122 cat conftest.err
>&5
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); } >/dev
/null
; then
11125 if test -s conftest.err
; then
11126 ac_cpp_err
=$ac_c_preproc_warn_flag
11133 if test -z "$ac_cpp_err"; then
11134 ac_header_preproc
=yes
11136 echo "$as_me: failed program was:" >&5
11137 cat conftest.
$ac_ext >&5
11138 ac_header_preproc
=no
11140 rm -f conftest.err conftest.
$ac_ext
11141 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11142 echo "${ECHO_T}$ac_header_preproc" >&6
11144 # So? What about this header?
11145 case $ac_header_compiler:$ac_header_preproc in
11147 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
11148 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11149 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
11150 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
11152 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
11153 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
11154 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
11155 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
11156 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
11157 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
11159 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
11160 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
11161 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11162 echo $ECHO_N "(cached) $ECHO_C" >&6
11164 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
11166 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
11167 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
11170 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
11173 cat >>confdefs.h
<<\_ACEOF
11178 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
11179 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
11180 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11183 ac_check_lib_save_LIBS
=$LIBS
11185 cat >conftest.
$ac_ext <<_ACEOF
11186 #line $LINENO "configure"
11187 #include "confdefs.h"
11189 /* Override any gcc2 internal prototype to avoid an error. */
11193 /* We use char because int might match the return type of a gcc2
11194 builtin and then its argument prototype would still apply. */
11195 char dg_sys_info ();
11204 rm -f conftest.
$ac_objext conftest
$ac_exeext
11205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11206 (eval $ac_link) 2>&5
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); } &&
11210 { ac_try
='test -s conftest$ac_exeext'
11211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11212 (eval $ac_try) 2>&5
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); }; }; then
11216 ac_cv_lib_dgc_dg_sys_info
=yes
11218 echo "$as_me: failed program was:" >&5
11219 cat conftest.
$ac_ext >&5
11220 ac_cv_lib_dgc_dg_sys_info
=no
11222 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11223 LIBS
=$ac_check_lib_save_LIBS
11225 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11226 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
11227 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
11228 cat >>confdefs.h
<<_ACEOF
11229 #define HAVE_LIBDGC 1
11240 if test "${ac_cv_header_locale_h+set}" = set; then
11241 echo "$as_me:$LINENO: checking for locale.h" >&5
11242 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
11243 if test "${ac_cv_header_locale_h+set}" = set; then
11244 echo $ECHO_N "(cached) $ECHO_C" >&6
11246 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
11247 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
11249 # Is the header compilable?
11250 echo "$as_me:$LINENO: checking locale.h usability" >&5
11251 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
11252 cat >conftest.
$ac_ext <<_ACEOF
11253 #line $LINENO "configure"
11254 #include "confdefs.h"
11255 $ac_includes_default
11256 #include <locale.h>
11258 rm -f conftest.
$ac_objext
11259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11260 (eval $ac_compile) 2>&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); } &&
11264 { ac_try
='test -s conftest.$ac_objext'
11265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11266 (eval $ac_try) 2>&5
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); }; }; then
11270 ac_header_compiler
=yes
11272 echo "$as_me: failed program was:" >&5
11273 cat conftest.
$ac_ext >&5
11274 ac_header_compiler
=no
11276 rm -f conftest.
$ac_objext conftest.
$ac_ext
11277 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11278 echo "${ECHO_T}$ac_header_compiler" >&6
11280 # Is the header present?
11281 echo "$as_me:$LINENO: checking locale.h presence" >&5
11282 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
11283 cat >conftest.
$ac_ext <<_ACEOF
11284 #line $LINENO "configure"
11285 #include "confdefs.h"
11286 #include <locale.h>
11288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11289 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11291 grep -v '^ *+' conftest.er1
>conftest.err
11293 cat conftest.err
>&5
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); } >/dev
/null
; then
11296 if test -s conftest.err
; then
11297 ac_cpp_err
=$ac_c_preproc_warn_flag
11304 if test -z "$ac_cpp_err"; then
11305 ac_header_preproc
=yes
11307 echo "$as_me: failed program was:" >&5
11308 cat conftest.
$ac_ext >&5
11309 ac_header_preproc
=no
11311 rm -f conftest.err conftest.
$ac_ext
11312 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11313 echo "${ECHO_T}$ac_header_preproc" >&6
11315 # So? What about this header?
11316 case $ac_header_compiler:$ac_header_preproc in
11318 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
11319 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11320 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
11321 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
11323 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
11324 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
11325 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
11326 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
11327 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
11328 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
11330 echo "$as_me:$LINENO: checking for locale.h" >&5
11331 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
11332 if test "${ac_cv_header_locale_h+set}" = set; then
11333 echo $ECHO_N "(cached) $ECHO_C" >&6
11335 ac_cv_header_locale_h
=$ac_header_preproc
11337 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
11338 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
11344 for ac_func
in setlocale
11346 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11347 echo "$as_me:$LINENO: checking for $ac_func" >&5
11348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11349 if eval "test \"\${$as_ac_var+set}\" = set"; then
11350 echo $ECHO_N "(cached) $ECHO_C" >&6
11352 cat >conftest.
$ac_ext <<_ACEOF
11353 #line $LINENO "configure"
11354 #include "confdefs.h"
11355 /* System header to define __stub macros and hopefully few prototypes,
11356 which can conflict with char $ac_func (); below. */
11357 #include <assert.h>
11358 /* Override any gcc2 internal prototype to avoid an error. */
11362 /* We use char because int might match the return type of a gcc2
11363 builtin and then its argument prototype would still apply. */
11370 /* The GNU C library defines this for functions which it implements
11371 to always fail with ENOSYS. Some functions are actually named
11372 something starting with __ and the normal name is an alias. */
11373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11383 rm -f conftest.
$ac_objext conftest
$ac_exeext
11384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11385 (eval $ac_link) 2>&5
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } &&
11389 { ac_try
='test -s conftest$ac_exeext'
11390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391 (eval $ac_try) 2>&5
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; }; then
11395 eval "$as_ac_var=yes"
11397 echo "$as_me: failed program was:" >&5
11398 cat conftest.
$ac_ext >&5
11399 eval "$as_ac_var=no"
11401 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11404 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11405 if test `eval echo '${'$as_ac_var'}'` = yes; then
11406 cat >>confdefs.h
<<_ACEOF
11407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11414 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11415 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11416 # Irix 4.0.5F has the header but not the library.
11417 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
11420 cat >>confdefs.h
<<\_ACEOF
11426 if test $ac_have_func = no
; then
11427 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11428 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
11429 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
11430 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11431 echo $ECHO_N "(cached) $ECHO_C" >&6
11433 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
11434 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
11436 # Is the header compilable?
11437 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
11438 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
11439 cat >conftest.
$ac_ext <<_ACEOF
11440 #line $LINENO "configure"
11441 #include "confdefs.h"
11442 $ac_includes_default
11443 #include <inq_stats/cpustats.h>
11445 rm -f conftest.
$ac_objext
11446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11447 (eval $ac_compile) 2>&5
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); } &&
11451 { ac_try
='test -s conftest.$ac_objext'
11452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11453 (eval $ac_try) 2>&5
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); }; }; then
11457 ac_header_compiler
=yes
11459 echo "$as_me: failed program was:" >&5
11460 cat conftest.
$ac_ext >&5
11461 ac_header_compiler
=no
11463 rm -f conftest.
$ac_objext conftest.
$ac_ext
11464 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11465 echo "${ECHO_T}$ac_header_compiler" >&6
11467 # Is the header present?
11468 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
11469 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
11470 cat >conftest.
$ac_ext <<_ACEOF
11471 #line $LINENO "configure"
11472 #include "confdefs.h"
11473 #include <inq_stats/cpustats.h>
11475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11476 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11478 grep -v '^ *+' conftest.er1
>conftest.err
11480 cat conftest.err
>&5
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); } >/dev
/null
; then
11483 if test -s conftest.err
; then
11484 ac_cpp_err
=$ac_c_preproc_warn_flag
11491 if test -z "$ac_cpp_err"; then
11492 ac_header_preproc
=yes
11494 echo "$as_me: failed program was:" >&5
11495 cat conftest.
$ac_ext >&5
11496 ac_header_preproc
=no
11498 rm -f conftest.err conftest.
$ac_ext
11499 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11500 echo "${ECHO_T}$ac_header_preproc" >&6
11502 # So? What about this header?
11503 case $ac_header_compiler:$ac_header_preproc in
11505 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
11506 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11507 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
11508 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11510 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
11511 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
11512 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
11513 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
11514 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
11515 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11517 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
11518 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
11519 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11520 echo $ECHO_N "(cached) $ECHO_C" >&6
11522 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
11524 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
11525 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
11528 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
11531 cat >>confdefs.h
<<\_ACEOF
11536 cat >>confdefs.h
<<\_ACEOF
11545 if test $ac_have_func = no
; then
11546 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11547 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11548 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
11549 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11550 echo $ECHO_N "(cached) $ECHO_C" >&6
11552 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
11553 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
11555 # Is the header compilable?
11556 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
11557 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
11558 cat >conftest.
$ac_ext <<_ACEOF
11559 #line $LINENO "configure"
11560 #include "confdefs.h"
11561 $ac_includes_default
11562 #include <sys/cpustats.h>
11564 rm -f conftest.
$ac_objext
11565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11566 (eval $ac_compile) 2>&5
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); } &&
11570 { ac_try
='test -s conftest.$ac_objext'
11571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572 (eval $ac_try) 2>&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; }; then
11576 ac_header_compiler
=yes
11578 echo "$as_me: failed program was:" >&5
11579 cat conftest.
$ac_ext >&5
11580 ac_header_compiler
=no
11582 rm -f conftest.
$ac_objext conftest.
$ac_ext
11583 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11584 echo "${ECHO_T}$ac_header_compiler" >&6
11586 # Is the header present?
11587 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
11588 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
11589 cat >conftest.
$ac_ext <<_ACEOF
11590 #line $LINENO "configure"
11591 #include "confdefs.h"
11592 #include <sys/cpustats.h>
11594 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11595 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11597 grep -v '^ *+' conftest.er1
>conftest.err
11599 cat conftest.err
>&5
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); } >/dev
/null
; then
11602 if test -s conftest.err
; then
11603 ac_cpp_err
=$ac_c_preproc_warn_flag
11610 if test -z "$ac_cpp_err"; then
11611 ac_header_preproc
=yes
11613 echo "$as_me: failed program was:" >&5
11614 cat conftest.
$ac_ext >&5
11615 ac_header_preproc
=no
11617 rm -f conftest.err conftest.
$ac_ext
11618 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11619 echo "${ECHO_T}$ac_header_preproc" >&6
11621 # So? What about this header?
11622 case $ac_header_compiler:$ac_header_preproc in
11624 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
11625 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11626 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
11627 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11629 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
11630 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
11631 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
11632 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
11633 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
11634 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11636 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11637 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
11638 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11641 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
11643 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
11644 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
11647 if test $ac_cv_header_sys_cpustats_h = yes; then
11648 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
11657 if test $ac_have_func = no
; then
11659 for ac_header
in mach
/mach.h
11661 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11663 echo "$as_me:$LINENO: checking for $ac_header" >&5
11664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11666 echo $ECHO_N "(cached) $ECHO_C" >&6
11668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11671 # Is the header compilable?
11672 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11674 cat >conftest.
$ac_ext <<_ACEOF
11675 #line $LINENO "configure"
11676 #include "confdefs.h"
11677 $ac_includes_default
11678 #include <$ac_header>
11680 rm -f conftest.
$ac_objext
11681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11682 (eval $ac_compile) 2>&5
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); } &&
11686 { ac_try
='test -s conftest.$ac_objext'
11687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11688 (eval $ac_try) 2>&5
11690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691 (exit $ac_status); }; }; then
11692 ac_header_compiler
=yes
11694 echo "$as_me: failed program was:" >&5
11695 cat conftest.
$ac_ext >&5
11696 ac_header_compiler
=no
11698 rm -f conftest.
$ac_objext conftest.
$ac_ext
11699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11700 echo "${ECHO_T}$ac_header_compiler" >&6
11702 # Is the header present?
11703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11705 cat >conftest.
$ac_ext <<_ACEOF
11706 #line $LINENO "configure"
11707 #include "confdefs.h"
11708 #include <$ac_header>
11710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11711 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11713 grep -v '^ *+' conftest.er1
>conftest.err
11715 cat conftest.err
>&5
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } >/dev
/null
; then
11718 if test -s conftest.err
; then
11719 ac_cpp_err
=$ac_c_preproc_warn_flag
11726 if test -z "$ac_cpp_err"; then
11727 ac_header_preproc
=yes
11729 echo "$as_me: failed program was:" >&5
11730 cat conftest.
$ac_ext >&5
11731 ac_header_preproc
=no
11733 rm -f conftest.err conftest.
$ac_ext
11734 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11735 echo "${ECHO_T}$ac_header_preproc" >&6
11737 # So? What about this header?
11738 case $ac_header_compiler:$ac_header_preproc in
11740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11743 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11748 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11750 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11752 echo "$as_me:$LINENO: checking for $ac_header" >&5
11753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11755 echo $ECHO_N "(cached) $ECHO_C" >&6
11757 eval "$as_ac_Header=$ac_header_preproc"
11759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11764 cat >>confdefs.h
<<_ACEOF
11765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11775 for ac_header
in nlist.h
11777 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11779 echo "$as_me:$LINENO: checking for $ac_header" >&5
11780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11782 echo $ECHO_N "(cached) $ECHO_C" >&6
11784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11787 # Is the header compilable?
11788 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11790 cat >conftest.
$ac_ext <<_ACEOF
11791 #line $LINENO "configure"
11792 #include "confdefs.h"
11793 $ac_includes_default
11794 #include <$ac_header>
11796 rm -f conftest.
$ac_objext
11797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11798 (eval $ac_compile) 2>&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); } &&
11802 { ac_try
='test -s conftest.$ac_objext'
11803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11804 (eval $ac_try) 2>&5
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; }; then
11808 ac_header_compiler
=yes
11810 echo "$as_me: failed program was:" >&5
11811 cat conftest.
$ac_ext >&5
11812 ac_header_compiler
=no
11814 rm -f conftest.
$ac_objext conftest.
$ac_ext
11815 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11816 echo "${ECHO_T}$ac_header_compiler" >&6
11818 # Is the header present?
11819 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11820 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11821 cat >conftest.
$ac_ext <<_ACEOF
11822 #line $LINENO "configure"
11823 #include "confdefs.h"
11824 #include <$ac_header>
11826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11827 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11829 grep -v '^ *+' conftest.er1
>conftest.err
11831 cat conftest.err
>&5
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); } >/dev
/null
; then
11834 if test -s conftest.err
; then
11835 ac_cpp_err
=$ac_c_preproc_warn_flag
11842 if test -z "$ac_cpp_err"; then
11843 ac_header_preproc
=yes
11845 echo "$as_me: failed program was:" >&5
11846 cat conftest.
$ac_ext >&5
11847 ac_header_preproc
=no
11849 rm -f conftest.err conftest.
$ac_ext
11850 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11851 echo "${ECHO_T}$ac_header_preproc" >&6
11853 # So? What about this header?
11854 case $ac_header_compiler:$ac_header_preproc in
11856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11857 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11861 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11862 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11863 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11864 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11868 echo "$as_me:$LINENO: checking for $ac_header" >&5
11869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11873 eval "$as_ac_Header=$ac_header_preproc"
11875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11880 cat >>confdefs.h
<<_ACEOF
11881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11883 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
11884 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
11885 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
11886 echo $ECHO_N "(cached) $ECHO_C" >&6
11888 cat >conftest.
$ac_ext <<_ACEOF
11889 #line $LINENO "configure"
11890 #include "confdefs.h"
11896 static struct nlist ac_aggr;
11897 if (ac_aggr.n_un.n_name)
11903 rm -f conftest.
$ac_objext
11904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11905 (eval $ac_compile) 2>&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } &&
11909 { ac_try
='test -s conftest.$ac_objext'
11910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911 (eval $ac_try) 2>&5
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); }; }; then
11915 ac_cv_member_struct_nlist_n_un_n_name
=yes
11917 echo "$as_me: failed program was:" >&5
11918 cat conftest.
$ac_ext >&5
11919 cat >conftest.
$ac_ext <<_ACEOF
11920 #line $LINENO "configure"
11921 #include "confdefs.h"
11927 static struct nlist ac_aggr;
11928 if (sizeof ac_aggr.n_un.n_name)
11934 rm -f conftest.
$ac_objext
11935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11936 (eval $ac_compile) 2>&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } &&
11940 { ac_try
='test -s conftest.$ac_objext'
11941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942 (eval $ac_try) 2>&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; }; then
11946 ac_cv_member_struct_nlist_n_un_n_name
=yes
11948 echo "$as_me: failed program was:" >&5
11949 cat conftest.
$ac_ext >&5
11950 ac_cv_member_struct_nlist_n_un_n_name
=no
11952 rm -f conftest.
$ac_objext conftest.
$ac_ext
11954 rm -f conftest.
$ac_objext conftest.
$ac_ext
11956 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
11957 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
11958 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
11960 cat >>confdefs.h
<<_ACEOF
11961 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11965 cat >>confdefs.h
<<\_ACEOF
11966 #define NLIST_NAME_UNION 1
11980 # Some definitions of getloadavg require that the program be installed setgid.
11981 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
11982 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
11983 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
11984 echo $ECHO_N "(cached) $ECHO_C" >&6
11986 cat >conftest.
$ac_ext <<_ACEOF
11987 #line $LINENO "configure"
11988 #include "confdefs.h"
11989 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11990 #ifdef LDAV_PRIVILEGED
11991 Yowza Am I SETGID yet
11994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11995 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
11996 ac_cv_func_getloadavg_setgid
=yes
11998 ac_cv_func_getloadavg_setgid
=no
12003 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
12004 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
12005 if test $ac_cv_func_getloadavg_setgid = yes; then
12008 cat >>confdefs.h
<<\_ACEOF
12009 #define GETLOADAVG_PRIVILEGED 1
12016 if test $ac_cv_func_getloadavg_setgid = yes; then
12017 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
12018 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
12019 if test "${ac_cv_group_kmem+set}" = set; then
12020 echo $ECHO_N "(cached) $ECHO_C" >&6
12022 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
12023 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
12024 # If we got an error (system does not support symlinks), try without -L.
12025 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
12026 ac_cv_group_kmem
=`echo $ac_ls_output \
12027 | sed -ne 's/[ ][ ]*/ /g;
12028 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12032 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
12033 echo "${ECHO_T}$ac_cv_group_kmem" >&6
12034 KMEM_GROUP
=$ac_cv_group_kmem
12036 if test "x$ac_save_LIBS" = x
; then
12037 GETLOADAVG_LIBS
=$LIBS
12039 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
12045 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12046 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12047 if test "${ac_cv_sys_largefile_source+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12051 ac_cv_sys_largefile_source
=no
12052 cat >conftest.
$ac_ext <<_ACEOF
12053 #line $LINENO "configure"
12054 #include "confdefs.h"
12064 rm -f conftest.
$ac_objext
12065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12066 (eval $ac_compile) 2>&5
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); } &&
12070 { ac_try
='test -s conftest.$ac_objext'
12071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072 (eval $ac_try) 2>&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; }; then
12078 echo "$as_me: failed program was:" >&5
12079 cat conftest.
$ac_ext >&5
12081 rm -f conftest.
$ac_objext conftest.
$ac_ext
12082 cat >conftest.
$ac_ext <<_ACEOF
12083 #line $LINENO "configure"
12084 #include "confdefs.h"
12085 #define _LARGEFILE_SOURCE 1
12095 rm -f conftest.
$ac_objext
12096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12097 (eval $ac_compile) 2>&5
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); } &&
12101 { ac_try
='test -s conftest.$ac_objext'
12102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12103 (eval $ac_try) 2>&5
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); }; }; then
12107 ac_cv_sys_largefile_source
=1; break
12109 echo "$as_me: failed program was:" >&5
12110 cat conftest.
$ac_ext >&5
12112 rm -f conftest.
$ac_objext conftest.
$ac_ext
12116 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12117 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12118 if test "$ac_cv_sys_largefile_source" != no
; then
12120 cat >>confdefs.h
<<_ACEOF
12121 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12127 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12128 # in glibc 2.1.3, but that breaks too many other things.
12129 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12130 echo "$as_me:$LINENO: checking for fseeko" >&5
12131 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12132 if test "${ac_cv_func_fseeko+set}" = set; then
12133 echo $ECHO_N "(cached) $ECHO_C" >&6
12135 cat >conftest.
$ac_ext <<_ACEOF
12136 #line $LINENO "configure"
12137 #include "confdefs.h"
12142 return fseeko && fseeko (stdin, 0, 0);
12147 rm -f conftest.
$ac_objext conftest
$ac_exeext
12148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12149 (eval $ac_link) 2>&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); } &&
12153 { ac_try
='test -s conftest$ac_exeext'
12154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12155 (eval $ac_try) 2>&5
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); }; }; then
12159 ac_cv_func_fseeko
=yes
12161 echo "$as_me: failed program was:" >&5
12162 cat conftest.
$ac_ext >&5
12163 ac_cv_func_fseeko
=no
12165 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12167 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
12168 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
12169 if test $ac_cv_func_fseeko = yes; then
12171 cat >>confdefs.h
<<\_ACEOF
12172 #define HAVE_FSEEKO 1
12180 for ac_func
in grantpt
12182 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12183 echo "$as_me:$LINENO: checking for $ac_func" >&5
12184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12185 if eval "test \"\${$as_ac_var+set}\" = set"; then
12186 echo $ECHO_N "(cached) $ECHO_C" >&6
12188 cat >conftest.
$ac_ext <<_ACEOF
12189 #line $LINENO "configure"
12190 #include "confdefs.h"
12191 /* System header to define __stub macros and hopefully few prototypes,
12192 which can conflict with char $ac_func (); below. */
12193 #include <assert.h>
12194 /* Override any gcc2 internal prototype to avoid an error. */
12198 /* We use char because int might match the return type of a gcc2
12199 builtin and then its argument prototype would still apply. */
12206 /* The GNU C library defines this for functions which it implements
12207 to always fail with ENOSYS. Some functions are actually named
12208 something starting with __ and the normal name is an alias. */
12209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12219 rm -f conftest.
$ac_objext conftest
$ac_exeext
12220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12221 (eval $ac_link) 2>&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); } &&
12225 { ac_try
='test -s conftest$ac_exeext'
12226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12227 (eval $ac_try) 2>&5
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); }; }; then
12231 eval "$as_ac_var=yes"
12233 echo "$as_me: failed program was:" >&5
12234 cat conftest.
$ac_ext >&5
12235 eval "$as_ac_var=no"
12237 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12240 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12241 if test `eval echo '${'$as_ac_var'}'` = yes; then
12242 cat >>confdefs.h
<<_ACEOF
12243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12250 # PTY-related GNU extensions.
12252 for ac_func
in getpt
12254 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12255 echo "$as_me:$LINENO: checking for $ac_func" >&5
12256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12257 if eval "test \"\${$as_ac_var+set}\" = set"; then
12258 echo $ECHO_N "(cached) $ECHO_C" >&6
12260 cat >conftest.
$ac_ext <<_ACEOF
12261 #line $LINENO "configure"
12262 #include "confdefs.h"
12263 /* System header to define __stub macros and hopefully few prototypes,
12264 which can conflict with char $ac_func (); below. */
12265 #include <assert.h>
12266 /* Override any gcc2 internal prototype to avoid an error. */
12270 /* We use char because int might match the return type of a gcc2
12271 builtin and then its argument prototype would still apply. */
12278 /* The GNU C library defines this for functions which it implements
12279 to always fail with ENOSYS. Some functions are actually named
12280 something starting with __ and the normal name is an alias. */
12281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12291 rm -f conftest.
$ac_objext conftest
$ac_exeext
12292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12293 (eval $ac_link) 2>&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); } &&
12297 { ac_try
='test -s conftest$ac_exeext'
12298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12299 (eval $ac_try) 2>&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); }; }; then
12303 eval "$as_ac_var=yes"
12305 echo "$as_me: failed program was:" >&5
12306 cat conftest.
$ac_ext >&5
12307 eval "$as_ac_var=no"
12309 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12312 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12313 if test `eval echo '${'$as_ac_var'}'` = yes; then
12314 cat >>confdefs.h
<<_ACEOF
12315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12322 # Check this now, so that we will NOT find the above functions in ncurses.
12323 # That is because we have not set up to link ncurses in lib-src.
12324 # It's better to believe a function is not available
12325 # than to expect to find it in ncurses.
12327 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
12328 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
12329 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
12330 echo $ECHO_N "(cached) $ECHO_C" >&6
12332 ac_check_lib_save_LIBS
=$LIBS
12333 LIBS
="-lncurses $LIBS"
12334 cat >conftest.
$ac_ext <<_ACEOF
12335 #line $LINENO "configure"
12336 #include "confdefs.h"
12338 /* Override any gcc2 internal prototype to avoid an error. */
12342 /* We use char because int might match the return type of a gcc2
12343 builtin and then its argument prototype would still apply. */
12353 rm -f conftest.
$ac_objext conftest
$ac_exeext
12354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12355 (eval $ac_link) 2>&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); } &&
12359 { ac_try
='test -s conftest$ac_exeext'
12360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361 (eval $ac_try) 2>&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); }; }; then
12365 ac_cv_lib_ncurses_tparm
=yes
12367 echo "$as_me: failed program was:" >&5
12368 cat conftest.
$ac_ext >&5
12369 ac_cv_lib_ncurses_tparm
=no
12371 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12372 LIBS
=$ac_check_lib_save_LIBS
12374 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
12375 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
12376 if test $ac_cv_lib_ncurses_tparm = yes; then
12377 cat >>confdefs.h
<<_ACEOF
12378 #define HAVE_LIBNCURSES 1
12381 LIBS
="-lncurses $LIBS"
12386 # Do we need the Hesiod library to provide the support routines?
12387 if test "$with_hesiod" = yes ; then
12388 # Don't set $LIBS here -- see comments above.
12390 echo "$as_me:$LINENO: checking for res_send" >&5
12391 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
12392 if test "${ac_cv_func_res_send+set}" = set; then
12393 echo $ECHO_N "(cached) $ECHO_C" >&6
12395 cat >conftest.
$ac_ext <<_ACEOF
12396 #line $LINENO "configure"
12397 #include "confdefs.h"
12398 /* System header to define __stub macros and hopefully few prototypes,
12399 which can conflict with char res_send (); below. */
12400 #include <assert.h>
12401 /* Override any gcc2 internal prototype to avoid an error. */
12405 /* We use char because int might match the return type of a gcc2
12406 builtin and then its argument prototype would still apply. */
12413 /* The GNU C library defines this for functions which it implements
12414 to always fail with ENOSYS. Some functions are actually named
12415 something starting with __ and the normal name is an alias. */
12416 #if defined (__stub_res_send) || defined (__stub___res_send)
12426 rm -f conftest.
$ac_objext conftest
$ac_exeext
12427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12428 (eval $ac_link) 2>&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); } &&
12432 { ac_try
='test -s conftest$ac_exeext'
12433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434 (eval $ac_try) 2>&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; }; then
12438 ac_cv_func_res_send
=yes
12440 echo "$as_me: failed program was:" >&5
12441 cat conftest.
$ac_ext >&5
12442 ac_cv_func_res_send
=no
12444 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12446 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
12447 echo "${ECHO_T}$ac_cv_func_res_send" >&6
12448 if test $ac_cv_func_res_send = yes; then
12451 echo "$as_me:$LINENO: checking for __res_send" >&5
12452 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
12453 if test "${ac_cv_func___res_send+set}" = set; then
12454 echo $ECHO_N "(cached) $ECHO_C" >&6
12456 cat >conftest.
$ac_ext <<_ACEOF
12457 #line $LINENO "configure"
12458 #include "confdefs.h"
12459 /* System header to define __stub macros and hopefully few prototypes,
12460 which can conflict with char __res_send (); below. */
12461 #include <assert.h>
12462 /* Override any gcc2 internal prototype to avoid an error. */
12466 /* We use char because int might match the return type of a gcc2
12467 builtin and then its argument prototype would still apply. */
12468 char __res_send ();
12474 /* The GNU C library defines this for functions which it implements
12475 to always fail with ENOSYS. Some functions are actually named
12476 something starting with __ and the normal name is an alias. */
12477 #if defined (__stub___res_send) || defined (__stub_____res_send)
12487 rm -f conftest.
$ac_objext conftest
$ac_exeext
12488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12489 (eval $ac_link) 2>&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); } &&
12493 { ac_try
='test -s conftest$ac_exeext'
12494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495 (eval $ac_try) 2>&5
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }; }; then
12499 ac_cv_func___res_send
=yes
12501 echo "$as_me: failed program was:" >&5
12502 cat conftest.
$ac_ext >&5
12503 ac_cv_func___res_send
=no
12505 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12507 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
12508 echo "${ECHO_T}$ac_cv_func___res_send" >&6
12509 if test $ac_cv_func___res_send = yes; then
12512 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
12513 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
12514 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
12515 echo $ECHO_N "(cached) $ECHO_C" >&6
12517 ac_check_lib_save_LIBS
=$LIBS
12518 LIBS
="-lresolv $LIBS"
12519 cat >conftest.
$ac_ext <<_ACEOF
12520 #line $LINENO "configure"
12521 #include "confdefs.h"
12523 /* Override any gcc2 internal prototype to avoid an error. */
12527 /* We use char because int might match the return type of a gcc2
12528 builtin and then its argument prototype would still apply. */
12538 rm -f conftest.
$ac_objext conftest
$ac_exeext
12539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12540 (eval $ac_link) 2>&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } &&
12544 { ac_try
='test -s conftest$ac_exeext'
12545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546 (eval $ac_try) 2>&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; }; then
12550 ac_cv_lib_resolv_res_send
=yes
12552 echo "$as_me: failed program was:" >&5
12553 cat conftest.
$ac_ext >&5
12554 ac_cv_lib_resolv_res_send
=no
12556 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12557 LIBS
=$ac_check_lib_save_LIBS
12559 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
12560 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
12561 if test $ac_cv_lib_resolv_res_send = yes; then
12564 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
12565 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
12566 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
12567 echo $ECHO_N "(cached) $ECHO_C" >&6
12569 ac_check_lib_save_LIBS
=$LIBS
12570 LIBS
="-lresolv $LIBS"
12571 cat >conftest.
$ac_ext <<_ACEOF
12572 #line $LINENO "configure"
12573 #include "confdefs.h"
12575 /* Override any gcc2 internal prototype to avoid an error. */
12579 /* We use char because int might match the return type of a gcc2
12580 builtin and then its argument prototype would still apply. */
12581 char __res_send ();
12590 rm -f conftest.
$ac_objext conftest
$ac_exeext
12591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12592 (eval $ac_link) 2>&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); } &&
12596 { ac_try
='test -s conftest$ac_exeext'
12597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12598 (eval $ac_try) 2>&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); }; }; then
12602 ac_cv_lib_resolv___res_send
=yes
12604 echo "$as_me: failed program was:" >&5
12605 cat conftest.
$ac_ext >&5
12606 ac_cv_lib_resolv___res_send
=no
12608 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12609 LIBS
=$ac_check_lib_save_LIBS
12611 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
12612 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
12613 if test $ac_cv_lib_resolv___res_send = yes; then
12623 if test "$resolv" = yes ; then
12626 cat >>confdefs.h
<<\_ACEOF
12627 #define HAVE_LIBRESOLV 1
12633 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
12634 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
12635 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
12636 echo $ECHO_N "(cached) $ECHO_C" >&6
12638 cat >conftest.
$ac_ext <<_ACEOF
12639 #line $LINENO "configure"
12640 #include "confdefs.h"
12641 /* System header to define __stub macros and hopefully few prototypes,
12642 which can conflict with char hes_getmailhost (); below. */
12643 #include <assert.h>
12644 /* Override any gcc2 internal prototype to avoid an error. */
12648 /* We use char because int might match the return type of a gcc2
12649 builtin and then its argument prototype would still apply. */
12650 char hes_getmailhost ();
12656 /* The GNU C library defines this for functions which it implements
12657 to always fail with ENOSYS. Some functions are actually named
12658 something starting with __ and the normal name is an alias. */
12659 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
12662 f = hes_getmailhost;
12669 rm -f conftest.
$ac_objext conftest
$ac_exeext
12670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12671 (eval $ac_link) 2>&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); } &&
12675 { ac_try
='test -s conftest$ac_exeext'
12676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677 (eval $ac_try) 2>&5
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; }; then
12681 ac_cv_func_hes_getmailhost
=yes
12683 echo "$as_me: failed program was:" >&5
12684 cat conftest.
$ac_ext >&5
12685 ac_cv_func_hes_getmailhost
=no
12687 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12689 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
12690 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
12691 if test $ac_cv_func_hes_getmailhost = yes; then
12694 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
12695 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
12696 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
12697 echo $ECHO_N "(cached) $ECHO_C" >&6
12699 ac_check_lib_save_LIBS
=$LIBS
12700 LIBS
="-lhesiod $RESOLVLIB $LIBS"
12701 cat >conftest.
$ac_ext <<_ACEOF
12702 #line $LINENO "configure"
12703 #include "confdefs.h"
12705 /* Override any gcc2 internal prototype to avoid an error. */
12709 /* We use char because int might match the return type of a gcc2
12710 builtin and then its argument prototype would still apply. */
12711 char hes_getmailhost ();
12715 hes_getmailhost ();
12720 rm -f conftest.
$ac_objext conftest
$ac_exeext
12721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12722 (eval $ac_link) 2>&5
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); } &&
12726 { ac_try
='test -s conftest$ac_exeext'
12727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12728 (eval $ac_try) 2>&5
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); }; }; then
12732 ac_cv_lib_hesiod_hes_getmailhost
=yes
12734 echo "$as_me: failed program was:" >&5
12735 cat conftest.
$ac_ext >&5
12736 ac_cv_lib_hesiod_hes_getmailhost
=no
12738 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12739 LIBS
=$ac_check_lib_save_LIBS
12741 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
12742 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
12743 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
12745 cat >>confdefs.h
<<\_ACEOF
12746 #define HAVE_LIBHESIOD 1
12757 # These tell us which Kerberos-related libraries to use.
12758 if test "${with_kerberos+set}" = set; then
12760 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
12761 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
12762 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
12763 echo $ECHO_N "(cached) $ECHO_C" >&6
12765 ac_check_lib_save_LIBS
=$LIBS
12766 LIBS
="-lcom_err $LIBS"
12767 cat >conftest.
$ac_ext <<_ACEOF
12768 #line $LINENO "configure"
12769 #include "confdefs.h"
12771 /* Override any gcc2 internal prototype to avoid an error. */
12775 /* We use char because int might match the return type of a gcc2
12776 builtin and then its argument prototype would still apply. */
12786 rm -f conftest.
$ac_objext conftest
$ac_exeext
12787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12788 (eval $ac_link) 2>&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); } &&
12792 { ac_try
='test -s conftest$ac_exeext'
12793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12794 (eval $ac_try) 2>&5
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); }; }; then
12798 ac_cv_lib_com_err_com_err
=yes
12800 echo "$as_me: failed program was:" >&5
12801 cat conftest.
$ac_ext >&5
12802 ac_cv_lib_com_err_com_err
=no
12804 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12805 LIBS
=$ac_check_lib_save_LIBS
12807 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
12808 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
12809 if test $ac_cv_lib_com_err_com_err = yes; then
12810 cat >>confdefs.h
<<_ACEOF
12811 #define HAVE_LIBCOM_ERR 1
12814 LIBS
="-lcom_err $LIBS"
12819 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
12820 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
12821 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
12822 echo $ECHO_N "(cached) $ECHO_C" >&6
12824 ac_check_lib_save_LIBS
=$LIBS
12825 LIBS
="-lk5crypto $LIBS"
12826 cat >conftest.
$ac_ext <<_ACEOF
12827 #line $LINENO "configure"
12828 #include "confdefs.h"
12830 /* Override any gcc2 internal prototype to avoid an error. */
12834 /* We use char because int might match the return type of a gcc2
12835 builtin and then its argument prototype would still apply. */
12836 char mit_des_cbc_encrypt ();
12840 mit_des_cbc_encrypt ();
12845 rm -f conftest.
$ac_objext conftest
$ac_exeext
12846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12847 (eval $ac_link) 2>&5
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); } &&
12851 { ac_try
='test -s conftest$ac_exeext'
12852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12853 (eval $ac_try) 2>&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; }; then
12857 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
12859 echo "$as_me: failed program was:" >&5
12860 cat conftest.
$ac_ext >&5
12861 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
12863 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12864 LIBS
=$ac_check_lib_save_LIBS
12866 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
12867 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
12868 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
12869 cat >>confdefs.h
<<_ACEOF
12870 #define HAVE_LIBK5CRYPTO 1
12873 LIBS
="-lk5crypto $LIBS"
12878 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
12879 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
12880 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
12881 echo $ECHO_N "(cached) $ECHO_C" >&6
12883 ac_check_lib_save_LIBS
=$LIBS
12884 LIBS
="-lcrypto $LIBS"
12885 cat >conftest.
$ac_ext <<_ACEOF
12886 #line $LINENO "configure"
12887 #include "confdefs.h"
12889 /* Override any gcc2 internal prototype to avoid an error. */
12893 /* We use char because int might match the return type of a gcc2
12894 builtin and then its argument prototype would still apply. */
12895 char mit_des_cbc_encrypt ();
12899 mit_des_cbc_encrypt ();
12904 rm -f conftest.
$ac_objext conftest
$ac_exeext
12905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12906 (eval $ac_link) 2>&5
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); } &&
12910 { ac_try
='test -s conftest$ac_exeext'
12911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912 (eval $ac_try) 2>&5
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; }; then
12916 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
12918 echo "$as_me: failed program was:" >&5
12919 cat conftest.
$ac_ext >&5
12920 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
12922 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12923 LIBS
=$ac_check_lib_save_LIBS
12925 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
12926 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
12927 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
12928 cat >>confdefs.h
<<_ACEOF
12929 #define HAVE_LIBCRYPTO 1
12932 LIBS
="-lcrypto $LIBS"
12937 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
12938 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
12939 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
12940 echo $ECHO_N "(cached) $ECHO_C" >&6
12942 ac_check_lib_save_LIBS
=$LIBS
12943 LIBS
="-lkrb5 $LIBS"
12944 cat >conftest.
$ac_ext <<_ACEOF
12945 #line $LINENO "configure"
12946 #include "confdefs.h"
12948 /* Override any gcc2 internal prototype to avoid an error. */
12952 /* We use char because int might match the return type of a gcc2
12953 builtin and then its argument prototype would still apply. */
12954 char krb5_init_context ();
12958 krb5_init_context ();
12963 rm -f conftest.
$ac_objext conftest
$ac_exeext
12964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12965 (eval $ac_link) 2>&5
12967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); } &&
12969 { ac_try
='test -s conftest$ac_exeext'
12970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12971 (eval $ac_try) 2>&5
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); }; }; then
12975 ac_cv_lib_krb5_krb5_init_context
=yes
12977 echo "$as_me: failed program was:" >&5
12978 cat conftest.
$ac_ext >&5
12979 ac_cv_lib_krb5_krb5_init_context
=no
12981 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12982 LIBS
=$ac_check_lib_save_LIBS
12984 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12985 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
12986 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
12987 cat >>confdefs.h
<<_ACEOF
12988 #define HAVE_LIBKRB5 1
12991 LIBS
="-lkrb5 $LIBS"
12995 if test "${with_kerberos5+set}" != set; then
12997 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
12998 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
12999 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
13000 echo $ECHO_N "(cached) $ECHO_C" >&6
13002 ac_check_lib_save_LIBS
=$LIBS
13003 LIBS
="-ldes425 $LIBS"
13004 cat >conftest.
$ac_ext <<_ACEOF
13005 #line $LINENO "configure"
13006 #include "confdefs.h"
13008 /* Override any gcc2 internal prototype to avoid an error. */
13012 /* We use char because int might match the return type of a gcc2
13013 builtin and then its argument prototype would still apply. */
13014 char des_cbc_encrypt ();
13018 des_cbc_encrypt ();
13023 rm -f conftest.
$ac_objext conftest
$ac_exeext
13024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13025 (eval $ac_link) 2>&5
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); } &&
13029 { ac_try
='test -s conftest$ac_exeext'
13030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13031 (eval $ac_try) 2>&5
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); }; }; then
13035 ac_cv_lib_des425_des_cbc_encrypt
=yes
13037 echo "$as_me: failed program was:" >&5
13038 cat conftest.
$ac_ext >&5
13039 ac_cv_lib_des425_des_cbc_encrypt
=no
13041 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13042 LIBS
=$ac_check_lib_save_LIBS
13044 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13045 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
13046 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
13047 cat >>confdefs.h
<<_ACEOF
13048 #define HAVE_LIBDES425 1
13051 LIBS
="-ldes425 $LIBS"
13055 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
13056 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
13057 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
13058 echo $ECHO_N "(cached) $ECHO_C" >&6
13060 ac_check_lib_save_LIBS
=$LIBS
13062 cat >conftest.
$ac_ext <<_ACEOF
13063 #line $LINENO "configure"
13064 #include "confdefs.h"
13066 /* Override any gcc2 internal prototype to avoid an error. */
13070 /* We use char because int might match the return type of a gcc2
13071 builtin and then its argument prototype would still apply. */
13072 char des_cbc_encrypt ();
13076 des_cbc_encrypt ();
13081 rm -f conftest.
$ac_objext conftest
$ac_exeext
13082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13083 (eval $ac_link) 2>&5
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); } &&
13087 { ac_try
='test -s conftest$ac_exeext'
13088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13089 (eval $ac_try) 2>&5
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); }; }; then
13093 ac_cv_lib_des_des_cbc_encrypt
=yes
13095 echo "$as_me: failed program was:" >&5
13096 cat conftest.
$ac_ext >&5
13097 ac_cv_lib_des_des_cbc_encrypt
=no
13099 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13100 LIBS
=$ac_check_lib_save_LIBS
13102 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13103 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
13104 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
13105 cat >>confdefs.h
<<_ACEOF
13106 #define HAVE_LIBDES 1
13116 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
13117 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
13118 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
13119 echo $ECHO_N "(cached) $ECHO_C" >&6
13121 ac_check_lib_save_LIBS
=$LIBS
13122 LIBS
="-lkrb4 $LIBS"
13123 cat >conftest.
$ac_ext <<_ACEOF
13124 #line $LINENO "configure"
13125 #include "confdefs.h"
13127 /* Override any gcc2 internal prototype to avoid an error. */
13131 /* We use char because int might match the return type of a gcc2
13132 builtin and then its argument prototype would still apply. */
13133 char krb_get_cred ();
13142 rm -f conftest.
$ac_objext conftest
$ac_exeext
13143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13144 (eval $ac_link) 2>&5
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); } &&
13148 { ac_try
='test -s conftest$ac_exeext'
13149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13150 (eval $ac_try) 2>&5
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); }; }; then
13154 ac_cv_lib_krb4_krb_get_cred
=yes
13156 echo "$as_me: failed program was:" >&5
13157 cat conftest.
$ac_ext >&5
13158 ac_cv_lib_krb4_krb_get_cred
=no
13160 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13161 LIBS
=$ac_check_lib_save_LIBS
13163 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13164 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
13165 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
13166 cat >>confdefs.h
<<_ACEOF
13167 #define HAVE_LIBKRB4 1
13170 LIBS
="-lkrb4 $LIBS"
13174 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
13175 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
13176 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
13177 echo $ECHO_N "(cached) $ECHO_C" >&6
13179 ac_check_lib_save_LIBS
=$LIBS
13181 cat >conftest.
$ac_ext <<_ACEOF
13182 #line $LINENO "configure"
13183 #include "confdefs.h"
13185 /* Override any gcc2 internal prototype to avoid an error. */
13189 /* We use char because int might match the return type of a gcc2
13190 builtin and then its argument prototype would still apply. */
13191 char krb_get_cred ();
13200 rm -f conftest.
$ac_objext conftest
$ac_exeext
13201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13202 (eval $ac_link) 2>&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } &&
13206 { ac_try
='test -s conftest$ac_exeext'
13207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208 (eval $ac_try) 2>&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); }; }; then
13212 ac_cv_lib_krb_krb_get_cred
=yes
13214 echo "$as_me: failed program was:" >&5
13215 cat conftest.
$ac_ext >&5
13216 ac_cv_lib_krb_krb_get_cred
=no
13218 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13219 LIBS
=$ac_check_lib_save_LIBS
13221 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
13222 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
13223 if test $ac_cv_lib_krb_krb_get_cred = yes; then
13224 cat >>confdefs.h
<<_ACEOF
13225 #define HAVE_LIBKRB 1
13236 if test "${with_kerberos5+set}" = set; then
13238 for ac_header
in krb5.h
13240 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13242 echo "$as_me:$LINENO: checking for $ac_header" >&5
13243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13245 echo $ECHO_N "(cached) $ECHO_C" >&6
13247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13250 # Is the header compilable?
13251 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13252 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13253 cat >conftest.
$ac_ext <<_ACEOF
13254 #line $LINENO "configure"
13255 #include "confdefs.h"
13256 $ac_includes_default
13257 #include <$ac_header>
13259 rm -f conftest.
$ac_objext
13260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13261 (eval $ac_compile) 2>&5
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); } &&
13265 { ac_try
='test -s conftest.$ac_objext'
13266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13267 (eval $ac_try) 2>&5
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); }; }; then
13271 ac_header_compiler
=yes
13273 echo "$as_me: failed program was:" >&5
13274 cat conftest.
$ac_ext >&5
13275 ac_header_compiler
=no
13277 rm -f conftest.
$ac_objext conftest.
$ac_ext
13278 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13279 echo "${ECHO_T}$ac_header_compiler" >&6
13281 # Is the header present?
13282 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13283 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13284 cat >conftest.
$ac_ext <<_ACEOF
13285 #line $LINENO "configure"
13286 #include "confdefs.h"
13287 #include <$ac_header>
13289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13290 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13292 grep -v '^ *+' conftest.er1
>conftest.err
13294 cat conftest.err
>&5
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); } >/dev
/null
; then
13297 if test -s conftest.err
; then
13298 ac_cpp_err
=$ac_c_preproc_warn_flag
13305 if test -z "$ac_cpp_err"; then
13306 ac_header_preproc
=yes
13308 echo "$as_me: failed program was:" >&5
13309 cat conftest.
$ac_ext >&5
13310 ac_header_preproc
=no
13312 rm -f conftest.err conftest.
$ac_ext
13313 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13314 echo "${ECHO_T}$ac_header_preproc" >&6
13316 # So? What about this header?
13317 case $ac_header_compiler:$ac_header_preproc in
13319 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13320 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13324 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13325 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13326 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13327 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13329 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13331 echo "$as_me:$LINENO: checking for $ac_header" >&5
13332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13334 echo $ECHO_N "(cached) $ECHO_C" >&6
13336 eval "$as_ac_Header=$ac_header_preproc"
13338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13343 cat >>confdefs.h
<<_ACEOF
13344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13353 for ac_header
in des.h
13355 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13357 echo "$as_me:$LINENO: checking for $ac_header" >&5
13358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13360 echo $ECHO_N "(cached) $ECHO_C" >&6
13362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13365 # Is the header compilable?
13366 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13368 cat >conftest.
$ac_ext <<_ACEOF
13369 #line $LINENO "configure"
13370 #include "confdefs.h"
13371 $ac_includes_default
13372 #include <$ac_header>
13374 rm -f conftest.
$ac_objext
13375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13376 (eval $ac_compile) 2>&5
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); } &&
13380 { ac_try
='test -s conftest.$ac_objext'
13381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13382 (eval $ac_try) 2>&5
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); }; }; then
13386 ac_header_compiler
=yes
13388 echo "$as_me: failed program was:" >&5
13389 cat conftest.
$ac_ext >&5
13390 ac_header_compiler
=no
13392 rm -f conftest.
$ac_objext conftest.
$ac_ext
13393 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13394 echo "${ECHO_T}$ac_header_compiler" >&6
13396 # Is the header present?
13397 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13399 cat >conftest.
$ac_ext <<_ACEOF
13400 #line $LINENO "configure"
13401 #include "confdefs.h"
13402 #include <$ac_header>
13404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13405 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13407 grep -v '^ *+' conftest.er1
>conftest.err
13409 cat conftest.err
>&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); } >/dev
/null
; then
13412 if test -s conftest.err
; then
13413 ac_cpp_err
=$ac_c_preproc_warn_flag
13420 if test -z "$ac_cpp_err"; then
13421 ac_header_preproc
=yes
13423 echo "$as_me: failed program was:" >&5
13424 cat conftest.
$ac_ext >&5
13425 ac_header_preproc
=no
13427 rm -f conftest.err conftest.
$ac_ext
13428 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13429 echo "${ECHO_T}$ac_header_preproc" >&6
13431 # So? What about this header?
13432 case $ac_header_compiler:$ac_header_preproc in
13434 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13435 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13442 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13446 echo "$as_me:$LINENO: checking for $ac_header" >&5
13447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13449 echo $ECHO_N "(cached) $ECHO_C" >&6
13451 eval "$as_ac_Header=$ac_header_preproc"
13453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13458 cat >>confdefs.h
<<_ACEOF
13459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13464 for ac_header
in kerberosIV
/des.h
13466 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13468 echo "$as_me:$LINENO: checking for $ac_header" >&5
13469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13471 echo $ECHO_N "(cached) $ECHO_C" >&6
13473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13476 # Is the header compilable?
13477 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13479 cat >conftest.
$ac_ext <<_ACEOF
13480 #line $LINENO "configure"
13481 #include "confdefs.h"
13482 $ac_includes_default
13483 #include <$ac_header>
13485 rm -f conftest.
$ac_objext
13486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13487 (eval $ac_compile) 2>&5
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); } &&
13491 { ac_try
='test -s conftest.$ac_objext'
13492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493 (eval $ac_try) 2>&5
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); }; }; then
13497 ac_header_compiler
=yes
13499 echo "$as_me: failed program was:" >&5
13500 cat conftest.
$ac_ext >&5
13501 ac_header_compiler
=no
13503 rm -f conftest.
$ac_objext conftest.
$ac_ext
13504 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13505 echo "${ECHO_T}$ac_header_compiler" >&6
13507 # Is the header present?
13508 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13510 cat >conftest.
$ac_ext <<_ACEOF
13511 #line $LINENO "configure"
13512 #include "confdefs.h"
13513 #include <$ac_header>
13515 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13516 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13518 grep -v '^ *+' conftest.er1
>conftest.err
13520 cat conftest.err
>&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); } >/dev
/null
; then
13523 if test -s conftest.err
; then
13524 ac_cpp_err
=$ac_c_preproc_warn_flag
13531 if test -z "$ac_cpp_err"; then
13532 ac_header_preproc
=yes
13534 echo "$as_me: failed program was:" >&5
13535 cat conftest.
$ac_ext >&5
13536 ac_header_preproc
=no
13538 rm -f conftest.err conftest.
$ac_ext
13539 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13540 echo "${ECHO_T}$ac_header_preproc" >&6
13542 # So? What about this header?
13543 case $ac_header_compiler:$ac_header_preproc in
13545 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13550 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13551 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13552 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13553 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13557 echo "$as_me:$LINENO: checking for $ac_header" >&5
13558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13560 echo $ECHO_N "(cached) $ECHO_C" >&6
13562 eval "$as_ac_Header=$ac_header_preproc"
13564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13569 cat >>confdefs.h
<<_ACEOF
13570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13575 for ac_header
in kerberos
/des.h
13577 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13579 echo "$as_me:$LINENO: checking for $ac_header" >&5
13580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13582 echo $ECHO_N "(cached) $ECHO_C" >&6
13584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13587 # Is the header compilable?
13588 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13589 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13590 cat >conftest.
$ac_ext <<_ACEOF
13591 #line $LINENO "configure"
13592 #include "confdefs.h"
13593 $ac_includes_default
13594 #include <$ac_header>
13596 rm -f conftest.
$ac_objext
13597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13598 (eval $ac_compile) 2>&5
13600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601 (exit $ac_status); } &&
13602 { ac_try
='test -s conftest.$ac_objext'
13603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13604 (eval $ac_try) 2>&5
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); }; }; then
13608 ac_header_compiler
=yes
13610 echo "$as_me: failed program was:" >&5
13611 cat conftest.
$ac_ext >&5
13612 ac_header_compiler
=no
13614 rm -f conftest.
$ac_objext conftest.
$ac_ext
13615 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13616 echo "${ECHO_T}$ac_header_compiler" >&6
13618 # Is the header present?
13619 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13620 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13621 cat >conftest.
$ac_ext <<_ACEOF
13622 #line $LINENO "configure"
13623 #include "confdefs.h"
13624 #include <$ac_header>
13626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13627 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13629 grep -v '^ *+' conftest.er1
>conftest.err
13631 cat conftest.err
>&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); } >/dev
/null
; then
13634 if test -s conftest.err
; then
13635 ac_cpp_err
=$ac_c_preproc_warn_flag
13642 if test -z "$ac_cpp_err"; then
13643 ac_header_preproc
=yes
13645 echo "$as_me: failed program was:" >&5
13646 cat conftest.
$ac_ext >&5
13647 ac_header_preproc
=no
13649 rm -f conftest.err conftest.
$ac_ext
13650 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13651 echo "${ECHO_T}$ac_header_preproc" >&6
13653 # So? What about this header?
13654 case $ac_header_compiler:$ac_header_preproc in
13656 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13657 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13664 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13668 echo "$as_me:$LINENO: checking for $ac_header" >&5
13669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13671 echo $ECHO_N "(cached) $ECHO_C" >&6
13673 eval "$as_ac_Header=$ac_header_preproc"
13675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13680 cat >>confdefs.h
<<_ACEOF
13681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13697 for ac_header
in krb.h
13699 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13701 echo "$as_me:$LINENO: checking for $ac_header" >&5
13702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13704 echo $ECHO_N "(cached) $ECHO_C" >&6
13706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13707 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13709 # Is the header compilable?
13710 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13711 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13712 cat >conftest.
$ac_ext <<_ACEOF
13713 #line $LINENO "configure"
13714 #include "confdefs.h"
13715 $ac_includes_default
13716 #include <$ac_header>
13718 rm -f conftest.
$ac_objext
13719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13720 (eval $ac_compile) 2>&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); } &&
13724 { ac_try
='test -s conftest.$ac_objext'
13725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726 (eval $ac_try) 2>&5
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); }; }; then
13730 ac_header_compiler
=yes
13732 echo "$as_me: failed program was:" >&5
13733 cat conftest.
$ac_ext >&5
13734 ac_header_compiler
=no
13736 rm -f conftest.
$ac_objext conftest.
$ac_ext
13737 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13738 echo "${ECHO_T}$ac_header_compiler" >&6
13740 # Is the header present?
13741 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13742 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13743 cat >conftest.
$ac_ext <<_ACEOF
13744 #line $LINENO "configure"
13745 #include "confdefs.h"
13746 #include <$ac_header>
13748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13749 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13751 grep -v '^ *+' conftest.er1
>conftest.err
13753 cat conftest.err
>&5
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); } >/dev
/null
; then
13756 if test -s conftest.err
; then
13757 ac_cpp_err
=$ac_c_preproc_warn_flag
13764 if test -z "$ac_cpp_err"; then
13765 ac_header_preproc
=yes
13767 echo "$as_me: failed program was:" >&5
13768 cat conftest.
$ac_ext >&5
13769 ac_header_preproc
=no
13771 rm -f conftest.err conftest.
$ac_ext
13772 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13773 echo "${ECHO_T}$ac_header_preproc" >&6
13775 # So? What about this header?
13776 case $ac_header_compiler:$ac_header_preproc in
13778 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13779 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13783 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13784 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13785 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13786 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13788 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13790 echo "$as_me:$LINENO: checking for $ac_header" >&5
13791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13793 echo $ECHO_N "(cached) $ECHO_C" >&6
13795 eval "$as_ac_Header=$ac_header_preproc"
13797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13802 cat >>confdefs.h
<<_ACEOF
13803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13808 for ac_header
in kerberosIV
/krb.h
13810 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13812 echo "$as_me:$LINENO: checking for $ac_header" >&5
13813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13815 echo $ECHO_N "(cached) $ECHO_C" >&6
13817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13820 # Is the header compilable?
13821 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13822 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13823 cat >conftest.
$ac_ext <<_ACEOF
13824 #line $LINENO "configure"
13825 #include "confdefs.h"
13826 $ac_includes_default
13827 #include <$ac_header>
13829 rm -f conftest.
$ac_objext
13830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13831 (eval $ac_compile) 2>&5
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); } &&
13835 { ac_try
='test -s conftest.$ac_objext'
13836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13837 (eval $ac_try) 2>&5
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); }; }; then
13841 ac_header_compiler
=yes
13843 echo "$as_me: failed program was:" >&5
13844 cat conftest.
$ac_ext >&5
13845 ac_header_compiler
=no
13847 rm -f conftest.
$ac_objext conftest.
$ac_ext
13848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13849 echo "${ECHO_T}$ac_header_compiler" >&6
13851 # Is the header present?
13852 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13854 cat >conftest.
$ac_ext <<_ACEOF
13855 #line $LINENO "configure"
13856 #include "confdefs.h"
13857 #include <$ac_header>
13859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13860 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13862 grep -v '^ *+' conftest.er1
>conftest.err
13864 cat conftest.err
>&5
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); } >/dev
/null
; then
13867 if test -s conftest.err
; then
13868 ac_cpp_err
=$ac_c_preproc_warn_flag
13875 if test -z "$ac_cpp_err"; then
13876 ac_header_preproc
=yes
13878 echo "$as_me: failed program was:" >&5
13879 cat conftest.
$ac_ext >&5
13880 ac_header_preproc
=no
13882 rm -f conftest.err conftest.
$ac_ext
13883 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13884 echo "${ECHO_T}$ac_header_preproc" >&6
13886 # So? What about this header?
13887 case $ac_header_compiler:$ac_header_preproc in
13889 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13897 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13901 echo "$as_me:$LINENO: checking for $ac_header" >&5
13902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13904 echo $ECHO_N "(cached) $ECHO_C" >&6
13906 eval "$as_ac_Header=$ac_header_preproc"
13908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13913 cat >>confdefs.h
<<_ACEOF
13914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13919 for ac_header
in kerberos
/krb.h
13921 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13923 echo "$as_me:$LINENO: checking for $ac_header" >&5
13924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13926 echo $ECHO_N "(cached) $ECHO_C" >&6
13928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13931 # Is the header compilable?
13932 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13933 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13934 cat >conftest.
$ac_ext <<_ACEOF
13935 #line $LINENO "configure"
13936 #include "confdefs.h"
13937 $ac_includes_default
13938 #include <$ac_header>
13940 rm -f conftest.
$ac_objext
13941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13942 (eval $ac_compile) 2>&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } &&
13946 { ac_try
='test -s conftest.$ac_objext'
13947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13948 (eval $ac_try) 2>&5
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); }; }; then
13952 ac_header_compiler
=yes
13954 echo "$as_me: failed program was:" >&5
13955 cat conftest.
$ac_ext >&5
13956 ac_header_compiler
=no
13958 rm -f conftest.
$ac_objext conftest.
$ac_ext
13959 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13960 echo "${ECHO_T}$ac_header_compiler" >&6
13962 # Is the header present?
13963 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13964 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13965 cat >conftest.
$ac_ext <<_ACEOF
13966 #line $LINENO "configure"
13967 #include "confdefs.h"
13968 #include <$ac_header>
13970 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13971 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13973 grep -v '^ *+' conftest.er1
>conftest.err
13975 cat conftest.err
>&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); } >/dev
/null
; then
13978 if test -s conftest.err
; then
13979 ac_cpp_err
=$ac_c_preproc_warn_flag
13986 if test -z "$ac_cpp_err"; then
13987 ac_header_preproc
=yes
13989 echo "$as_me: failed program was:" >&5
13990 cat conftest.
$ac_ext >&5
13991 ac_header_preproc
=no
13993 rm -f conftest.err conftest.
$ac_ext
13994 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13995 echo "${ECHO_T}$ac_header_preproc" >&6
13997 # So? What about this header?
13998 case $ac_header_compiler:$ac_header_preproc in
14000 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14001 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14005 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14006 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14007 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14008 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14012 echo "$as_me:$LINENO: checking for $ac_header" >&5
14013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14015 echo $ECHO_N "(cached) $ECHO_C" >&6
14017 eval "$as_ac_Header=$ac_header_preproc"
14019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14024 cat >>confdefs.h
<<_ACEOF
14025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14042 for ac_header
in com_err.h
14044 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14046 echo "$as_me:$LINENO: checking for $ac_header" >&5
14047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14049 echo $ECHO_N "(cached) $ECHO_C" >&6
14051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14054 # Is the header compilable?
14055 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14056 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14057 cat >conftest.
$ac_ext <<_ACEOF
14058 #line $LINENO "configure"
14059 #include "confdefs.h"
14060 $ac_includes_default
14061 #include <$ac_header>
14063 rm -f conftest.
$ac_objext
14064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14065 (eval $ac_compile) 2>&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); } &&
14069 { ac_try
='test -s conftest.$ac_objext'
14070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14071 (eval $ac_try) 2>&5
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); }; }; then
14075 ac_header_compiler
=yes
14077 echo "$as_me: failed program was:" >&5
14078 cat conftest.
$ac_ext >&5
14079 ac_header_compiler
=no
14081 rm -f conftest.
$ac_objext conftest.
$ac_ext
14082 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14083 echo "${ECHO_T}$ac_header_compiler" >&6
14085 # Is the header present?
14086 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14087 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14088 cat >conftest.
$ac_ext <<_ACEOF
14089 #line $LINENO "configure"
14090 #include "confdefs.h"
14091 #include <$ac_header>
14093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14094 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14096 grep -v '^ *+' conftest.er1
>conftest.err
14098 cat conftest.err
>&5
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } >/dev
/null
; then
14101 if test -s conftest.err
; then
14102 ac_cpp_err
=$ac_c_preproc_warn_flag
14109 if test -z "$ac_cpp_err"; then
14110 ac_header_preproc
=yes
14112 echo "$as_me: failed program was:" >&5
14113 cat conftest.
$ac_ext >&5
14114 ac_header_preproc
=no
14116 rm -f conftest.err conftest.
$ac_ext
14117 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14118 echo "${ECHO_T}$ac_header_preproc" >&6
14120 # So? What about this header?
14121 case $ac_header_compiler:$ac_header_preproc in
14123 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14124 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14128 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14129 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14130 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14131 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14135 echo "$as_me:$LINENO: checking for $ac_header" >&5
14136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14138 echo $ECHO_N "(cached) $ECHO_C" >&6
14140 eval "$as_ac_Header=$ac_header_preproc"
14142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14143 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14147 cat >>confdefs.h
<<_ACEOF
14148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14157 # Solaris requires -lintl if you want strerror (which calls dgettext)
14158 # to return localized messages.
14160 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
14161 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
14162 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
14163 echo $ECHO_N "(cached) $ECHO_C" >&6
14165 ac_check_lib_save_LIBS
=$LIBS
14166 LIBS
="-lintl $LIBS"
14167 cat >conftest.
$ac_ext <<_ACEOF
14168 #line $LINENO "configure"
14169 #include "confdefs.h"
14171 /* Override any gcc2 internal prototype to avoid an error. */
14175 /* We use char because int might match the return type of a gcc2
14176 builtin and then its argument prototype would still apply. */
14186 rm -f conftest.
$ac_objext conftest
$ac_exeext
14187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14188 (eval $ac_link) 2>&5
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); } &&
14192 { ac_try
='test -s conftest$ac_exeext'
14193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14194 (eval $ac_try) 2>&5
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); }; }; then
14198 ac_cv_lib_intl_dgettext
=yes
14200 echo "$as_me: failed program was:" >&5
14201 cat conftest.
$ac_ext >&5
14202 ac_cv_lib_intl_dgettext
=no
14204 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14205 LIBS
=$ac_check_lib_save_LIBS
14207 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
14208 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
14209 if test $ac_cv_lib_intl_dgettext = yes; then
14210 cat >>confdefs.h
<<_ACEOF
14211 #define HAVE_LIBINTL 1
14214 LIBS
="-lintl $LIBS"
14219 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
14220 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
14221 if test "${emacs_cv_localtime_cache+set}" = set; then
14222 echo $ECHO_N "(cached) $ECHO_C" >&6
14224 if test x
$ac_cv_func_tzset = xyes
; then
14225 if test "$cross_compiling" = yes; then
14226 # If we have tzset, assume the worst when cross-compiling.
14227 emacs_cv_localtime_cache
=yes
14229 cat >conftest.
$ac_ext <<_ACEOF
14230 #line $LINENO "configure"
14231 #include "confdefs.h"
14233 extern char **environ;
14237 for (to = from = environ; (*to = *from); from++)
14238 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
14241 char TZ_GMT0[] = "TZ=GMT0";
14242 char TZ_PST8[] = "TZ=PST8";
14245 time_t now = time ((time_t *) 0);
14246 int hour_GMT0, hour_unset;
14247 if (putenv (TZ_GMT0) != 0)
14249 hour_GMT0 = localtime (&now)->tm_hour;
14251 hour_unset = localtime (&now)->tm_hour;
14252 if (putenv (TZ_PST8) != 0)
14254 if (localtime (&now)->tm_hour == hour_GMT0)
14257 if (localtime (&now)->tm_hour != hour_unset)
14262 rm -f conftest
$ac_exeext
14263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14264 (eval $ac_link) 2>&5
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269 (eval $ac_try) 2>&5
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); }; }; then
14273 emacs_cv_localtime_cache
=no
14275 echo "$as_me: program exited with status $ac_status" >&5
14276 echo "$as_me: failed program was:" >&5
14277 cat conftest.
$ac_ext >&5
14278 ( exit $ac_status )
14279 emacs_cv_localtime_cache
=yes
14281 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14284 # If we lack tzset, report that localtime does not cache TZ,
14285 # since we can't invalidate the cache if we don't have tzset.
14286 emacs_cv_localtime_cache
=no
14289 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
14290 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
14291 if test $emacs_cv_localtime_cache = yes; then
14293 cat >>confdefs.h
<<\_ACEOF
14294 #define LOCALTIME_CACHE 1
14299 if test "x$HAVE_TIMEVAL" = xyes
; then
14301 for ac_func
in gettimeofday
14303 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14304 echo "$as_me:$LINENO: checking for $ac_func" >&5
14305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14306 if eval "test \"\${$as_ac_var+set}\" = set"; then
14307 echo $ECHO_N "(cached) $ECHO_C" >&6
14309 cat >conftest.
$ac_ext <<_ACEOF
14310 #line $LINENO "configure"
14311 #include "confdefs.h"
14312 /* System header to define __stub macros and hopefully few prototypes,
14313 which can conflict with char $ac_func (); below. */
14314 #include <assert.h>
14315 /* Override any gcc2 internal prototype to avoid an error. */
14319 /* We use char because int might match the return type of a gcc2
14320 builtin and then its argument prototype would still apply. */
14327 /* The GNU C library defines this for functions which it implements
14328 to always fail with ENOSYS. Some functions are actually named
14329 something starting with __ and the normal name is an alias. */
14330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14340 rm -f conftest.
$ac_objext conftest
$ac_exeext
14341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14342 (eval $ac_link) 2>&5
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); } &&
14346 { ac_try
='test -s conftest$ac_exeext'
14347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14348 (eval $ac_try) 2>&5
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); }; }; then
14352 eval "$as_ac_var=yes"
14354 echo "$as_me: failed program was:" >&5
14355 cat conftest.
$ac_ext >&5
14356 eval "$as_ac_var=no"
14358 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14361 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14362 if test `eval echo '${'$as_ac_var'}'` = yes; then
14363 cat >>confdefs.h
<<_ACEOF
14364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14370 if test $ac_cv_func_gettimeofday = yes; then
14371 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
14372 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
14373 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
14374 echo $ECHO_N "(cached) $ECHO_C" >&6
14376 cat >conftest.
$ac_ext <<_ACEOF
14377 #line $LINENO "configure"
14378 #include "confdefs.h"
14380 #ifdef TIME_WITH_SYS_TIME
14381 #include <sys/time.h>
14384 #ifdef HAVE_SYS_TIME_H
14385 #include <sys/time.h>
14393 struct timeval time;
14394 gettimeofday (&time, 0);
14399 rm -f conftest.
$ac_objext
14400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14401 (eval $ac_compile) 2>&5
14403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); } &&
14405 { ac_try
='test -s conftest.$ac_objext'
14406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14407 (eval $ac_try) 2>&5
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); }; }; then
14411 emacs_cv_gettimeofday_two_arguments
=yes
14413 echo "$as_me: failed program was:" >&5
14414 cat conftest.
$ac_ext >&5
14415 emacs_cv_gettimeofday_two_arguments
=no
14417 rm -f conftest.
$ac_objext conftest.
$ac_ext
14419 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
14420 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
14421 if test $emacs_cv_gettimeofday_two_arguments = no
; then
14423 cat >>confdefs.h
<<\_ACEOF
14424 #define GETTIMEOFDAY_ONE_ARGUMENT 1
14431 if test "$ac_cv_func_gettimeofday" = yes; then
14432 echo "$as_me:$LINENO: checking for struct timezone" >&5
14433 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
14434 if test "${emacs_cv_struct_timezone+set}" = set; then
14435 echo $ECHO_N "(cached) $ECHO_C" >&6
14437 cat >conftest.
$ac_ext <<_ACEOF
14438 #line $LINENO "configure"
14439 #include "confdefs.h"
14440 #include <sys/time.h>
14444 struct timezone tz;
14449 rm -f conftest.
$ac_objext
14450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14451 (eval $ac_compile) 2>&5
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); } &&
14455 { ac_try
='test -s conftest.$ac_objext'
14456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14457 (eval $ac_try) 2>&5
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); }; }; then
14461 if test "$cross_compiling" = yes; then
14462 emacs_cv_struct_timezone
=yes
14464 cat >conftest.
$ac_ext <<_ACEOF
14465 #line $LINENO "configure"
14466 #include "confdefs.h"
14468 #ifdef TIME_WITH_SYS_TIME
14469 #include <sys/time.h>
14472 #ifdef HAVE_SYS_TIME_H
14473 #include <sys/time.h>
14479 struct timeval time;
14480 struct timezone dummy;
14481 exit (gettimeofday (&time, &dummy));
14484 rm -f conftest
$ac_exeext
14485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14486 (eval $ac_link) 2>&5
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14491 (eval $ac_try) 2>&5
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); }; }; then
14495 emacs_cv_struct_timezone
=yes
14497 echo "$as_me: program exited with status $ac_status" >&5
14498 echo "$as_me: failed program was:" >&5
14499 cat conftest.
$ac_ext >&5
14500 ( exit $ac_status )
14501 emacs_cv_struct_timezone
=no
14503 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14506 echo "$as_me: failed program was:" >&5
14507 cat conftest.
$ac_ext >&5
14508 emacs_cv_struct_timezone
=no
14510 rm -f conftest.
$ac_objext conftest.
$ac_ext
14512 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
14513 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
14517 echo "$as_me:$LINENO: checking for socket" >&5
14518 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14519 if test "${ac_cv_func_socket+set}" = set; then
14520 echo $ECHO_N "(cached) $ECHO_C" >&6
14522 cat >conftest.
$ac_ext <<_ACEOF
14523 #line $LINENO "configure"
14524 #include "confdefs.h"
14525 /* System header to define __stub macros and hopefully few prototypes,
14526 which can conflict with char socket (); below. */
14527 #include <assert.h>
14528 /* Override any gcc2 internal prototype to avoid an error. */
14532 /* We use char because int might match the return type of a gcc2
14533 builtin and then its argument prototype would still apply. */
14540 /* The GNU C library defines this for functions which it implements
14541 to always fail with ENOSYS. Some functions are actually named
14542 something starting with __ and the normal name is an alias. */
14543 #if defined (__stub_socket) || defined (__stub___socket)
14553 rm -f conftest.
$ac_objext conftest
$ac_exeext
14554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14555 (eval $ac_link) 2>&5
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); } &&
14559 { ac_try
='test -s conftest$ac_exeext'
14560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14561 (eval $ac_try) 2>&5
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); }; }; then
14565 ac_cv_func_socket
=yes
14567 echo "$as_me: failed program was:" >&5
14568 cat conftest.
$ac_ext >&5
14569 ac_cv_func_socket
=no
14571 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14573 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14574 echo "${ECHO_T}$ac_cv_func_socket" >&6
14575 if test $ac_cv_func_socket = yes; then
14581 if test $ok_so_far = yes; then
14582 if test "${ac_cv_header_netinet_in_h+set}" = set; then
14583 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
14584 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
14585 if test "${ac_cv_header_netinet_in_h+set}" = set; then
14586 echo $ECHO_N "(cached) $ECHO_C" >&6
14588 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
14589 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
14591 # Is the header compilable?
14592 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
14593 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
14594 cat >conftest.
$ac_ext <<_ACEOF
14595 #line $LINENO "configure"
14596 #include "confdefs.h"
14597 $ac_includes_default
14598 #include <netinet/in.h>
14600 rm -f conftest.
$ac_objext
14601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14602 (eval $ac_compile) 2>&5
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); } &&
14606 { ac_try
='test -s conftest.$ac_objext'
14607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608 (eval $ac_try) 2>&5
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); }; }; then
14612 ac_header_compiler
=yes
14614 echo "$as_me: failed program was:" >&5
14615 cat conftest.
$ac_ext >&5
14616 ac_header_compiler
=no
14618 rm -f conftest.
$ac_objext conftest.
$ac_ext
14619 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14620 echo "${ECHO_T}$ac_header_compiler" >&6
14622 # Is the header present?
14623 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
14624 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
14625 cat >conftest.
$ac_ext <<_ACEOF
14626 #line $LINENO "configure"
14627 #include "confdefs.h"
14628 #include <netinet/in.h>
14630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14631 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14633 grep -v '^ *+' conftest.er1
>conftest.err
14635 cat conftest.err
>&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); } >/dev
/null
; then
14638 if test -s conftest.err
; then
14639 ac_cpp_err
=$ac_c_preproc_warn_flag
14646 if test -z "$ac_cpp_err"; then
14647 ac_header_preproc
=yes
14649 echo "$as_me: failed program was:" >&5
14650 cat conftest.
$ac_ext >&5
14651 ac_header_preproc
=no
14653 rm -f conftest.err conftest.
$ac_ext
14654 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14655 echo "${ECHO_T}$ac_header_preproc" >&6
14657 # So? What about this header?
14658 case $ac_header_compiler:$ac_header_preproc in
14660 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
14661 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14662 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
14663 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;};;
14665 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
14666 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
14667 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
14668 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
14669 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
14670 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;};;
14672 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
14673 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
14674 if test "${ac_cv_header_netinet_in_h+set}" = set; then
14675 echo $ECHO_N "(cached) $ECHO_C" >&6
14677 ac_cv_header_netinet_in_h
=$ac_header_preproc
14679 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
14680 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
14683 if test $ac_cv_header_netinet_in_h = yes; then
14691 if test $ok_so_far = yes; then
14692 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
14693 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
14694 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
14695 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
14696 echo $ECHO_N "(cached) $ECHO_C" >&6
14698 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
14699 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
14701 # Is the header compilable?
14702 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
14703 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
14704 cat >conftest.
$ac_ext <<_ACEOF
14705 #line $LINENO "configure"
14706 #include "confdefs.h"
14707 $ac_includes_default
14708 #include <arpa/inet.h>
14710 rm -f conftest.
$ac_objext
14711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14712 (eval $ac_compile) 2>&5
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); } &&
14716 { ac_try
='test -s conftest.$ac_objext'
14717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718 (eval $ac_try) 2>&5
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); }; }; then
14722 ac_header_compiler
=yes
14724 echo "$as_me: failed program was:" >&5
14725 cat conftest.
$ac_ext >&5
14726 ac_header_compiler
=no
14728 rm -f conftest.
$ac_objext conftest.
$ac_ext
14729 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14730 echo "${ECHO_T}$ac_header_compiler" >&6
14732 # Is the header present?
14733 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
14734 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
14735 cat >conftest.
$ac_ext <<_ACEOF
14736 #line $LINENO "configure"
14737 #include "confdefs.h"
14738 #include <arpa/inet.h>
14740 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14741 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14743 grep -v '^ *+' conftest.er1
>conftest.err
14745 cat conftest.err
>&5
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); } >/dev
/null
; then
14748 if test -s conftest.err
; then
14749 ac_cpp_err
=$ac_c_preproc_warn_flag
14756 if test -z "$ac_cpp_err"; then
14757 ac_header_preproc
=yes
14759 echo "$as_me: failed program was:" >&5
14760 cat conftest.
$ac_ext >&5
14761 ac_header_preproc
=no
14763 rm -f conftest.err conftest.
$ac_ext
14764 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14765 echo "${ECHO_T}$ac_header_preproc" >&6
14767 # So? What about this header?
14768 case $ac_header_compiler:$ac_header_preproc in
14770 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
14771 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14772 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
14773 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;};;
14775 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
14776 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
14777 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
14778 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
14779 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
14780 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;};;
14782 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
14783 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
14784 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
14785 echo $ECHO_N "(cached) $ECHO_C" >&6
14787 ac_cv_header_arpa_inet_h
=$ac_header_preproc
14789 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
14790 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
14793 if test $ac_cv_header_arpa_inet_h = yes; then
14801 if test $ok_so_far = yes; then
14803 cat >>confdefs.h
<<\_ACEOF
14804 #define HAVE_INET_SOCKETS 1
14809 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
14811 cat >>confdefs.h
<<\_ACEOF
14812 #define HAVE_AIX_SMT_EXP 1
14817 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
14818 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
14819 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
14820 echo "$as_me:$LINENO: result: yes" >&5
14821 echo "${ECHO_T}yes" >&6
14823 cat >>confdefs.h
<<\_ACEOF
14824 #define HAVE_DEV_PTMX 1
14828 echo "$as_me:$LINENO: result: no" >&5
14829 echo "${ECHO_T}no" >&6
14832 echo "$as_me:$LINENO: checking for pid_t" >&5
14833 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14834 if test "${ac_cv_type_pid_t+set}" = set; then
14835 echo $ECHO_N "(cached) $ECHO_C" >&6
14837 cat >conftest.
$ac_ext <<_ACEOF
14838 #line $LINENO "configure"
14839 #include "confdefs.h"
14840 $ac_includes_default
14846 if (sizeof (pid_t))
14852 rm -f conftest.
$ac_objext
14853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14854 (eval $ac_compile) 2>&5
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); } &&
14858 { ac_try
='test -s conftest.$ac_objext'
14859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14860 (eval $ac_try) 2>&5
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); }; }; then
14864 ac_cv_type_pid_t
=yes
14866 echo "$as_me: failed program was:" >&5
14867 cat conftest.
$ac_ext >&5
14868 ac_cv_type_pid_t
=no
14870 rm -f conftest.
$ac_objext conftest.
$ac_ext
14872 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14873 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14874 if test $ac_cv_type_pid_t = yes; then
14878 cat >>confdefs.h
<<_ACEOF
14886 for ac_header
in unistd.h vfork.h
14888 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14890 echo "$as_me:$LINENO: checking for $ac_header" >&5
14891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14893 echo $ECHO_N "(cached) $ECHO_C" >&6
14895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14898 # Is the header compilable?
14899 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14900 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14901 cat >conftest.
$ac_ext <<_ACEOF
14902 #line $LINENO "configure"
14903 #include "confdefs.h"
14904 $ac_includes_default
14905 #include <$ac_header>
14907 rm -f conftest.
$ac_objext
14908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14909 (eval $ac_compile) 2>&5
14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912 (exit $ac_status); } &&
14913 { ac_try
='test -s conftest.$ac_objext'
14914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14915 (eval $ac_try) 2>&5
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); }; }; then
14919 ac_header_compiler
=yes
14921 echo "$as_me: failed program was:" >&5
14922 cat conftest.
$ac_ext >&5
14923 ac_header_compiler
=no
14925 rm -f conftest.
$ac_objext conftest.
$ac_ext
14926 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14927 echo "${ECHO_T}$ac_header_compiler" >&6
14929 # Is the header present?
14930 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14931 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14932 cat >conftest.
$ac_ext <<_ACEOF
14933 #line $LINENO "configure"
14934 #include "confdefs.h"
14935 #include <$ac_header>
14937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14938 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14940 grep -v '^ *+' conftest.er1
>conftest.err
14942 cat conftest.err
>&5
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); } >/dev
/null
; then
14945 if test -s conftest.err
; then
14946 ac_cpp_err
=$ac_c_preproc_warn_flag
14953 if test -z "$ac_cpp_err"; then
14954 ac_header_preproc
=yes
14956 echo "$as_me: failed program was:" >&5
14957 cat conftest.
$ac_ext >&5
14958 ac_header_preproc
=no
14960 rm -f conftest.err conftest.
$ac_ext
14961 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14962 echo "${ECHO_T}$ac_header_preproc" >&6
14964 # So? What about this header?
14965 case $ac_header_compiler:$ac_header_preproc in
14967 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14968 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14970 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14973 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14975 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14979 echo "$as_me:$LINENO: checking for $ac_header" >&5
14980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14982 echo $ECHO_N "(cached) $ECHO_C" >&6
14984 eval "$as_ac_Header=$ac_header_preproc"
14986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14991 cat >>confdefs.h
<<_ACEOF
14992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15001 for ac_func
in fork vfork
15003 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15004 echo "$as_me:$LINENO: checking for $ac_func" >&5
15005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15006 if eval "test \"\${$as_ac_var+set}\" = set"; then
15007 echo $ECHO_N "(cached) $ECHO_C" >&6
15009 cat >conftest.
$ac_ext <<_ACEOF
15010 #line $LINENO "configure"
15011 #include "confdefs.h"
15012 /* System header to define __stub macros and hopefully few prototypes,
15013 which can conflict with char $ac_func (); below. */
15014 #include <assert.h>
15015 /* Override any gcc2 internal prototype to avoid an error. */
15019 /* We use char because int might match the return type of a gcc2
15020 builtin and then its argument prototype would still apply. */
15027 /* The GNU C library defines this for functions which it implements
15028 to always fail with ENOSYS. Some functions are actually named
15029 something starting with __ and the normal name is an alias. */
15030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15040 rm -f conftest.
$ac_objext conftest
$ac_exeext
15041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15042 (eval $ac_link) 2>&5
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); } &&
15046 { ac_try
='test -s conftest$ac_exeext'
15047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15048 (eval $ac_try) 2>&5
15050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051 (exit $ac_status); }; }; then
15052 eval "$as_ac_var=yes"
15054 echo "$as_me: failed program was:" >&5
15055 cat conftest.
$ac_ext >&5
15056 eval "$as_ac_var=no"
15058 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15062 if test `eval echo '${'$as_ac_var'}'` = yes; then
15063 cat >>confdefs.h
<<_ACEOF
15064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15070 if test "x$ac_cv_func_fork" = xyes
; then
15071 echo "$as_me:$LINENO: checking for working fork" >&5
15072 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15073 if test "${ac_cv_func_fork_works+set}" = set; then
15074 echo $ECHO_N "(cached) $ECHO_C" >&6
15076 if test "$cross_compiling" = yes; then
15077 ac_cv_func_fork_works
=cross
15079 cat >conftest.
$ac_ext <<_ACEOF
15080 /* By Ruediger Kuhlmann. */
15081 #include <sys/types.h>
15083 # include <unistd.h>
15085 /* Some systems only have a dummy stub for fork() */
15093 rm -f conftest
$ac_exeext
15094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15095 (eval $ac_link) 2>&5
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15100 (eval $ac_try) 2>&5
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); }; }; then
15104 ac_cv_func_fork_works
=yes
15106 echo "$as_me: program exited with status $ac_status" >&5
15107 echo "$as_me: failed program was:" >&5
15108 cat conftest.
$ac_ext >&5
15109 ( exit $ac_status )
15110 ac_cv_func_fork_works
=no
15112 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15115 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15116 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15119 ac_cv_func_fork_works
=$ac_cv_func_fork
15121 if test "x$ac_cv_func_fork_works" = xcross
; then
15123 *-*-amigaos* |
*-*-msdosdjgpp*)
15124 # Override, as these systems have only a dummy fork() stub
15125 ac_cv_func_fork_works
=no
15128 ac_cv_func_fork_works
=yes
15131 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15132 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15134 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15135 if test "x$ac_cv_func_vfork" = xyes
; then
15136 echo "$as_me:$LINENO: checking for working vfork" >&5
15137 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15138 if test "${ac_cv_func_vfork_works+set}" = set; then
15139 echo $ECHO_N "(cached) $ECHO_C" >&6
15141 if test "$cross_compiling" = yes; then
15142 ac_cv_func_vfork_works
=cross
15144 cat >conftest.
$ac_ext <<_ACEOF
15145 #line $LINENO "configure"
15146 #include "confdefs.h"
15147 /* Thanks to Paul Eggert for this test. */
15149 #include <sys/types.h>
15150 #include <sys/stat.h>
15152 # include <unistd.h>
15155 # include <vfork.h>
15157 /* On some sparc systems, changes by the child to local and incoming
15158 argument registers are propagated back to the parent. The compiler
15159 is told about this with #include <vfork.h>, but some compilers
15160 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15161 static variable whose address is put into a register that is
15162 clobbered by the vfork. */
15165 sparc_address_test (int arg)
15167 sparc_address_test (arg) int arg;
15170 static pid_t child;
15188 pid_t parent = getpid ();
15191 sparc_address_test ();
15196 /* Here is another test for sparc vfork register problems. This
15197 test uses lots of local variables, at least as many local
15198 variables as main has allocated so far including compiler
15199 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15200 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15201 reuse the register of parent for one of the local variables,
15202 since it will think that parent can't possibly be used any more
15203 in this routine. Assigning to the local variable will thus
15204 munge parent in the parent process. */
15206 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15207 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15208 /* Convince the compiler that p..p7 are live; otherwise, it might
15209 use the same hardware register for all 8 local variables. */
15210 if (p != p1 || p != p2 || p != p3 || p != p4
15211 || p != p5 || p != p6 || p != p7)
15214 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15215 from child file descriptors. If the child closes a descriptor
15216 before it execs or exits, this munges the parent's descriptor
15217 as well. Test for this by closing stdout in the child. */
15218 _exit(close(fileno(stdout)) != 0);
15223 while (wait(&status) != child)
15226 /* Was there some problem with vforking? */
15229 /* Did the child fail? (This shouldn't happen.) */
15232 /* Did the vfork/compiler bug occur? */
15233 || parent != getpid()
15235 /* Did the file descriptor bug occur? */
15236 || fstat(fileno(stdout), &st) != 0
15241 rm -f conftest
$ac_exeext
15242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15243 (eval $ac_link) 2>&5
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15248 (eval $ac_try) 2>&5
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); }; }; then
15252 ac_cv_func_vfork_works
=yes
15254 echo "$as_me: program exited with status $ac_status" >&5
15255 echo "$as_me: failed program was:" >&5
15256 cat conftest.
$ac_ext >&5
15257 ( exit $ac_status )
15258 ac_cv_func_vfork_works
=no
15260 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15263 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15264 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15267 if test "x$ac_cv_func_fork_works" = xcross
; then
15268 ac_cv_func_vfork_works
=ac_cv_func_vfork
15269 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15270 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15273 if test "x$ac_cv_func_vfork_works" = xyes
; then
15275 cat >>confdefs.h
<<\_ACEOF
15276 #define HAVE_WORKING_VFORK 1
15281 cat >>confdefs.h
<<\_ACEOF
15286 if test "x$ac_cv_func_fork_works" = xyes
; then
15288 cat >>confdefs.h
<<\_ACEOF
15289 #define HAVE_WORKING_FORK 1
15295 echo "$as_me:$LINENO: checking for size_t" >&5
15296 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15297 if test "${ac_cv_type_size_t+set}" = set; then
15298 echo $ECHO_N "(cached) $ECHO_C" >&6
15300 cat >conftest.
$ac_ext <<_ACEOF
15301 #line $LINENO "configure"
15302 #include "confdefs.h"
15303 $ac_includes_default
15309 if (sizeof (size_t))
15315 rm -f conftest.
$ac_objext
15316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15317 (eval $ac_compile) 2>&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); } &&
15321 { ac_try
='test -s conftest.$ac_objext'
15322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15323 (eval $ac_try) 2>&5
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); }; }; then
15327 ac_cv_type_size_t
=yes
15329 echo "$as_me: failed program was:" >&5
15330 cat conftest.
$ac_ext >&5
15331 ac_cv_type_size_t
=no
15333 rm -f conftest.
$ac_objext conftest.
$ac_ext
15335 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15336 echo "${ECHO_T}$ac_cv_type_size_t" >&6
15337 if test $ac_cv_type_size_t = yes; then
15339 cat >>confdefs.h
<<_ACEOF
15340 #define HAVE_SIZE_T 1
15347 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
15348 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
15349 if test "${emacs_cv_c_restrict+set}" = set; then
15350 echo $ECHO_N "(cached) $ECHO_C" >&6
15352 cat >conftest.
$ac_ext <<_ACEOF
15353 #line $LINENO "configure"
15354 #include "confdefs.h"
15355 void fred (int *restrict x);
15364 rm -f conftest.
$ac_objext
15365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15366 (eval $ac_compile) 2>&5
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); } &&
15370 { ac_try
='test -s conftest.$ac_objext'
15371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15372 (eval $ac_try) 2>&5
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); }; }; then
15376 emacs_cv_c_restrict
=yes
15378 echo "$as_me: failed program was:" >&5
15379 cat conftest.
$ac_ext >&5
15380 cat >conftest.
$ac_ext <<_ACEOF
15381 #line $LINENO "configure"
15382 #include "confdefs.h"
15383 void fred (int *__restrict x);
15392 rm -f conftest.
$ac_objext
15393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15394 (eval $ac_compile) 2>&5
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); } &&
15398 { ac_try
='test -s conftest.$ac_objext'
15399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15400 (eval $ac_try) 2>&5
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); }; }; then
15404 emacs_cv_c_restrict
=__restrict
15406 echo "$as_me: failed program was:" >&5
15407 cat conftest.
$ac_ext >&5
15408 emacs_cv_c_restrict
=no
15410 rm -f conftest.
$ac_objext conftest.
$ac_ext
15412 rm -f conftest.
$ac_objext conftest.
$ac_ext
15414 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
15415 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
15416 case "$emacs_cv_c_restrict" in
15417 yes) emacs_restrict
=restrict
;;
15418 no
) emacs_restrict
="";;
15419 *) emacs_restrict
="$emacs_cv_c_restrict";;
15421 if test "$emacs_restrict" != __restrict
; then
15423 cat >>confdefs.h
<<_ACEOF
15424 #define __restrict $emacs_restrict
15429 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
15430 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
15431 if test "${emacs_cv_c_restrict_arr+set}" = set; then
15432 echo $ECHO_N "(cached) $ECHO_C" >&6
15434 cat >conftest.
$ac_ext <<_ACEOF
15435 #line $LINENO "configure"
15436 #include "confdefs.h"
15437 void fred (int x[__restrict]);
15446 rm -f conftest.
$ac_objext
15447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15448 (eval $ac_compile) 2>&5
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); } &&
15452 { ac_try
='test -s conftest.$ac_objext'
15453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15454 (eval $ac_try) 2>&5
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); }; }; then
15458 emacs_cv_c_restrict_arr
=yes
15460 echo "$as_me: failed program was:" >&5
15461 cat conftest.
$ac_ext >&5
15462 emacs_cv_c_restrict_arr
=no
15464 rm -f conftest.
$ac_objext conftest.
$ac_ext
15466 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
15467 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
15468 if test "$emacs_cv_c_restrict_arr" = yes; then
15470 cat >>confdefs.h
<<\_ACEOF
15471 #define __restrict_arr __restrict
15477 for ac_header
in nlist.h
15479 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15481 echo "$as_me:$LINENO: checking for $ac_header" >&5
15482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15484 echo $ECHO_N "(cached) $ECHO_C" >&6
15486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15489 # Is the header compilable?
15490 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15491 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15492 cat >conftest.
$ac_ext <<_ACEOF
15493 #line $LINENO "configure"
15494 #include "confdefs.h"
15495 $ac_includes_default
15496 #include <$ac_header>
15498 rm -f conftest.
$ac_objext
15499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15500 (eval $ac_compile) 2>&5
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); } &&
15504 { ac_try
='test -s conftest.$ac_objext'
15505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15506 (eval $ac_try) 2>&5
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); }; }; then
15510 ac_header_compiler
=yes
15512 echo "$as_me: failed program was:" >&5
15513 cat conftest.
$ac_ext >&5
15514 ac_header_compiler
=no
15516 rm -f conftest.
$ac_objext conftest.
$ac_ext
15517 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15518 echo "${ECHO_T}$ac_header_compiler" >&6
15520 # Is the header present?
15521 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15523 cat >conftest.
$ac_ext <<_ACEOF
15524 #line $LINENO "configure"
15525 #include "confdefs.h"
15526 #include <$ac_header>
15528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15529 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15531 grep -v '^ *+' conftest.er1
>conftest.err
15533 cat conftest.err
>&5
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); } >/dev
/null
; then
15536 if test -s conftest.err
; then
15537 ac_cpp_err
=$ac_c_preproc_warn_flag
15544 if test -z "$ac_cpp_err"; then
15545 ac_header_preproc
=yes
15547 echo "$as_me: failed program was:" >&5
15548 cat conftest.
$ac_ext >&5
15549 ac_header_preproc
=no
15551 rm -f conftest.err conftest.
$ac_ext
15552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15553 echo "${ECHO_T}$ac_header_preproc" >&6
15555 # So? What about this header?
15556 case $ac_header_compiler:$ac_header_preproc in
15558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15563 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15566 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15570 echo "$as_me:$LINENO: checking for $ac_header" >&5
15571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15573 echo $ECHO_N "(cached) $ECHO_C" >&6
15575 eval "$as_ac_Header=$ac_header_preproc"
15577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15582 cat >>confdefs.h
<<_ACEOF
15583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15586 cat >>confdefs.h
<<\_ACEOF
15587 #define NLIST_STRUCT 1
15597 # Set up the CFLAGS for real compilation, so we can substitute it.
15598 CFLAGS
="$REAL_CFLAGS"
15599 CPPFLAGS
="$REAL_CPPFLAGS"
15601 #### Find out which version of Emacs this is.
15602 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
15603 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
15604 if test x
"${version}" = x
; then
15605 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
15606 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
15607 { (exit 1); exit 1; }; }
15610 ### Specify what sort of things we'll be editing into Makefile and config.h.
15611 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15646 cat >>confdefs.h
<<_ACEOF
15647 #define EMACS_CONFIGURATION "${canonical}"
15651 cat >>confdefs.h
<<_ACEOF
15652 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15656 cat >>confdefs.h
<<_ACEOF
15657 #define config_machfile "${machfile}"
15661 cat >>confdefs.h
<<_ACEOF
15662 #define config_opsysfile "${opsysfile}"
15666 cat >>confdefs.h
<<_ACEOF
15667 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
15671 cat >>confdefs.h
<<_ACEOF
15672 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
15676 cat >>confdefs.h
<<_ACEOF
15677 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
15681 cat >>confdefs.h
<<_ACEOF
15682 #define UNEXEC_SRC ${UNEXEC_SRC}
15686 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15688 cat >>confdefs.h
<<\_ACEOF
15689 #define HAVE_X_WINDOWS 1
15693 if test "${USE_X_TOOLKIT}" != "none" ; then
15695 cat >>confdefs.h
<<\_ACEOF
15696 #define USE_X_TOOLKIT 1
15700 if test "${HAVE_X11}" = "yes" ; then
15702 cat >>confdefs.h
<<\_ACEOF
15707 if test "${HAVE_XFREE386}" = "yes" ; then
15709 cat >>confdefs.h
<<\_ACEOF
15710 #define HAVE_XFREE386 1
15714 if test "${HAVE_MENUS}" = "yes" ; then
15716 cat >>confdefs.h
<<\_ACEOF
15717 #define HAVE_MENUS 1
15721 if test "${GNU_MALLOC}" = "yes" ; then
15723 cat >>confdefs.h
<<\_ACEOF
15724 #define GNU_MALLOC 1
15728 if test "${REL_ALLOC}" = "yes" ; then
15730 cat >>confdefs.h
<<\_ACEOF
15731 #define REL_ALLOC 1
15740 #### Report on what we decided to do.
15742 Configured for \`${canonical}'.
15744 Where should the build process find the source code? ${srcdir}
15745 What operating system and machine description files should Emacs use?
15746 \`${opsysfile}' and \`${machfile}'
15747 What compiler should emacs be built with? ${CC} ${CFLAGS}
15748 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
15749 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
15750 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
15751 What window system should Emacs use? ${window_system}
15752 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
15754 if test -n "${x_includes}"; then
15755 echo " Where do we find X Windows header files? ${x_includes}"
15757 echo " Where do we find X Windows header files? Standard dirs"
15759 if test -n "${x_libraries}"; then
15760 echo " Where do we find X Windows libraries? ${x_libraries}"
15762 echo " Where do we find X Windows libraries? Standard dirs"
15765 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
15766 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
15767 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
15768 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
15769 echo " Does Emacs use -lungif? ${HAVE_GIF}"
15770 echo " Does Emacs use -lpng? ${HAVE_PNG}"
15771 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
15774 # Remove any trailing slashes in these variables.
15775 test "${prefix}" != NONE
&&
15776 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
15777 test "${exec_prefix}" != NONE
&&
15778 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
15780 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
15781 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
15782 ## from Makefile.c can correctly provide the arg `-traditional' to the
15785 cat >conftest.
$ac_ext <<_ACEOF
15786 #line $LINENO "configure"
15787 #include "confdefs.h"
15790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15791 $EGREP "yes..yes" >/dev
/null
2>&1; then
15792 CPP_NEED_TRADITIONAL
=no
15794 CPP_NEED_TRADITIONAL
=yes
15799 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"
15800 ac_config_commands
="$ac_config_commands default"
15801 cat >confcache
<<\_ACEOF
15802 # This file is a shell script that caches the results of configure
15803 # tests run on this system so they can be shared between configure
15804 # scripts and configure runs, see configure's option --config-cache.
15805 # It is not useful on other systems. If it contains results you don't
15806 # want to keep, you may remove or edit it.
15808 # config.status only pays attention to the cache file if you give it
15809 # the --recheck option to rerun configure.
15811 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15812 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15813 # following values.
15817 # The following way of writing the cache mishandles newlines in values,
15818 # but we know of no workaround that is simple, portable, and efficient.
15819 # So, don't put newlines in cache variables' values.
15820 # Ultrix sh set writes to stderr and can't be redirected directly,
15821 # and sets the high bit in the cache file unless we assign to the vars.
15824 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15826 # `set' does not quote correctly, so add quotes (double-quote
15827 # substitution turns \\\\ into \\, and sed turns \\ into \).
15830 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15833 # `set' quotes correctly as required by POSIX, so do not add quotes.
15835 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15842 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15844 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15846 if cmp -s $cache_file confcache
; then :; else
15847 if test -w $cache_file; then
15848 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15849 cat confcache
>$cache_file
15851 echo "not updating unwritable cache $cache_file"
15856 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15857 # Let make expand exec_prefix.
15858 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15860 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15861 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15862 # trailing colons and then remove the whole line if VPATH becomes empty
15863 # (actually we leave an empty line to preserve line numbers).
15864 if test "x$srcdir" = x.
; then
15865 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
15866 s/:*\$(srcdir):*/:/;
15867 s/:*\${srcdir}:*/:/;
15869 s/^\([^=]*=[ ]*\):*/\1/;
15875 DEFS
=-DHAVE_CONFIG_H
15879 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15880 # 1. Remove the extension, and $U if already installed.
15881 ac_i
=`echo "$ac_i" |
15882 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15884 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
15885 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
15887 LIBOBJS
=$ac_libobjs
15889 LTLIBOBJS
=$ac_ltlibobjs
15893 : ${CONFIG_STATUS=./config.status}
15894 ac_clean_files_save
=$ac_clean_files
15895 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15896 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15897 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15898 cat >$CONFIG_STATUS <<_ACEOF
15900 # Generated by $as_me.
15901 # Run this file to recreate the current configuration.
15902 # Compiler output produced by configure, useful for debugging
15903 # configure, is in config.log if it exists.
15906 SHELL=\${CONFIG_SHELL-$SHELL}
15909 cat >>$CONFIG_STATUS <<\_ACEOF
15910 ## --------------------- ##
15911 ## M4sh Initialization. ##
15912 ## --------------------- ##
15914 # Be Bourne compatible
15915 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
15918 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15919 # is contrary to our usage. Disable this feature.
15920 alias -g '${1+"$@"}'='"$@"'
15921 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
15925 # Support unset when possible.
15926 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
15933 # Work around bugs in pre-3.0 UWIN ksh.
15934 $as_unset ENV MAIL MAILPATH
15940 for as_var
in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
15942 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
15943 eval $as_var=C
; export $as_var
15949 # Required to use basename.
15950 if expr a
: '\(a\)' >/dev
/null
2>&1; then
15956 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
15957 as_basename
=basename
15963 # Name of the executable.
15964 as_me
=`$as_basename "$0" ||
15965 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15966 X"$0" : 'X\(//\)$' \| \
15967 X"$0" : 'X\(/\)$' \| \
15968 . : '\(.\)' 2>/dev/null ||
15970 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15971 /^X\/\(\/\/\)$/{ s//\1/; q; }
15972 /^X\/\(\/\).*/{ s//\1/; q; }
15976 # PATH needs CR, and LINENO needs CR and PATH.
15977 # Avoid depending upon Character Ranges.
15978 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15979 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15980 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15981 as_cr_digits
='0123456789'
15982 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15984 # The user is always right.
15985 if test "${PATH_SEPARATOR+set}" != set; then
15986 echo "#! /bin/sh" >conftest.sh
15987 echo "exit 0" >>conftest.sh
15988 chmod +x conftest.sh
15989 if (PATH
="/nonexistent;."; conftest.sh
) >/dev
/null
2>&1; then
15998 as_lineno_1
=$LINENO
15999 as_lineno_2
=$LINENO
16000 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
16001 test "x$as_lineno_1" != "x$as_lineno_2" &&
16002 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
16003 # Find who we are. Look in the path if we contain no path at all
16006 *[\\/]* ) as_myself
=$0 ;;
16007 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16008 for as_dir
in $PATH
16011 test -z "$as_dir" && as_dir
=.
16012 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
16017 # We did not find ourselves, most probably we were run as `sh COMMAND'
16018 # in which case we are not to be found in the path.
16019 if test "x$as_myself" = x
; then
16022 if test ! -f "$as_myself"; then
16023 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16024 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16025 { (exit 1); exit 1; }; }
16027 case $CONFIG_SHELL in
16029 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16030 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
16033 test -z "$as_dir" && as_dir
=.
16034 for as_base
in sh bash ksh sh5
; do
16037 if ("$as_dir/$as_base" -c '
16038 as_lineno_1=$LINENO
16039 as_lineno_2=$LINENO
16040 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16041 test "x$as_lineno_1" != "x$as_lineno_2" &&
16042 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
16043 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
16044 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
16045 CONFIG_SHELL
=$as_dir/$as_base
16046 export CONFIG_SHELL
16047 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16055 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16056 # uniformly replaced by the line number. The first 'sed' inserts a
16057 # line-number line before each line; the second 'sed' does the real
16058 # work. The second script uses 'N' to pair each line-number line
16059 # with the numbered line, and appends trailing '-' during
16060 # substitution so that $LINENO is not a special case at line end.
16061 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16062 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16063 sed '=' <$as_myself |
16068 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16071 s,^['$as_cr_digits']*\n,,
16072 ' >$as_me.lineno
&&
16073 chmod +x
$as_me.lineno ||
16074 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16075 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16076 { (exit 1); exit 1; }; }
16078 # Don't try to exec as it changes $[0], causing all sort of problems
16079 # (the dirname of $[0] is not the place where we might find the
16080 # original and so on. Autoconf is especially sensible to this).
16082 # Exit status is that of the last command.
16087 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16088 *c
*,-n*) ECHO_N
= ECHO_C
='
16090 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
16091 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
16094 if expr a
: '\(a\)' >/dev
/null
2>&1; then
16100 rm -f conf$$ conf$$.exe conf$$.
file
16102 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16103 # We could just check for DJGPP; but this test a) works b) is more generic
16104 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16105 if test -f conf$$.exe
; then
16106 # Don't use ln at all; we don't have any links
16111 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16116 rm -f conf$$ conf$$.exe conf$$.
file
16118 if mkdir
-p .
2>/dev
/null
; then
16124 as_executable_p
="test -f"
16126 # Sed expression to map a string onto a valid CPP name.
16127 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16129 # Sed expression to map a string onto a valid variable name.
16130 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16134 # We need space, tab and new line, in precisely that order.
16144 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16145 # report actual input values of CONFIG_FILES etc. instead of their
16146 # values after options handling. Logging --version etc. is OK.
16150 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16151 ## Running $as_me. ##
16156 This file was extended by $as_me, which was
16157 generated by GNU Autoconf 2.54. Invocation command line was
16159 CONFIG_FILES = $CONFIG_FILES
16160 CONFIG_HEADERS = $CONFIG_HEADERS
16161 CONFIG_LINKS = $CONFIG_LINKS
16162 CONFIG_COMMANDS = $CONFIG_COMMANDS
16166 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16170 # Files that config.status was made for.
16171 if test -n "$ac_config_files"; then
16172 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16175 if test -n "$ac_config_headers"; then
16176 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16179 if test -n "$ac_config_links"; then
16180 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16183 if test -n "$ac_config_commands"; then
16184 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16187 cat >>$CONFIG_STATUS <<\_ACEOF
16190 \`$as_me' instantiates files from templates according to the
16191 current configuration.
16193 Usage: $0 [OPTIONS] [FILE]...
16195 -h, --help print this help, then exit
16196 -V, --version print version number, then exit
16197 -d, --debug don't remove temporary files
16198 --recheck update $as_me by reconfiguring in the same conditions
16199 --file=FILE[:TEMPLATE]
16200 instantiate the configuration file FILE
16201 --header=FILE[:TEMPLATE]
16202 instantiate the configuration header FILE
16204 Configuration files:
16207 Configuration headers:
16210 Configuration commands:
16213 Report bugs to <bug-autoconf@gnu.org>."
16216 cat >>$CONFIG_STATUS <<_ACEOF
16219 configured by $0, generated by GNU Autoconf 2.54,
16220 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16222 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16223 Free Software Foundation, Inc.
16224 This config.status script is free software; the Free Software Foundation
16225 gives unlimited permission to copy, distribute and modify it."
16230 cat >>$CONFIG_STATUS <<\_ACEOF
16231 # If no file are specified by the user, then we need to provide default
16232 # value. By we need to know if files were specified by the user.
16238 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
16239 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
16247 *) # This is not an option, so the user has probably given explicit
16250 ac_need_defaults
=false
;;
16254 # Handling of the options.
16256 cat >>$CONFIG_STATUS <<_ACEOF
16257 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16258 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16259 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16261 cat >>$CONFIG_STATUS <<\_ACEOF
16262 --version |
--vers* |
-V )
16263 echo "$ac_cs_version"; exit 0 ;;
16265 # Conflict between --help and --header
16266 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16267 Try \`$0 --help' for more information." >&5
16268 echo "$as_me: error: ambiguous option: $1
16269 Try \`$0 --help' for more information." >&2;}
16270 { (exit 1); exit 1; }; };;
16271 --help |
--hel |
-h )
16272 echo "$ac_cs_usage"; exit 0 ;;
16273 --debug |
--d* |
-d )
16275 --file |
--fil |
--fi |
--f )
16277 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
16278 ac_need_defaults
=false
;;
16279 --header |
--heade |
--head |
--hea )
16281 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
16282 ac_need_defaults
=false
;;
16284 # This is an error.
16285 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16286 Try \`$0 --help' for more information." >&5
16287 echo "$as_me: error: unrecognized option: $1
16288 Try \`$0 --help' for more information." >&2;}
16289 { (exit 1); exit 1; }; } ;;
16291 *) ac_config_targets
="$ac_config_targets $1" ;;
16299 cat >>$CONFIG_STATUS <<_ACEOF
16301 # INIT-COMMANDS section.
16304 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
16310 cat >>$CONFIG_STATUS <<\_ACEOF
16311 for ac_config_target
in $ac_config_targets
16313 case "$ac_config_target" in
16314 # Handling of arguments.
16315 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16316 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
16317 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
16318 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
16319 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
16320 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
16321 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
16322 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
16323 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
16324 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
16325 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16326 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
16327 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16328 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16329 { (exit 1); exit 1; }; };;
16333 # If the user did not use the arguments to specify the items to instantiate,
16334 # then the envvar interface is used. Set only those that are not.
16335 # We use the long form for the default assignment because of an extremely
16336 # bizarre bug on SunOS 4.1.3.
16337 if $ac_need_defaults; then
16338 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16339 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16340 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16343 # Create a temporary directory, and hook for its removal unless debugging.
16346 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16347 trap '{ (exit 1); exit 1; }' 1 2 13 15
16350 # Create a (secure) tmp directory for tmp files.
16353 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16354 test -n "$tmp" && test -d "$tmp"
16357 tmp
=$TMPDIR/cs$$
-$RANDOM
16358 (umask 077 && mkdir
$tmp)
16361 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16362 { (exit 1); exit 1; }
16367 cat >>$CONFIG_STATUS <<_ACEOF
16370 # CONFIG_FILES section.
16373 # No need to generate the scripts if there are no CONFIG_FILES.
16374 # This happens for instance when ./config.status config.h
16375 if test -n "\$CONFIG_FILES"; then
16376 # Protect against being on the right side of a sed subst in config.status.
16377 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16378 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16379 s,@SHELL@,$SHELL,;t t
16380 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16381 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16382 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16383 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16384 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16385 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16386 s,@exec_prefix@,$exec_prefix,;t t
16387 s,@prefix@,$prefix,;t t
16388 s,@program_transform_name@,$program_transform_name,;t t
16389 s,@bindir@,$bindir,;t t
16390 s,@sbindir@,$sbindir,;t t
16391 s,@libexecdir@,$libexecdir,;t t
16392 s,@datadir@,$datadir,;t t
16393 s,@sysconfdir@,$sysconfdir,;t t
16394 s,@sharedstatedir@,$sharedstatedir,;t t
16395 s,@localstatedir@,$localstatedir,;t t
16396 s,@libdir@,$libdir,;t t
16397 s,@includedir@,$includedir,;t t
16398 s,@oldincludedir@,$oldincludedir,;t t
16399 s,@infodir@,$infodir,;t t
16400 s,@mandir@,$mandir,;t t
16401 s,@build_alias@,$build_alias,;t t
16402 s,@host_alias@,$host_alias,;t t
16403 s,@target_alias@,$target_alias,;t t
16404 s,@DEFS@,$DEFS,;t t
16405 s,@ECHO_C@,$ECHO_C,;t t
16406 s,@ECHO_N@,$ECHO_N,;t t
16407 s,@ECHO_T@,$ECHO_T,;t t
16408 s,@LIBS@,$LIBS,;t t
16409 s,@build@,$build,;t t
16410 s,@build_cpu@,$build_cpu,;t t
16411 s,@build_vendor@,$build_vendor,;t t
16412 s,@build_os@,$build_os,;t t
16413 s,@host@,$host,;t t
16414 s,@host_cpu@,$host_cpu,;t t
16415 s,@host_vendor@,$host_vendor,;t t
16416 s,@host_os@,$host_os,;t t
16418 s,@CFLAGS@,$CFLAGS,;t t
16419 s,@LDFLAGS@,$LDFLAGS,;t t
16420 s,@CPPFLAGS@,$CPPFLAGS,;t t
16421 s,@ac_ct_CC@,$ac_ct_CC,;t t
16422 s,@EXEEXT@,$EXEEXT,;t t
16423 s,@OBJEXT@,$OBJEXT,;t t
16424 s,@LN_S@,$LN_S,;t t
16426 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16427 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16428 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16429 s,@RANLIB@,$RANLIB,;t t
16430 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16431 s,@EGREP@,$EGREP,;t t
16432 s,@LIBSOUND@,$LIBSOUND,;t t
16433 s,@SET_MAKE@,$SET_MAKE,;t t
16434 s,@ALLOCA@,$ALLOCA,;t t
16435 s,@liblockfile@,$liblockfile,;t t
16436 s,@LIBOBJS@,$LIBOBJS,;t t
16437 s,@NEED_SETGID@,$NEED_SETGID,;t t
16438 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
16439 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
16440 s,@version@,$version,;t t
16441 s,@configuration@,$configuration,;t t
16442 s,@canonical@,$canonical,;t t
16443 s,@srcdir@,$srcdir,;t t
16444 s,@lispdir@,$lispdir,;t t
16445 s,@locallisppath@,$locallisppath,;t t
16446 s,@lisppath@,$lisppath,;t t
16447 s,@x_default_search_path@,$x_default_search_path,;t t
16448 s,@etcdir@,$etcdir,;t t
16449 s,@archlibdir@,$archlibdir,;t t
16450 s,@docdir@,$docdir,;t t
16451 s,@bitmapdir@,$bitmapdir,;t t
16452 s,@gamedir@,$gamedir,;t t
16453 s,@gameuser@,$gameuser,;t t
16454 s,@c_switch_system@,$c_switch_system,;t t
16455 s,@c_switch_machine@,$c_switch_machine,;t t
16456 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
16457 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
16458 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
16459 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
16460 s,@machfile@,$machfile,;t t
16461 s,@opsysfile@,$opsysfile,;t t
16462 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16467 cat >>$CONFIG_STATUS <<\_ACEOF
16468 # Split the substitutions into bite-sized pieces for seds with
16469 # small command number limits, like on Digital OSF/1 and HP-UX.
16470 ac_max_sed_lines
=48
16471 ac_sed_frag
=1 # Number of current file.
16472 ac_beg
=1 # First line for current file.
16473 ac_end
=$ac_max_sed_lines # Line after last line for current file.
16476 while $ac_more_lines; do
16477 if test $ac_beg -gt 1; then
16478 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16480 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16482 if test ! -s $tmp/subs.frag
; then
16483 ac_more_lines
=false
16485 # The purpose of the label and of the branching condition is to
16486 # speed up the sed processing (if there are no `@' at all, there
16487 # is no need to browse any of the substitutions).
16488 # These are the two extra sed commands mentioned above.
16490 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
16491 if test -z "$ac_sed_cmds"; then
16492 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
16494 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16496 ac_sed_frag
=`expr $ac_sed_frag + 1`
16498 ac_end
=`expr $ac_end + $ac_max_sed_lines`
16501 if test -z "$ac_sed_cmds"; then
16504 fi # test -n "$CONFIG_FILES"
16507 cat >>$CONFIG_STATUS <<\_ACEOF
16508 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
16509 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16511 - |
*:- |
*:-:* ) # input from stdin
16513 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16514 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16515 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16516 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16517 * ) ac_file_in
=$ac_file.
in ;;
16520 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16521 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16522 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16523 X"$ac_file" : 'X\(//\)[^/]' \| \
16524 X"$ac_file" : 'X\(//\)$' \| \
16525 X"$ac_file" : 'X\(/\)' \| \
16526 . : '\(.\)' 2>/dev/null ||
16528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16529 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16530 /^X\(\/\/\)$/{ s//\1/; q; }
16531 /^X\(\/\).*/{ s//\1/; q; }
16533 { if $as_mkdir_p; then
16538 while test ! -d "$as_dir"; do
16539 as_dirs
="$as_dir $as_dirs"
16540 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16541 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16542 X"$as_dir" : 'X\(//\)[^/]' \| \
16543 X"$as_dir" : 'X\(//\)$' \| \
16544 X"$as_dir" : 'X\(/\)' \| \
16545 . : '\(.\)' 2>/dev/null ||
16547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16548 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16549 /^X\(\/\/\)$/{ s//\1/; q; }
16550 /^X\(\/\).*/{ s//\1/; q; }
16553 test ! -n "$as_dirs" || mkdir
$as_dirs
16554 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16555 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16556 { (exit 1); exit 1; }; }; }
16560 if test "$ac_dir" != .
; then
16561 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16562 # A "../" for each directory in $ac_dir_suffix.
16563 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16565 ac_dir_suffix
= ac_top_builddir
=
16569 .
) # No --srcdir option. We are building in place.
16571 if test -z "$ac_top_builddir"; then
16574 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16576 [\\/]* | ?
:[\\/]* ) # Absolute path.
16577 ac_srcdir
=$srcdir$ac_dir_suffix;
16578 ac_top_srcdir
=$srcdir ;;
16579 *) # Relative path.
16580 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16581 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16583 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16585 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
16586 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16587 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16588 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16592 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16593 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
16596 if test x
"$ac_file" != x-
; then
16597 { echo "$as_me:$LINENO: creating $ac_file" >&5
16598 echo "$as_me: creating $ac_file" >&6;}
16601 # Let's still pretend it is `configure' which instantiates (i.e., don't
16602 # use $as_me), people would be surprised to read:
16603 # /* config.h. Generated by config.status. */
16604 if test x
"$ac_file" = x-
; then
16607 configure_input
="$ac_file. "
16609 configure_input
=$configure_input"Generated from `echo $ac_file_in |
16610 sed 's,.*/,,'` by configure."
16612 # First look for the input files in the build tree, otherwise in the
16614 ac_file_inputs
=`IFS=:
16615 for f in $ac_file_in; do
16617 -) echo $tmp/stdin ;;
16619 # Absolute (can't be DOS-style, as IFS=:)
16620 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16621 echo "$as_me: error: cannot find input file: $f" >&2;}
16622 { (exit 1); exit 1; }; }
16625 if test -f "$f"; then
16628 elif test -f "$srcdir/$f"; then
16633 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16634 echo "$as_me: error: cannot find input file: $f" >&2;}
16635 { (exit 1); exit 1; }; }
16638 done` ||
{ (exit 1); exit 1; }
16640 cat >>$CONFIG_STATUS <<_ACEOF
16644 cat >>$CONFIG_STATUS <<\_ACEOF
16646 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16647 s
,@configure_input@
,$configure_input,;t t
16648 s
,@srcdir@
,$ac_srcdir,;t t
16649 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
16650 s
,@top_srcdir@
,$ac_top_srcdir,;t t
16651 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
16652 s
,@builddir@
,$ac_builddir,;t t
16653 s
,@abs_builddir@
,$ac_abs_builddir,;t t
16654 s
,@top_builddir@
,$ac_top_builddir,;t t
16655 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
16656 s
,@INSTALL@
,$ac_INSTALL,;t t
16657 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16659 if test x"$ac_file" != x-; then
16660 mv $tmp/out $ac_file
16668 cat >>$CONFIG_STATUS <<\_ACEOF
16671 # CONFIG_HEADER section.
16674 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
16675 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16677 # ac_d sets the value in "#define NAME VALUE" lines.
16678 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16679 ac_dB
='[ ].*$,\1#\2'
16682 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16683 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16684 ac_uB
='$,\1#\2define\3'
16688 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
16689 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16691 - |
*:- |
*:-:* ) # input from stdin
16693 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16694 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16695 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16696 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16697 * ) ac_file_in
=$ac_file.
in ;;
16700 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
16701 echo "$as_me: creating $ac_file" >&6;}
16703 # First look for the input files in the build tree, otherwise in the
16705 ac_file_inputs
=`IFS=:
16706 for f in $ac_file_in; do
16708 -) echo $tmp/stdin ;;
16710 # Absolute (can't be DOS-style, as IFS=:)
16711 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16712 echo "$as_me: error: cannot find input file: $f" >&2;}
16713 { (exit 1); exit 1; }; }
16716 if test -f "$f"; then
16719 elif test -f "$srcdir/$f"; then
16724 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16725 echo "$as_me: error: cannot find input file: $f" >&2;}
16726 { (exit 1); exit 1; }; }
16729 done` ||
{ (exit 1); exit 1; }
16730 # Remove the trailing spaces.
16731 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16735 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16736 # `conftest.undefs', that substitutes the proper values into
16737 # config.h.in to produce config.h. The first handles `#define'
16738 # templates, and the second `#undef' templates.
16739 # And first: Protect against being on the right side of a sed subst in
16740 # config.status. Protect against being in an unquoted here document
16741 # in config.status.
16742 rm -f conftest.defines conftest.undefs
16743 # Using a here document instead of a string reduces the quoting nightmare.
16744 # Putting comments in sed scripts is not portable.
16746 # `end' is used to avoid that the second main sed command (meant for
16747 # 0-ary CPP macros) applies to n-ary macro definitions.
16748 # See the Autoconf documentation for `clear'.
16749 cat >confdef2sed.
sed <<\_ACEOF
16754 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16756 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16759 # If some macros were called several times there might be several times
16760 # the same #defines, which is useless. Nevertheless, we may not want to
16761 # sort them, since we want the *last* AC-DEFINE to be honored.
16762 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16763 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16764 rm -f confdef2sed.sed
16766 # This sed command replaces #undef with comments. This is necessary, for
16767 # example, in the case of _POSIX_SOURCE, which is predefined and required
16768 # on some systems where configure will not decide to define it.
16769 cat >>conftest.undefs <<\_ACEOF
16770 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16773 # Break up conftest.defines because some shells have a limit on the size
16774 # of here documents, and old seds have small limits too (100 cmds).
16775 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16776 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16777 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16778 echo ' :' >>$CONFIG_STATUS
16779 rm -f conftest.tail
16780 while grep . conftest.defines >/dev/null
16782 # Write a limited-size here document to $tmp/defines.sed.
16783 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16784 # Speed up: don't consider the non `#define' lines.
16785 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16786 # Work around the forget-to-reset-the-flag bug.
16787 echo 't clr' >>$CONFIG_STATUS
16788 echo ': clr' >>$CONFIG_STATUS
16789 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
16791 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16793 mv $tmp/out $tmp/in
16795 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
16796 rm -f conftest.defines
16797 mv conftest.
tail conftest.defines
16799 rm -f conftest.defines
16800 echo ' fi # grep' >>$CONFIG_STATUS
16801 echo >>$CONFIG_STATUS
16803 # Break up conftest.undefs because some shells have a limit on the size
16804 # of here documents, and old seds have small limits too (100 cmds).
16805 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16806 rm -f conftest.
tail
16807 while grep . conftest.undefs
>/dev
/null
16809 # Write a limited-size here document to $tmp/undefs.sed.
16810 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16811 # Speed up: don't consider the non
`#undef'
16812 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16813 # Work around the forget-to-reset-the-flag bug.
16814 echo 't clr' >>$CONFIG_STATUS
16815 echo ': clr' >>$CONFIG_STATUS
16816 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16818 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16820 mv $tmp/out $tmp/in
16822 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16823 rm -f conftest.undefs
16824 mv conftest.tail conftest.undefs
16826 rm -f conftest.undefs
16828 cat >>$CONFIG_STATUS <<\_ACEOF
16829 # Let's still pretend it is `configure
' which instantiates (i.e., don't
16830 # use $as_me), people would be surprised to read:
16831 # /* config.h. Generated by config.status. */
16832 if test x
"$ac_file" = x-
; then
16833 echo "/* Generated by configure. */" >$tmp/config.h
16835 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16837 cat $tmp/in >>$tmp/config.h
16839 if test x
"$ac_file" != x-
; then
16840 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
16841 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16842 echo "$as_me: $ac_file is unchanged" >&6;}
16844 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16845 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16846 X"$ac_file" : 'X\(//\)[^/]' \| \
16847 X"$ac_file" : 'X\(//\)$' \| \
16848 X"$ac_file" : 'X\(/\)' \| \
16849 . : '\(.\)' 2>/dev/null ||
16851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16852 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16853 /^X\(\/\/\)$/{ s//\1/; q; }
16854 /^X\(\/\).*/{ s//\1/; q; }
16856 { if $as_mkdir_p; then
16861 while test ! -d "$as_dir"; do
16862 as_dirs
="$as_dir $as_dirs"
16863 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16864 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16865 X"$as_dir" : 'X\(//\)[^/]' \| \
16866 X"$as_dir" : 'X\(//\)$' \| \
16867 X"$as_dir" : 'X\(/\)' \| \
16868 . : '\(.\)' 2>/dev/null ||
16870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16872 /^X\(\/\/\)$/{ s//\1/; q; }
16873 /^X\(\/\).*/{ s//\1/; q; }
16876 test ! -n "$as_dirs" || mkdir
$as_dirs
16877 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16878 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16879 { (exit 1); exit 1; }; }; }
16882 mv $tmp/config.h
$ac_file
16886 rm -f $tmp/config.h
16890 cat >>$CONFIG_STATUS <<\_ACEOF
16893 # CONFIG_COMMANDS section.
16895 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
16896 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
16897 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16898 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
16899 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16900 X"$ac_dest" : 'X\(//\)[^/]' \| \
16901 X"$ac_dest" : 'X\(//\)$' \| \
16902 X"$ac_dest" : 'X\(/\)' \| \
16903 . : '\(.\)' 2>/dev/null ||
16905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16906 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16907 /^X\(\/\/\)$/{ s//\1/; q; }
16908 /^X\(\/\).*/{ s//\1/; q; }
16912 if test "$ac_dir" != .
; then
16913 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16914 # A "../" for each directory in $ac_dir_suffix.
16915 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16917 ac_dir_suffix
= ac_top_builddir
=
16921 .
) # No --srcdir option. We are building in place.
16923 if test -z "$ac_top_builddir"; then
16926 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16928 [\\/]* | ?
:[\\/]* ) # Absolute path.
16929 ac_srcdir
=$srcdir$ac_dir_suffix;
16930 ac_top_srcdir
=$srcdir ;;
16931 *) # Relative path.
16932 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16933 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16935 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16937 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
16938 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16939 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16940 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16943 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16944 echo "$as_me: executing $ac_dest commands" >&6;}
16948 ### Make the necessary directories, if they don't exist.
16949 for dir
in etc lisp
; do
16950 test -d ${dir} || mkdir
${dir}
16953 # Build src/Makefile from ${srcdir}/src/Makefile.c
16954 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
16955 # This must be done after src/config.h is built, since we rely on that file.
16957 # Now get this: Some word that is part of the ${srcdir} directory name
16958 # or the ${configuration} value might, just might, happen to be an
16959 # identifier like `sun4' or `i386' or something, and be predefined by
16960 # the C preprocessor to some helpful value like 1, or maybe the empty
16961 # string. Needless to say consequent macro substitutions are less
16962 # than conducive to the makefile finding the correct directory.
16963 undefs
="`echo $top_srcdir $configuration $canonical |
16964 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
16965 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
16968 echo creating src
/epaths.h
16969 ${MAKE-make} epaths-force
16971 # As of 2000-11-19, newest development versions of GNU cpp preprocess
16972 # `..' to `. .' unless invoked with -traditional
16974 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
16975 CPPFLAGS
="$CPPFLAGS -traditional"
16978 echo creating lib-src
/Makefile
16980 rm -f junk.c junk1.c junk2.c
16981 sed -e '/start of cpp stuff/q' \
16982 < Makefile.c
> junk1.c
16983 sed -e '1,/start of cpp stuff/d'\
16984 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
16985 < Makefile.c
> junk.c
16986 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
16987 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
16988 cat junk1.c junk2.c
> Makefile.new
16989 rm -f junk.c junk1.c junk2.c
16990 chmod 444 Makefile.new
16991 mv -f Makefile.new Makefile
16994 echo creating src
/Makefile
16996 rm -f junk.c junk1.c junk2.c
16997 sed -e '/start of cpp stuff/q' \
16998 < Makefile.c
> junk1.c
16999 sed -e '1,/start of cpp stuff/d'\
17000 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
17001 < Makefile.c
> junk.c
17002 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
17003 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
17004 cat junk1.c junk2.c
> Makefile.new
17005 rm -f junk.c junk1.c junk2.c
17006 chmod 444 Makefile.new
17007 mv -f Makefile.new Makefile
17010 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
17011 echo creating src
/.gdbinit
17012 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
17015 # This is how we know whether to re-run configure in certain cases.
17016 touch src
/config.stamp
17023 cat >>$CONFIG_STATUS <<\_ACEOF
17025 { (exit 0); exit 0; }
17027 chmod +x
$CONFIG_STATUS
17028 ac_clean_files
=$ac_clean_files_save
17031 # configure is writing to config.log, and then calls config.status.
17032 # config.status does its own redirection, appending to config.log.
17033 # Unfortunately, on DOS this fails, as config.log is still kept open
17034 # by configure, so config.status won't be able to write to it; its
17035 # output is simply discarded. So we exec the FD to /dev/null,
17036 # effectively closing config.log, so it can be properly (re)opened and
17037 # appended to by config.status. When coming back to configure, we
17038 # need to make the FD available again.
17039 if test "$no_create" != yes; then
17042 $SHELL $CONFIG_STATUS || ac_cs_success
=false
17044 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17045 # would make configure fail if this is the last instruction.
17046 $ac_cs_success ||
{ (exit 1); exit 1; }