2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
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
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
224 as_executable_p
="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix
=/usr
/local
254 ac_config_libobj_dir
=.
259 SHELL
=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file
="src/lisp.h"
274 ac_config_libobj_dir
=src
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS 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 carbon_appdir LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
840 --x-includes=DIR X include files are
in DIR
841 --x-libraries=DIR X library files are
in DIR
844 --build=BUILD configure
for building on BUILD
[guessed
]
845 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
849 if test -n "$ac_init_help"; then
854 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
855 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
856 --enable-carbon-app[=DIR
] [DIR
=/Application
]
857 specify
install directory
for Emacs.app on Mac OS X
858 --enable-maintainer-mode enable make rules and dependencies not useful
859 (and sometimes confusing
) to the casual installer
860 --disable-largefile omit support
for large files
863 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
864 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
865 --without-gcc don
't use GCC to compile Emacs if GCC is found
866 --without-pop don't support POP
mail retrieval with movemail
867 --with-kerberos support Kerberos-authenticated POP
868 --with-kerberos5 support Kerberos version
5 authenticated POP
869 --with-hesiod support Hesiod to get the POP server
host
870 --without-sound don
't compile with sound support
871 --with-x-toolkit=KIT use an X toolkit
872 (KIT = yes/lucid/athena/motif/gtk/no)
873 --with-xpm use -lXpm for displaying XPM images
874 --with-jpeg use -ljpeg for displaying JPEG images
875 --with-tiff use -ltiff for displaying TIFF images
876 --with-gif use -lungif for displaying GIF images
877 --with-png use -lpng for displaying PNG images
878 --with-gtk use GTK (same as --with-x-toolkit=gtk)
879 --with-pkg-config-prog Path to pkg-config to use for finding GTK
880 --without-toolkit-scroll-bars
881 don't use Motif or Xaw3d scroll bars
882 --without-xim don
't use X11 XIM
883 --without-carbon don't use Carbon GUI on Mac OS X
884 --with-x use the X Window System
886 Some influential environment variables
:
887 CC C compiler
command
888 CFLAGS C compiler flags
889 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
890 nonstandard directory
<lib dir
>
891 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
892 headers
in a nonstandard directory
<include dir
>
895 Use these variables to override the choices made by
`configure' or to help
896 it to find libraries and programs with nonstandard names/locations.
901 if test "$ac_init_help" = "recursive"; then
902 # If there are subdirs, report their specific --help.
904 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
905 test -d $ac_dir || continue
908 if test "$ac_dir" != .; then
909 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
910 # A "../" for each directory in $ac_dir_suffix.
911 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
913 ac_dir_suffix= ac_top_builddir=
917 .) # No --srcdir option. We are building in place.
919 if test -z "$ac_top_builddir"; then
922 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
924 [\\/]* | ?:[\\/]* ) # Absolute path.
925 ac_srcdir=$srcdir$ac_dir_suffix;
926 ac_top_srcdir=$srcdir ;;
928 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
929 ac_top_srcdir=$ac_top_builddir$srcdir ;;
931 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
933 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
934 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}.
&& pwd`
935 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
936 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
939 # Check for guested configure; otherwise get Cygnus style configure.
940 if test -f $ac_srcdir/configure.gnu; then
942 $SHELL $ac_srcdir/configure.gnu --help=recursive
943 elif test -f $ac_srcdir/configure; then
945 $SHELL $ac_srcdir/configure --help=recursive
946 elif test -f $ac_srcdir/configure.ac ||
947 test -f $ac_srcdir/configure.in; then
951 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
957 test -n "$ac_init_help" && exit 0
958 if $ac_init_version; then
961 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
962 Free Software Foundation, Inc.
963 This configure script is free software; the Free Software Foundation
964 gives unlimited permission to copy, distribute and modify it.
970 This file contains any messages produced by compilers while
971 running configure, to aid debugging if configure makes a mistake.
973 It was created by $as_me, which was
974 generated by GNU Autoconf 2.57. Invocation command line was
985 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
986 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
987 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
988 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
989 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
991 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
992 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
994 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
995 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
996 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
997 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
998 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
999 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1000 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1008 test -z "$as_dir" && as_dir=.
1009 echo "PATH: $as_dir"
1024 # Keep a trace of the command line.
1025 # Strip out --no-create and --no-recursion so they do not pile up.
1026 # Strip out --silent because we don't want to record it for future runs.
1027 # Also quote any args containing shell meta-characters.
1028 # Make two passes to allow for proper duplicate-argument suppression.
1033 ac_must_keep_next=false
1039 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1041 | -silent | --silent | --silen | --sile | --sil)
1043 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1044 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1047 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1049 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1050 if test $ac_must_keep_next = true; then
1051 ac_must_keep_next=false # Got value, back to normal.
1054 *=* | --config-cache | -C | -disable-* | --disable-* \
1055 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1056 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1057 | -with-* | --with-* | -without-* | --without-* | --x)
1058 case "$ac_configure_args0 " in
1059 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1062 -* ) ac_must_keep_next=true ;;
1065 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1066 # Get rid of the leading space.
1072 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1073 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1075 # When interrupted or exit'd, cleanup temporary files, and complete
1076 # config.log. We remove comments because anyway the quotes in there
1077 # would cause problems or look ugly.
1078 # WARNING: Be sure not to use single quotes in there, as some shells,
1079 # such as our DU 5.0 friend, will then `close
' the trap.
1080 trap 'exit_status
=$?
1081 # Save into config.log some information that might help in debugging.
1086 ## ---------------- ##
1087 ## Cache variables. ##
1088 ## ---------------- ##
1091 # The following way of writing the cache mishandles newlines in values,
1094 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1097 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1098 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1102 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1109 ## ----------------- ##
1110 ## Output variables. ##
1111 ## ----------------- ##
1114 for ac_var
in $ac_subst_vars
1116 eval ac_val
=$
`echo $ac_var`
1117 echo "$ac_var='"'"'$ac_val'"'"'"
1121 if test -n "$ac_subst_files"; then
1128 for ac_var
in $ac_subst_files
1130 eval ac_val
=$
`echo $ac_var`
1131 echo "$ac_var='"'"'$ac_val'"'"'"
1136 if test -s confdefs.h
; then
1143 sed "/^$/d" confdefs.h |
sort
1146 test "$ac_signal" != 0 &&
1147 echo "$as_me: caught signal $ac_signal"
1148 echo "$as_me: exit $exit_status"
1150 rm -f core core.
* *.core
&&
1151 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1154 for ac_signal in 1 2 13 15; do
1155 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1159 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1160 rm -rf conftest* confdefs.h
1161 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1164 # Predefined preprocessor variables.
1166 cat >>confdefs.h <<_ACEOF
1167 #define PACKAGE_NAME "$PACKAGE_NAME"
1171 cat >>confdefs.h <<_ACEOF
1172 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1176 cat >>confdefs.h <<_ACEOF
1177 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_STRING "$PACKAGE_STRING"
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1191 # Let the site file select an alternate cache file if it wants to.
1192 # Prefer explicitly selected file to automatically selected ones.
1193 if test -z "$CONFIG_SITE"; then
1194 if test "x$prefix" != xNONE; then
1195 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1197 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1200 for ac_site_file in $CONFIG_SITE; do
1201 if test -r "$ac_site_file"; then
1202 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1203 echo "$as_me: loading site script $ac_site_file" >&6;}
1204 sed 's
/^
/|
/' "$ac_site_file" >&5
1209 if test -r "$cache_file"; then
1210 # Some versions of bash will fail to source /dev/null (special
1211 # files actually), so we avoid doing that.
1212 if test -f "$cache_file"; then
1213 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1214 echo "$as_me: loading cache $cache_file" >&6;}
1216 [\\/]* | ?:[\\/]* ) . $cache_file;;
1217 *) . ./$cache_file;;
1221 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1222 echo "$as_me: creating cache $cache_file" >&6;}
1226 # Check that the precious variables saved in the cache have kept the same
1228 ac_cache_corrupted=false
1229 for ac_var in `(set) 2>&1 |
1230 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1231 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1232 eval ac_new_set=\$ac_env_${ac_var}_set
1233 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1234 eval ac_new_val="\$ac_env_${ac_var}_value"
1235 case $ac_old_set,$ac_new_set in
1237 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1238 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1239 ac_cache_corrupted=: ;;
1241 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1242 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1243 ac_cache_corrupted=: ;;
1246 if test "x$ac_old_val" != "x$ac_new_val"; then
1247 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1248 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1249 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1250 echo "$as_me: former value: $ac_old_val" >&2;}
1251 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1252 echo "$as_me: current value: $ac_new_val" >&2;}
1253 ac_cache_corrupted=:
1256 # Pass precious variables to config.status.
1257 if test "$ac_new_set" = set; then
1259 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1260 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1261 *) ac_arg=$ac_var=$ac_new_val ;;
1263 case " $ac_configure_args " in
1264 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1265 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1269 if $ac_cache_corrupted; then
1270 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1271 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1272 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1273 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1274 { (exit 1); exit 1; }; }
1278 ac_cpp='$CPP $CPPFLAGS'
1279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1280 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1301 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1304 test "$program_prefix" != NONE &&
1305 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1306 # Use a double $ so make ignores it.
1307 test "$program_suffix" != NONE &&
1308 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1309 # Double any \ or $. echo might interpret backslashes.
1310 # By default was `s,x,x', remove it
if useless.
1311 cat <<\_ACEOF
>conftest.
sed
1312 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1314 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1318 lispdir
='${datadir}/emacs/${version}/lisp'
1319 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1320 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1321 lisppath
='${locallisppath}:${lispdir}'
1322 etcdir
='${datadir}/emacs/${version}/etc'
1323 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1324 docdir
='${datadir}/emacs/${version}/etc'
1325 gamedir
='${localstatedir}/games/emacs'
1330 # Check whether --with-gcc or --without-gcc was given.
1331 if test "${with_gcc+set}" = set; then
1336 # Check whether --with-pop or --without-pop was given.
1337 if test "${with_pop+set}" = set; then
1339 if test "$withval" = yes; then
1340 cat >>confdefs.h
<<\_ACEOF
1341 #define MAIL_USE_POP 1
1347 cat >>confdefs.h
<<\_ACEOF
1348 #define MAIL_USE_POP 1
1354 # Check whether --with-kerberos or --without-kerberos was given.
1355 if test "${with_kerberos+set}" = set; then
1356 withval
="$with_kerberos"
1357 cat >>confdefs.h
<<\_ACEOF
1364 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1365 if test "${with_kerberos5+set}" = set; then
1366 withval
="$with_kerberos5"
1367 if test "${with_kerberos5+set}" = set; then
1368 if test "${with_kerberos+set}" != set; then
1370 cat >>confdefs.h
<<\_ACEOF
1377 cat >>confdefs.h
<<\_ACEOF
1383 # Check whether --with-hesiod or --without-hesiod was given.
1384 if test "${with_hesiod+set}" = set; then
1385 withval
="$with_hesiod"
1387 cat >>confdefs.h
<<\_ACEOF
1394 # Check whether --with-sound or --without-sound was given.
1395 if test "${with_sound+set}" = set; then
1396 withval
="$with_sound"
1401 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1402 if test "${with_x_toolkit+set}" = set; then
1403 withval
="$with_x_toolkit"
1404 case "${withval}" in
1405 y | ye |
yes ) val
=athena
;;
1407 l | lu | luc | luci | lucid
) val
=lucid
;;
1408 a |
at | ath | athe | athen | athena
) val
=athena
;;
1409 m | mo | mot | moti | motif
) val
=motif
;;
1410 g | gt | gtk
) val
=gtk
;;
1412 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1413 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1414 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1415 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1416 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1417 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1418 { (exit 1); exit 1; }; }
1425 # Check whether --with-xpm or --without-xpm was given.
1426 if test "${with_xpm+set}" = set; then
1431 # Check whether --with-jpeg or --without-jpeg was given.
1432 if test "${with_jpeg+set}" = set; then
1433 withval
="$with_jpeg"
1437 # Check whether --with-tiff or --without-tiff was given.
1438 if test "${with_tiff+set}" = set; then
1439 withval
="$with_tiff"
1443 # Check whether --with-gif or --without-gif was given.
1444 if test "${with_gif+set}" = set; then
1449 # Check whether --with-png or --without-png was given.
1450 if test "${with_png+set}" = set; then
1455 # Check whether --with-gtk or --without-gtk was given.
1456 if test "${with_gtk+set}" = set; then
1461 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1462 if test "${with_pkg_config_prog+set}" = set; then
1463 withval
="$with_pkg_config_prog"
1467 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1468 if test "${with_toolkit_scroll_bars+set}" = set; then
1469 withval
="$with_toolkit_scroll_bars"
1473 # Check whether --with-xim or --without-xim was given.
1474 if test "${with_xim+set}" = set; then
1479 # Check whether --with-carbon or --without-carbon was given.
1480 if test "${with_carbon+set}" = set; then
1481 withval
="$with_carbon"
1484 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1485 if test "${enable_carbon_app+set}" = set; then
1486 enableval
="$enable_carbon_app"
1487 carbon_appdir_x
=${enableval}
1490 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1491 if test "${enable_maintainer_mode+set}" = set; then
1492 enableval
="$enable_maintainer_mode"
1493 USE_MAINTAINER_MODE
=$enableval
1495 USE_MAINTAINER_MODE
=no
1497 if test $USE_MAINTAINER_MODE = yes; then
1504 #### Make srcdir absolute, if it isn't already. It's important to
1505 #### avoid running the path through pwd unnecessarily, since pwd can
1506 #### give you automounter prefixes, which can go away. We do all this
1507 #### so Emacs can find its files when run uninstalled.
1508 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1513 ## We may be able to use the $PWD environment variable to make this
1514 ## absolute. But sometimes PWD is inaccurate.
1515 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1516 ## but that tested only for a well-formed and valid PWD,
1517 ## it did not object when PWD was well-formed and valid but just wrong.
1518 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1522 srcdir
="`(cd ${srcdir}; pwd)`"
1525 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1528 #### Check if the source directory already has a configured system in it.
1529 if test `pwd` != `(cd ${srcdir} && pwd)` \
1530 && test -f "${srcdir}/src/config.h" ; then
1531 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1532 as a build directory right now; it has been configured in its own
1533 right. To configure in another directory as well, you MUST
1534 use GNU make. If you do not have GNU make, then you must
1535 now do \`make distclean' in ${srcdir},
1536 and then run $0 again." >&5
1537 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1538 as a build directory right now; it has been configured in its own
1539 right. To configure in another directory as well, you MUST
1540 use GNU make. If you do not have GNU make, then you must
1541 now do \`make distclean' in ${srcdir},
1542 and then run $0 again." >&2;}
1544 extrasub
='/^VPATH[ ]*=/c\
1545 vpath %.c $(srcdir)\
1546 vpath %.h $(srcdir)\
1547 vpath %.y $(srcdir)\
1548 vpath %.l $(srcdir)\
1549 vpath %.s $(srcdir)\
1550 vpath %.in $(srcdir)\
1551 vpath %.texi $(srcdir)'
1554 #### Given the configuration name, set machfile and opsysfile to the
1555 #### names of the m/*.h and s/*.h files we should use.
1557 ### Canonicalize the configuration name.
1560 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1561 if test -f $ac_dir/install-sh
; then
1563 ac_install_sh
="$ac_aux_dir/install-sh -c"
1565 elif test -f $ac_dir/install.sh
; then
1567 ac_install_sh
="$ac_aux_dir/install.sh -c"
1569 elif test -f $ac_dir/shtool
; then
1571 ac_install_sh
="$ac_aux_dir/shtool install -c"
1575 if test -z "$ac_aux_dir"; then
1576 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1577 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1578 { (exit 1); exit 1; }; }
1580 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1581 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1582 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1584 # Make sure we can run config.sub.
1585 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1586 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1587 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1588 { (exit 1); exit 1; }; }
1590 echo "$as_me:$LINENO: checking build system type" >&5
1591 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1592 if test "${ac_cv_build+set}" = set; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1595 ac_cv_build_alias
=$build_alias
1596 test -z "$ac_cv_build_alias" &&
1597 ac_cv_build_alias
=`$ac_config_guess`
1598 test -z "$ac_cv_build_alias" &&
1599 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1600 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1601 { (exit 1); exit 1; }; }
1602 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1603 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1604 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1605 { (exit 1); exit 1; }; }
1608 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1609 echo "${ECHO_T}$ac_cv_build" >&6
1611 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1612 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1613 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1616 echo "$as_me:$LINENO: checking host system type" >&5
1617 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1618 if test "${ac_cv_host+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1621 ac_cv_host_alias
=$host_alias
1622 test -z "$ac_cv_host_alias" &&
1623 ac_cv_host_alias
=$ac_cv_build_alias
1624 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1625 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1626 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1627 { (exit 1); exit 1; }; }
1630 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1631 echo "${ECHO_T}$ac_cv_host" >&6
1633 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1634 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1635 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1639 configuration
=${host_alias-$host}
1643 ### If you add support for a new configuration, add code to this
1644 ### switch statement to recognize your configuration name and select
1645 ### the appropriate operating system and machine description files.
1647 ### You would hope that you could choose an m/*.h file pretty much
1648 ### based on the machine portion of the configuration name, and an s-
1649 ### file based on the operating system portion. However, it turns out
1650 ### that each m/*.h file is pretty manufacturer-specific - for
1651 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1652 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1653 ### machines. So we basically have to have a special case for each
1654 ### configuration name.
1656 ### As far as handling version numbers on operating systems is
1657 ### concerned, make sure things will fail in a fixable way. If
1658 ### /etc/MACHINES doesn't say anything about version numbers, be
1659 ### prepared to handle anything reasonably. If version numbers
1660 ### matter, be sure /etc/MACHINES says something about it.
1662 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1663 ### "System V Release 4"; he writes, "The old convention encouraged
1664 ### confusion between `system' and `release' levels'."
1666 machine
='' opsys
='' unported
=no
1667 case "${canonical}" in
1672 case "${canonical}" in
1673 alpha
*-*-freebsd*) machine
=alpha
;;
1674 i
[3456]86-*-freebsd*) machine
=intel386
;;
1681 if test -f /usr
/lib
/crti.o
; then
1683 cat >>confdefs.h
<<\_ACEOF
1689 case "${canonical}" in
1690 alpha
*-*-netbsd*) machine
=alpha
;;
1691 i
[3456]86-*-netbsd*) machine
=intel386
;;
1693 # This is somewhat bogus.
1694 machine
=hp9000s300
;;
1695 powerpc-apple-netbsd
*) machine
=macppc
;;
1696 mips-
*-netbsd*) machine
=pmax
;;
1697 mipsel-
*-netbsd*) machine
=pmax
;;
1698 mipseb-
*-netbsd*) machine
=pmax
;;
1699 ns32k-
*-netbsd*) machine
=ns32000
;;
1700 powerpc-
*-netbsd*) machine
=macppc
;;
1701 sparc
*-*-netbsd*) machine
=sparc
;;
1702 vax-
*-netbsd*) machine
=vax
;;
1703 arm-
*-netbsd*) machine
=arm
;;
1710 case "${canonical}" in
1711 alpha
*-*-openbsd*) machine
=alpha
;;
1712 i386-
*-openbsd*) machine
=intel386
;;
1713 m68k-
*-openbsd*) machine
=hp9000s300
;;
1714 mipsel-
*-openbsd*) machine
=pmax
;;
1715 ns32k-
*-openbsd*) machine
=ns32000
;;
1716 sparc-
*-openbsd*) machine
=sparc
;;
1717 vax-
*-openbsd*) machine
=vax
;;
1722 arm-acorn-riscix1.1
* )
1723 machine
=acorn opsys
=riscix1-1
1725 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1726 ## This name is riscix12 instead of riscix1.2
1727 ## to avoid a file name conflict on MSDOS.
1728 machine
=acorn opsys
=riscix12
1734 case "${canonical}" in
1735 i
[345]86-*-bsdi*) machine
=intel386
;;
1736 sparc-
*-bsdi*) machine
=sparc
;;
1737 powerpc-
*-bsdi*) machine
=macppc
;;
1739 case "${canonical}" in
1740 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1741 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1742 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1743 *-*-bsdi3* ) opsys
=bsdos3
;;
1744 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1749 ## Strictly speaking, we need the version of the alliant operating
1750 ## system to choose the right machine file, but currently the
1751 ## configuration name doesn't tell us enough to choose the right
1752 ## one; we need to give alliants their own operating system name to
1753 ## do this right. When someone cares, they can help us.
1755 machine
=alliant4 opsys
=bsd4-2
1758 machine
=alliant-2800 opsys
=bsd4-3
1761 ## Alpha (DEC) machines.
1763 machine
=alpha opsys
=osf1
1764 # This is needed to find X11R6.1 libraries for certain tests.
1765 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1766 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1767 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1768 # due to non-traditional preprocessing with the current compiler
1769 # defaults. OSF 4 can also have that compiler version, and there
1770 # seems always to have been a usable /usr/bin/cpp.
1771 NON_GNU_CPP
=/usr
/bin
/cpp
1772 case "${canonical}" in
1773 alpha
*-dec-osf[5-9]*)
1778 alpha
*-*-linux-gnu* )
1779 machine
=alpha opsys
=gnu-linux
1783 machine
=arm opsys
=gnu-linux
1788 machine
=macppc opsys
=gnu-linux
1793 machine
=altos opsys
=usg5-2
1798 machine
=amdahl opsys
=usg5-2-2
1801 ## Apollo, Domain/OS
1803 machine
=apollo opsys
=bsd4-3
1806 ## AT&T 3b2, 3b5, 3b15, 3b20
1808 machine
=att3b opsys
=usg5-2-2
1811 ## AT&T 3b1 - The Mighty Unix PC!
1813 machine
=7300 opsys
=usg5-2-2
1818 machine
=ibmrs6000 opsys
=aix3-2
1823 machine
=dpx2 opsys
=usg5-3
1828 machine
=sps7 opsys
=usg5-2
1831 ## CCI 5/32, 6/32 -- see "Tahoe".
1834 ## I don't know what configuration name to use for this; config.sub
1835 ## doesn't seem to know anything about it. Hey, Celerity users, get
1836 ## in touch with us!
1837 celerity-celerity-bsd
* )
1838 machine
=celerity opsys
=bsd4-2
1842 ## What operating systems does this chip run that Emacs has been
1846 ## We'll use the catch-all code at the bottom to guess the
1847 ## operating system.
1851 mips-compaq-nonstopux
* )
1852 machine
=nonstopux opsys
=nonstopux
1856 *-convex-bsd* |
*-convex-convexos* )
1857 machine
=convex opsys
=bsd4-3
1858 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1859 NON_GNU_CPP
="cc -E -P"
1863 i
[3456]86-cubix-sysv* )
1864 machine
=intel386 opsys
=usg5-3
1868 cydra
*-cydrome-sysv* )
1869 machine
=cydra5 opsys
=usg5-3
1872 ## Data General AViiON Machines
1873 ## DG changed naming conventions with the release of 5.4.4.10, they
1874 ## dropped the initial 5.4 but left the intervening R. Because of the
1875 ## R this shouldn't conflict with older versions of the OS (which I
1876 ## think were named like dgux4.*). In addition, DG new AViiONs series
1877 ## uses either Motorola M88k or Intel Pentium CPUs.
1878 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1879 machine
=aviion opsys
=dgux4
1881 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1882 ## This name is dgux5-4-3 instead of dgux5-4r3
1883 ## to avoid a file name conflict on MSDOS.
1884 machine
=aviion opsys
=dgux5-4-3
1886 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1887 machine
=aviion opsys
=dgux5-4r2
1890 machine
=aviion opsys
=dgux
1893 ## Data General AViiON Intel (x86) Machines
1894 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1895 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1896 i
[345]86-dg-dguxR4* )
1897 machine
=aviion-intel opsys
=dgux4
1901 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1902 machine
=pmax opsys
=bsd4-2
1904 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1905 machine
=pmax opsys
=bsd4-3
1908 machine
=pmax opsys
=ultrix4-3
1911 machine
=pmax opsys
=osf1
1913 mips-dec-mach_bsd4.3
* )
1914 machine
=pmax opsys
=mach-bsd4-3
1917 ## Motorola Delta machines
1918 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1919 machine
=delta opsys
=usg5-3
1920 if test -z "`type gnucc | grep 'not found'`"
1922 if test -s /etc
/167config
1923 then CC
="gnucc -m68040"
1924 else CC
="gnucc -m68881"
1927 if test -z "`type gcc | grep 'not found'`"
1933 m88k-motorola-sysv4
* )
1934 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1935 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1936 # I hope there are not other 4.0 versions for this machine
1937 # which really need usg5-4 instead.
1938 machine
=delta88k opsys
=usg5-4-2
1940 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1941 machine
=delta88k opsys
=usg5-3
1946 machine
=dual opsys
=usg5-2
1948 m68
*-dual-uniplus* )
1949 machine
=dual opsys
=unipl5-2
1954 machine
=elxsi opsys
=usg5-2
1959 machine
=ns16000 opsys
=umax
1962 ## The GEC 63 - apparently, this port isn't really finished yet.
1963 # I'm sure we finished off the last of the machines, though. -- fx
1965 ## Gould Power Node and NP1
1967 machine
=gould opsys
=bsd4-2
1970 machine
=gould opsys
=bsd4-3
1973 machine
=gould-np1 opsys
=bsd4-3
1976 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1977 ## as far as Emacs is concerned).
1979 # Build needs to be different on 7.0 and later releases
1980 case "`uname -r`" in
1981 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1982 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1984 NON_GNU_CPP
="/lib/cpp"
1986 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1988 machine
=nh3000 opsys
=cxux
1990 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1991 powerpc-harris-powerunix
)
1992 machine
=nh6000 opsys
=powerunix
1993 NON_GNU_CPP
="cc -Xo -E -P"
1995 ## SR2001/SR2201 running HI-UX/MPP
1996 hppa1.1
-hitachi-hiuxmpp* )
1997 machine
=sr2k opsys
=hiuxmpp
1999 hppa1.1
-hitachi-hiuxwe2* )
2000 machine
=sr2k opsys
=hiuxwe2
2003 xps
*-honeywell-sysv* )
2004 machine
=xps100 opsys
=usg5-2
2007 ## HP 9000 series 200 or 300
2009 machine
=hp9000s300 opsys
=bsd4-3
2011 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2013 case "`uname -r`" in
2014 ## Someone's system reports A.B8.05 for this.
2015 ## I wonder what other possibilities there are.
2016 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2017 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2018 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2019 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2020 *) machine
=hp9000s300 opsys
=hpux
;;
2024 ## HP 9000 series 700 and 800, running HP/UX
2026 machine
=hp800 opsys
=hpux
2029 machine
=hp800 opsys
=hpux8
2031 hppa
*-hp-hpux9shr* )
2032 machine
=hp800 opsys
=hpux9shr
2035 machine
=hp800 opsys
=hpux9
2037 hppa
*-hp-hpux10.2
* )
2038 machine
=hp800 opsys
=hpux10-20
2041 machine
=hp800 opsys
=hpux10
2043 hppa
*-hp-hpux1[1-9]* )
2044 machine
=hp800 opsys
=hpux11
2047 hppa
*-*-linux-gnu* )
2048 machine
=hp800 opsys
=gnu-linux
2051 ## HP 9000 series 700 and 800, running HP/UX
2053 ## Cross-compilation? Nah!
2054 case "`uname -r`" in
2055 ## Someone's system reports A.B8.05 for this.
2056 ## I wonder what other possibilities there are.
2057 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2058 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2059 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2060 *) machine
=hp800 opsys
=hpux10
;;
2064 machine
=hp800 opsys
=nextstep
2069 machine
=orion opsys
=bsd4-2
2071 clipper-orion-bsd
* )
2072 machine
=orion105 opsys
=bsd4-2
2076 i
[3456]86-ibm-aix1.1
* )
2077 machine
=ibmps2-aix opsys
=usg5-2-2
2079 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2080 machine
=ibmps2-aix opsys
=usg5-3
2083 machine
=ibm370aix opsys
=usg5-3
2086 machine
=ibms390 opsys
=gnu-linux
2088 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2089 machine
=ibmrs6000 opsys
=aix3-1
2091 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2092 machine
=ibmrs6000 opsys
=aix3-2-5
2094 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2095 machine
=ibmrs6000 opsys
=aix4-1
2097 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2098 machine
=ibmrs6000 opsys
=aix4-2
2100 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2101 machine
=ibmrs6000 opsys
=aix4-2
2103 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2104 machine
=ibmrs6000 opsys
=aix4
2106 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2107 machine
=ibmrs6000 opsys
=aix4-1
2109 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2110 machine
=ibmrs6000 opsys
=aix3-2
2113 machine
=ibmrt opsys
=bsd4-3
2116 machine
=ibmrt opsys
=bsd4-2
2119 machine
=ibmrt opsys
=bsd4-3
2122 machine
=ibmrt opsys
=bsd4-2
2125 machine
=ibmrt opsys
=bsd4-3
2128 machine
=ibmrt opsys
=bsd4-3
2131 machine
=ibmrt-aix opsys
=usg5-2-2
2134 ## Integrated Solutions `Optimum V'
2136 machine
=isi-ov opsys
=bsd4-2
2139 machine
=isi-ov opsys
=bsd4-3
2142 ## Intel 386 machines where we do care about the manufacturer
2143 i
[3456]86-intsys-sysv* )
2144 machine
=is386 opsys
=usg5-2-2
2148 i
[3456]86-prime-sysv* )
2149 machine
=i386 opsys
=usg5-3
2152 ## Sequent Symmetry running Dynix
2153 i
[3456]86-sequent-bsd* )
2154 machine
=symmetry opsys
=bsd4-3
2157 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2158 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2159 machine
=sequent-ptx opsys
=ptx4
2160 NON_GNU_CPP
=/lib
/cpp
2163 ## Sequent Symmetry running DYNIX/ptx
2164 ## Use the old cpp rather than the newer ANSI one.
2165 i
[3456]86-sequent-ptx* )
2166 machine
=sequent-ptx opsys
=ptx
2167 NON_GNU_CPP
="/lib/cpp"
2170 ## ncr machine running svr4.3.
2171 i
[3456]86-ncr-sysv4.3
)
2172 machine
=ncr386 opsys
=usg5-4-3
2175 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2176 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2177 i
[3456]86-ncr-sysv* )
2178 machine
=ncr386 opsys
=usg5-4-2
2181 ## Intel Paragon OSF/1
2183 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2188 machine
=i860 opsys
=usg5-4
2189 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2190 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2193 ## Macintosh PowerPC
2194 powerpc
*-*-linux-gnu* )
2195 machine
=macppc opsys
=gnu-linux
2198 ## Masscomp machines
2199 m68
*-masscomp-rtu* )
2200 machine
=masscomp opsys
=rtu
2203 ## Megatest machines
2204 m68
*-megatest-bsd* )
2205 machine
=mega68 opsys
=bsd4-2
2208 ## Workstations sold by MIPS
2209 ## This is not necessarily all workstations using the MIPS processor -
2210 ## Irises are produced by SGI, and DECstations by DEC.
2212 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2213 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2214 ## it gives for choosing between the alternatives seems to be "Use
2215 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2216 ## the BSD world." I'll assume that these are instructions for
2217 ## handling two odd situations, and that every other situation
2218 ## should use mips.h and usg5-2-2, they being listed first.
2221 ## Fall through to the general code at the bottom to decide on the OS.
2223 mips-mips-riscos4
* )
2224 machine
=mips4 opsys
=bsd4-3
2225 NON_GNU_CC
="cc -systype bsd43"
2226 NON_GNU_CPP
="cc -systype bsd43 -E"
2228 mips-mips-riscos5
* )
2229 machine
=mips4 opsys
=riscos5
2230 NON_GNU_CC
="cc -systype bsd43"
2231 NON_GNU_CPP
="cc -systype bsd43 -E"
2234 machine
=mips opsys
=bsd4-3
2237 machine
=mips opsys
=usg5-2-2
2241 m68
*-next-* | m68k-
*-nextstep* )
2242 machine
=m68k opsys
=nextstep
2245 ## The complete machine from National Semiconductor
2247 machine
=ns32000 opsys
=usg5-2
2251 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2252 machine
=tower32 opsys
=usg5-2-2
2254 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2255 machine
=tower32v3 opsys
=usg5-3
2260 machine
=ews4800 opsys
=ux4800
2263 ## Nixdorf Targon 31
2264 m68
*-nixdorf-sysv* )
2265 machine
=targon31 opsys
=usg5-2-2
2270 machine
=nu opsys
=usg5-2
2275 machine
=plexus opsys
=usg5-2
2279 ## I don't really have any idea what sort of processor the Pyramid has,
2280 ## so I'm assuming it is its own architecture.
2281 pyramid-pyramid-bsd
* )
2282 machine
=pyramid opsys
=bsd4-2
2286 ns32k-sequent-bsd4.2
* )
2287 machine
=sequent opsys
=bsd4-2
2289 ns32k-sequent-bsd4.3
* )
2290 machine
=sequent opsys
=bsd4-3
2294 mips-siemens-sysv
* | mips-sni-sysv
*)
2295 machine
=mips-siemens opsys
=usg5-4
2296 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2297 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2300 ## Silicon Graphics machines
2301 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2303 machine
=irist opsys
=iris3-5
2305 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2306 machine
=irist opsys
=iris3-6
2310 machine
=iris4d opsys
=irix3-3
2313 machine
=iris4d opsys
=irix4-0
2316 machine
=iris4d opsys
=irix6-5
2317 # Without defining _LANGUAGE_C, things get masked out in the headers
2318 # so that, for instance, grepping for `free' in stdlib.h fails and
2319 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2320 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2321 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2324 machine
=iris4d opsys
=irix6-0
2325 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2326 # but presumably it does no harm.
2327 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2328 # -32 probably isn't necessary in later v.6s -- anyone know which?
2329 NON_GCC_TEST_OPTIONS
=-32
2331 mips-sgi-irix5.
[01]* )
2332 machine
=iris4d opsys
=irix5-0
2334 mips-sgi-irix5
* | mips-sgi-irix
* )
2335 machine
=iris4d opsys
=irix5-2
2340 machine
=news opsys
=bsd4-2
2343 machine
=news opsys
=bsd4-3
2345 m68
*-sony-newsos3* | m68
*-sony-news3*)
2346 machine
=news opsys
=bsd4-3
2348 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2349 machine
=news-risc opsys
=bsd4-3
2351 mips-sony-newsos6
* )
2352 machine
=news-r6 opsys
=newsos6
2355 machine
=news-risc opsys
=newsos5
2360 machine
=stride opsys
=usg5-2
2364 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2365 machine
=sparc opsys
=gnu-linux
2368 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2369 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2370 | rs6000-
*-solaris2*)
2371 case "${canonical}" in
2372 m68
*-sunos1* ) machine
=sun1
;;
2373 m68
*-sunos2* ) machine
=sun2
;;
2374 m68
* ) machine
=sun3
;;
2375 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2376 i
[3456]86-*-* ) machine
=intel386
;;
2377 powerpcle
* ) machine
=powerpcle
;;
2378 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2379 sparc
* ) machine
=sparc
;;
2382 case "${canonical}" in
2383 ## The Sun386 didn't get past 4.0.
2384 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2385 *-sunos4.0
* ) opsys
=sunos4-0
;;
2386 *-sunos4.1.
[3-9]*noshare
)
2387 ## This name is sunos413 instead of sunos4-1-3
2388 ## to avoid a file name conflict on MSDOS.
2390 NON_GNU_CPP
=/usr
/lib
/cpp
2391 NON_GCC_TEST_OPTIONS
=-Bstatic
2392 GCC_TEST_OPTIONS
=-static
2394 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2396 NON_GNU_CPP
=/usr
/lib
/cpp
2398 *-sunos4* |
*-sunos )
2400 NON_GCC_TEST_OPTIONS
=-Bstatic
2401 GCC_TEST_OPTIONS
=-static
2403 *-sunos5.3
* |
*-solaris2.3
* )
2405 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2407 *-sunos5.4
* |
*-solaris2.4
* )
2409 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2412 *-sunos5.5
* |
*-solaris2.5
* )
2414 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2417 *-sunos5.6
* |
*-solaris2.6
* )
2419 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2422 *-sunos5* |
*-solaris* )
2424 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2428 ## Watch out for a compiler that we know will not work.
2429 case "${canonical}" in
2430 *-solaris* |
*-sunos5* )
2431 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2432 ## /usr/ucb/cc doesn't work;
2433 ## we should find some other compiler that does work.
2441 machine
=sparc opsys
=nextstep
2445 m68
*-tadpole-sysv* )
2446 machine
=tad68k opsys
=usg5-3
2450 tahoe-tahoe-bsd4.2
* )
2451 machine
=tahoe opsys
=bsd4-2
2453 tahoe-tahoe-bsd4.3
* )
2454 machine
=tahoe opsys
=bsd4-3
2457 ## Tandem Integrity S2
2459 machine
=tandem-s2 opsys
=usg5-3
2463 m88k-tektronix-sysv3
* )
2464 machine
=tekxd88 opsys
=usg5-3
2467 ## Tektronix 16000 box (6130?)
2468 ns16k-tektronix-bsd
* )
2469 machine
=ns16000 opsys
=bsd4-2
2472 ## src/m/tek4300.h hints that this is a m68k machine.
2473 m68
*-tektronix-bsd* )
2474 machine
=tek4300 opsys
=bsd4-3
2478 ## We seem to have lost the machine-description file titan.h!
2480 machine
=titan opsys
=usg5-3
2483 ## Ustation E30 (SS5E)
2484 m68
*-unisys-uniplus* )
2485 machine
=ustation opsystem
=unipl5-2
2491 case "${canonical}" in
2492 *-bsd4.1
* ) opsys
=bsd4-1
;;
2493 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2494 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2495 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2496 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2497 *-vms* ) opsys
=vms
;;
2503 ns16k-whitechapel-
* )
2505 ## We don't know what sort of OS runs on these; we'll let the
2506 ## operating system guessing code below try.
2511 machine
=wicat opsys
=usg5-2
2516 machine
=ia64 opsys
=gnu-linux
2519 ## Intel 386 machines where we don't care about the manufacturer
2522 case "${canonical}" in
2523 *-cygwin ) opsys
=cygwin
;;
2524 *-lynxos* ) opsys
=lynxos
;;
2525 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2526 *-isc2.2
* ) opsys
=isc2-2
;;
2527 *-isc4.0
* ) opsys
=isc4-0
;;
2528 *-isc4.
* ) opsys
=isc4-1
2529 GCC_TEST_OPTIONS
=-posix
2530 NON_GCC_TEST_OPTIONS
=-Xp
2532 *-isc* ) opsys
=isc3-0
;;
2533 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2534 *-esix* ) opsys
=esix
;;
2535 *-xenix* ) opsys
=xenix
;;
2536 *-linux-gnu* ) opsys
=gnu-linux
;;
2537 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2538 *-sco3.2v5
* ) opsys
=sco5
2539 NON_GNU_CPP
=/lib
/cpp
2540 # Prevent -belf from being passed to $CPP.
2541 # /lib/cpp does not accept it.
2542 OVERRIDE_CPPFLAGS
=" "
2544 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2545 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2546 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2547 *-386bsd* ) opsys
=386bsd
;;
2548 *-nextstep* ) opsys
=nextstep
;;
2549 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2553 ## m68k Linux-based GNU system
2555 machine
=m68k opsys
=gnu-linux
2558 ## Mips Linux-based GNU system
2559 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2560 machine
=mips opsys
=gnu-linux
2564 sparc-fujitsu-sysv4
* )
2565 machine
=sparc opsys
=uxpds
2566 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2571 f301-fujitsu-uxpv4.1
)
2572 machine
=f301 opsys
=uxpv
2575 ## Darwin / Mac OS X
2576 powerpc-apple-darwin
* )
2577 machine
=powermac opsys
=darwin
2578 # Define CPP as follows to make autoconf work correctly.
2579 CPP
="gcc -E -no-cpp-precomp"
2582 ## AMD x86-64 Linux-based GNU system
2583 x86_64-
*-linux-gnu* )
2584 machine
=amdx86-64 opsys
=gnu-linux
2592 ### If the code above didn't choose an operating system, just choose
2593 ### an operating system based on the configuration name. You really
2594 ### only want to use this when you have no idea what the right
2595 ### operating system is; if you know what operating systems a machine
2596 ### runs, it's cleaner to make it explicit in the case statement
2598 if test x
"${opsys}" = x
; then
2599 case "${canonical}" in
2600 *-gnu* ) opsys
=gnu
;;
2601 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2602 *-bsd4.2
) opsys
=bsd4-2
;;
2603 *-bsd4.3
) opsys
=bsd4-3
;;
2604 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2605 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2606 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2607 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2608 *-sysv4.2uw
* ) opsys
=unixware
;;
2609 *-sysv5uw* ) opsys
=unixware
;;
2610 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2611 *-sysv4.1
* |
*-sysvr4.1
* )
2612 NON_GNU_CPP
=/usr
/lib
/cpp
2614 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2615 if [ x
$NON_GNU_CPP = x
]; then
2616 if [ -f /usr
/ccs
/lib
/cpp
]; then
2617 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2619 NON_GNU_CPP
=/lib
/cpp
2623 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2632 if test $unported = yes; then
2633 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2634 Check \`etc/MACHINES' for recognized configuration names." >&5
2635 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2636 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2637 { (exit 1); exit 1; }; }
2640 machfile
="m/${machine}.h"
2641 opsysfile
="s/${opsys}.h"
2644 #### Choose a compiler.
2645 test -n "$CC" && cc_specified
=yes
2647 # Save the value of CFLAGS that the user specified.
2648 SPECIFIED_CFLAGS
="$CFLAGS"
2651 "yes" ) CC
="gcc" GCC
=yes ;;
2652 "no" ) : ${CC=cc} ;;
2656 ac_cpp
='$CPP $CPPFLAGS'
2657 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2658 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2659 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2660 if test -n "$ac_tool_prefix"; then
2661 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2662 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2663 echo "$as_me:$LINENO: checking for $ac_word" >&5
2664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2665 if test "${ac_cv_prog_CC+set}" = set; then
2666 echo $ECHO_N "(cached) $ECHO_C" >&6
2668 if test -n "$CC"; then
2669 ac_cv_prog_CC
="$CC" # Let the user override the test.
2671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2675 test -z "$as_dir" && as_dir
=.
2676 for ac_exec_ext
in '' $ac_executable_extensions; do
2677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2678 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2688 if test -n "$CC"; then
2689 echo "$as_me:$LINENO: result: $CC" >&5
2690 echo "${ECHO_T}$CC" >&6
2692 echo "$as_me:$LINENO: result: no" >&5
2693 echo "${ECHO_T}no" >&6
2697 if test -z "$ac_cv_prog_CC"; then
2699 # Extract the first word of "gcc", so it can be a program name with args.
2700 set dummy gcc
; ac_word
=$2
2701 echo "$as_me:$LINENO: checking for $ac_word" >&5
2702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2703 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2704 echo $ECHO_N "(cached) $ECHO_C" >&6
2706 if test -n "$ac_ct_CC"; then
2707 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2709 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2713 test -z "$as_dir" && as_dir
=.
2714 for ac_exec_ext
in '' $ac_executable_extensions; do
2715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2716 ac_cv_prog_ac_ct_CC
="gcc"
2717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2725 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2726 if test -n "$ac_ct_CC"; then
2727 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2728 echo "${ECHO_T}$ac_ct_CC" >&6
2730 echo "$as_me:$LINENO: result: no" >&5
2731 echo "${ECHO_T}no" >&6
2739 if test -z "$CC"; then
2740 if test -n "$ac_tool_prefix"; then
2741 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2742 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2743 echo "$as_me:$LINENO: checking for $ac_word" >&5
2744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2745 if test "${ac_cv_prog_CC+set}" = set; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2748 if test -n "$CC"; then
2749 ac_cv_prog_CC
="$CC" # Let the user override the test.
2751 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2755 test -z "$as_dir" && as_dir
=.
2756 for ac_exec_ext
in '' $ac_executable_extensions; do
2757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2758 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 if test -n "$CC"; then
2769 echo "$as_me:$LINENO: result: $CC" >&5
2770 echo "${ECHO_T}$CC" >&6
2772 echo "$as_me:$LINENO: result: no" >&5
2773 echo "${ECHO_T}no" >&6
2777 if test -z "$ac_cv_prog_CC"; then
2779 # Extract the first word of "cc", so it can be a program name with args.
2780 set dummy cc
; ac_word
=$2
2781 echo "$as_me:$LINENO: checking for $ac_word" >&5
2782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2783 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2784 echo $ECHO_N "(cached) $ECHO_C" >&6
2786 if test -n "$ac_ct_CC"; then
2787 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2789 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2793 test -z "$as_dir" && as_dir
=.
2794 for ac_exec_ext
in '' $ac_executable_extensions; do
2795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2796 ac_cv_prog_ac_ct_CC
="cc"
2797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2806 if test -n "$ac_ct_CC"; then
2807 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2808 echo "${ECHO_T}$ac_ct_CC" >&6
2810 echo "$as_me:$LINENO: result: no" >&5
2811 echo "${ECHO_T}no" >&6
2820 if test -z "$CC"; then
2821 # Extract the first word of "cc", so it can be a program name with args.
2822 set dummy cc
; ac_word
=$2
2823 echo "$as_me:$LINENO: checking for $ac_word" >&5
2824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2825 if test "${ac_cv_prog_CC+set}" = set; then
2826 echo $ECHO_N "(cached) $ECHO_C" >&6
2828 if test -n "$CC"; then
2829 ac_cv_prog_CC
="$CC" # Let the user override the test.
2832 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2836 test -z "$as_dir" && as_dir
=.
2837 for ac_exec_ext
in '' $ac_executable_extensions; do
2838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2839 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2840 ac_prog_rejected
=yes
2844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 if test $ac_prog_rejected = yes; then
2851 # We found a bogon in the path, so make sure we never use it.
2852 set dummy
$ac_cv_prog_CC
2854 if test $# != 0; then
2855 # We chose a different compiler from the bogus one.
2856 # However, it has the same basename, so the bogon will be chosen
2857 # first if we set CC to just the basename; use the full file name.
2859 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2865 if test -n "$CC"; then
2866 echo "$as_me:$LINENO: result: $CC" >&5
2867 echo "${ECHO_T}$CC" >&6
2869 echo "$as_me:$LINENO: result: no" >&5
2870 echo "${ECHO_T}no" >&6
2874 if test -z "$CC"; then
2875 if test -n "$ac_tool_prefix"; then
2878 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2879 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2880 echo "$as_me:$LINENO: checking for $ac_word" >&5
2881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2882 if test "${ac_cv_prog_CC+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 if test -n "$CC"; then
2886 ac_cv_prog_CC
="$CC" # Let the user override the test.
2888 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2892 test -z "$as_dir" && as_dir
=.
2893 for ac_exec_ext
in '' $ac_executable_extensions; do
2894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2895 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2905 if test -n "$CC"; then
2906 echo "$as_me:$LINENO: result: $CC" >&5
2907 echo "${ECHO_T}$CC" >&6
2909 echo "$as_me:$LINENO: result: no" >&5
2910 echo "${ECHO_T}no" >&6
2913 test -n "$CC" && break
2916 if test -z "$CC"; then
2920 # Extract the first word of "$ac_prog", so it can be a program name with args.
2921 set dummy
$ac_prog; ac_word
=$2
2922 echo "$as_me:$LINENO: checking for $ac_word" >&5
2923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2927 if test -n "$ac_ct_CC"; then
2928 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2930 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2934 test -z "$as_dir" && as_dir
=.
2935 for ac_exec_ext
in '' $ac_executable_extensions; do
2936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2937 ac_cv_prog_ac_ct_CC
="$ac_prog"
2938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2947 if test -n "$ac_ct_CC"; then
2948 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2949 echo "${ECHO_T}$ac_ct_CC" >&6
2951 echo "$as_me:$LINENO: result: no" >&5
2952 echo "${ECHO_T}no" >&6
2955 test -n "$ac_ct_CC" && break
2964 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2965 See \`config.log' for more details." >&5
2966 echo "$as_me: error: no acceptable C compiler found in \$PATH
2967 See \`config.log' for more details." >&2;}
2968 { (exit 1); exit 1; }; }
2970 # Provide some information about the compiler.
2971 echo "$as_me:$LINENO:" \
2972 "checking for C compiler version" >&5
2973 ac_compiler
=`set X $ac_compile; echo $2`
2974 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2975 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }
2979 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2980 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }
2984 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2985 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }
2990 cat >conftest.
$ac_ext <<_ACEOF
2991 #line $LINENO "configure"
2994 cat confdefs.h
>>conftest.
$ac_ext
2995 cat >>conftest.
$ac_ext <<_ACEOF
2996 /* end confdefs.h. */
3006 ac_clean_files_save
=$ac_clean_files
3007 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3008 # Try to create an executable without -o first, disregard a.out.
3009 # It will help us diagnose broken compilers, and finding out an intuition
3011 echo "$as_me:$LINENO: checking for C compiler default output" >&5
3012 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
3013 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3014 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3015 (eval $ac_link_default) 2>&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; then
3019 # Find the output, starting from the most likely. This scheme is
3020 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3023 # Be careful to initialize this variable, since it used to be cached.
3024 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3026 # b.out is created by i960 compilers.
3027 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3029 test -f "$ac_file" ||
continue
3031 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3034 # This is the source file.
3037 # We found the default executable, but exeext='' is most
3041 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3042 # FIXME: I believe we export ac_cv_exeext for Libtool,
3043 # but it would be cool to find out if it's true. Does anybody
3044 # maintain Libtool? --akim.
3052 echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.
$ac_ext >&5
3055 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3056 See \`config.log' for more details." >&5
3057 echo "$as_me: error: C compiler cannot create executables
3058 See \`config.log' for more details." >&2;}
3059 { (exit 77); exit 77; }; }
3062 ac_exeext
=$ac_cv_exeext
3063 echo "$as_me:$LINENO: result: $ac_file" >&5
3064 echo "${ECHO_T}$ac_file" >&6
3066 # Check the compiler produces executables we can run. If not, either
3067 # the compiler is broken, or we cross compile.
3068 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3069 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3070 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3071 # If not cross compiling, check that we can run a simple program.
3072 if test "$cross_compiling" != yes; then
3073 if { ac_try
='./$ac_file'
3074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); }; }; then
3081 if test "$cross_compiling" = maybe
; then
3084 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3085 If you meant to cross compile, use \`--host'.
3086 See \`config.log' for more details." >&5
3087 echo "$as_me: error: cannot run C compiled programs.
3088 If you meant to cross compile, use \`--host'.
3089 See \`config.log' for more details." >&2;}
3090 { (exit 1); exit 1; }; }
3094 echo "$as_me:$LINENO: result: yes" >&5
3095 echo "${ECHO_T}yes" >&6
3097 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3098 ac_clean_files
=$ac_clean_files_save
3099 # Check the compiler produces executables we can run. If not, either
3100 # the compiler is broken, or we cross compile.
3101 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3102 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3103 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3104 echo "${ECHO_T}$cross_compiling" >&6
3106 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3107 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3109 (eval $ac_link) 2>&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; then
3113 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3114 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3115 # work properly (i.e., refer to `conftest.exe'), while it won't with
3117 for ac_file
in conftest.exe conftest conftest.
*; do
3118 test -f "$ac_file" ||
continue
3120 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3121 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3128 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3129 See \`config.log' for more details." >&5
3130 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3131 See \`config.log' for more details." >&2;}
3132 { (exit 1); exit 1; }; }
3135 rm -f conftest
$ac_cv_exeext
3136 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3137 echo "${ECHO_T}$ac_cv_exeext" >&6
3139 rm -f conftest.
$ac_ext
3140 EXEEXT
=$ac_cv_exeext
3142 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3143 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3144 if test "${ac_cv_objext+set}" = set; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3147 cat >conftest.
$ac_ext <<_ACEOF
3148 #line $LINENO "configure"
3151 cat confdefs.h
>>conftest.
$ac_ext
3152 cat >>conftest.
$ac_ext <<_ACEOF
3153 /* end confdefs.h. */
3163 rm -f conftest.o conftest.obj
3164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3165 (eval $ac_compile) 2>&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; then
3169 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3171 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3172 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3177 echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.
$ac_ext >&5
3180 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3181 See \`config.log' for more details." >&5
3182 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3183 See \`config.log' for more details." >&2;}
3184 { (exit 1); exit 1; }; }
3187 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3189 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3190 echo "${ECHO_T}$ac_cv_objext" >&6
3191 OBJEXT
=$ac_cv_objext
3193 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3194 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3195 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 cat >conftest.
$ac_ext <<_ACEOF
3199 #line $LINENO "configure"
3202 cat confdefs.h
>>conftest.
$ac_ext
3203 cat >>conftest.
$ac_ext <<_ACEOF
3204 /* end confdefs.h. */
3217 rm -f conftest.
$ac_objext
3218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3219 (eval $ac_compile) 2>&5
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); } &&
3223 { ac_try
='test -s conftest.$ac_objext'
3224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }; }; then
3231 echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.
$ac_ext >&5
3236 rm -f conftest.
$ac_objext conftest.
$ac_ext
3237 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3240 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3241 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3242 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3243 ac_test_CFLAGS
=${CFLAGS+set}
3244 ac_save_CFLAGS
=$CFLAGS
3246 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3247 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3248 if test "${ac_cv_prog_cc_g+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3251 cat >conftest.
$ac_ext <<_ACEOF
3252 #line $LINENO "configure"
3255 cat confdefs.h
>>conftest.
$ac_ext
3256 cat >>conftest.
$ac_ext <<_ACEOF
3257 /* end confdefs.h. */
3267 rm -f conftest.
$ac_objext
3268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3269 (eval $ac_compile) 2>&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } &&
3273 { ac_try
='test -s conftest.$ac_objext'
3274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; }; then
3281 echo "$as_me: failed program was:" >&5
3282 sed 's/^/| /' conftest.
$ac_ext >&5
3286 rm -f conftest.
$ac_objext conftest.
$ac_ext
3288 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3289 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3290 if test "$ac_test_CFLAGS" = set; then
3291 CFLAGS
=$ac_save_CFLAGS
3292 elif test $ac_cv_prog_cc_g = yes; then
3293 if test "$GCC" = yes; then
3299 if test "$GCC" = yes; then
3305 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3306 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3307 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 ac_cv_prog_cc_stdc
=no
3312 cat >conftest.
$ac_ext <<_ACEOF
3313 #line $LINENO "configure"
3316 cat confdefs.h
>>conftest.
$ac_ext
3317 cat >>conftest.
$ac_ext <<_ACEOF
3318 /* end confdefs.h. */
3321 #include <sys/types.h>
3322 #include <sys/stat.h>
3323 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3324 struct buf { int x; };
3325 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3326 static char *e (p, i)
3332 static char *f (char * (*g) (char **, int), char **p, ...)
3337 s = g (p, va_arg (v,int));
3341 int test (int i, double x);
3342 struct s1 {int (*f) (int a);};
3343 struct s2 {int (*f) (double a);};
3344 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3350 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3355 # Don't try gcc -ansi; that turns off useful extensions and
3356 # breaks some systems' header files.
3357 # AIX -qlanglvl=ansi
3358 # Ultrix and OSF/1 -std1
3359 # HP-UX 10.20 and later -Ae
3360 # HP-UX older versions -Aa -D_HPUX_SOURCE
3361 # SVR4 -Xc -D__EXTENSIONS__
3362 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3364 CC
="$ac_save_CC $ac_arg"
3365 rm -f conftest.
$ac_objext
3366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3367 (eval $ac_compile) 2>&5
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); } &&
3371 { ac_try
='test -s conftest.$ac_objext'
3372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }; }; then
3377 ac_cv_prog_cc_stdc
=$ac_arg
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.
$ac_ext >&5
3384 rm -f conftest.
$ac_objext
3386 rm -f conftest.
$ac_ext conftest.
$ac_objext
3391 case "x$ac_cv_prog_cc_stdc" in
3393 echo "$as_me:$LINENO: result: none needed" >&5
3394 echo "${ECHO_T}none needed" >&6 ;;
3396 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3397 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3398 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3401 # Some people use a C++ compiler to compile C. Since we use `exit',
3402 # in C++ we need to declare it. In case someone uses the same compiler
3403 # for both compiling C and C++ we need to have the C++ compiler decide
3404 # the declaration of exit, since it's the most demanding environment.
3405 cat >conftest.
$ac_ext <<_ACEOF
3410 rm -f conftest.
$ac_objext
3411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3412 (eval $ac_compile) 2>&5
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); } &&
3416 { ac_try
='test -s conftest.$ac_objext'
3417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }; }; then
3422 for ac_declaration
in \
3424 '#include <stdlib.h>' \
3425 'extern "C" void std::exit (int) throw (); using std::exit;' \
3426 'extern "C" void std::exit (int); using std::exit;' \
3427 'extern "C" void exit (int) throw ();' \
3428 'extern "C" void exit (int);' \
3431 cat >conftest.
$ac_ext <<_ACEOF
3432 #line $LINENO "configure"
3435 cat confdefs.h
>>conftest.
$ac_ext
3436 cat >>conftest.
$ac_ext <<_ACEOF
3437 /* end confdefs.h. */
3448 rm -f conftest.
$ac_objext
3449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3450 (eval $ac_compile) 2>&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } &&
3454 { ac_try
='test -s conftest.$ac_objext'
3455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }; }; then
3462 echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.
$ac_ext >&5
3467 rm -f conftest.
$ac_objext conftest.
$ac_ext
3468 cat >conftest.
$ac_ext <<_ACEOF
3469 #line $LINENO "configure"
3472 cat confdefs.h
>>conftest.
$ac_ext
3473 cat >>conftest.
$ac_ext <<_ACEOF
3474 /* end confdefs.h. */
3484 rm -f conftest.
$ac_objext
3485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3486 (eval $ac_compile) 2>&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } &&
3490 { ac_try
='test -s conftest.$ac_objext'
3491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }; }; then
3498 echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.
$ac_ext >&5
3502 rm -f conftest.
$ac_objext conftest.
$ac_ext
3505 if test -n "$ac_declaration"; then
3506 echo '#ifdef __cplusplus' >>confdefs.h
3507 echo $ac_declaration >>confdefs.h
3508 echo '#endif' >>confdefs.h
3512 echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.
$ac_ext >&5
3516 rm -f conftest.
$ac_objext conftest.
$ac_ext
3518 ac_cpp
='$CPP $CPPFLAGS'
3519 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3520 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3521 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3524 # On Suns, sometimes $CPP names a directory.
3525 if test -n "$CPP" && test -d "$CPP"; then
3529 #### Some systems specify a CPP to use unless we are using GCC.
3530 #### Now that we know whether we are using GCC, we can decide whether
3531 #### to use that one.
3532 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3537 #### Some systems specify a CC to use unless we are using GCC.
3538 #### Now that we know whether we are using GCC, we can decide whether
3539 #### to use that one.
3540 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3541 test x
$cc_specified != xyes
3546 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3548 CC
="$CC $GCC_TEST_OPTIONS"
3551 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3553 CC
="$CC $NON_GCC_TEST_OPTIONS"
3556 #### Some other nice autoconf tests.
3558 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3559 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3561 if test "$LN_S" = "ln -s"; then
3562 echo "$as_me:$LINENO: result: yes" >&5
3563 echo "${ECHO_T}yes" >&6
3565 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3566 echo "${ECHO_T}no, using $LN_S" >&6
3570 ac_cpp
='$CPP $CPPFLAGS'
3571 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3572 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3573 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3574 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3575 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3576 # On Suns, sometimes $CPP names a directory.
3577 if test -n "$CPP" && test -d "$CPP"; then
3580 if test -z "$CPP"; then
3581 if test "${ac_cv_prog_CPP+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3584 # Double quotes because CPP needs to be expanded
3585 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3588 for ac_c_preproc_warn_flag
in '' yes
3590 # Use a header file that comes with gcc, so configuring glibc
3591 # with a fresh cross-compiler works.
3592 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3593 # <limits.h> exists even on freestanding compilers.
3594 # On the NeXT, cc -E runs the code through the compiler's parser,
3595 # not just through cpp. "Syntax error" is here to catch this case.
3596 cat >conftest.
$ac_ext <<_ACEOF
3597 #line $LINENO "configure"
3600 cat confdefs.h
>>conftest.
$ac_ext
3601 cat >>conftest.
$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3604 # include <limits.h>
3606 # include <assert.h>
3610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3611 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3613 grep -v '^ *+' conftest.er1
>conftest.err
3615 cat conftest.err
>&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); } >/dev
/null
; then
3618 if test -s conftest.err
; then
3619 ac_cpp_err
=$ac_c_preproc_warn_flag
3626 if test -z "$ac_cpp_err"; then
3629 echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.
$ac_ext >&5
3632 # Broken: fails on valid input.
3635 rm -f conftest.err conftest.
$ac_ext
3637 # OK, works on sane cases. Now check whether non-existent headers
3638 # can be detected and how.
3639 cat >conftest.
$ac_ext <<_ACEOF
3640 #line $LINENO "configure"
3643 cat confdefs.h
>>conftest.
$ac_ext
3644 cat >>conftest.
$ac_ext <<_ACEOF
3645 /* end confdefs.h. */
3646 #include <ac_nonexistent.h>
3648 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3649 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3651 grep -v '^ *+' conftest.er1
>conftest.err
3653 cat conftest.err
>&5
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); } >/dev
/null
; then
3656 if test -s conftest.err
; then
3657 ac_cpp_err
=$ac_c_preproc_warn_flag
3664 if test -z "$ac_cpp_err"; then
3665 # Broken: success on invalid input.
3668 echo "$as_me: failed program was:" >&5
3669 sed 's/^/| /' conftest.
$ac_ext >&5
3671 # Passes both tests.
3675 rm -f conftest.err conftest.
$ac_ext
3678 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3679 rm -f conftest.err conftest.
$ac_ext
3680 if $ac_preproc_ok; then
3692 echo "$as_me:$LINENO: result: $CPP" >&5
3693 echo "${ECHO_T}$CPP" >&6
3695 for ac_c_preproc_warn_flag
in '' yes
3697 # Use a header file that comes with gcc, so configuring glibc
3698 # with a fresh cross-compiler works.
3699 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3700 # <limits.h> exists even on freestanding compilers.
3701 # On the NeXT, cc -E runs the code through the compiler's parser,
3702 # not just through cpp. "Syntax error" is here to catch this case.
3703 cat >conftest.
$ac_ext <<_ACEOF
3704 #line $LINENO "configure"
3707 cat confdefs.h
>>conftest.
$ac_ext
3708 cat >>conftest.
$ac_ext <<_ACEOF
3709 /* end confdefs.h. */
3711 # include <limits.h>
3713 # include <assert.h>
3717 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3718 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3720 grep -v '^ *+' conftest.er1
>conftest.err
3722 cat conftest.err
>&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); } >/dev
/null
; then
3725 if test -s conftest.err
; then
3726 ac_cpp_err
=$ac_c_preproc_warn_flag
3733 if test -z "$ac_cpp_err"; then
3736 echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.
$ac_ext >&5
3739 # Broken: fails on valid input.
3742 rm -f conftest.err conftest.
$ac_ext
3744 # OK, works on sane cases. Now check whether non-existent headers
3745 # can be detected and how.
3746 cat >conftest.
$ac_ext <<_ACEOF
3747 #line $LINENO "configure"
3750 cat confdefs.h
>>conftest.
$ac_ext
3751 cat >>conftest.
$ac_ext <<_ACEOF
3752 /* end confdefs.h. */
3753 #include <ac_nonexistent.h>
3755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3756 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3758 grep -v '^ *+' conftest.er1
>conftest.err
3760 cat conftest.err
>&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); } >/dev
/null
; then
3763 if test -s conftest.err
; then
3764 ac_cpp_err
=$ac_c_preproc_warn_flag
3771 if test -z "$ac_cpp_err"; then
3772 # Broken: success on invalid input.
3775 echo "$as_me: failed program was:" >&5
3776 sed 's/^/| /' conftest.
$ac_ext >&5
3778 # Passes both tests.
3782 rm -f conftest.err conftest.
$ac_ext
3785 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3786 rm -f conftest.err conftest.
$ac_ext
3787 if $ac_preproc_ok; then
3790 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3791 See \`config.log' for more details." >&5
3792 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3793 See \`config.log' for more details." >&2;}
3794 { (exit 1); exit 1; }; }
3798 ac_cpp
='$CPP $CPPFLAGS'
3799 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3800 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3801 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3803 # Find a good install program. We prefer a C program (faster),
3804 # so one script is as good as another. But avoid the broken or
3805 # incompatible versions:
3806 # SysV /etc/install, /usr/sbin/install
3807 # SunOS /usr/etc/install
3808 # IRIX /sbin/install
3810 # AmigaOS /C/install, which installs bootblocks on floppy discs
3811 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3812 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3813 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3814 # ./install, which can be erroneously created by make from ./install.sh.
3815 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3816 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3817 if test -z "$INSTALL"; then
3818 if test "${ac_cv_path_install+set}" = set; then
3819 echo $ECHO_N "(cached) $ECHO_C" >&6
3821 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3825 test -z "$as_dir" && as_dir
=.
3826 # Account for people who put trailing slashes in PATH elements.
3828 .
/ | .
// |
/cC
/* | \
3829 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3832 # OSF1 and SCO ODT 3.0 have their own names for install.
3833 # Don't use installbsd from OSF since it installs stuff as root
3835 for ac_prog
in ginstall scoinst
install; do
3836 for ac_exec_ext
in '' $ac_executable_extensions; do
3837 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3838 if test $ac_prog = install &&
3839 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3840 # AIX install. It has an incompatible calling convention.
3842 elif test $ac_prog = install &&
3843 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3844 # program-specific install script used by HP pwplus--don't use.
3847 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3859 if test "${ac_cv_path_install+set}" = set; then
3860 INSTALL
=$ac_cv_path_install
3862 # As a last resort, use the slow shell script. We don't cache a
3863 # path for INSTALL within a source directory, because that will
3864 # break other packages using the cache if that directory is
3865 # removed, or if the path is relative.
3866 INSTALL
=$ac_install_sh
3869 echo "$as_me:$LINENO: result: $INSTALL" >&5
3870 echo "${ECHO_T}$INSTALL" >&6
3872 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3873 # It thinks the first close brace ends the variable substitution.
3874 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3876 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3878 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3880 if test "x$RANLIB" = x
; then
3881 if test -n "$ac_tool_prefix"; then
3882 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3883 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3884 echo "$as_me:$LINENO: checking for $ac_word" >&5
3885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3886 if test "${ac_cv_prog_RANLIB+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 if test -n "$RANLIB"; then
3890 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3892 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3896 test -z "$as_dir" && as_dir
=.
3897 for ac_exec_ext
in '' $ac_executable_extensions; do
3898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3899 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3908 RANLIB
=$ac_cv_prog_RANLIB
3909 if test -n "$RANLIB"; then
3910 echo "$as_me:$LINENO: result: $RANLIB" >&5
3911 echo "${ECHO_T}$RANLIB" >&6
3913 echo "$as_me:$LINENO: result: no" >&5
3914 echo "${ECHO_T}no" >&6
3918 if test -z "$ac_cv_prog_RANLIB"; then
3919 ac_ct_RANLIB
=$RANLIB
3920 # Extract the first word of "ranlib", so it can be a program name with args.
3921 set dummy ranlib
; ac_word
=$2
3922 echo "$as_me:$LINENO: checking for $ac_word" >&5
3923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3924 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 if test -n "$ac_ct_RANLIB"; then
3928 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3930 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3934 test -z "$as_dir" && as_dir
=.
3935 for ac_exec_ext
in '' $ac_executable_extensions; do
3936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3937 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3944 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3947 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3948 if test -n "$ac_ct_RANLIB"; then
3949 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3950 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3952 echo "$as_me:$LINENO: result: no" >&5
3953 echo "${ECHO_T}no" >&6
3956 RANLIB
=$ac_ct_RANLIB
3958 RANLIB
="$ac_cv_prog_RANLIB"
3962 # Extract the first word of "install-info", so it can be a program name with args.
3963 set dummy install-info
; ac_word
=$2
3964 echo "$as_me:$LINENO: checking for $ac_word" >&5
3965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3966 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3969 case $INSTALL_INFO in
3971 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
3974 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3978 test -z "$as_dir" && as_dir
=.
3979 for ac_exec_ext
in '' $ac_executable_extensions; do
3980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3981 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
3982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3991 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
3993 if test -n "$INSTALL_INFO"; then
3994 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3995 echo "${ECHO_T}$INSTALL_INFO" >&6
3997 echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6
4001 # Extract the first word of "install-info", so it can be a program name with args.
4002 set dummy install-info
; ac_word
=$2
4003 echo "$as_me:$LINENO: checking for $ac_word" >&5
4004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4005 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4006 echo $ECHO_N "(cached) $ECHO_C" >&6
4008 case $INSTALL_INFO in
4010 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4013 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4014 for as_dir
in /usr
/sbin
4017 test -z "$as_dir" && as_dir
=.
4018 for ac_exec_ext
in '' $ac_executable_extensions; do
4019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4020 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4030 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4032 if test -n "$INSTALL_INFO"; then
4033 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4034 echo "${ECHO_T}$INSTALL_INFO" >&6
4036 echo "$as_me:$LINENO: result: no" >&5
4037 echo "${ECHO_T}no" >&6
4040 # Extract the first word of "install-info", so it can be a program name with args.
4041 set dummy install-info
; ac_word
=$2
4042 echo "$as_me:$LINENO: checking for $ac_word" >&5
4043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4044 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4047 case $INSTALL_INFO in
4049 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4052 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4056 test -z "$as_dir" && as_dir
=.
4057 for ac_exec_ext
in '' $ac_executable_extensions; do
4058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4059 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4066 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4070 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4072 if test -n "$INSTALL_INFO"; then
4073 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4074 echo "${ECHO_T}$INSTALL_INFO" >&6
4076 echo "$as_me:$LINENO: result: no" >&5
4077 echo "${ECHO_T}no" >&6
4082 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4084 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4087 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4089 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4094 echo "$as_me:$LINENO: checking for egrep" >&5
4095 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4096 if test "${ac_cv_prog_egrep+set}" = set; then
4097 echo $ECHO_N "(cached) $ECHO_C" >&6
4099 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4100 then ac_cv_prog_egrep
='grep -E'
4101 else ac_cv_prog_egrep
='egrep'
4104 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4105 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4106 EGREP
=$ac_cv_prog_egrep
4110 echo "$as_me:$LINENO: checking for AIX" >&5
4111 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4112 cat >conftest.
$ac_ext <<_ACEOF
4113 #line $LINENO "configure"
4116 cat confdefs.h
>>conftest.
$ac_ext
4117 cat >>conftest.
$ac_ext <<_ACEOF
4118 /* end confdefs.h. */
4124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4125 $EGREP "yes" >/dev
/null
2>&1; then
4126 echo "$as_me:$LINENO: result: yes" >&5
4127 echo "${ECHO_T}yes" >&6
4128 cat >>confdefs.h
<<\_ACEOF
4129 #define _ALL_SOURCE 1
4133 echo "$as_me:$LINENO: result: no" >&5
4134 echo "${ECHO_T}no" >&6
4140 #### Extract some information from the operating system and machine files.
4142 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4143 - which libraries the lib-src programs will want, and
4144 - whether the GNU malloc routines are usable..." >&5
4145 echo "$as_me: checking the machine- and system-dependent files to find out
4146 - which libraries the lib-src programs will want, and
4147 - whether the GNU malloc routines are usable..." >&6;}
4149 ### First figure out CFLAGS (which we use for running the compiler here)
4150 ### and REAL_CFLAGS (which we use for real compilation).
4151 ### The two are the same except on a few systems, where they are made
4152 ### different to work around various lossages. For example,
4153 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4154 ### as implying static linking.
4156 ### If the CFLAGS env var is specified, we use that value
4157 ### instead of the default.
4159 ### It's not important that this name contain the PID; you can't run
4160 ### two configures in the same directory and have anything work
4162 tempcname
="conftest.c"
4165 #include "'${srcdir}'/src/'${opsysfile}'"
4166 #include "'${srcdir}'/src/'${machfile}'"
4167 #ifndef LIBS_MACHINE
4168 #define LIBS_MACHINE
4173 #ifndef C_SWITCH_SYSTEM
4174 #define C_SWITCH_SYSTEM
4176 #ifndef C_SWITCH_MACHINE
4177 #define C_SWITCH_MACHINE
4179 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4180 configure___ c_switch_system=C_SWITCH_SYSTEM
4181 configure___ c_switch_machine=C_SWITCH_MACHINE
4184 #define LIB_X11_LIB -lX11
4187 #ifndef LIBX11_MACHINE
4188 #define LIBX11_MACHINE
4191 #ifndef LIBX11_SYSTEM
4192 #define LIBX11_SYSTEM
4194 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4197 configure___ unexec=UNEXEC
4199 configure___ unexec=unexec.o
4202 #ifdef SYSTEM_MALLOC
4203 configure___ system_malloc=yes
4205 configure___ system_malloc=no
4208 #ifdef USE_MMAP_FOR_BUFFERS
4209 configure___ use_mmap_for_buffers=yes
4211 configure___ use_mmap_for_buffers=no
4214 #ifndef C_DEBUG_SWITCH
4215 #define C_DEBUG_SWITCH -g
4218 #ifndef C_OPTIMIZE_SWITCH
4220 #define C_OPTIMIZE_SWITCH -O2
4222 #define C_OPTIMIZE_SWITCH -O
4226 #ifndef LD_SWITCH_MACHINE
4227 #define LD_SWITCH_MACHINE
4230 #ifndef LD_SWITCH_SYSTEM
4231 #define LD_SWITCH_SYSTEM
4234 #ifndef LD_SWITCH_X_SITE_AUX
4235 #define LD_SWITCH_X_SITE_AUX
4238 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4239 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4241 #ifdef THIS_IS_CONFIGURE
4243 /* Get the CFLAGS for tests in configure. */
4245 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4247 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4250 #else /* not THIS_IS_CONFIGURE */
4252 /* Get the CFLAGS for real compilation. */
4254 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4256 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4259 #endif /* not THIS_IS_CONFIGURE */
4262 # The value of CPP is a quoted variable reference, so we need to do this
4263 # to get its actual value...
4264 CPP
=`eval "echo $CPP"`
4265 eval `${CPP} -Isrc ${tempcname} \
4266 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4267 if test "x$SPECIFIED_CFLAGS" = x
; then
4268 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4269 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4271 REAL_CFLAGS
="$CFLAGS"
4275 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4277 ### Make sure subsequent tests use flags consistent with the build flags.
4279 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4280 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4282 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4288 cat >>confdefs.h
<<\_ACEOF
4289 #define _GNU_SOURCE 1
4294 # Check whether --enable-largefile or --disable-largefile was given.
4295 if test "${enable_largefile+set}" = set; then
4296 enableval
="$enable_largefile"
4299 if test "$enable_largefile" != no
; then
4301 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4302 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4303 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4306 ac_cv_sys_largefile_CC
=no
4307 if test "$GCC" != yes; then
4310 # IRIX 6.2 and later do not support large files by default,
4311 # so use the C compiler's -n32 option if that helps.
4312 cat >conftest.
$ac_ext <<_ACEOF
4313 #line $LINENO "configure"
4316 cat confdefs.h
>>conftest.
$ac_ext
4317 cat >>conftest.
$ac_ext <<_ACEOF
4318 /* end confdefs.h. */
4319 #include <sys/types.h>
4320 /* Check that off_t can represent 2**63 - 1 correctly.
4321 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4322 since some C++ compilers masquerading as C compilers
4323 incorrectly reject 9223372036854775807. */
4324 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4325 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4326 && LARGE_OFF_T % 2147483647 == 1)
4336 rm -f conftest.
$ac_objext
4337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4338 (eval $ac_compile) 2>&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); } &&
4342 { ac_try
='test -s conftest.$ac_objext'
4343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); }; }; then
4350 echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.
$ac_ext >&5
4354 rm -f conftest.
$ac_objext
4356 rm -f conftest.
$ac_objext
4357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4358 (eval $ac_compile) 2>&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); } &&
4362 { ac_try
='test -s conftest.$ac_objext'
4363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; }; then
4368 ac_cv_sys_largefile_CC
=' -n32'; break
4370 echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.
$ac_ext >&5
4374 rm -f conftest.
$ac_objext
4378 rm -f conftest.
$ac_ext
4381 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4382 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4383 if test "$ac_cv_sys_largefile_CC" != no
; then
4384 CC
=$CC$ac_cv_sys_largefile_CC
4387 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4388 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4389 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4393 ac_cv_sys_file_offset_bits
=no
4394 cat >conftest.
$ac_ext <<_ACEOF
4395 #line $LINENO "configure"
4398 cat confdefs.h
>>conftest.
$ac_ext
4399 cat >>conftest.
$ac_ext <<_ACEOF
4400 /* end confdefs.h. */
4401 #include <sys/types.h>
4402 /* Check that off_t can represent 2**63 - 1 correctly.
4403 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4404 since some C++ compilers masquerading as C compilers
4405 incorrectly reject 9223372036854775807. */
4406 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4407 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4408 && LARGE_OFF_T % 2147483647 == 1)
4418 rm -f conftest.
$ac_objext
4419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4420 (eval $ac_compile) 2>&5
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); } &&
4424 { ac_try
='test -s conftest.$ac_objext'
4425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); }; }; then
4432 echo "$as_me: failed program was:" >&5
4433 sed 's/^/| /' conftest.
$ac_ext >&5
4436 rm -f conftest.
$ac_objext conftest.
$ac_ext
4437 cat >conftest.
$ac_ext <<_ACEOF
4438 #line $LINENO "configure"
4441 cat confdefs.h
>>conftest.
$ac_ext
4442 cat >>conftest.
$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4444 #define _FILE_OFFSET_BITS 64
4445 #include <sys/types.h>
4446 /* Check that off_t can represent 2**63 - 1 correctly.
4447 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4448 since some C++ compilers masquerading as C compilers
4449 incorrectly reject 9223372036854775807. */
4450 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4451 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4452 && LARGE_OFF_T % 2147483647 == 1)
4462 rm -f conftest.
$ac_objext
4463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4464 (eval $ac_compile) 2>&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); } &&
4468 { ac_try
='test -s conftest.$ac_objext'
4469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; }; then
4474 ac_cv_sys_file_offset_bits
=64; break
4476 echo "$as_me: failed program was:" >&5
4477 sed 's/^/| /' conftest.
$ac_ext >&5
4480 rm -f conftest.
$ac_objext conftest.
$ac_ext
4484 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4485 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4486 if test "$ac_cv_sys_file_offset_bits" != no
; then
4488 cat >>confdefs.h
<<_ACEOF
4489 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4494 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4495 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4496 if test "${ac_cv_sys_large_files+set}" = set; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 ac_cv_sys_large_files
=no
4501 cat >conftest.
$ac_ext <<_ACEOF
4502 #line $LINENO "configure"
4505 cat confdefs.h
>>conftest.
$ac_ext
4506 cat >>conftest.
$ac_ext <<_ACEOF
4507 /* end confdefs.h. */
4508 #include <sys/types.h>
4509 /* Check that off_t can represent 2**63 - 1 correctly.
4510 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4511 since some C++ compilers masquerading as C compilers
4512 incorrectly reject 9223372036854775807. */
4513 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4514 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4515 && LARGE_OFF_T % 2147483647 == 1)
4525 rm -f conftest.
$ac_objext
4526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4527 (eval $ac_compile) 2>&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); } &&
4531 { ac_try
='test -s conftest.$ac_objext'
4532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }; }; then
4539 echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.
$ac_ext >&5
4543 rm -f conftest.
$ac_objext conftest.
$ac_ext
4544 cat >conftest.
$ac_ext <<_ACEOF
4545 #line $LINENO "configure"
4548 cat confdefs.h
>>conftest.
$ac_ext
4549 cat >>conftest.
$ac_ext <<_ACEOF
4550 /* end confdefs.h. */
4551 #define _LARGE_FILES 1
4552 #include <sys/types.h>
4553 /* Check that off_t can represent 2**63 - 1 correctly.
4554 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4555 since some C++ compilers masquerading as C compilers
4556 incorrectly reject 9223372036854775807. */
4557 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4558 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4559 && LARGE_OFF_T % 2147483647 == 1)
4569 rm -f conftest.
$ac_objext
4570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4571 (eval $ac_compile) 2>&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); } &&
4575 { ac_try
='test -s conftest.$ac_objext'
4576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); }; }; then
4581 ac_cv_sys_large_files
=1; break
4583 echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.
$ac_ext >&5
4587 rm -f conftest.
$ac_objext conftest.
$ac_ext
4591 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4592 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4593 if test "$ac_cv_sys_large_files" != no
; then
4595 cat >>confdefs.h
<<_ACEOF
4596 #define _LARGE_FILES $ac_cv_sys_large_files
4604 if test "${with_sound}" != "no"; then
4605 # Sound support for GNU/Linux and the free BSDs.
4606 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4607 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4608 if test "${ac_cv_header_stdc+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 cat >conftest.
$ac_ext <<_ACEOF
4612 #line $LINENO "configure"
4615 cat confdefs.h
>>conftest.
$ac_ext
4616 cat >>conftest.
$ac_ext <<_ACEOF
4617 /* end confdefs.h. */
4631 rm -f conftest.
$ac_objext
4632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4633 (eval $ac_compile) 2>&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); } &&
4637 { ac_try
='test -s conftest.$ac_objext'
4638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }; }; then
4643 ac_cv_header_stdc
=yes
4645 echo "$as_me: failed program was:" >&5
4646 sed 's/^/| /' conftest.
$ac_ext >&5
4648 ac_cv_header_stdc
=no
4650 rm -f conftest.
$ac_objext conftest.
$ac_ext
4652 if test $ac_cv_header_stdc = yes; then
4653 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4654 cat >conftest.
$ac_ext <<_ACEOF
4655 #line $LINENO "configure"
4658 cat confdefs.h
>>conftest.
$ac_ext
4659 cat >>conftest.
$ac_ext <<_ACEOF
4660 /* end confdefs.h. */
4664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4665 $EGREP "memchr" >/dev
/null
2>&1; then
4668 ac_cv_header_stdc
=no
4674 if test $ac_cv_header_stdc = yes; then
4675 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4676 cat >conftest.
$ac_ext <<_ACEOF
4677 #line $LINENO "configure"
4680 cat confdefs.h
>>conftest.
$ac_ext
4681 cat >>conftest.
$ac_ext <<_ACEOF
4682 /* end confdefs.h. */
4686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4687 $EGREP "free" >/dev
/null
2>&1; then
4690 ac_cv_header_stdc
=no
4696 if test $ac_cv_header_stdc = yes; then
4697 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4698 if test "$cross_compiling" = yes; then
4701 cat >conftest.
$ac_ext <<_ACEOF
4702 #line $LINENO "configure"
4705 cat confdefs.h
>>conftest.
$ac_ext
4706 cat >>conftest.
$ac_ext <<_ACEOF
4707 /* end confdefs.h. */
4709 #if ((' ' & 0x0FF) == 0x020)
4710 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4711 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4713 # define ISLOWER(c) \
4714 (('a' <= (c) && (c) <= 'i') \
4715 || ('j' <= (c) && (c) <= 'r') \
4716 || ('s' <= (c) && (c) <= 'z'))
4717 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4720 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4725 for (i = 0; i < 256; i++)
4726 if (XOR (islower (i), ISLOWER (i))
4727 || toupper (i) != TOUPPER (i))
4732 rm -f conftest
$ac_exeext
4733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4734 (eval $ac_link) 2>&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; }; then
4745 echo "$as_me: program exited with status $ac_status" >&5
4746 echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.
$ac_ext >&5
4750 ac_cv_header_stdc
=no
4752 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4756 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4757 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4758 if test $ac_cv_header_stdc = yes; then
4760 cat >>confdefs.h
<<\_ACEOF
4761 #define STDC_HEADERS 1
4766 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4776 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4777 inttypes.h stdint.h unistd.h
4779 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4780 echo "$as_me:$LINENO: checking for $ac_header" >&5
4781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 cat >conftest.
$ac_ext <<_ACEOF
4786 #line $LINENO "configure"
4789 cat confdefs.h
>>conftest.
$ac_ext
4790 cat >>conftest.
$ac_ext <<_ACEOF
4791 /* end confdefs.h. */
4792 $ac_includes_default
4794 #include <$ac_header>
4796 rm -f conftest.
$ac_objext
4797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4798 (eval $ac_compile) 2>&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); } &&
4802 { ac_try
='test -s conftest.$ac_objext'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; }; then
4808 eval "$as_ac_Header=yes"
4810 echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.
$ac_ext >&5
4813 eval "$as_ac_Header=no"
4815 rm -f conftest.
$ac_objext conftest.
$ac_ext
4817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4820 cat >>confdefs.h
<<_ACEOF
4821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4832 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
4834 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4836 echo "$as_me:$LINENO: checking for $ac_header" >&5
4837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4839 echo $ECHO_N "(cached) $ECHO_C" >&6
4841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4844 # Is the header compilable?
4845 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4847 cat >conftest.
$ac_ext <<_ACEOF
4848 #line $LINENO "configure"
4851 cat confdefs.h
>>conftest.
$ac_ext
4852 cat >>conftest.
$ac_ext <<_ACEOF
4853 /* end confdefs.h. */
4854 $ac_includes_default
4855 #include <$ac_header>
4857 rm -f conftest.
$ac_objext
4858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4859 (eval $ac_compile) 2>&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } &&
4863 { ac_try
='test -s conftest.$ac_objext'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
4869 ac_header_compiler
=yes
4871 echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.
$ac_ext >&5
4874 ac_header_compiler
=no
4876 rm -f conftest.
$ac_objext conftest.
$ac_ext
4877 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4878 echo "${ECHO_T}$ac_header_compiler" >&6
4880 # Is the header present?
4881 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4882 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4883 cat >conftest.
$ac_ext <<_ACEOF
4884 #line $LINENO "configure"
4887 cat confdefs.h
>>conftest.
$ac_ext
4888 cat >>conftest.
$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4890 #include <$ac_header>
4892 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4893 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4895 grep -v '^ *+' conftest.er1
>conftest.err
4897 cat conftest.err
>&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); } >/dev
/null
; then
4900 if test -s conftest.err
; then
4901 ac_cpp_err
=$ac_c_preproc_warn_flag
4908 if test -z "$ac_cpp_err"; then
4909 ac_header_preproc
=yes
4911 echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.
$ac_ext >&5
4914 ac_header_preproc
=no
4916 rm -f conftest.err conftest.
$ac_ext
4917 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4918 echo "${ECHO_T}$ac_header_preproc" >&6
4920 # So? What about this header?
4921 case $ac_header_compiler:$ac_header_preproc in
4923 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4924 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4929 ## ------------------------------------ ##
4930 ## Report this to bug-autoconf@gnu.org. ##
4931 ## ------------------------------------ ##
4934 sed "s/^/$as_me: WARNING: /" >&2
4937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4938 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4940 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4942 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4945 ## ------------------------------------ ##
4946 ## Report this to bug-autoconf@gnu.org. ##
4947 ## ------------------------------------ ##
4950 sed "s/^/$as_me: WARNING: /" >&2
4953 echo "$as_me:$LINENO: checking for $ac_header" >&5
4954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6
4958 eval "$as_ac_Header=$ac_header_preproc"
4960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4961 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4965 cat >>confdefs.h
<<_ACEOF
4966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4973 # Emulation library used on NetBSD.
4974 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4975 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4976 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4977 echo $ECHO_N "(cached) $ECHO_C" >&6
4979 ac_check_lib_save_LIBS
=$LIBS
4980 LIBS
="-lossaudio $LIBS"
4981 cat >conftest.
$ac_ext <<_ACEOF
4982 #line $LINENO "configure"
4985 cat confdefs.h
>>conftest.
$ac_ext
4986 cat >>conftest.
$ac_ext <<_ACEOF
4987 /* end confdefs.h. */
4989 /* Override any gcc2 internal prototype to avoid an error. */
4993 /* We use char because int might match the return type of a gcc2
4994 builtin and then its argument prototype would still apply. */
5004 rm -f conftest.
$ac_objext conftest
$ac_exeext
5005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5006 (eval $ac_link) 2>&5
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); } &&
5010 { ac_try
='test -s conftest$ac_exeext'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; }; then
5016 ac_cv_lib_ossaudio__oss_ioctl
=yes
5018 echo "$as_me: failed program was:" >&5
5019 sed 's/^/| /' conftest.
$ac_ext >&5
5021 ac_cv_lib_ossaudio__oss_ioctl
=no
5023 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5024 LIBS
=$ac_check_lib_save_LIBS
5026 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5027 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5028 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5060 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5061 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5062 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5063 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h
5065 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5067 echo "$as_me:$LINENO: checking for $ac_header" >&5
5068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5073 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5075 # Is the header compilable?
5076 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5077 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5078 cat >conftest.
$ac_ext <<_ACEOF
5079 #line $LINENO "configure"
5082 cat confdefs.h
>>conftest.
$ac_ext
5083 cat >>conftest.
$ac_ext <<_ACEOF
5084 /* end confdefs.h. */
5085 $ac_includes_default
5086 #include <$ac_header>
5088 rm -f conftest.
$ac_objext
5089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5090 (eval $ac_compile) 2>&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } &&
5094 { ac_try
='test -s conftest.$ac_objext'
5095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); }; }; then
5100 ac_header_compiler
=yes
5102 echo "$as_me: failed program was:" >&5
5103 sed 's/^/| /' conftest.
$ac_ext >&5
5105 ac_header_compiler
=no
5107 rm -f conftest.
$ac_objext conftest.
$ac_ext
5108 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5109 echo "${ECHO_T}$ac_header_compiler" >&6
5111 # Is the header present?
5112 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5113 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5114 cat >conftest.
$ac_ext <<_ACEOF
5115 #line $LINENO "configure"
5118 cat confdefs.h
>>conftest.
$ac_ext
5119 cat >>conftest.
$ac_ext <<_ACEOF
5120 /* end confdefs.h. */
5121 #include <$ac_header>
5123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5124 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5126 grep -v '^ *+' conftest.er1
>conftest.err
5128 cat conftest.err
>&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); } >/dev
/null
; then
5131 if test -s conftest.err
; then
5132 ac_cpp_err
=$ac_c_preproc_warn_flag
5139 if test -z "$ac_cpp_err"; then
5140 ac_header_preproc
=yes
5142 echo "$as_me: failed program was:" >&5
5143 sed 's/^/| /' conftest.
$ac_ext >&5
5145 ac_header_preproc
=no
5147 rm -f conftest.err conftest.
$ac_ext
5148 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5149 echo "${ECHO_T}$ac_header_preproc" >&6
5151 # So? What about this header?
5152 case $ac_header_compiler:$ac_header_preproc in
5154 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5155 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5160 ## ------------------------------------ ##
5161 ## Report this to bug-autoconf@gnu.org. ##
5162 ## ------------------------------------ ##
5165 sed "s/^/$as_me: WARNING: /" >&2
5168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5169 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5171 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5176 ## ------------------------------------ ##
5177 ## Report this to bug-autoconf@gnu.org. ##
5178 ## ------------------------------------ ##
5181 sed "s/^/$as_me: WARNING: /" >&2
5184 echo "$as_me:$LINENO: checking for $ac_header" >&5
5185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5189 eval "$as_ac_Header=$ac_header_preproc"
5191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5196 cat >>confdefs.h
<<_ACEOF
5197 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5205 for ac_header
in term.h
5207 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5208 echo "$as_me:$LINENO: checking for $ac_header" >&5
5209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5213 cat >conftest.
$ac_ext <<_ACEOF
5214 #line $LINENO "configure"
5217 cat confdefs.h
>>conftest.
$ac_ext
5218 cat >>conftest.
$ac_ext <<_ACEOF
5219 /* end confdefs.h. */
5220 #include <$ac_header>
5222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5223 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5225 grep -v '^ *+' conftest.er1
>conftest.err
5227 cat conftest.err
>&5
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); } >/dev
/null
; then
5230 if test -s conftest.err
; then
5231 ac_cpp_err
=$ac_c_preproc_warn_flag
5238 if test -z "$ac_cpp_err"; then
5239 eval "$as_ac_Header=yes"
5241 echo "$as_me: failed program was:" >&5
5242 sed 's/^/| /' conftest.
$ac_ext >&5
5244 eval "$as_ac_Header=no"
5246 rm -f conftest.err conftest.
$ac_ext
5248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5251 cat >>confdefs.h
<<_ACEOF
5252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5259 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5260 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5261 if test "${ac_cv_header_stdc+set}" = set; then
5262 echo $ECHO_N "(cached) $ECHO_C" >&6
5264 cat >conftest.
$ac_ext <<_ACEOF
5265 #line $LINENO "configure"
5268 cat confdefs.h
>>conftest.
$ac_ext
5269 cat >>conftest.
$ac_ext <<_ACEOF
5270 /* end confdefs.h. */
5284 rm -f conftest.
$ac_objext
5285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5286 (eval $ac_compile) 2>&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); } &&
5290 { ac_try
='test -s conftest.$ac_objext'
5291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }; }; then
5296 ac_cv_header_stdc
=yes
5298 echo "$as_me: failed program was:" >&5
5299 sed 's/^/| /' conftest.
$ac_ext >&5
5301 ac_cv_header_stdc
=no
5303 rm -f conftest.
$ac_objext conftest.
$ac_ext
5305 if test $ac_cv_header_stdc = yes; then
5306 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5307 cat >conftest.
$ac_ext <<_ACEOF
5308 #line $LINENO "configure"
5311 cat confdefs.h
>>conftest.
$ac_ext
5312 cat >>conftest.
$ac_ext <<_ACEOF
5313 /* end confdefs.h. */
5317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5318 $EGREP "memchr" >/dev
/null
2>&1; then
5321 ac_cv_header_stdc
=no
5327 if test $ac_cv_header_stdc = yes; then
5328 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5329 cat >conftest.
$ac_ext <<_ACEOF
5330 #line $LINENO "configure"
5333 cat confdefs.h
>>conftest.
$ac_ext
5334 cat >>conftest.
$ac_ext <<_ACEOF
5335 /* end confdefs.h. */
5339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5340 $EGREP "free" >/dev
/null
2>&1; then
5343 ac_cv_header_stdc
=no
5349 if test $ac_cv_header_stdc = yes; then
5350 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5351 if test "$cross_compiling" = yes; then
5354 cat >conftest.
$ac_ext <<_ACEOF
5355 #line $LINENO "configure"
5358 cat confdefs.h
>>conftest.
$ac_ext
5359 cat >>conftest.
$ac_ext <<_ACEOF
5360 /* end confdefs.h. */
5362 #if ((' ' & 0x0FF) == 0x020)
5363 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5364 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5366 # define ISLOWER(c) \
5367 (('a' <= (c) && (c) <= 'i') \
5368 || ('j' <= (c) && (c) <= 'r') \
5369 || ('s' <= (c) && (c) <= 'z'))
5370 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5373 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5378 for (i = 0; i < 256; i++)
5379 if (XOR (islower (i), ISLOWER (i))
5380 || toupper (i) != TOUPPER (i))
5385 rm -f conftest
$ac_exeext
5386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5387 (eval $ac_link) 2>&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); }; }; then
5398 echo "$as_me: program exited with status $ac_status" >&5
5399 echo "$as_me: failed program was:" >&5
5400 sed 's/^/| /' conftest.
$ac_ext >&5
5403 ac_cv_header_stdc
=no
5405 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5409 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5410 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5411 if test $ac_cv_header_stdc = yes; then
5413 cat >>confdefs.h
<<\_ACEOF
5414 #define STDC_HEADERS 1
5419 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5420 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5421 if test "${ac_cv_header_time+set}" = set; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
5424 cat >conftest.
$ac_ext <<_ACEOF
5425 #line $LINENO "configure"
5428 cat confdefs.h
>>conftest.
$ac_ext
5429 cat >>conftest.
$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5431 #include <sys/types.h>
5432 #include <sys/time.h>
5438 if ((struct tm *) 0)
5444 rm -f conftest.
$ac_objext
5445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5446 (eval $ac_compile) 2>&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } &&
5450 { ac_try
='test -s conftest.$ac_objext'
5451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); }; }; then
5456 ac_cv_header_time
=yes
5458 echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.
$ac_ext >&5
5461 ac_cv_header_time
=no
5463 rm -f conftest.
$ac_objext conftest.
$ac_ext
5465 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5466 echo "${ECHO_T}$ac_cv_header_time" >&6
5467 if test $ac_cv_header_time = yes; then
5469 cat >>confdefs.h
<<\_ACEOF
5470 #define TIME_WITH_SYS_TIME 1
5475 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5476 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5477 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5478 echo $ECHO_N "(cached) $ECHO_C" >&6
5480 cat >conftest.
$ac_ext <<_ACEOF
5481 #line $LINENO "configure"
5484 cat confdefs.h
>>conftest.
$ac_ext
5485 cat >>conftest.
$ac_ext <<_ACEOF
5486 /* end confdefs.h. */
5487 $ac_includes_default
5492 char *p = (char *) sys_siglist;
5499 rm -f conftest.
$ac_objext
5500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5501 (eval $ac_compile) 2>&5
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); } &&
5505 { ac_try
='test -s conftest.$ac_objext'
5506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); }; }; then
5511 ac_cv_have_decl_sys_siglist
=yes
5513 echo "$as_me: failed program was:" >&5
5514 sed 's/^/| /' conftest.
$ac_ext >&5
5516 ac_cv_have_decl_sys_siglist
=no
5518 rm -f conftest.
$ac_objext conftest.
$ac_ext
5520 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5521 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5522 if test $ac_cv_have_decl_sys_siglist = yes; then
5524 cat >>confdefs.h
<<_ACEOF
5525 #define HAVE_DECL_SYS_SIGLIST 1
5530 cat >>confdefs.h
<<_ACEOF
5531 #define HAVE_DECL_SYS_SIGLIST 0
5538 if test $ac_cv_have_decl_sys_siglist != yes; then
5539 # For Tru64, at least:
5540 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5541 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5542 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6
5545 cat >conftest.
$ac_ext <<_ACEOF
5546 #line $LINENO "configure"
5549 cat confdefs.h
>>conftest.
$ac_ext
5550 cat >>conftest.
$ac_ext <<_ACEOF
5551 /* end confdefs.h. */
5552 $ac_includes_default
5556 #ifndef __sys_siglist
5557 char *p = (char *) __sys_siglist;
5564 rm -f conftest.
$ac_objext
5565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5566 (eval $ac_compile) 2>&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } &&
5570 { ac_try
='test -s conftest.$ac_objext'
5571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); }; }; then
5576 ac_cv_have_decl___sys_siglist
=yes
5578 echo "$as_me: failed program was:" >&5
5579 sed 's/^/| /' conftest.
$ac_ext >&5
5581 ac_cv_have_decl___sys_siglist
=no
5583 rm -f conftest.
$ac_objext conftest.
$ac_ext
5585 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5586 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5587 if test $ac_cv_have_decl___sys_siglist = yes; then
5589 cat >>confdefs.h
<<_ACEOF
5590 #define HAVE_DECL___SYS_SIGLIST 1
5595 cat >>confdefs.h
<<_ACEOF
5596 #define HAVE_DECL___SYS_SIGLIST 0
5603 if test $ac_cv_have_decl___sys_siglist = yes; then
5605 cat >>confdefs.h
<<\_ACEOF
5606 #define sys_siglist __sys_siglist
5611 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5612 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5613 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5616 cat >conftest.
$ac_ext <<_ACEOF
5617 #line $LINENO "configure"
5620 cat confdefs.h
>>conftest.
$ac_ext
5621 cat >>conftest.
$ac_ext <<_ACEOF
5622 /* end confdefs.h. */
5623 #include <sys/types.h>
5624 #include <sys/wait.h>
5626 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5629 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5637 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5642 rm -f conftest.
$ac_objext
5643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5644 (eval $ac_compile) 2>&5
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); } &&
5648 { ac_try
='test -s conftest.$ac_objext'
5649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); }; }; then
5654 ac_cv_header_sys_wait_h
=yes
5656 echo "$as_me: failed program was:" >&5
5657 sed 's/^/| /' conftest.
$ac_ext >&5
5659 ac_cv_header_sys_wait_h
=no
5661 rm -f conftest.
$ac_objext conftest.
$ac_ext
5663 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5664 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5665 if test $ac_cv_header_sys_wait_h = yes; then
5667 cat >>confdefs.h
<<\_ACEOF
5668 #define HAVE_SYS_WAIT_H 1
5674 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5675 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5676 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5677 echo $ECHO_N "(cached) $ECHO_C" >&6
5679 cat >conftest.
$ac_ext <<_ACEOF
5680 #line $LINENO "configure"
5683 cat confdefs.h
>>conftest.
$ac_ext
5684 cat >>conftest.
$ac_ext <<_ACEOF
5685 /* end confdefs.h. */
5686 #ifdef TIME_WITH_SYS_TIME
5687 #include <sys/time.h>
5690 #ifdef HAVE_SYS_TIME_H
5691 #include <sys/time.h>
5702 static struct utimbuf x; x.actime = x.modtime;
5707 rm -f conftest.
$ac_objext
5708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5709 (eval $ac_compile) 2>&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } &&
5713 { ac_try
='test -s conftest.$ac_objext'
5714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); }; }; then
5719 emacs_cv_struct_utimbuf
=yes
5721 echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.
$ac_ext >&5
5724 emacs_cv_struct_utimbuf
=no
5726 rm -f conftest.
$ac_objext conftest.
$ac_ext
5728 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5729 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5730 if test $emacs_cv_struct_utimbuf = yes; then
5732 cat >>confdefs.h
<<\_ACEOF
5733 #define HAVE_STRUCT_UTIMBUF 1
5738 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5739 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5740 if test "${ac_cv_type_signal+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5743 cat >conftest.
$ac_ext <<_ACEOF
5744 #line $LINENO "configure"
5747 cat confdefs.h
>>conftest.
$ac_ext
5748 cat >>conftest.
$ac_ext <<_ACEOF
5749 /* end confdefs.h. */
5750 #include <sys/types.h>
5756 extern "C" void (*signal (int, void (*)(int)))(int);
5758 void (*signal ()) ();
5769 rm -f conftest.
$ac_objext
5770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5771 (eval $ac_compile) 2>&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } &&
5775 { ac_try
='test -s conftest.$ac_objext'
5776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; }; then
5781 ac_cv_type_signal
=void
5783 echo "$as_me: failed program was:" >&5
5784 sed 's/^/| /' conftest.
$ac_ext >&5
5786 ac_cv_type_signal
=int
5788 rm -f conftest.
$ac_objext conftest.
$ac_ext
5790 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5791 echo "${ECHO_T}$ac_cv_type_signal" >&6
5793 cat >>confdefs.h
<<_ACEOF
5794 #define RETSIGTYPE $ac_cv_type_signal
5799 echo "$as_me:$LINENO: checking for speed_t" >&5
5800 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5801 if test "${emacs_cv_speed_t+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5804 cat >conftest.
$ac_ext <<_ACEOF
5805 #line $LINENO "configure"
5808 cat confdefs.h
>>conftest.
$ac_ext
5809 cat >>conftest.
$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5811 #include <termios.h>
5820 rm -f conftest.
$ac_objext
5821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5822 (eval $ac_compile) 2>&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } &&
5826 { ac_try
='test -s conftest.$ac_objext'
5827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); }; }; then
5832 emacs_cv_speed_t
=yes
5834 echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.
$ac_ext >&5
5839 rm -f conftest.
$ac_objext conftest.
$ac_ext
5841 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5842 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5843 if test $emacs_cv_speed_t = yes; then
5845 cat >>confdefs.h
<<\_ACEOF
5846 #define HAVE_SPEED_T 1
5851 echo "$as_me:$LINENO: checking for struct timeval" >&5
5852 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5853 if test "${emacs_cv_struct_timeval+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 cat >conftest.
$ac_ext <<_ACEOF
5857 #line $LINENO "configure"
5860 cat confdefs.h
>>conftest.
$ac_ext
5861 cat >>conftest.
$ac_ext <<_ACEOF
5862 /* end confdefs.h. */
5863 #ifdef TIME_WITH_SYS_TIME
5864 #include <sys/time.h>
5867 #ifdef HAVE_SYS_TIME_H
5868 #include <sys/time.h>
5876 static struct timeval x; x.tv_sec = x.tv_usec;
5881 rm -f conftest.
$ac_objext
5882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5883 (eval $ac_compile) 2>&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); } &&
5887 { ac_try
='test -s conftest.$ac_objext'
5888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); }; }; then
5893 emacs_cv_struct_timeval
=yes
5895 echo "$as_me: failed program was:" >&5
5896 sed 's/^/| /' conftest.
$ac_ext >&5
5898 emacs_cv_struct_timeval
=no
5900 rm -f conftest.
$ac_objext conftest.
$ac_ext
5902 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5903 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5904 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
5905 if test $emacs_cv_struct_timeval = yes; then
5907 cat >>confdefs.h
<<\_ACEOF
5908 #define HAVE_TIMEVAL 1
5913 echo "$as_me:$LINENO: checking for struct exception" >&5
5914 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5915 if test "${emacs_cv_struct_exception+set}" = set; then
5916 echo $ECHO_N "(cached) $ECHO_C" >&6
5918 cat >conftest.
$ac_ext <<_ACEOF
5919 #line $LINENO "configure"
5922 cat confdefs.h
>>conftest.
$ac_ext
5923 cat >>conftest.
$ac_ext <<_ACEOF
5924 /* end confdefs.h. */
5929 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5934 rm -f conftest.
$ac_objext
5935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5936 (eval $ac_compile) 2>&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } &&
5940 { ac_try
='test -s conftest.$ac_objext'
5941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); }; }; then
5946 emacs_cv_struct_exception
=yes
5948 echo "$as_me: failed program was:" >&5
5949 sed 's/^/| /' conftest.
$ac_ext >&5
5951 emacs_cv_struct_exception
=no
5953 rm -f conftest.
$ac_objext conftest.
$ac_ext
5955 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5956 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5957 HAVE_EXCEPTION
=$emacs_cv_struct_exception
5958 if test $emacs_cv_struct_exception != yes; then
5960 cat >>confdefs.h
<<\_ACEOF
5961 #define NO_MATHERR 1
5966 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5967 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5968 if test "${ac_cv_struct_tm+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 cat >conftest.
$ac_ext <<_ACEOF
5972 #line $LINENO "configure"
5975 cat confdefs.h
>>conftest.
$ac_ext
5976 cat >>conftest.
$ac_ext <<_ACEOF
5977 /* end confdefs.h. */
5978 #include <sys/types.h>
5984 struct tm *tp; tp->tm_sec;
5989 rm -f conftest.
$ac_objext
5990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5991 (eval $ac_compile) 2>&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } &&
5995 { ac_try
='test -s conftest.$ac_objext'
5996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; }; then
6001 ac_cv_struct_tm
=time.h
6003 echo "$as_me: failed program was:" >&5
6004 sed 's/^/| /' conftest.
$ac_ext >&5
6006 ac_cv_struct_tm
=sys
/time.h
6008 rm -f conftest.
$ac_objext conftest.
$ac_ext
6010 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6011 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6012 if test $ac_cv_struct_tm = sys
/time.h
; then
6014 cat >>confdefs.h
<<\_ACEOF
6015 #define TM_IN_SYS_TIME 1
6020 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6021 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6022 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6025 cat >conftest.
$ac_ext <<_ACEOF
6026 #line $LINENO "configure"
6029 cat confdefs.h
>>conftest.
$ac_ext
6030 cat >>conftest.
$ac_ext <<_ACEOF
6031 /* end confdefs.h. */
6032 #include <sys/types.h>
6033 #include <$ac_cv_struct_tm>
6039 static struct tm ac_aggr;
6040 if (ac_aggr.tm_zone)
6046 rm -f conftest.
$ac_objext
6047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6048 (eval $ac_compile) 2>&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } &&
6052 { ac_try
='test -s conftest.$ac_objext'
6053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); }; }; then
6058 ac_cv_member_struct_tm_tm_zone
=yes
6060 echo "$as_me: failed program was:" >&5
6061 sed 's/^/| /' conftest.
$ac_ext >&5
6063 cat >conftest.
$ac_ext <<_ACEOF
6064 #line $LINENO "configure"
6067 cat confdefs.h
>>conftest.
$ac_ext
6068 cat >>conftest.
$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6070 #include <sys/types.h>
6071 #include <$ac_cv_struct_tm>
6077 static struct tm ac_aggr;
6078 if (sizeof ac_aggr.tm_zone)
6084 rm -f conftest.
$ac_objext
6085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6086 (eval $ac_compile) 2>&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } &&
6090 { ac_try
='test -s conftest.$ac_objext'
6091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; }; then
6096 ac_cv_member_struct_tm_tm_zone
=yes
6098 echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.
$ac_ext >&5
6101 ac_cv_member_struct_tm_tm_zone
=no
6103 rm -f conftest.
$ac_objext conftest.
$ac_ext
6105 rm -f conftest.
$ac_objext conftest.
$ac_ext
6107 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6108 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6109 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6111 cat >>confdefs.h
<<_ACEOF
6112 #define HAVE_STRUCT_TM_TM_ZONE 1
6118 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6120 cat >>confdefs.h
<<\_ACEOF
6121 #define HAVE_TM_ZONE 1
6125 echo "$as_me:$LINENO: checking for tzname" >&5
6126 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6127 if test "${ac_cv_var_tzname+set}" = set; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 cat >conftest.
$ac_ext <<_ACEOF
6131 #line $LINENO "configure"
6134 cat confdefs.h
>>conftest.
$ac_ext
6135 cat >>conftest.
$ac_ext <<_ACEOF
6136 /* end confdefs.h. */
6138 #ifndef tzname /* For SGI. */
6139 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6150 rm -f conftest.
$ac_objext conftest
$ac_exeext
6151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6152 (eval $ac_link) 2>&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } &&
6156 { ac_try
='test -s conftest$ac_exeext'
6157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; }; then
6162 ac_cv_var_tzname
=yes
6164 echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.
$ac_ext >&5
6169 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6171 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6172 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6173 if test $ac_cv_var_tzname = yes; then
6175 cat >>confdefs.h
<<\_ACEOF
6176 #define HAVE_TZNAME 1
6182 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6183 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6184 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
6187 cat >conftest.
$ac_ext <<_ACEOF
6188 #line $LINENO "configure"
6191 cat confdefs.h
>>conftest.
$ac_ext
6192 cat >>conftest.
$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6199 static struct tm ac_aggr;
6200 if (ac_aggr.tm_gmtoff)
6206 rm -f conftest.
$ac_objext
6207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6208 (eval $ac_compile) 2>&5
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); } &&
6212 { ac_try
='test -s conftest.$ac_objext'
6213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); }; }; then
6218 ac_cv_member_struct_tm_tm_gmtoff
=yes
6220 echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.
$ac_ext >&5
6223 cat >conftest.
$ac_ext <<_ACEOF
6224 #line $LINENO "configure"
6227 cat confdefs.h
>>conftest.
$ac_ext
6228 cat >>conftest.
$ac_ext <<_ACEOF
6229 /* end confdefs.h. */
6235 static struct tm ac_aggr;
6236 if (sizeof ac_aggr.tm_gmtoff)
6242 rm -f conftest.
$ac_objext
6243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6244 (eval $ac_compile) 2>&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } &&
6248 { ac_try
='test -s conftest.$ac_objext'
6249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); }; }; then
6254 ac_cv_member_struct_tm_tm_gmtoff
=yes
6256 echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.
$ac_ext >&5
6259 ac_cv_member_struct_tm_tm_gmtoff
=no
6261 rm -f conftest.
$ac_objext conftest.
$ac_ext
6263 rm -f conftest.
$ac_objext conftest.
$ac_ext
6265 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6266 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6267 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6269 cat >>confdefs.h
<<\_ACEOF
6270 #define HAVE_TM_GMTOFF 1
6277 echo "$as_me:$LINENO: checking for function prototypes" >&5
6278 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6279 if test "$ac_cv_prog_cc_stdc" != no
; then
6280 echo "$as_me:$LINENO: result: yes" >&5
6281 echo "${ECHO_T}yes" >&6
6283 cat >>confdefs.h
<<\_ACEOF
6284 #define PROTOTYPES 1
6288 cat >>confdefs.h
<<\_ACEOF
6289 #define __PROTOTYPES 1
6293 echo "$as_me:$LINENO: result: no" >&5
6294 echo "${ECHO_T}no" >&6
6297 echo "$as_me:$LINENO: checking for working volatile" >&5
6298 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6299 if test "${ac_cv_c_volatile+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
6302 cat >conftest.
$ac_ext <<_ACEOF
6303 #line $LINENO "configure"
6306 cat confdefs.h
>>conftest.
$ac_ext
6307 cat >>conftest.
$ac_ext <<_ACEOF
6308 /* end confdefs.h. */
6320 rm -f conftest.
$ac_objext
6321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6322 (eval $ac_compile) 2>&5
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); } &&
6326 { ac_try
='test -s conftest.$ac_objext'
6327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }; }; then
6332 ac_cv_c_volatile
=yes
6334 echo "$as_me: failed program was:" >&5
6335 sed 's/^/| /' conftest.
$ac_ext >&5
6339 rm -f conftest.
$ac_objext conftest.
$ac_ext
6341 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6342 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6343 if test $ac_cv_c_volatile = no
; then
6345 cat >>confdefs.h
<<\_ACEOF
6351 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6352 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6353 if test "${ac_cv_c_const+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6356 cat >conftest.
$ac_ext <<_ACEOF
6357 #line $LINENO "configure"
6360 cat confdefs.h
>>conftest.
$ac_ext
6361 cat >>conftest.
$ac_ext <<_ACEOF
6362 /* end confdefs.h. */
6367 /* FIXME: Include the comments suggested by Paul. */
6369 /* Ultrix mips cc rejects this. */
6370 typedef int charset[2];
6372 /* SunOS 4.1.1 cc rejects this. */
6373 char const *const *ccp;
6375 /* NEC SVR4.0.2 mips cc rejects this. */
6376 struct point {int x, y;};
6377 static struct point const zero = {0,0};
6378 /* AIX XL C 1.02.0.0 rejects this.
6379 It does not let you subtract one const X* pointer from another in
6380 an arm of an if-expression whose if-part is not a constant
6382 const char *g = "string";
6383 ccp = &g + (g ? g-g : 0);
6384 /* HPUX 7.0 cc rejects these. */
6387 ccp = (char const *const *) p;
6388 { /* SCO 3.2v4 cc rejects this. */
6390 char const *s = 0 ? (char *) 0 : (char const *) 0;
6394 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6396 const int *foo = &x[0];
6399 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6400 typedef const int *iptr;
6404 { /* AIX XL C 1.02.0.0 rejects this saying
6405 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6406 struct s { int j; const int *ap[3]; };
6407 struct s *b; b->j = 5;
6409 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6418 rm -f conftest.
$ac_objext
6419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6420 (eval $ac_compile) 2>&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); } &&
6424 { ac_try
='test -s conftest.$ac_objext'
6425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); }; }; then
6432 echo "$as_me: failed program was:" >&5
6433 sed 's/^/| /' conftest.
$ac_ext >&5
6437 rm -f conftest.
$ac_objext conftest.
$ac_ext
6439 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6440 echo "${ECHO_T}$ac_cv_c_const" >&6
6441 if test $ac_cv_c_const = no
; then
6443 cat >>confdefs.h
<<\_ACEOF
6449 echo "$as_me:$LINENO: checking for void * support" >&5
6450 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
6451 if test "${emacs_cv_void_star+set}" = set; then
6452 echo $ECHO_N "(cached) $ECHO_C" >&6
6454 cat >conftest.
$ac_ext <<_ACEOF
6455 #line $LINENO "configure"
6458 cat confdefs.h
>>conftest.
$ac_ext
6459 cat >>conftest.
$ac_ext <<_ACEOF
6460 /* end confdefs.h. */
6470 rm -f conftest.
$ac_objext
6471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6472 (eval $ac_compile) 2>&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); } &&
6476 { ac_try
='test -s conftest.$ac_objext'
6477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; }; then
6482 emacs_cv_void_star
=yes
6484 echo "$as_me: failed program was:" >&5
6485 sed 's/^/| /' conftest.
$ac_ext >&5
6487 emacs_cv_void_star
=no
6489 rm -f conftest.
$ac_objext conftest.
$ac_ext
6491 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6492 echo "${ECHO_T}$emacs_cv_void_star" >&6
6493 if test $emacs_cv_void_star = yes; then
6494 cat >>confdefs.h
<<\_ACEOF
6495 #define POINTER_TYPE void
6499 cat >>confdefs.h
<<\_ACEOF
6500 #define POINTER_TYPE char
6507 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6508 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6509 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
6510 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6513 cat >conftest.
make <<\_ACEOF
6515 @
echo 'ac_maketemp="$(MAKE)"'
6517 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6518 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6519 if test -n "$ac_maketemp"; then
6520 eval ac_cv_prog_make_
${ac_make}_set
=yes
6522 eval ac_cv_prog_make_
${ac_make}_set
=no
6526 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6527 echo "$as_me:$LINENO: result: yes" >&5
6528 echo "${ECHO_T}yes" >&6
6531 echo "$as_me:$LINENO: result: no" >&5
6532 echo "${ECHO_T}no" >&6
6533 SET_MAKE
="MAKE=${MAKE-make}"
6537 echo "$as_me:$LINENO: checking for long file names" >&5
6538 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
6539 if test "${ac_cv_sys_long_file_names+set}" = set; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
6542 ac_cv_sys_long_file_names
=yes
6543 # Test for long file names in all the places we know might matter:
6544 # . the current directory, where building will happen
6545 # $prefix/lib where we will be installing things
6546 # $exec_prefix/lib likewise
6547 # eval it to expand exec_prefix.
6548 # $TMPDIR if set, where it might want to write temporary files
6549 # if $TMPDIR is not set:
6550 # /tmp where it might want to write temporary files
6553 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6556 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
6558 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6559 test -d $ac_dir ||
continue
6560 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
6561 ac_xdir
=$ac_dir/cf$$
6562 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
6563 ac_tf1
=$ac_xdir/conftest9012345
6564 ac_tf2
=$ac_xdir/conftest9012346
6565 (echo 1 >$ac_tf1) 2>/dev
/null
6566 (echo 2 >$ac_tf2) 2>/dev
/null
6567 ac_val
=`cat $ac_tf1 2>/dev/null`
6568 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
6569 ac_cv_sys_long_file_names
=no
6570 rm -rf $ac_xdir 2>/dev
/null
6573 rm -rf $ac_xdir 2>/dev
/null
6576 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6577 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6578 if test $ac_cv_sys_long_file_names = yes; then
6580 cat >>confdefs.h
<<\_ACEOF
6581 #define HAVE_LONG_FILE_NAMES 1
6587 #### Choose a window system.
6589 echo "$as_me:$LINENO: checking for X" >&5
6590 echo $ECHO_N "checking for X... $ECHO_C" >&6
6593 # Check whether --with-x or --without-x was given.
6594 if test "${with_x+set}" = set; then
6598 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6599 if test "x$with_x" = xno
; then
6600 # The user explicitly disabled X.
6603 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
6604 # Both variables are already set.
6607 if test "${ac_cv_have_x+set}" = set; then
6608 echo $ECHO_N "(cached) $ECHO_C" >&6
6610 # One or both of the vars are not set, and there is no cached value.
6611 ac_x_includes
=no ac_x_libraries
=no
6613 if mkdir conftest.dir
; then
6615 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6616 cat >Imakefile
<<'_ACEOF'
6618 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6620 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6621 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6622 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6623 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6624 for ac_extension
in a so sl
; do
6625 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
6626 test -f $ac_im_libdir/libX11.
$ac_extension; then
6627 ac_im_usrlibdir
=$ac_im_libdir; break
6630 # Screen out bogus values from the imake configuration. They are
6631 # bogus both because they are the default anyway, and because
6632 # using them would break gcc on systems where it needs fixed includes.
6633 case $ac_im_incroot in
6635 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6637 case $ac_im_usrlibdir in
6639 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6646 # Standard set of common directories for X headers.
6647 # Check X11 before X11Rn because it is often a symlink to the current release.
6659 /usr/local/X11/include
6660 /usr/local/X11R6/include
6661 /usr/local/X11R5/include
6662 /usr/local/X11R4/include
6664 /usr/local/include/X11
6665 /usr/local/include/X11R6
6666 /usr/local/include/X11R5
6667 /usr/local/include/X11R4
6671 /usr/XFree86/include/X11
6675 /usr/unsupported/include
6677 /usr/local/x11r5/include
6678 /usr/lpp/Xamples/include
6680 /usr/openwin/include
6681 /usr/openwin/share/include'
6683 if test "$ac_x_includes" = no
; then
6684 # Guess where to find include files, by looking for Intrinsic.h.
6685 # First, try using that file with no special directory specified.
6686 cat >conftest.
$ac_ext <<_ACEOF
6687 #line $LINENO "configure"
6690 cat confdefs.h
>>conftest.
$ac_ext
6691 cat >>conftest.
$ac_ext <<_ACEOF
6692 /* end confdefs.h. */
6693 #include <X11/Intrinsic.h>
6695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6696 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6698 grep -v '^ *+' conftest.er1
>conftest.err
6700 cat conftest.err
>&5
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); } >/dev
/null
; then
6703 if test -s conftest.err
; then
6704 ac_cpp_err
=$ac_c_preproc_warn_flag
6711 if test -z "$ac_cpp_err"; then
6712 # We can compile using X headers with no special include directory.
6715 echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.
$ac_ext >&5
6718 for ac_dir
in $ac_x_header_dirs; do
6719 if test -r "$ac_dir/X11/Intrinsic.h"; then
6720 ac_x_includes
=$ac_dir
6725 rm -f conftest.err conftest.
$ac_ext
6726 fi # $ac_x_includes = no
6728 if test "$ac_x_libraries" = no
; then
6729 # Check for the libraries.
6730 # See if we find them without any special options.
6731 # Don't add to $LIBS permanently.
6734 cat >conftest.
$ac_ext <<_ACEOF
6735 #line $LINENO "configure"
6738 cat confdefs.h
>>conftest.
$ac_ext
6739 cat >>conftest.
$ac_ext <<_ACEOF
6740 /* end confdefs.h. */
6741 #include <X11/Intrinsic.h>
6750 rm -f conftest.
$ac_objext conftest
$ac_exeext
6751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6752 (eval $ac_link) 2>&5
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); } &&
6756 { ac_try
='test -s conftest$ac_exeext'
6757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); }; }; then
6763 # We can link X programs with no special library path.
6766 echo "$as_me: failed program was:" >&5
6767 sed 's/^/| /' conftest.
$ac_ext >&5
6770 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6772 # Don't even attempt the hair of trying to link an X program!
6773 for ac_extension
in a so sl
; do
6774 if test -r $ac_dir/libXt.
$ac_extension; then
6775 ac_x_libraries
=$ac_dir
6781 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6782 fi # $ac_x_libraries = no
6784 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
6785 # Didn't find X anywhere. Cache the known absence of X.
6786 ac_cv_have_x
="have_x=no"
6788 # Record where we found X for the cache.
6789 ac_cv_have_x
="have_x=yes \
6790 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6795 eval "$ac_cv_have_x"
6798 if test "$have_x" != yes; then
6799 echo "$as_me:$LINENO: result: $have_x" >&5
6800 echo "${ECHO_T}$have_x" >&6
6803 # If each of the values was on the command line, it overrides each guess.
6804 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6805 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6806 # Update the cache value to reflect the command line values.
6807 ac_cv_have_x
="have_x=yes \
6808 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6809 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6810 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6813 if test "$no_x" = yes; then
6819 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
6820 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6821 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6822 x_default_search_path
=""
6823 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6825 ${x_library}/X11/%L/%T/%N%C%S:\
6826 ${x_library}/X11/%l/%T/%N%C%S:\
6827 ${x_library}/X11/%T/%N%C%S:\
6828 ${x_library}/X11/%L/%T/%N%S:\
6829 ${x_library}/X11/%l/%T/%N%S:\
6830 ${x_library}/X11/%T/%N%S"
6831 if test x
"${x_default_search_path}" = x
; then
6832 x_default_search_path
=${x_search_path}
6834 x_default_search_path
="${x_search_path}:${x_default_search_path}"
6838 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
6839 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6842 if test x
"${x_includes}" = x
; then
6843 bitmapdir
=/usr
/include
/X11
/bitmaps
6845 # accumulate include directories that have X11 bitmap subdirectories
6847 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6848 if test -d "${bmd}/X11/bitmaps"; then
6849 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
6851 if test -d "${bmd}/bitmaps"; then
6852 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
6855 if test ${bmd_acc} != "dummyval"; then
6856 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6860 case "${window_system}" in
6864 case "${with_x_toolkit}" in
6865 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
6866 motif
) USE_X_TOOLKIT
=MOTIF
;;
6868 USE_X_TOOLKIT
=none
;;
6869 no
) USE_X_TOOLKIT
=none
;;
6870 * ) USE_X_TOOLKIT
=maybe
;;
6880 ### If we're using X11, we should use the X menu package.
6883 yes ) HAVE_MENUS
=yes ;;
6886 if test "${opsys}" = "hpux9"; then
6887 case "${x_libraries}" in
6889 opsysfile
="s/hpux9-x11r4.h"
6894 if test "${opsys}" = "hpux9shr"; then
6895 case "${x_libraries}" in
6897 opsysfile
="s/hpux9shxr4.h"
6902 ### Compute the unexec source name from the object name.
6903 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
6905 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6906 # Assume not, until told otherwise.
6909 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6910 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6911 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6914 cat >conftest.
$ac_ext <<_ACEOF
6915 #line $LINENO "configure"
6918 cat confdefs.h
>>conftest.
$ac_ext
6919 cat >>conftest.
$ac_ext <<_ACEOF
6920 /* end confdefs.h. */
6921 /* System header to define __stub macros and hopefully few prototypes,
6922 which can conflict with char malloc_get_state (); below.
6923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6924 <limits.h> exists even on freestanding compilers. */
6926 # include <limits.h>
6928 # include <assert.h>
6930 /* Override any gcc2 internal prototype to avoid an error. */
6935 /* We use char because int might match the return type of a gcc2
6936 builtin and then its argument prototype would still apply. */
6937 char malloc_get_state ();
6938 /* The GNU C library defines this for functions which it implements
6939 to always fail with ENOSYS. Some functions are actually named
6940 something starting with __ and the normal name is an alias. */
6941 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6944 char (*f) () = malloc_get_state;
6953 return f != malloc_get_state;
6958 rm -f conftest.
$ac_objext conftest
$ac_exeext
6959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6960 (eval $ac_link) 2>&5
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); } &&
6964 { ac_try
='test -s conftest$ac_exeext'
6965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); }; }; then
6970 ac_cv_func_malloc_get_state
=yes
6972 echo "$as_me: failed program was:" >&5
6973 sed 's/^/| /' conftest.
$ac_ext >&5
6975 ac_cv_func_malloc_get_state
=no
6977 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6979 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6980 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6981 if test $ac_cv_func_malloc_get_state = yes; then
6987 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6988 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6989 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6992 cat >conftest.
$ac_ext <<_ACEOF
6993 #line $LINENO "configure"
6996 cat confdefs.h
>>conftest.
$ac_ext
6997 cat >>conftest.
$ac_ext <<_ACEOF
6998 /* end confdefs.h. */
6999 /* System header to define __stub macros and hopefully few prototypes,
7000 which can conflict with char malloc_set_state (); below.
7001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7002 <limits.h> exists even on freestanding compilers. */
7004 # include <limits.h>
7006 # include <assert.h>
7008 /* Override any gcc2 internal prototype to avoid an error. */
7013 /* We use char because int might match the return type of a gcc2
7014 builtin and then its argument prototype would still apply. */
7015 char malloc_set_state ();
7016 /* The GNU C library defines this for functions which it implements
7017 to always fail with ENOSYS. Some functions are actually named
7018 something starting with __ and the normal name is an alias. */
7019 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
7022 char (*f) () = malloc_set_state;
7031 return f != malloc_set_state;
7036 rm -f conftest.
$ac_objext conftest
$ac_exeext
7037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7038 (eval $ac_link) 2>&5
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); } &&
7042 { ac_try
='test -s conftest$ac_exeext'
7043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047 (exit $ac_status); }; }; then
7048 ac_cv_func_malloc_set_state
=yes
7050 echo "$as_me: failed program was:" >&5
7051 sed 's/^/| /' conftest.
$ac_ext >&5
7053 ac_cv_func_malloc_set_state
=no
7055 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7057 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
7058 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
7059 if test $ac_cv_func_malloc_set_state = yes; then
7065 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7066 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
7067 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7070 cat >conftest.
$ac_ext <<_ACEOF
7071 #line $LINENO "configure"
7074 cat confdefs.h
>>conftest.
$ac_ext
7075 cat >>conftest.
$ac_ext <<_ACEOF
7076 /* end confdefs.h. */
7077 extern void (* __after_morecore_hook)();
7081 __after_morecore_hook = 0
7086 rm -f conftest.
$ac_objext conftest
$ac_exeext
7087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7088 (eval $ac_link) 2>&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); } &&
7092 { ac_try
='test -s conftest$ac_exeext'
7093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); }; }; then
7098 emacs_cv_var___after_morecore_hook
=yes
7100 echo "$as_me: failed program was:" >&5
7101 sed 's/^/| /' conftest.
$ac_ext >&5
7103 emacs_cv_var___after_morecore_hook
=no
7105 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7107 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7108 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
7109 if test $emacs_cv_var___after_morecore_hook = no
; then
7112 if test "${system_malloc}" = "yes"; then
7115 (The GNU allocators don't work with this system configuration.)"
7117 if test "$doug_lea_malloc" = "yes" ; then
7118 if test "$GNU_MALLOC" = yes ; then
7120 (Using Doug Lea's new malloc from the GNU C Library.)"
7123 cat >>confdefs.h
<<\_ACEOF
7124 #define DOUG_LEA_MALLOC 1
7129 if test x
"${REL_ALLOC}" = x
; then
7130 REL_ALLOC
=${GNU_MALLOC}
7136 for ac_header
in stdlib.h unistd.h
7138 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7140 echo "$as_me:$LINENO: checking for $ac_header" >&5
7141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7148 # Is the header compilable?
7149 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7150 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7151 cat >conftest.
$ac_ext <<_ACEOF
7152 #line $LINENO "configure"
7155 cat confdefs.h
>>conftest.
$ac_ext
7156 cat >>conftest.
$ac_ext <<_ACEOF
7157 /* end confdefs.h. */
7158 $ac_includes_default
7159 #include <$ac_header>
7161 rm -f conftest.
$ac_objext
7162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7163 (eval $ac_compile) 2>&5
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); } &&
7167 { ac_try
='test -s conftest.$ac_objext'
7168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); }; }; then
7173 ac_header_compiler
=yes
7175 echo "$as_me: failed program was:" >&5
7176 sed 's/^/| /' conftest.
$ac_ext >&5
7178 ac_header_compiler
=no
7180 rm -f conftest.
$ac_objext conftest.
$ac_ext
7181 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7182 echo "${ECHO_T}$ac_header_compiler" >&6
7184 # Is the header present?
7185 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7186 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7187 cat >conftest.
$ac_ext <<_ACEOF
7188 #line $LINENO "configure"
7191 cat confdefs.h
>>conftest.
$ac_ext
7192 cat >>conftest.
$ac_ext <<_ACEOF
7193 /* end confdefs.h. */
7194 #include <$ac_header>
7196 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7197 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7199 grep -v '^ *+' conftest.er1
>conftest.err
7201 cat conftest.err
>&5
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); } >/dev
/null
; then
7204 if test -s conftest.err
; then
7205 ac_cpp_err
=$ac_c_preproc_warn_flag
7212 if test -z "$ac_cpp_err"; then
7213 ac_header_preproc
=yes
7215 echo "$as_me: failed program was:" >&5
7216 sed 's/^/| /' conftest.
$ac_ext >&5
7218 ac_header_preproc
=no
7220 rm -f conftest.err conftest.
$ac_ext
7221 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7222 echo "${ECHO_T}$ac_header_preproc" >&6
7224 # So? What about this header?
7225 case $ac_header_compiler:$ac_header_preproc in
7227 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7228 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7230 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7233 ## ------------------------------------ ##
7234 ## Report this to bug-autoconf@gnu.org. ##
7235 ## ------------------------------------ ##
7238 sed "s/^/$as_me: WARNING: /" >&2
7241 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7242 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7243 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7244 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7246 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7249 ## ------------------------------------ ##
7250 ## Report this to bug-autoconf@gnu.org. ##
7251 ## ------------------------------------ ##
7254 sed "s/^/$as_me: WARNING: /" >&2
7257 echo "$as_me:$LINENO: checking for $ac_header" >&5
7258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7262 eval "$as_ac_Header=$ac_header_preproc"
7264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7265 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7269 cat >>confdefs.h
<<_ACEOF
7270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7278 for ac_func
in getpagesize
7280 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7281 echo "$as_me:$LINENO: checking for $ac_func" >&5
7282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7283 if eval "test \"\${$as_ac_var+set}\" = set"; then
7284 echo $ECHO_N "(cached) $ECHO_C" >&6
7286 cat >conftest.
$ac_ext <<_ACEOF
7287 #line $LINENO "configure"
7290 cat confdefs.h
>>conftest.
$ac_ext
7291 cat >>conftest.
$ac_ext <<_ACEOF
7292 /* end confdefs.h. */
7293 /* System header to define __stub macros and hopefully few prototypes,
7294 which can conflict with char $ac_func (); below.
7295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7296 <limits.h> exists even on freestanding compilers. */
7298 # include <limits.h>
7300 # include <assert.h>
7302 /* Override any gcc2 internal prototype to avoid an error. */
7307 /* We use char because int might match the return type of a gcc2
7308 builtin and then its argument prototype would still apply. */
7310 /* The GNU C library defines this for functions which it implements
7311 to always fail with ENOSYS. Some functions are actually named
7312 something starting with __ and the normal name is an alias. */
7313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7316 char (*f) () = $ac_func;
7325 return f != $ac_func;
7330 rm -f conftest.
$ac_objext conftest
$ac_exeext
7331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7332 (eval $ac_link) 2>&5
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); } &&
7336 { ac_try
='test -s conftest$ac_exeext'
7337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); }; }; then
7342 eval "$as_ac_var=yes"
7344 echo "$as_me: failed program was:" >&5
7345 sed 's/^/| /' conftest.
$ac_ext >&5
7347 eval "$as_ac_var=no"
7349 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7352 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7353 if test `eval echo '${'$as_ac_var'}'` = yes; then
7354 cat >>confdefs.h
<<_ACEOF
7355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7361 echo "$as_me:$LINENO: checking for working mmap" >&5
7362 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7363 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7366 if test "$cross_compiling" = yes; then
7367 ac_cv_func_mmap_fixed_mapped
=no
7369 cat >conftest.
$ac_ext <<_ACEOF
7370 #line $LINENO "configure"
7373 cat confdefs.h
>>conftest.
$ac_ext
7374 cat >>conftest.
$ac_ext <<_ACEOF
7375 /* end confdefs.h. */
7376 $ac_includes_default
7377 /* malloc might have been renamed as rpl_malloc. */
7380 /* Thanks to Mike Haertel and Jim Avera for this test.
7381 Here is a matrix of mmap possibilities:
7382 mmap private not fixed
7383 mmap private fixed at somewhere currently unmapped
7384 mmap private fixed at somewhere already mapped
7385 mmap shared not fixed
7386 mmap shared fixed at somewhere currently unmapped
7387 mmap shared fixed at somewhere already mapped
7388 For private mappings, we should verify that changes cannot be read()
7389 back from the file, nor mmap's back from the file at a different
7390 address. (There have been systems where private was not correctly
7391 implemented like the infamous i386 svr4.0, and systems where the
7392 VM page cache was not coherent with the file system buffer cache
7393 like early versions of FreeBSD and possibly contemporary NetBSD.)
7394 For shared mappings, we should conversely verify that changes get
7395 propagated back to all the places they're supposed to be.
7397 Grep wants private fixed already mapped.
7398 The main things grep needs to know about mmap are:
7399 * does it exist and is it safe to write into the mmap'd area
7400 * how to use it (BSD variants) */
7403 #include <sys/mman.h>
7405 #if !STDC_HEADERS && !HAVE_STDLIB_H
7409 /* This mess was copied from the GNU getpagesize.h. */
7410 #if !HAVE_GETPAGESIZE
7411 /* Assume that all systems that can run configure have sys/param.h. */
7412 # if !HAVE_SYS_PARAM_H
7413 # define HAVE_SYS_PARAM_H 1
7416 # ifdef _SC_PAGESIZE
7417 # define getpagesize() sysconf(_SC_PAGESIZE)
7418 # else /* no _SC_PAGESIZE */
7419 # if HAVE_SYS_PARAM_H
7420 # include <sys/param.h>
7421 # ifdef EXEC_PAGESIZE
7422 # define getpagesize() EXEC_PAGESIZE
7423 # else /* no EXEC_PAGESIZE */
7425 # define getpagesize() NBPG * CLSIZE
7428 # endif /* no CLSIZE */
7429 # else /* no NBPG */
7431 # define getpagesize() NBPC
7432 # else /* no NBPC */
7434 # define getpagesize() PAGESIZE
7435 # endif /* PAGESIZE */
7436 # endif /* no NBPC */
7437 # endif /* no NBPG */
7438 # endif /* no EXEC_PAGESIZE */
7439 # else /* no HAVE_SYS_PARAM_H */
7440 # define getpagesize() 8192 /* punt totally */
7441 # endif /* no HAVE_SYS_PARAM_H */
7442 # endif /* no _SC_PAGESIZE */
7444 #endif /* no HAVE_GETPAGESIZE */
7449 char *data, *data2, *data3;
7453 pagesize = getpagesize ();
7455 /* First, make a file with some known garbage in it. */
7456 data = (char *) malloc (pagesize);
7459 for (i = 0; i < pagesize; ++i)
7460 *(data + i) = rand ();
7462 fd = creat ("conftest.mmap", 0600);
7465 if (write (fd, data, pagesize) != pagesize)
7469 /* Next, try to mmap the file at a fixed address which already has
7470 something else allocated at it. If we can, also make sure that
7471 we see the same garbage. */
7472 fd = open ("conftest.mmap", O_RDWR);
7475 data2 = (char *) malloc (2 * pagesize);
7478 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7479 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7480 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7482 for (i = 0; i < pagesize; ++i)
7483 if (*(data + i) != *(data2 + i))
7486 /* Finally, make sure that changes to the mapped area do not
7487 percolate back to the file as seen by read(). (This is a bug on
7488 some variants of i386 svr4.0.) */
7489 for (i = 0; i < pagesize; ++i)
7490 *(data2 + i) = *(data2 + i) + 1;
7491 data3 = (char *) malloc (pagesize);
7494 if (read (fd, data3, pagesize) != pagesize)
7496 for (i = 0; i < pagesize; ++i)
7497 if (*(data + i) != *(data3 + i))
7503 rm -f conftest
$ac_exeext
7504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7505 (eval $ac_link) 2>&5
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); }; }; then
7514 ac_cv_func_mmap_fixed_mapped
=yes
7516 echo "$as_me: program exited with status $ac_status" >&5
7517 echo "$as_me: failed program was:" >&5
7518 sed 's/^/| /' conftest.
$ac_ext >&5
7521 ac_cv_func_mmap_fixed_mapped
=no
7523 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7526 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7527 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7528 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7530 cat >>confdefs.h
<<\_ACEOF
7537 if test $use_mmap_for_buffers = yes; then
7541 LIBS
="$libsrc_libs $LIBS"
7544 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7545 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7546 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7547 echo $ECHO_N "(cached) $ECHO_C" >&6
7549 ac_check_lib_save_LIBS
=$LIBS
7551 cat >conftest.
$ac_ext <<_ACEOF
7552 #line $LINENO "configure"
7555 cat confdefs.h
>>conftest.
$ac_ext
7556 cat >>conftest.
$ac_ext <<_ACEOF
7557 /* end confdefs.h. */
7559 /* Override any gcc2 internal prototype to avoid an error. */
7563 /* We use char because int might match the return type of a gcc2
7564 builtin and then its argument prototype would still apply. */
7574 rm -f conftest.
$ac_objext conftest
$ac_exeext
7575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7576 (eval $ac_link) 2>&5
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); } &&
7580 { ac_try
='test -s conftest$ac_exeext'
7581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); }; }; then
7586 ac_cv_lib_dnet_dnet_ntoa
=yes
7588 echo "$as_me: failed program was:" >&5
7589 sed 's/^/| /' conftest.
$ac_ext >&5
7591 ac_cv_lib_dnet_dnet_ntoa
=no
7593 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7594 LIBS
=$ac_check_lib_save_LIBS
7596 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7597 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7598 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7599 cat >>confdefs.h
<<_ACEOF
7600 #define HAVE_LIBDNET 1
7608 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7609 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
7610 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7611 echo $ECHO_N "(cached) $ECHO_C" >&6
7613 ac_check_lib_save_LIBS
=$LIBS
7615 cat >conftest.
$ac_ext <<_ACEOF
7616 #line $LINENO "configure"
7619 cat confdefs.h
>>conftest.
$ac_ext
7620 cat >>conftest.
$ac_ext <<_ACEOF
7621 /* end confdefs.h. */
7632 rm -f conftest.
$ac_objext conftest
$ac_exeext
7633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7634 (eval $ac_link) 2>&5
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); } &&
7638 { ac_try
='test -s conftest$ac_exeext'
7639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); }; }; then
7644 ac_cv_lib_Xbsd_main
=yes
7646 echo "$as_me: failed program was:" >&5
7647 sed 's/^/| /' conftest.
$ac_ext >&5
7649 ac_cv_lib_Xbsd_main
=no
7651 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7652 LIBS
=$ac_check_lib_save_LIBS
7654 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7655 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7656 if test $ac_cv_lib_Xbsd_main = yes; then
7657 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
7662 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7663 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7664 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7667 ac_check_lib_save_LIBS
=$LIBS
7668 LIBS
="-lpthreads $LIBS"
7669 cat >conftest.
$ac_ext <<_ACEOF
7670 #line $LINENO "configure"
7673 cat confdefs.h
>>conftest.
$ac_ext
7674 cat >>conftest.
$ac_ext <<_ACEOF
7675 /* end confdefs.h. */
7677 /* Override any gcc2 internal prototype to avoid an error. */
7681 /* We use char because int might match the return type of a gcc2
7682 builtin and then its argument prototype would still apply. */
7692 rm -f conftest.
$ac_objext conftest
$ac_exeext
7693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7694 (eval $ac_link) 2>&5
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); } &&
7698 { ac_try
='test -s conftest$ac_exeext'
7699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); }; }; then
7704 ac_cv_lib_pthreads_cma_open
=yes
7706 echo "$as_me: failed program was:" >&5
7707 sed 's/^/| /' conftest.
$ac_ext >&5
7709 ac_cv_lib_pthreads_cma_open
=no
7711 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7712 LIBS
=$ac_check_lib_save_LIBS
7714 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7715 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7716 if test $ac_cv_lib_pthreads_cma_open = yes; then
7717 cat >>confdefs.h
<<_ACEOF
7718 #define HAVE_LIBPTHREADS 1
7721 LIBS
="-lpthreads $LIBS"
7726 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7727 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7728 if test -d /usr
/X386
/include
; then
7730 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7734 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7735 echo "${ECHO_T}$HAVE_XFREE386" >&6
7740 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
7741 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
7742 if test "${gdb_cv_bigtoc+set}" = set; then
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
7747 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
7748 *) gdb_cv_bigtoc
=-bbigtoc ;;
7751 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
7752 cat >conftest.
$ac_ext <<_ACEOF
7753 #line $LINENO "configure"
7756 cat confdefs.h
>>conftest.
$ac_ext
7757 cat >>conftest.
$ac_ext <<_ACEOF
7758 /* end confdefs.h. */
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
7782 echo "$as_me: failed program was:" >&5
7783 sed 's/^/| /' conftest.
$ac_ext >&5
7787 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7790 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
7791 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
7795 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7796 # used for the tests that follow. We set them back to REAL_CFLAGS and
7797 # REAL_CPPFLAGS later on.
7799 REAL_CPPFLAGS
="$CPPFLAGS"
7801 if test "${HAVE_X11}" = "yes"; then
7802 DEFS
="$C_SWITCH_X_SITE $DEFS"
7803 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
7805 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
7806 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
7808 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7809 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7810 # but it's more convenient here to set LD_RUN_PATH
7811 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7812 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
7813 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7817 if test "${opsys}" = "gnu-linux"; then
7818 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7819 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7820 cat >conftest.
$ac_ext <<_ACEOF
7821 #line $LINENO "configure"
7824 cat confdefs.h
>>conftest.
$ac_ext
7825 cat >>conftest.
$ac_ext <<_ACEOF
7826 /* end confdefs.h. */
7831 XOpenDisplay ("foo");
7836 rm -f conftest.
$ac_objext conftest
$ac_exeext
7837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7838 (eval $ac_link) 2>&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); } &&
7842 { ac_try
='test -s conftest$ac_exeext'
7843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); }; }; then
7848 xlinux_first_failure
=no
7850 echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.
$ac_ext >&5
7853 xlinux_first_failure
=yes
7855 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7856 if test "${xlinux_first_failure}" = "yes"; then
7857 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
7858 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
7859 OLD_CPPFLAGS
="$CPPFLAGS"
7861 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
7862 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
7863 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
7864 LIBS
="$LIBS -b i486-linuxaout"
7865 cat >conftest.
$ac_ext <<_ACEOF
7866 #line $LINENO "configure"
7869 cat confdefs.h
>>conftest.
$ac_ext
7870 cat >>conftest.
$ac_ext <<_ACEOF
7871 /* end confdefs.h. */
7876 XOpenDisplay ("foo");
7881 rm -f conftest.
$ac_objext conftest
$ac_exeext
7882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7883 (eval $ac_link) 2>&5
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); } &&
7887 { ac_try
='test -s conftest$ac_exeext'
7888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); }; }; then
7893 xlinux_second_failure
=no
7895 echo "$as_me: failed program was:" >&5
7896 sed 's/^/| /' conftest.
$ac_ext >&5
7898 xlinux_second_failure
=yes
7900 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7901 if test "${xlinux_second_failure}" = "yes"; then
7902 # If we get the same failure with -b, there is no use adding -b.
7903 # So take it out. This plays safe.
7904 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
7905 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
7906 CPPFLAGS
="$OLD_CPPFLAGS"
7908 echo "$as_me:$LINENO: result: no" >&5
7909 echo "${ECHO_T}no" >&6
7911 echo "$as_me:$LINENO: result: yes" >&5
7912 echo "${ECHO_T}yes" >&6
7915 echo "$as_me:$LINENO: result: no" >&5
7916 echo "${ECHO_T}no" >&6
7920 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7921 # header files included from there.
7922 echo "$as_me:$LINENO: checking for Xkb" >&5
7923 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7924 cat >conftest.
$ac_ext <<_ACEOF
7925 #line $LINENO "configure"
7928 cat confdefs.h
>>conftest.
$ac_ext
7929 cat >>conftest.
$ac_ext <<_ACEOF
7930 /* end confdefs.h. */
7931 #include <X11/Xlib.h>
7932 #include <X11/XKBlib.h>
7936 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7941 rm -f conftest.
$ac_objext conftest
$ac_exeext
7942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7943 (eval $ac_link) 2>&5
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); } &&
7947 { ac_try
='test -s conftest$ac_exeext'
7948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); }; }; then
7955 echo "$as_me: failed program was:" >&5
7956 sed 's/^/| /' conftest.
$ac_ext >&5
7960 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7961 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7962 echo "${ECHO_T}$emacs_xkb" >&6
7963 if test $emacs_xkb = yes; then
7965 cat >>confdefs.h
<<\_ACEOF
7966 #define HAVE_XKBGETKEYBOARD 1
7975 for ac_func
in XrmSetDatabase XScreenResourceString \
7976 XScreenNumberOfScreen XSetWMProtocols
7978 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7979 echo "$as_me:$LINENO: checking for $ac_func" >&5
7980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7981 if eval "test \"\${$as_ac_var+set}\" = set"; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7984 cat >conftest.
$ac_ext <<_ACEOF
7985 #line $LINENO "configure"
7988 cat confdefs.h
>>conftest.
$ac_ext
7989 cat >>conftest.
$ac_ext <<_ACEOF
7990 /* end confdefs.h. */
7991 /* System header to define __stub macros and hopefully few prototypes,
7992 which can conflict with char $ac_func (); below.
7993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7994 <limits.h> exists even on freestanding compilers. */
7996 # include <limits.h>
7998 # include <assert.h>
8000 /* Override any gcc2 internal prototype to avoid an error. */
8005 /* We use char because int might match the return type of a gcc2
8006 builtin and then its argument prototype would still apply. */
8008 /* The GNU C library defines this for functions which it implements
8009 to always fail with ENOSYS. Some functions are actually named
8010 something starting with __ and the normal name is an alias. */
8011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8014 char (*f) () = $ac_func;
8023 return f != $ac_func;
8028 rm -f conftest.
$ac_objext conftest
$ac_exeext
8029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8030 (eval $ac_link) 2>&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); } &&
8034 { ac_try
='test -s conftest$ac_exeext'
8035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); }; }; then
8040 eval "$as_ac_var=yes"
8042 echo "$as_me: failed program was:" >&5
8043 sed 's/^/| /' conftest.
$ac_ext >&5
8045 eval "$as_ac_var=no"
8047 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8050 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8051 if test `eval echo '${'$as_ac_var'}'` = yes; then
8052 cat >>confdefs.h
<<_ACEOF
8053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8061 if test "${window_system}" = "x11"; then
8062 echo "$as_me:$LINENO: checking X11 version 6" >&5
8063 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
8064 if test "${emacs_cv_x11_version_6+set}" = set; then
8065 echo $ECHO_N "(cached) $ECHO_C" >&6
8067 cat >conftest.
$ac_ext <<_ACEOF
8068 #line $LINENO "configure"
8071 cat confdefs.h
>>conftest.
$ac_ext
8072 cat >>conftest.
$ac_ext <<_ACEOF
8073 /* end confdefs.h. */
8074 #include <X11/Xlib.h>
8078 #if XlibSpecificationRelease < 6
8086 rm -f conftest.
$ac_objext conftest
$ac_exeext
8087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8088 (eval $ac_link) 2>&5
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); } &&
8092 { ac_try
='test -s conftest$ac_exeext'
8093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); }; }; then
8098 emacs_cv_x11_version_6
=yes
8100 echo "$as_me: failed program was:" >&5
8101 sed 's/^/| /' conftest.
$ac_ext >&5
8103 emacs_cv_x11_version_6
=no
8105 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8108 if test $emacs_cv_x11_version_6 = yes; then
8109 echo "$as_me:$LINENO: result: 6 or newer" >&5
8110 echo "${ECHO_T}6 or newer" >&6
8112 cat >>confdefs.h
<<\_ACEOF
8113 #define HAVE_X11R6 1
8117 echo "$as_me:$LINENO: result: before 6" >&5
8118 echo "${ECHO_T}before 6" >&6
8122 if test "${window_system}" = "x11"; then
8123 echo "$as_me:$LINENO: checking X11 version 5" >&5
8124 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
8125 if test "${emacs_cv_x11_version_5+set}" = set; then
8126 echo $ECHO_N "(cached) $ECHO_C" >&6
8128 cat >conftest.
$ac_ext <<_ACEOF
8129 #line $LINENO "configure"
8132 cat confdefs.h
>>conftest.
$ac_ext
8133 cat >>conftest.
$ac_ext <<_ACEOF
8134 /* end confdefs.h. */
8135 #include <X11/Xlib.h>
8139 #if XlibSpecificationRelease < 5
8147 rm -f conftest.
$ac_objext conftest
$ac_exeext
8148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8149 (eval $ac_link) 2>&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); } &&
8153 { ac_try
='test -s conftest$ac_exeext'
8154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); }; }; then
8159 emacs_cv_x11_version_5
=yes
8161 echo "$as_me: failed program was:" >&5
8162 sed 's/^/| /' conftest.
$ac_ext >&5
8164 emacs_cv_x11_version_5
=no
8166 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8169 if test $emacs_cv_x11_version_5 = yes; then
8170 echo "$as_me:$LINENO: result: 5 or newer" >&5
8171 echo "${ECHO_T}5 or newer" >&6
8174 cat >>confdefs.h
<<\_ACEOF
8175 #define HAVE_X11R5 1
8180 echo "$as_me:$LINENO: result: before 5" >&5
8181 echo "${ECHO_T}before 5" >&6
8188 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
8189 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
8190 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
8191 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
8192 { (exit 1); exit 1; }; };
8196 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8198 if test "X${with_pkg_config_prog}" != X
; then
8199 PKG_CONFIG
="${with_pkg_config_prog}"
8204 if test -z "$PKG_CONFIG"; then
8205 # Extract the first word of "pkg-config", so it can be a program name with args.
8206 set dummy pkg-config
; ac_word
=$2
8207 echo "$as_me:$LINENO: checking for $ac_word" >&5
8208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8209 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
8214 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8217 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8221 test -z "$as_dir" && as_dir
=.
8222 for ac_exec_ext
in '' $ac_executable_extensions; do
8223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8224 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8231 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8235 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8237 if test -n "$PKG_CONFIG"; then
8238 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8239 echo "${ECHO_T}$PKG_CONFIG" >&6
8241 echo "$as_me:$LINENO: result: no" >&5
8242 echo "${ECHO_T}no" >&6
8247 if test "$PKG_CONFIG" = "no" ; then
8248 echo "*** The pkg-config script could not be found. Make sure it is"
8249 echo "*** in your path, or give the full path to pkg-config with"
8250 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
8251 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8253 PKG_CONFIG_MIN_VERSION
=0.9.0
8254 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8255 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
8256 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
8258 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
8259 echo "$as_me:$LINENO: result: yes" >&5
8260 echo "${ECHO_T}yes" >&6
8263 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
8264 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
8265 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
8266 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
8267 echo "${ECHO_T}$GTK_CFLAGS" >&6
8269 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
8270 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
8271 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
8272 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
8273 echo "${ECHO_T}$GTK_LIBS" >&6
8277 ## If we have a custom action on failure, don't print errors, but
8278 ## do set a variable so people can do so.
8279 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8280 echo $GTK_PKG_ERRORS
8286 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8287 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8291 if test $succeeded = yes; then
8294 { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
8295 echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
8296 { (exit 1); exit 1; }; }
8301 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
8304 cat >>confdefs.h
<<\_ACEOF
8310 with_toolkit_scroll_bars
=yes
8313 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
8314 if test x
"${HAVE_X11R5}" = xyes
; then
8315 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
8316 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
8317 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
8318 echo $ECHO_N "(cached) $ECHO_C" >&6
8320 cat >conftest.
$ac_ext <<_ACEOF
8321 #line $LINENO "configure"
8324 cat confdefs.h
>>conftest.
$ac_ext
8325 cat >>conftest.
$ac_ext <<_ACEOF
8326 /* end confdefs.h. */
8328 #include <X11/Intrinsic.h>
8329 #include <X11/Xaw/Simple.h>
8338 rm -f conftest.
$ac_objext conftest
$ac_exeext
8339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8340 (eval $ac_link) 2>&5
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); } &&
8344 { ac_try
='test -s conftest$ac_exeext'
8345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; }; then
8350 emacs_cv_x11_version_5_with_xaw
=yes
8352 echo "$as_me: failed program was:" >&5
8353 sed 's/^/| /' conftest.
$ac_ext >&5
8355 emacs_cv_x11_version_5_with_xaw
=no
8357 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8360 if test $emacs_cv_x11_version_5_with_xaw = yes; then
8361 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
8362 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
8365 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
8366 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
8374 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
8376 if test "${USE_X_TOOLKIT}" != "none"; then
8377 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8378 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
8379 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8380 echo $ECHO_N "(cached) $ECHO_C" >&6
8382 cat >conftest.
$ac_ext <<_ACEOF
8383 #line $LINENO "configure"
8386 cat confdefs.h
>>conftest.
$ac_ext
8387 cat >>conftest.
$ac_ext <<_ACEOF
8388 /* end confdefs.h. */
8389 #include <X11/Intrinsic.h>
8393 #if XtSpecificationRelease < 6
8401 rm -f conftest.
$ac_objext conftest
$ac_exeext
8402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8403 (eval $ac_link) 2>&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); } &&
8407 { ac_try
='test -s conftest$ac_exeext'
8408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); }; }; then
8413 emacs_cv_x11_toolkit_version_6
=yes
8415 echo "$as_me: failed program was:" >&5
8416 sed 's/^/| /' conftest.
$ac_ext >&5
8418 emacs_cv_x11_toolkit_version_6
=no
8420 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8423 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
8424 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8425 echo "$as_me:$LINENO: result: 6 or newer" >&5
8426 echo "${ECHO_T}6 or newer" >&6
8428 cat >>confdefs.h
<<\_ACEOF
8429 #define HAVE_X11XTR6 1
8433 echo "$as_me:$LINENO: result: before 6" >&5
8434 echo "${ECHO_T}before 6" >&6
8438 if test x
$HAVE_X11XTR6 = xyes
; then
8439 LIBS
="-lXt -lSM -lICE $LIBS"
8444 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
8445 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
8446 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8449 ac_check_lib_save_LIBS
=$LIBS
8451 cat >conftest.
$ac_ext <<_ACEOF
8452 #line $LINENO "configure"
8455 cat confdefs.h
>>conftest.
$ac_ext
8456 cat >>conftest.
$ac_ext <<_ACEOF
8457 /* end confdefs.h. */
8459 /* Override any gcc2 internal prototype to avoid an error. */
8463 /* We use char because int might match the return type of a gcc2
8464 builtin and then its argument prototype would still apply. */
8465 char XmuConvertStandardSelection ();
8469 XmuConvertStandardSelection ();
8474 rm -f conftest.
$ac_objext conftest
$ac_exeext
8475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8476 (eval $ac_link) 2>&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } &&
8480 { ac_try
='test -s conftest$ac_exeext'
8481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); }; }; then
8486 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
8488 echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.
$ac_ext >&5
8491 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
8493 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8494 LIBS
=$ac_check_lib_save_LIBS
8496 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8497 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
8498 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
8499 cat >>confdefs.h
<<_ACEOF
8500 #define HAVE_LIBXMU 1
8507 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
8510 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8511 if test "${HAVE_X11}" = "yes"; then
8512 if test "${USE_X_TOOLKIT}" != "none"; then
8514 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8515 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8516 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8517 echo $ECHO_N "(cached) $ECHO_C" >&6
8519 ac_check_lib_save_LIBS
=$LIBS
8521 cat >conftest.
$ac_ext <<_ACEOF
8522 #line $LINENO "configure"
8525 cat confdefs.h
>>conftest.
$ac_ext
8526 cat >>conftest.
$ac_ext <<_ACEOF
8527 /* end confdefs.h. */
8529 /* Override any gcc2 internal prototype to avoid an error. */
8533 /* We use char because int might match the return type of a gcc2
8534 builtin and then its argument prototype would still apply. */
8535 char XShapeQueryExtension ();
8539 XShapeQueryExtension ();
8544 rm -f conftest.
$ac_objext conftest
$ac_exeext
8545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8546 (eval $ac_link) 2>&5
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); } &&
8550 { ac_try
='test -s conftest$ac_exeext'
8551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); }; }; then
8556 ac_cv_lib_Xext_XShapeQueryExtension
=yes
8558 echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.
$ac_ext >&5
8561 ac_cv_lib_Xext_XShapeQueryExtension
=no
8563 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8564 LIBS
=$ac_check_lib_save_LIBS
8566 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8567 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8568 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8569 cat >>confdefs.h
<<_ACEOF
8570 #define HAVE_LIBXEXT 1
8580 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8581 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
8582 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
8583 if test "${emacs_cv_lesstif+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8586 # We put this in CFLAGS temporarily to precede other -I options
8587 # that might be in CFLAGS temporarily.
8588 # We put this in CPPFLAGS where it precedes the other -I options.
8589 OLD_CPPFLAGS
=$CPPFLAGS
8591 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8592 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8593 cat >conftest.
$ac_ext <<_ACEOF
8594 #line $LINENO "configure"
8597 cat confdefs.h
>>conftest.
$ac_ext
8598 cat >>conftest.
$ac_ext <<_ACEOF
8599 /* end confdefs.h. */
8600 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8609 rm -f conftest.
$ac_objext
8610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8611 (eval $ac_compile) 2>&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); } &&
8615 { ac_try
='test -s conftest.$ac_objext'
8616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); }; }; then
8621 emacs_cv_lesstif
=yes
8623 echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.
$ac_ext >&5
8628 rm -f conftest.
$ac_objext conftest.
$ac_ext
8630 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
8631 echo "${ECHO_T}$emacs_cv_lesstif" >&6
8632 if test $emacs_cv_lesstif = yes; then
8633 # Make sure this -I option remains in CPPFLAGS after it is set
8634 # back to REAL_CPPFLAGS.
8635 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8636 # have those other -I options anyway. Ultimately, having this
8637 # directory ultimately in CPPFLAGS will be enough.
8638 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8639 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
8642 CPPFLAGS
=$OLD_CPPFLAGS
8644 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
8645 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
8646 if test "${emacs_cv_motif_version_2_1+set}" = set; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
8649 cat >conftest.
$ac_ext <<_ACEOF
8650 #line $LINENO "configure"
8653 cat confdefs.h
>>conftest.
$ac_ext
8654 cat >>conftest.
$ac_ext <<_ACEOF
8655 /* end confdefs.h. */
8660 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8663 Motif version prior to 2.1.
8669 rm -f conftest.
$ac_objext
8670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8671 (eval $ac_compile) 2>&5
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); } &&
8675 { ac_try
='test -s conftest.$ac_objext'
8676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); }; }; then
8681 emacs_cv_motif_version_2_1
=yes
8683 echo "$as_me: failed program was:" >&5
8684 sed 's/^/| /' conftest.
$ac_ext >&5
8686 emacs_cv_motif_version_2_1
=no
8688 rm -f conftest.
$ac_objext conftest.
$ac_ext
8690 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
8691 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
8692 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
8693 if test $emacs_cv_motif_version_2_1 = yes; then
8696 cat >>confdefs.h
<<\_ACEOF
8697 #define HAVE_MOTIF_2_1 1
8700 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
8701 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
8702 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
8703 echo $ECHO_N "(cached) $ECHO_C" >&6
8705 ac_check_lib_save_LIBS
=$LIBS
8707 cat >conftest.
$ac_ext <<_ACEOF
8708 #line $LINENO "configure"
8711 cat confdefs.h
>>conftest.
$ac_ext
8712 cat >>conftest.
$ac_ext <<_ACEOF
8713 /* end confdefs.h. */
8715 /* Override any gcc2 internal prototype to avoid an error. */
8719 /* We use char because int might match the return type of a gcc2
8720 builtin and then its argument prototype would still apply. */
8721 char XpCreateContext ();
8730 rm -f conftest.
$ac_objext conftest
$ac_exeext
8731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8732 (eval $ac_link) 2>&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); } &&
8736 { ac_try
='test -s conftest$ac_exeext'
8737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); }; }; then
8742 ac_cv_lib_Xp_XpCreateContext
=yes
8744 echo "$as_me: failed program was:" >&5
8745 sed 's/^/| /' conftest.
$ac_ext >&5
8747 ac_cv_lib_Xp_XpCreateContext
=no
8749 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8750 LIBS
=$ac_check_lib_save_LIBS
8752 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8753 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
8754 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
8758 if test ${HAVE_LIBXP} = yes; then
8760 cat >>confdefs.h
<<\_ACEOF
8761 #define HAVE_LIBXP 1
8768 ### Is -lXaw3d available?
8770 if test "${HAVE_X11}" = "yes"; then
8771 if test "${USE_X_TOOLKIT}" != "none"; then
8772 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
8773 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
8774 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8775 echo $ECHO_N "(cached) $ECHO_C" >&6
8777 cat >conftest.
$ac_ext <<_ACEOF
8778 #line $LINENO "configure"
8781 cat confdefs.h
>>conftest.
$ac_ext
8782 cat >>conftest.
$ac_ext <<_ACEOF
8783 /* end confdefs.h. */
8784 #include <X11/Xaw3d/Scrollbar.h>
8786 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8787 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8789 grep -v '^ *+' conftest.er1
>conftest.err
8791 cat conftest.err
>&5
8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793 (exit $ac_status); } >/dev
/null
; then
8794 if test -s conftest.err
; then
8795 ac_cpp_err
=$ac_c_preproc_warn_flag
8802 if test -z "$ac_cpp_err"; then
8803 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
8805 echo "$as_me: failed program was:" >&5
8806 sed 's/^/| /' conftest.
$ac_ext >&5
8808 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
8810 rm -f conftest.err conftest.
$ac_ext
8812 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8813 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8814 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8815 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8816 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8817 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8818 echo $ECHO_N "(cached) $ECHO_C" >&6
8820 ac_check_lib_save_LIBS
=$LIBS
8821 LIBS
="-lXaw3d $LIBS"
8822 cat >conftest.
$ac_ext <<_ACEOF
8823 #line $LINENO "configure"
8826 cat confdefs.h
>>conftest.
$ac_ext
8827 cat >>conftest.
$ac_ext <<_ACEOF
8828 /* end confdefs.h. */
8830 /* Override any gcc2 internal prototype to avoid an error. */
8834 /* We use char because int might match the return type of a gcc2
8835 builtin and then its argument prototype would still apply. */
8836 char XawScrollbarSetThumb ();
8840 XawScrollbarSetThumb ();
8845 rm -f conftest.
$ac_objext conftest
$ac_exeext
8846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8847 (eval $ac_link) 2>&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } &&
8851 { ac_try
='test -s conftest$ac_exeext'
8852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); }; }; then
8857 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
8859 echo "$as_me: failed program was:" >&5
8860 sed 's/^/| /' conftest.
$ac_ext >&5
8862 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
8864 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8865 LIBS
=$ac_check_lib_save_LIBS
8867 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8868 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8869 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8876 if test "${HAVE_XAW3D}" = "yes"; then
8878 cat >>confdefs.h
<<\_ACEOF
8879 #define HAVE_XAW3D 1
8888 USE_TOOLKIT_SCROLL_BARS
=no
8889 if test "${with_toolkit_scroll_bars}" != "no"; then
8890 if test "${USE_X_TOOLKIT}" != "none"; then
8891 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8892 cat >>confdefs.h
<<\_ACEOF
8893 #define USE_TOOLKIT_SCROLL_BARS 1
8897 USE_TOOLKIT_SCROLL_BARS
=yes
8898 elif test "${HAVE_XAW3D}" = "yes"; then
8899 cat >>confdefs.h
<<\_ACEOF
8900 #define USE_TOOLKIT_SCROLL_BARS 1
8903 USE_TOOLKIT_SCROLL_BARS
=yes
8905 elif test "${HAVE_GTK}" = "yes"; then
8906 cat >>confdefs.h
<<\_ACEOF
8907 #define USE_TOOLKIT_SCROLL_BARS 1
8910 USE_TOOLKIT_SCROLL_BARS
=yes
8914 cat >conftest.
$ac_ext <<_ACEOF
8915 #line $LINENO "configure"
8918 cat confdefs.h
>>conftest.
$ac_ext
8919 cat >>conftest.
$ac_ext <<_ACEOF
8920 /* end confdefs.h. */
8922 #include <X11/Xlib.h>
8923 #include <X11/Xresource.h>
8932 rm -f conftest.
$ac_objext
8933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8934 (eval $ac_compile) 2>&5
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); } &&
8938 { ac_try
='test -s conftest.$ac_objext'
8939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); }; }; then
8946 cat >>confdefs.h
<<\_ACEOF
8951 echo "$as_me: failed program was:" >&5
8952 sed 's/^/| /' conftest.
$ac_ext >&5
8956 rm -f conftest.
$ac_objext conftest.
$ac_ext
8959 if test "${with_xim}" != "no"; then
8961 cat >>confdefs.h
<<\_ACEOF
8968 if test "${HAVE_XIM}" != "no"; then
8970 if test "$GCC" = yes; then
8971 CFLAGS
="$CFLAGS --pedantic-errors"
8973 cat >conftest.
$ac_ext <<_ACEOF
8974 #line $LINENO "configure"
8977 cat confdefs.h
>>conftest.
$ac_ext
8978 cat >>conftest.
$ac_ext <<_ACEOF
8979 /* end confdefs.h. */
8981 #include <X11/Xlib.h>
8982 #include <X11/Xresource.h>
8991 XPointer *client_data;
8993 /* If we're not using GCC, it's probably not XFree86, and this is
8994 probably right, but we can't use something like --pedantic-errors. */
8995 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
8996 char*, XIMProc, XPointer*);
8998 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9004 rm -f conftest.
$ac_objext
9005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9006 (eval $ac_compile) 2>&5
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); } &&
9010 { ac_try
='test -s conftest.$ac_objext'
9011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); }; }; then
9016 emacs_cv_arg6_star
=yes
9018 echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.
$ac_ext >&5
9022 rm -f conftest.
$ac_objext conftest.
$ac_ext
9024 if test "$emacs_cv_arg6_star" = yes; then
9025 cat >>confdefs.h
<<\_ACEOF
9026 #define XRegisterIMInstantiateCallback_arg6 XPointer*
9030 cat >>confdefs.h
<<\_ACEOF
9031 #define XRegisterIMInstantiateCallback_arg6 XPointer
9038 ### Use -lXpm if available, unless `--with-xpm=no'.
9040 if test "${HAVE_X11}" = "yes"; then
9041 if test "${with_xpm}" != "no"; then
9042 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9043 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9044 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
9045 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9046 echo $ECHO_N "(cached) $ECHO_C" >&6
9048 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
9049 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
9051 # Is the header compilable?
9052 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
9053 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
9054 cat >conftest.
$ac_ext <<_ACEOF
9055 #line $LINENO "configure"
9058 cat confdefs.h
>>conftest.
$ac_ext
9059 cat >>conftest.
$ac_ext <<_ACEOF
9060 /* end confdefs.h. */
9061 $ac_includes_default
9062 #include <X11/xpm.h>
9064 rm -f conftest.
$ac_objext
9065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9066 (eval $ac_compile) 2>&5
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); } &&
9070 { ac_try
='test -s conftest.$ac_objext'
9071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); }; }; then
9076 ac_header_compiler
=yes
9078 echo "$as_me: failed program was:" >&5
9079 sed 's/^/| /' conftest.
$ac_ext >&5
9081 ac_header_compiler
=no
9083 rm -f conftest.
$ac_objext conftest.
$ac_ext
9084 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9085 echo "${ECHO_T}$ac_header_compiler" >&6
9087 # Is the header present?
9088 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
9089 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
9090 cat >conftest.
$ac_ext <<_ACEOF
9091 #line $LINENO "configure"
9094 cat confdefs.h
>>conftest.
$ac_ext
9095 cat >>conftest.
$ac_ext <<_ACEOF
9096 /* end confdefs.h. */
9097 #include <X11/xpm.h>
9099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9100 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9102 grep -v '^ *+' conftest.er1
>conftest.err
9104 cat conftest.err
>&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); } >/dev
/null
; then
9107 if test -s conftest.err
; then
9108 ac_cpp_err
=$ac_c_preproc_warn_flag
9115 if test -z "$ac_cpp_err"; then
9116 ac_header_preproc
=yes
9118 echo "$as_me: failed program was:" >&5
9119 sed 's/^/| /' conftest.
$ac_ext >&5
9121 ac_header_preproc
=no
9123 rm -f conftest.err conftest.
$ac_ext
9124 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9125 echo "${ECHO_T}$ac_header_preproc" >&6
9127 # So? What about this header?
9128 case $ac_header_compiler:$ac_header_preproc in
9130 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
9131 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9132 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9133 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
9136 ## ------------------------------------ ##
9137 ## Report this to bug-autoconf@gnu.org. ##
9138 ## ------------------------------------ ##
9141 sed "s/^/$as_me: WARNING: /" >&2
9144 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
9145 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
9146 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
9147 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
9148 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9149 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
9152 ## ------------------------------------ ##
9153 ## Report this to bug-autoconf@gnu.org. ##
9154 ## ------------------------------------ ##
9157 sed "s/^/$as_me: WARNING: /" >&2
9160 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9161 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
9162 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
9165 ac_cv_header_X11_xpm_h
=$ac_header_preproc
9167 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
9168 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
9171 if test $ac_cv_header_X11_xpm_h = yes; then
9172 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
9173 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
9174 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
9175 echo $ECHO_N "(cached) $ECHO_C" >&6
9177 ac_check_lib_save_LIBS
=$LIBS
9178 LIBS
="-lXpm -lX11 $LIBS"
9179 cat >conftest.
$ac_ext <<_ACEOF
9180 #line $LINENO "configure"
9183 cat confdefs.h
>>conftest.
$ac_ext
9184 cat >>conftest.
$ac_ext <<_ACEOF
9185 /* end confdefs.h. */
9187 /* Override any gcc2 internal prototype to avoid an error. */
9191 /* We use char because int might match the return type of a gcc2
9192 builtin and then its argument prototype would still apply. */
9193 char XpmReadFileToPixmap ();
9197 XpmReadFileToPixmap ();
9202 rm -f conftest.
$ac_objext conftest
$ac_exeext
9203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9204 (eval $ac_link) 2>&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); } &&
9208 { ac_try
='test -s conftest$ac_exeext'
9209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); }; }; then
9214 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
9216 echo "$as_me: failed program was:" >&5
9217 sed 's/^/| /' conftest.
$ac_ext >&5
9219 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
9221 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9222 LIBS
=$ac_check_lib_save_LIBS
9224 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9225 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
9226 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9233 if test "${HAVE_XPM}" = "yes"; then
9234 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9235 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
9236 cat >conftest.
$ac_ext <<_ACEOF
9237 #line $LINENO "configure"
9240 cat confdefs.h
>>conftest.
$ac_ext
9241 cat >>conftest.
$ac_ext <<_ACEOF
9242 /* end confdefs.h. */
9243 #include "X11/xpm.h"
9244 #ifndef XpmReturnAllocPixels
9245 no_return_alloc_pixels
9249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9250 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
9258 if test "${HAVE_XPM}" = "yes"; then
9259 echo "$as_me:$LINENO: result: yes" >&5
9260 echo "${ECHO_T}yes" >&6
9262 echo "$as_me:$LINENO: result: no" >&5
9263 echo "${ECHO_T}no" >&6
9268 if test "${HAVE_XPM}" = "yes"; then
9270 cat >>confdefs.h
<<\_ACEOF
9277 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9279 if test "${HAVE_X11}" = "yes"; then
9280 if test "${with_jpeg}" != "no"; then
9281 if test "${ac_cv_header_jerror_h+set}" = set; then
9282 echo "$as_me:$LINENO: checking for jerror.h" >&5
9283 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9284 if test "${ac_cv_header_jerror_h+set}" = set; then
9285 echo $ECHO_N "(cached) $ECHO_C" >&6
9287 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9288 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9290 # Is the header compilable?
9291 echo "$as_me:$LINENO: checking jerror.h usability" >&5
9292 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
9293 cat >conftest.
$ac_ext <<_ACEOF
9294 #line $LINENO "configure"
9297 cat confdefs.h
>>conftest.
$ac_ext
9298 cat >>conftest.
$ac_ext <<_ACEOF
9299 /* end confdefs.h. */
9300 $ac_includes_default
9303 rm -f conftest.
$ac_objext
9304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9305 (eval $ac_compile) 2>&5
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); } &&
9309 { ac_try
='test -s conftest.$ac_objext'
9310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); }; }; then
9315 ac_header_compiler
=yes
9317 echo "$as_me: failed program was:" >&5
9318 sed 's/^/| /' conftest.
$ac_ext >&5
9320 ac_header_compiler
=no
9322 rm -f conftest.
$ac_objext conftest.
$ac_ext
9323 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9324 echo "${ECHO_T}$ac_header_compiler" >&6
9326 # Is the header present?
9327 echo "$as_me:$LINENO: checking jerror.h presence" >&5
9328 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
9329 cat >conftest.
$ac_ext <<_ACEOF
9330 #line $LINENO "configure"
9333 cat confdefs.h
>>conftest.
$ac_ext
9334 cat >>conftest.
$ac_ext <<_ACEOF
9335 /* end confdefs.h. */
9338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9339 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9341 grep -v '^ *+' conftest.er1
>conftest.err
9343 cat conftest.err
>&5
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); } >/dev
/null
; then
9346 if test -s conftest.err
; then
9347 ac_cpp_err
=$ac_c_preproc_warn_flag
9354 if test -z "$ac_cpp_err"; then
9355 ac_header_preproc
=yes
9357 echo "$as_me: failed program was:" >&5
9358 sed 's/^/| /' conftest.
$ac_ext >&5
9360 ac_header_preproc
=no
9362 rm -f conftest.err conftest.
$ac_ext
9363 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9364 echo "${ECHO_T}$ac_header_preproc" >&6
9366 # So? What about this header?
9367 case $ac_header_compiler:$ac_header_preproc in
9369 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
9370 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9371 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9372 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9375 ## ------------------------------------ ##
9376 ## Report this to bug-autoconf@gnu.org. ##
9377 ## ------------------------------------ ##
9380 sed "s/^/$as_me: WARNING: /" >&2
9383 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
9384 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
9385 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
9386 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
9387 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9388 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9391 ## ------------------------------------ ##
9392 ## Report this to bug-autoconf@gnu.org. ##
9393 ## ------------------------------------ ##
9396 sed "s/^/$as_me: WARNING: /" >&2
9399 echo "$as_me:$LINENO: checking for jerror.h" >&5
9400 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9401 if test "${ac_cv_header_jerror_h+set}" = set; then
9402 echo $ECHO_N "(cached) $ECHO_C" >&6
9404 ac_cv_header_jerror_h
=$ac_header_preproc
9406 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9407 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9410 if test $ac_cv_header_jerror_h = yes; then
9411 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9412 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
9413 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9414 echo $ECHO_N "(cached) $ECHO_C" >&6
9416 ac_check_lib_save_LIBS
=$LIBS
9418 cat >conftest.
$ac_ext <<_ACEOF
9419 #line $LINENO "configure"
9422 cat confdefs.h
>>conftest.
$ac_ext
9423 cat >>conftest.
$ac_ext <<_ACEOF
9424 /* end confdefs.h. */
9426 /* Override any gcc2 internal prototype to avoid an error. */
9430 /* We use char because int might match the return type of a gcc2
9431 builtin and then its argument prototype would still apply. */
9432 char jpeg_destroy_compress ();
9436 jpeg_destroy_compress ();
9441 rm -f conftest.
$ac_objext conftest
$ac_exeext
9442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9443 (eval $ac_link) 2>&5
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); } &&
9447 { ac_try
='test -s conftest$ac_exeext'
9448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); }; }; then
9453 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
9455 echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.
$ac_ext >&5
9458 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
9460 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9461 LIBS
=$ac_check_lib_save_LIBS
9463 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9464 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
9465 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
9475 if test "${HAVE_JPEG}" = "yes"; then
9476 cat >>confdefs.h
<<\_ACEOF
9480 cat >conftest.
$ac_ext <<_ACEOF
9481 #line $LINENO "configure"
9484 cat confdefs.h
>>conftest.
$ac_ext
9485 cat >>conftest.
$ac_ext <<_ACEOF
9486 /* end confdefs.h. */
9487 #include <jpeglib.h>
9488 version=JPEG_LIB_VERSION
9491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9492 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
9493 cat >>confdefs.h
<<\_ACEOF
9498 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
9499 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9507 ### Use -lpng if available, unless `--with-png=no'.
9509 if test "${HAVE_X11}" = "yes"; then
9510 if test "${with_png}" != "no"; then
9511 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
9512 # in /usr/include/libpng.
9515 for ac_header
in png.h libpng
/png.h
9517 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9519 echo "$as_me:$LINENO: checking for $ac_header" >&5
9520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9522 echo $ECHO_N "(cached) $ECHO_C" >&6
9524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9527 # Is the header compilable?
9528 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9530 cat >conftest.
$ac_ext <<_ACEOF
9531 #line $LINENO "configure"
9534 cat confdefs.h
>>conftest.
$ac_ext
9535 cat >>conftest.
$ac_ext <<_ACEOF
9536 /* end confdefs.h. */
9537 $ac_includes_default
9538 #include <$ac_header>
9540 rm -f conftest.
$ac_objext
9541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9542 (eval $ac_compile) 2>&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); } &&
9546 { ac_try
='test -s conftest.$ac_objext'
9547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); }; }; then
9552 ac_header_compiler
=yes
9554 echo "$as_me: failed program was:" >&5
9555 sed 's/^/| /' conftest.
$ac_ext >&5
9557 ac_header_compiler
=no
9559 rm -f conftest.
$ac_objext conftest.
$ac_ext
9560 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9561 echo "${ECHO_T}$ac_header_compiler" >&6
9563 # Is the header present?
9564 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9566 cat >conftest.
$ac_ext <<_ACEOF
9567 #line $LINENO "configure"
9570 cat confdefs.h
>>conftest.
$ac_ext
9571 cat >>conftest.
$ac_ext <<_ACEOF
9572 /* end confdefs.h. */
9573 #include <$ac_header>
9575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9576 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9578 grep -v '^ *+' conftest.er1
>conftest.err
9580 cat conftest.err
>&5
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); } >/dev
/null
; then
9583 if test -s conftest.err
; then
9584 ac_cpp_err
=$ac_c_preproc_warn_flag
9591 if test -z "$ac_cpp_err"; then
9592 ac_header_preproc
=yes
9594 echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.
$ac_ext >&5
9597 ac_header_preproc
=no
9599 rm -f conftest.err conftest.
$ac_ext
9600 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9601 echo "${ECHO_T}$ac_header_preproc" >&6
9603 # So? What about this header?
9604 case $ac_header_compiler:$ac_header_preproc in
9606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9612 ## ------------------------------------ ##
9613 ## Report this to bug-autoconf@gnu.org. ##
9614 ## ------------------------------------ ##
9617 sed "s/^/$as_me: WARNING: /" >&2
9620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9628 ## ------------------------------------ ##
9629 ## Report this to bug-autoconf@gnu.org. ##
9630 ## ------------------------------------ ##
9633 sed "s/^/$as_me: WARNING: /" >&2
9636 echo "$as_me:$LINENO: checking for $ac_header" >&5
9637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9639 echo $ECHO_N "(cached) $ECHO_C" >&6
9641 eval "$as_ac_Header=$ac_header_preproc"
9643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9648 cat >>confdefs.h
<<_ACEOF
9649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9656 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
9657 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
9658 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
9659 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
9660 echo $ECHO_N "(cached) $ECHO_C" >&6
9662 ac_check_lib_save_LIBS
=$LIBS
9663 LIBS
="-lpng -lz -lm $LIBS"
9664 cat >conftest.
$ac_ext <<_ACEOF
9665 #line $LINENO "configure"
9668 cat confdefs.h
>>conftest.
$ac_ext
9669 cat >>conftest.
$ac_ext <<_ACEOF
9670 /* end confdefs.h. */
9672 /* Override any gcc2 internal prototype to avoid an error. */
9676 /* We use char because int might match the return type of a gcc2
9677 builtin and then its argument prototype would still apply. */
9678 char png_get_channels ();
9682 png_get_channels ();
9687 rm -f conftest.
$ac_objext conftest
$ac_exeext
9688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9689 (eval $ac_link) 2>&5
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); } &&
9693 { ac_try
='test -s conftest$ac_exeext'
9694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; }; then
9699 ac_cv_lib_png_png_get_channels
=yes
9701 echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.
$ac_ext >&5
9704 ac_cv_lib_png_png_get_channels
=no
9706 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9707 LIBS
=$ac_check_lib_save_LIBS
9709 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
9710 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
9711 if test $ac_cv_lib_png_png_get_channels = yes; then
9718 if test "${HAVE_PNG}" = "yes"; then
9720 cat >>confdefs.h
<<\_ACEOF
9727 ### Use -ltiff if available, unless `--with-tiff=no'.
9729 if test "${HAVE_X11}" = "yes"; then
9730 if test "${with_tiff}" != "no"; then
9731 if test "${ac_cv_header_tiffio_h+set}" = set; then
9732 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9733 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9734 if test "${ac_cv_header_tiffio_h+set}" = set; then
9735 echo $ECHO_N "(cached) $ECHO_C" >&6
9737 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9738 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9740 # Is the header compilable?
9741 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
9742 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
9743 cat >conftest.
$ac_ext <<_ACEOF
9744 #line $LINENO "configure"
9747 cat confdefs.h
>>conftest.
$ac_ext
9748 cat >>conftest.
$ac_ext <<_ACEOF
9749 /* end confdefs.h. */
9750 $ac_includes_default
9753 rm -f conftest.
$ac_objext
9754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9755 (eval $ac_compile) 2>&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } &&
9759 { ac_try
='test -s conftest.$ac_objext'
9760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); }; }; then
9765 ac_header_compiler
=yes
9767 echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.
$ac_ext >&5
9770 ac_header_compiler
=no
9772 rm -f conftest.
$ac_objext conftest.
$ac_ext
9773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9774 echo "${ECHO_T}$ac_header_compiler" >&6
9776 # Is the header present?
9777 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
9778 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
9779 cat >conftest.
$ac_ext <<_ACEOF
9780 #line $LINENO "configure"
9783 cat confdefs.h
>>conftest.
$ac_ext
9784 cat >>conftest.
$ac_ext <<_ACEOF
9785 /* end confdefs.h. */
9788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9789 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9791 grep -v '^ *+' conftest.er1
>conftest.err
9793 cat conftest.err
>&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } >/dev
/null
; then
9796 if test -s conftest.err
; then
9797 ac_cpp_err
=$ac_c_preproc_warn_flag
9804 if test -z "$ac_cpp_err"; then
9805 ac_header_preproc
=yes
9807 echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.
$ac_ext >&5
9810 ac_header_preproc
=no
9812 rm -f conftest.err conftest.
$ac_ext
9813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9814 echo "${ECHO_T}$ac_header_preproc" >&6
9816 # So? What about this header?
9817 case $ac_header_compiler:$ac_header_preproc in
9819 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9820 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9821 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9822 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9825 ## ------------------------------------ ##
9826 ## Report this to bug-autoconf@gnu.org. ##
9827 ## ------------------------------------ ##
9830 sed "s/^/$as_me: WARNING: /" >&2
9833 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
9834 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
9835 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
9836 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
9837 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9838 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9841 ## ------------------------------------ ##
9842 ## Report this to bug-autoconf@gnu.org. ##
9843 ## ------------------------------------ ##
9846 sed "s/^/$as_me: WARNING: /" >&2
9849 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9850 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9851 if test "${ac_cv_header_tiffio_h+set}" = set; then
9852 echo $ECHO_N "(cached) $ECHO_C" >&6
9854 ac_cv_header_tiffio_h
=$ac_header_preproc
9856 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9857 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9860 if test $ac_cv_header_tiffio_h = yes; then
9862 # At least one tiff package requires the jpeg library.
9863 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
9864 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
9865 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
9866 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9869 ac_check_lib_save_LIBS
=$LIBS
9870 LIBS
="-ltiff $tifflibs $LIBS"
9871 cat >conftest.
$ac_ext <<_ACEOF
9872 #line $LINENO "configure"
9875 cat confdefs.h
>>conftest.
$ac_ext
9876 cat >>conftest.
$ac_ext <<_ACEOF
9877 /* end confdefs.h. */
9879 /* Override any gcc2 internal prototype to avoid an error. */
9883 /* We use char because int might match the return type of a gcc2
9884 builtin and then its argument prototype would still apply. */
9885 char TIFFGetVersion ();
9894 rm -f conftest.
$ac_objext conftest
$ac_exeext
9895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9896 (eval $ac_link) 2>&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); } &&
9900 { ac_try
='test -s conftest$ac_exeext'
9901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; }; then
9906 ac_cv_lib_tiff_TIFFGetVersion
=yes
9908 echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.
$ac_ext >&5
9911 ac_cv_lib_tiff_TIFFGetVersion
=no
9913 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9914 LIBS
=$ac_check_lib_save_LIBS
9916 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9917 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
9918 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
9927 if test "${HAVE_TIFF}" = "yes"; then
9929 cat >>confdefs.h
<<\_ACEOF
9936 ### Use -lgif if available, unless `--with-gif=no'.
9938 if test "${HAVE_X11}" = "yes"; then
9939 if test "${with_gif}" != "no"; then
9940 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9941 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9942 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9943 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9944 echo $ECHO_N "(cached) $ECHO_C" >&6
9946 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9947 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9949 # Is the header compilable?
9950 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
9951 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
9952 cat >conftest.
$ac_ext <<_ACEOF
9953 #line $LINENO "configure"
9956 cat confdefs.h
>>conftest.
$ac_ext
9957 cat >>conftest.
$ac_ext <<_ACEOF
9958 /* end confdefs.h. */
9959 $ac_includes_default
9960 #include <gif_lib.h>
9962 rm -f conftest.
$ac_objext
9963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9964 (eval $ac_compile) 2>&5
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); } &&
9968 { ac_try
='test -s conftest.$ac_objext'
9969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); }; }; then
9974 ac_header_compiler
=yes
9976 echo "$as_me: failed program was:" >&5
9977 sed 's/^/| /' conftest.
$ac_ext >&5
9979 ac_header_compiler
=no
9981 rm -f conftest.
$ac_objext conftest.
$ac_ext
9982 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9983 echo "${ECHO_T}$ac_header_compiler" >&6
9985 # Is the header present?
9986 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
9987 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
9988 cat >conftest.
$ac_ext <<_ACEOF
9989 #line $LINENO "configure"
9992 cat confdefs.h
>>conftest.
$ac_ext
9993 cat >>conftest.
$ac_ext <<_ACEOF
9994 /* end confdefs.h. */
9995 #include <gif_lib.h>
9997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9998 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10000 grep -v '^ *+' conftest.er1
>conftest.err
10002 cat conftest.err
>&5
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); } >/dev
/null
; then
10005 if test -s conftest.err
; then
10006 ac_cpp_err
=$ac_c_preproc_warn_flag
10013 if test -z "$ac_cpp_err"; then
10014 ac_header_preproc
=yes
10016 echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.
$ac_ext >&5
10019 ac_header_preproc
=no
10021 rm -f conftest.err conftest.
$ac_ext
10022 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10023 echo "${ECHO_T}$ac_header_preproc" >&6
10025 # So? What about this header?
10026 case $ac_header_compiler:$ac_header_preproc in
10028 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10029 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10030 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
10031 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
10034 ## ------------------------------------ ##
10035 ## Report this to bug-autoconf@gnu.org. ##
10036 ## ------------------------------------ ##
10039 sed "s/^/$as_me: WARNING: /" >&2
10042 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
10043 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
10044 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
10045 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
10046 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
10047 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
10050 ## ------------------------------------ ##
10051 ## Report this to bug-autoconf@gnu.org. ##
10052 ## ------------------------------------ ##
10055 sed "s/^/$as_me: WARNING: /" >&2
10058 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
10059 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
10060 if test "${ac_cv_header_gif_lib_h+set}" = set; then
10061 echo $ECHO_N "(cached) $ECHO_C" >&6
10063 ac_cv_header_gif_lib_h
=$ac_header_preproc
10065 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
10066 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
10069 if test $ac_cv_header_gif_lib_h = yes; then
10070 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10071 # Earlier versions can crash Emacs.
10072 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
10073 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
10074 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
10075 echo $ECHO_N "(cached) $ECHO_C" >&6
10077 ac_check_lib_save_LIBS
=$LIBS
10078 LIBS
="-lungif $LIBS"
10079 cat >conftest.
$ac_ext <<_ACEOF
10080 #line $LINENO "configure"
10083 cat confdefs.h
>>conftest.
$ac_ext
10084 cat >>conftest.
$ac_ext <<_ACEOF
10085 /* end confdefs.h. */
10087 /* Override any gcc2 internal prototype to avoid an error. */
10091 /* We use char because int might match the return type of a gcc2
10092 builtin and then its argument prototype would still apply. */
10093 char EGifPutExtensionLast ();
10097 EGifPutExtensionLast ();
10102 rm -f conftest.
$ac_objext conftest
$ac_exeext
10103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10104 (eval $ac_link) 2>&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); } &&
10108 { ac_try
='test -s conftest$ac_exeext'
10109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10110 (eval $ac_try) 2>&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); }; }; then
10114 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
10116 echo "$as_me: failed program was:" >&5
10117 sed 's/^/| /' conftest.
$ac_ext >&5
10119 ac_cv_lib_ungif_EGifPutExtensionLast
=no
10121 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10122 LIBS
=$ac_check_lib_save_LIBS
10124 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10125 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
10126 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
10135 if test "${HAVE_GIF}" = "yes"; then
10137 cat >>confdefs.h
<<\_ACEOF
10144 ### Use Mac OS X Carbon API to implement GUI.
10146 if test "${with_carbon}" != "no"; then
10147 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10148 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10149 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10150 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10151 echo $ECHO_N "(cached) $ECHO_C" >&6
10153 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10154 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10156 # Is the header compilable?
10157 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
10158 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
10159 cat >conftest.
$ac_ext <<_ACEOF
10160 #line $LINENO "configure"
10163 cat confdefs.h
>>conftest.
$ac_ext
10164 cat >>conftest.
$ac_ext <<_ACEOF
10165 /* end confdefs.h. */
10166 $ac_includes_default
10167 #include <Carbon/Carbon.h>
10169 rm -f conftest.
$ac_objext
10170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10171 (eval $ac_compile) 2>&5
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); } &&
10175 { ac_try
='test -s conftest.$ac_objext'
10176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10177 (eval $ac_try) 2>&5
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); }; }; then
10181 ac_header_compiler
=yes
10183 echo "$as_me: failed program was:" >&5
10184 sed 's/^/| /' conftest.
$ac_ext >&5
10186 ac_header_compiler
=no
10188 rm -f conftest.
$ac_objext conftest.
$ac_ext
10189 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10190 echo "${ECHO_T}$ac_header_compiler" >&6
10192 # Is the header present?
10193 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
10194 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
10195 cat >conftest.
$ac_ext <<_ACEOF
10196 #line $LINENO "configure"
10199 cat confdefs.h
>>conftest.
$ac_ext
10200 cat >>conftest.
$ac_ext <<_ACEOF
10201 /* end confdefs.h. */
10202 #include <Carbon/Carbon.h>
10204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10205 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10207 grep -v '^ *+' conftest.er1
>conftest.err
10209 cat conftest.err
>&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); } >/dev
/null
; then
10212 if test -s conftest.err
; then
10213 ac_cpp_err
=$ac_c_preproc_warn_flag
10220 if test -z "$ac_cpp_err"; then
10221 ac_header_preproc
=yes
10223 echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.
$ac_ext >&5
10226 ac_header_preproc
=no
10228 rm -f conftest.err conftest.
$ac_ext
10229 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10230 echo "${ECHO_T}$ac_header_preproc" >&6
10232 # So? What about this header?
10233 case $ac_header_compiler:$ac_header_preproc in
10235 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
10236 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10237 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10238 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10241 ## ------------------------------------ ##
10242 ## Report this to bug-autoconf@gnu.org. ##
10243 ## ------------------------------------ ##
10246 sed "s/^/$as_me: WARNING: /" >&2
10249 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
10250 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
10251 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
10252 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
10253 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10254 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10257 ## ------------------------------------ ##
10258 ## Report this to bug-autoconf@gnu.org. ##
10259 ## ------------------------------------ ##
10262 sed "s/^/$as_me: WARNING: /" >&2
10265 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10266 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10267 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10270 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
10272 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10273 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10276 if test $ac_cv_header_Carbon_Carbon_h = yes; then
10283 if test "${HAVE_CARBON}" = "yes"; then
10285 cat >>confdefs.h
<<\_ACEOF
10286 #define HAVE_CARBON 1
10290 ## Specify the install directory
10292 if test "${carbon_appdir_x}" != ""; then
10293 case ${carbon_appdir_x} in
10294 y | ye |
yes) carbon_appdir
=/Applications
;;
10295 * ) carbon_appdir
=${carbon_appdir_x} ;;
10298 # We also have mouse menus.
10302 ### Use session management (-lSM -lICE) if available
10304 if test "${HAVE_X11}" = "yes"; then
10305 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10306 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10307 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10308 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10309 echo $ECHO_N "(cached) $ECHO_C" >&6
10311 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10312 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10314 # Is the header compilable?
10315 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
10316 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
10317 cat >conftest.
$ac_ext <<_ACEOF
10318 #line $LINENO "configure"
10321 cat confdefs.h
>>conftest.
$ac_ext
10322 cat >>conftest.
$ac_ext <<_ACEOF
10323 /* end confdefs.h. */
10324 $ac_includes_default
10325 #include <X11/SM/SMlib.h>
10327 rm -f conftest.
$ac_objext
10328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10329 (eval $ac_compile) 2>&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } &&
10333 { ac_try
='test -s conftest.$ac_objext'
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 ac_header_compiler
=yes
10341 echo "$as_me: failed program was:" >&5
10342 sed 's/^/| /' conftest.
$ac_ext >&5
10344 ac_header_compiler
=no
10346 rm -f conftest.
$ac_objext conftest.
$ac_ext
10347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10348 echo "${ECHO_T}$ac_header_compiler" >&6
10350 # Is the header present?
10351 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
10352 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
10353 cat >conftest.
$ac_ext <<_ACEOF
10354 #line $LINENO "configure"
10357 cat confdefs.h
>>conftest.
$ac_ext
10358 cat >>conftest.
$ac_ext <<_ACEOF
10359 /* end confdefs.h. */
10360 #include <X11/SM/SMlib.h>
10362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10363 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10365 grep -v '^ *+' conftest.er1
>conftest.err
10367 cat conftest.err
>&5
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); } >/dev
/null
; then
10370 if test -s conftest.err
; then
10371 ac_cpp_err
=$ac_c_preproc_warn_flag
10378 if test -z "$ac_cpp_err"; then
10379 ac_header_preproc
=yes
10381 echo "$as_me: failed program was:" >&5
10382 sed 's/^/| /' conftest.
$ac_ext >&5
10384 ac_header_preproc
=no
10386 rm -f conftest.err conftest.
$ac_ext
10387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10388 echo "${ECHO_T}$ac_header_preproc" >&6
10390 # So? What about this header?
10391 case $ac_header_compiler:$ac_header_preproc in
10393 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10394 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10395 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10396 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10399 ## ------------------------------------ ##
10400 ## Report this to bug-autoconf@gnu.org. ##
10401 ## ------------------------------------ ##
10404 sed "s/^/$as_me: WARNING: /" >&2
10407 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
10408 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
10409 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
10410 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
10411 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10412 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10415 ## ------------------------------------ ##
10416 ## Report this to bug-autoconf@gnu.org. ##
10417 ## ------------------------------------ ##
10420 sed "s/^/$as_me: WARNING: /" >&2
10423 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10424 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10425 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10426 echo $ECHO_N "(cached) $ECHO_C" >&6
10428 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
10430 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10431 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10434 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
10435 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10436 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
10437 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10438 echo $ECHO_N "(cached) $ECHO_C" >&6
10440 ac_check_lib_save_LIBS
=$LIBS
10442 cat >conftest.
$ac_ext <<_ACEOF
10443 #line $LINENO "configure"
10446 cat confdefs.h
>>conftest.
$ac_ext
10447 cat >>conftest.
$ac_ext <<_ACEOF
10448 /* end confdefs.h. */
10450 /* Override any gcc2 internal prototype to avoid an error. */
10454 /* We use char because int might match the return type of a gcc2
10455 builtin and then its argument prototype would still apply. */
10456 char SmcOpenConnection ();
10460 SmcOpenConnection ();
10465 rm -f conftest.
$ac_objext conftest
$ac_exeext
10466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10467 (eval $ac_link) 2>&5
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); } &&
10471 { ac_try
='test -s conftest$ac_exeext'
10472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10473 (eval $ac_try) 2>&5
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); }; }; then
10477 ac_cv_lib_SM_SmcOpenConnection
=yes
10479 echo "$as_me: failed program was:" >&5
10480 sed 's/^/| /' conftest.
$ac_ext >&5
10482 ac_cv_lib_SM_SmcOpenConnection
=no
10484 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10485 LIBS
=$ac_check_lib_save_LIBS
10487 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10488 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
10489 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
10499 if test "${HAVE_X_SM}" = "yes"; then
10501 cat >>confdefs.h
<<\_ACEOF
10502 #define HAVE_X_SM 1
10507 *) LIBS
="-lSM -lICE $LIBS" ;;
10512 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10513 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
10514 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
10515 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
10516 echo $ECHO_N "(cached) $ECHO_C" >&6
10518 cat >conftest.
$ac_ext <<_ACEOF
10519 #line $LINENO "configure"
10522 cat confdefs.h
>>conftest.
$ac_ext
10523 cat >>conftest.
$ac_ext <<_ACEOF
10524 /* end confdefs.h. */
10534 rm -f conftest.
$ac_objext conftest
$ac_exeext
10535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10536 (eval $ac_link) 2>&5
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); } &&
10540 { ac_try
='test -s conftest$ac_exeext'
10541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10542 (eval $ac_try) 2>&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); }; }; then
10546 emacs_cv_netdb_declares_h_errno
=yes
10548 echo "$as_me: failed program was:" >&5
10549 sed 's/^/| /' conftest.
$ac_ext >&5
10551 emacs_cv_netdb_declares_h_errno
=no
10553 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10555 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
10556 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
10557 if test $emacs_cv_netdb_declares_h_errno = yes; then
10559 cat >>confdefs.h
<<\_ACEOF
10560 #define HAVE_H_ERRNO 1
10565 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10566 # for constant arguments. Useless!
10567 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10568 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10569 if test "${ac_cv_working_alloca_h+set}" = set; then
10570 echo $ECHO_N "(cached) $ECHO_C" >&6
10572 cat >conftest.
$ac_ext <<_ACEOF
10573 #line $LINENO "configure"
10576 cat confdefs.h
>>conftest.
$ac_ext
10577 cat >>conftest.
$ac_ext <<_ACEOF
10578 /* end confdefs.h. */
10579 #include <alloca.h>
10583 char *p = (char *) alloca (2 * sizeof (int));
10588 rm -f conftest.
$ac_objext conftest
$ac_exeext
10589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10590 (eval $ac_link) 2>&5
10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); } &&
10594 { ac_try
='test -s conftest$ac_exeext'
10595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10596 (eval $ac_try) 2>&5
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); }; }; then
10600 ac_cv_working_alloca_h
=yes
10602 echo "$as_me: failed program was:" >&5
10603 sed 's/^/| /' conftest.
$ac_ext >&5
10605 ac_cv_working_alloca_h
=no
10607 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10609 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10610 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10611 if test $ac_cv_working_alloca_h = yes; then
10613 cat >>confdefs.h
<<\_ACEOF
10614 #define HAVE_ALLOCA_H 1
10619 echo "$as_me:$LINENO: checking for alloca" >&5
10620 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10621 if test "${ac_cv_func_alloca_works+set}" = set; then
10622 echo $ECHO_N "(cached) $ECHO_C" >&6
10624 cat >conftest.
$ac_ext <<_ACEOF
10625 #line $LINENO "configure"
10628 cat confdefs.h
>>conftest.
$ac_ext
10629 cat >>conftest.
$ac_ext <<_ACEOF
10630 /* end confdefs.h. */
10632 # define alloca __builtin_alloca
10635 # include <malloc.h>
10636 # define alloca _alloca
10639 # include <alloca.h>
10644 # ifndef alloca /* predefined by HP cc +Olibcalls */
10655 char *p = (char *) alloca (1);
10660 rm -f conftest.
$ac_objext conftest
$ac_exeext
10661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10662 (eval $ac_link) 2>&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); } &&
10666 { ac_try
='test -s conftest$ac_exeext'
10667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10668 (eval $ac_try) 2>&5
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); }; }; then
10672 ac_cv_func_alloca_works
=yes
10674 echo "$as_me: failed program was:" >&5
10675 sed 's/^/| /' conftest.
$ac_ext >&5
10677 ac_cv_func_alloca_works
=no
10679 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10681 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10682 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10684 if test $ac_cv_func_alloca_works = yes; then
10686 cat >>confdefs.h
<<\_ACEOF
10687 #define HAVE_ALLOCA 1
10691 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10692 # that cause trouble. Some versions do not even contain alloca or
10693 # contain a buggy version. If you still want to use their alloca,
10694 # use ar to extract alloca.o from them instead of compiling alloca.c.
10696 ALLOCA
=alloca.
$ac_objext
10698 cat >>confdefs.h
<<\_ACEOF
10703 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10704 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10705 if test "${ac_cv_os_cray+set}" = set; then
10706 echo $ECHO_N "(cached) $ECHO_C" >&6
10708 cat >conftest.
$ac_ext <<_ACEOF
10709 #line $LINENO "configure"
10712 cat confdefs.h
>>conftest.
$ac_ext
10713 cat >>conftest.
$ac_ext <<_ACEOF
10714 /* end confdefs.h. */
10715 #if defined(CRAY) && ! defined(CRAY2)
10722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10723 $EGREP "webecray" >/dev
/null
2>&1; then
10731 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10732 echo "${ECHO_T}$ac_cv_os_cray" >&6
10733 if test $ac_cv_os_cray = yes; then
10734 for ac_func
in _getb67 GETB67 getb67
; do
10735 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10736 echo "$as_me:$LINENO: checking for $ac_func" >&5
10737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10738 if eval "test \"\${$as_ac_var+set}\" = set"; then
10739 echo $ECHO_N "(cached) $ECHO_C" >&6
10741 cat >conftest.
$ac_ext <<_ACEOF
10742 #line $LINENO "configure"
10745 cat confdefs.h
>>conftest.
$ac_ext
10746 cat >>conftest.
$ac_ext <<_ACEOF
10747 /* end confdefs.h. */
10748 /* System header to define __stub macros and hopefully few prototypes,
10749 which can conflict with char $ac_func (); below.
10750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10751 <limits.h> exists even on freestanding compilers. */
10753 # include <limits.h>
10755 # include <assert.h>
10757 /* Override any gcc2 internal prototype to avoid an error. */
10762 /* We use char because int might match the return type of a gcc2
10763 builtin and then its argument prototype would still apply. */
10765 /* The GNU C library defines this for functions which it implements
10766 to always fail with ENOSYS. Some functions are actually named
10767 something starting with __ and the normal name is an alias. */
10768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10771 char (*f) () = $ac_func;
10780 return f != $ac_func;
10785 rm -f conftest.
$ac_objext conftest
$ac_exeext
10786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10787 (eval $ac_link) 2>&5
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); } &&
10791 { ac_try
='test -s conftest$ac_exeext'
10792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10793 (eval $ac_try) 2>&5
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); }; }; then
10797 eval "$as_ac_var=yes"
10799 echo "$as_me: failed program was:" >&5
10800 sed 's/^/| /' conftest.
$ac_ext >&5
10802 eval "$as_ac_var=no"
10804 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10807 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10808 if test `eval echo '${'$as_ac_var'}'` = yes; then
10810 cat >>confdefs.h
<<_ACEOF
10811 #define CRAY_STACKSEG_END $ac_func
10820 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10821 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10822 if test "${ac_cv_c_stack_direction+set}" = set; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10825 if test "$cross_compiling" = yes; then
10826 ac_cv_c_stack_direction
=0
10828 cat >conftest.
$ac_ext <<_ACEOF
10829 #line $LINENO "configure"
10832 cat confdefs.h
>>conftest.
$ac_ext
10833 cat >>conftest.
$ac_ext <<_ACEOF
10834 /* end confdefs.h. */
10836 find_stack_direction ()
10838 static char *addr = 0;
10843 return find_stack_direction ();
10846 return (&dummy > addr) ? 1 : -1;
10852 exit (find_stack_direction () < 0);
10855 rm -f conftest
$ac_exeext
10856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10857 (eval $ac_link) 2>&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10862 (eval $ac_try) 2>&5
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); }; }; then
10866 ac_cv_c_stack_direction
=1
10868 echo "$as_me: program exited with status $ac_status" >&5
10869 echo "$as_me: failed program was:" >&5
10870 sed 's/^/| /' conftest.
$ac_ext >&5
10872 ( exit $ac_status )
10873 ac_cv_c_stack_direction
=-1
10875 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10878 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10879 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10881 cat >>confdefs.h
<<_ACEOF
10882 #define STACK_DIRECTION $ac_cv_c_stack_direction
10889 # fmod, logb, and frexp are found in -lm on most systems.
10890 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10892 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10893 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
10894 if test "${ac_cv_lib_m_sqrt+set}" = set; then
10895 echo $ECHO_N "(cached) $ECHO_C" >&6
10897 ac_check_lib_save_LIBS
=$LIBS
10899 cat >conftest.
$ac_ext <<_ACEOF
10900 #line $LINENO "configure"
10903 cat confdefs.h
>>conftest.
$ac_ext
10904 cat >>conftest.
$ac_ext <<_ACEOF
10905 /* end confdefs.h. */
10907 /* Override any gcc2 internal prototype to avoid an error. */
10911 /* We use char because int might match the return type of a gcc2
10912 builtin and then its argument prototype would still apply. */
10922 rm -f conftest.
$ac_objext conftest
$ac_exeext
10923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10924 (eval $ac_link) 2>&5
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); } &&
10928 { ac_try
='test -s conftest$ac_exeext'
10929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10930 (eval $ac_try) 2>&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); }; }; then
10934 ac_cv_lib_m_sqrt
=yes
10936 echo "$as_me: failed program was:" >&5
10937 sed 's/^/| /' conftest.
$ac_ext >&5
10939 ac_cv_lib_m_sqrt
=no
10941 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10942 LIBS
=$ac_check_lib_save_LIBS
10944 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10945 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
10946 if test $ac_cv_lib_m_sqrt = yes; then
10947 cat >>confdefs.h
<<_ACEOF
10948 #define HAVE_LIBM 1
10956 # Check for mail-locking functions in a "mail" library. Probably this should
10957 # have the same check as for liblockfile below.
10959 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10960 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
10961 if test "${ac_cv_lib_mail_maillock+set}" = set; then
10962 echo $ECHO_N "(cached) $ECHO_C" >&6
10964 ac_check_lib_save_LIBS
=$LIBS
10965 LIBS
="-lmail $LIBS"
10966 cat >conftest.
$ac_ext <<_ACEOF
10967 #line $LINENO "configure"
10970 cat confdefs.h
>>conftest.
$ac_ext
10971 cat >>conftest.
$ac_ext <<_ACEOF
10972 /* end confdefs.h. */
10974 /* Override any gcc2 internal prototype to avoid an error. */
10978 /* We use char because int might match the return type of a gcc2
10979 builtin and then its argument prototype would still apply. */
10989 rm -f conftest.
$ac_objext conftest
$ac_exeext
10990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10991 (eval $ac_link) 2>&5
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); } &&
10995 { ac_try
='test -s conftest$ac_exeext'
10996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10997 (eval $ac_try) 2>&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); }; }; then
11001 ac_cv_lib_mail_maillock
=yes
11003 echo "$as_me: failed program was:" >&5
11004 sed 's/^/| /' conftest.
$ac_ext >&5
11006 ac_cv_lib_mail_maillock
=no
11008 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11009 LIBS
=$ac_check_lib_save_LIBS
11011 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
11012 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
11013 if test $ac_cv_lib_mail_maillock = yes; then
11014 cat >>confdefs.h
<<_ACEOF
11015 #define HAVE_LIBMAIL 1
11018 LIBS
="-lmail $LIBS"
11023 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
11024 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
11025 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
11026 echo $ECHO_N "(cached) $ECHO_C" >&6
11028 ac_check_lib_save_LIBS
=$LIBS
11029 LIBS
="-llockfile $LIBS"
11030 cat >conftest.
$ac_ext <<_ACEOF
11031 #line $LINENO "configure"
11034 cat confdefs.h
>>conftest.
$ac_ext
11035 cat >>conftest.
$ac_ext <<_ACEOF
11036 /* end confdefs.h. */
11038 /* Override any gcc2 internal prototype to avoid an error. */
11042 /* We use char because int might match the return type of a gcc2
11043 builtin and then its argument prototype would still apply. */
11053 rm -f conftest.
$ac_objext conftest
$ac_exeext
11054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11055 (eval $ac_link) 2>&5
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); } &&
11059 { ac_try
='test -s conftest$ac_exeext'
11060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11061 (eval $ac_try) 2>&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); }; }; then
11065 ac_cv_lib_lockfile_maillock
=yes
11067 echo "$as_me: failed program was:" >&5
11068 sed 's/^/| /' conftest.
$ac_ext >&5
11070 ac_cv_lib_lockfile_maillock
=no
11072 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11073 LIBS
=$ac_check_lib_save_LIBS
11075 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
11076 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
11077 if test $ac_cv_lib_lockfile_maillock = yes; then
11078 cat >>confdefs.h
<<_ACEOF
11079 #define HAVE_LIBLOCKFILE 1
11082 LIBS
="-llockfile $LIBS"
11086 # If we have the shared liblockfile, assume we must use it for mail
11087 # locking (e.g. Debian). If we couldn't link against liblockfile
11088 # (no liblockfile.a installed), ensure that we don't need to.
11089 if test "$ac_cv_lib_lockfile_maillock" = no
; then
11090 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11091 set dummy liblockfile.so
; ac_word
=$2
11092 echo "$as_me:$LINENO: checking for $ac_word" >&5
11093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11094 if test "${ac_cv_prog_liblockfile+set}" = set; then
11095 echo $ECHO_N "(cached) $ECHO_C" >&6
11097 if test -n "$liblockfile"; then
11098 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
11100 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11101 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11102 for as_dir
in $as_dummy
11105 test -z "$as_dir" && as_dir
=.
11106 for ac_exec_ext
in '' $ac_executable_extensions; do
11107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11108 ac_cv_prog_liblockfile
="yes"
11109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11115 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
11118 liblockfile
=$ac_cv_prog_liblockfile
11119 if test -n "$liblockfile"; then
11120 echo "$as_me:$LINENO: result: $liblockfile" >&5
11121 echo "${ECHO_T}$liblockfile" >&6
11123 echo "$as_me:$LINENO: result: no" >&5
11124 echo "${ECHO_T}no" >&6
11127 if test $ac_cv_prog_liblockfile = yes; then
11128 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
11129 This probably means that movemail could lose mail.
11130 There may be a \`development' package to install containing liblockfile." >&5
11131 echo "$as_me: error: Shared liblockfile found but can't link against it.
11132 This probably means that movemail could lose mail.
11133 There may be a \`development' package to install containing liblockfile." >&2;}
11134 { (exit 1); exit 1; }; }
11139 for ac_func
in touchlock
11141 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11142 echo "$as_me:$LINENO: checking for $ac_func" >&5
11143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11144 if eval "test \"\${$as_ac_var+set}\" = set"; then
11145 echo $ECHO_N "(cached) $ECHO_C" >&6
11147 cat >conftest.
$ac_ext <<_ACEOF
11148 #line $LINENO "configure"
11151 cat confdefs.h
>>conftest.
$ac_ext
11152 cat >>conftest.
$ac_ext <<_ACEOF
11153 /* end confdefs.h. */
11154 /* System header to define __stub macros and hopefully few prototypes,
11155 which can conflict with char $ac_func (); below.
11156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11157 <limits.h> exists even on freestanding compilers. */
11159 # include <limits.h>
11161 # include <assert.h>
11163 /* Override any gcc2 internal prototype to avoid an error. */
11168 /* We use char because int might match the return type of a gcc2
11169 builtin and then its argument prototype would still apply. */
11171 /* The GNU C library defines this for functions which it implements
11172 to always fail with ENOSYS. Some functions are actually named
11173 something starting with __ and the normal name is an alias. */
11174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11177 char (*f) () = $ac_func;
11186 return f != $ac_func;
11191 rm -f conftest.
$ac_objext conftest
$ac_exeext
11192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11193 (eval $ac_link) 2>&5
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); } &&
11197 { ac_try
='test -s conftest$ac_exeext'
11198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11199 (eval $ac_try) 2>&5
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); }; }; then
11203 eval "$as_ac_var=yes"
11205 echo "$as_me: failed program was:" >&5
11206 sed 's/^/| /' conftest.
$ac_ext >&5
11208 eval "$as_ac_var=no"
11210 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11213 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11214 if test `eval echo '${'$as_ac_var'}'` = yes; then
11215 cat >>confdefs.h
<<_ACEOF
11216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11223 for ac_header
in maillock.h
11225 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11227 echo "$as_me:$LINENO: checking for $ac_header" >&5
11228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11230 echo $ECHO_N "(cached) $ECHO_C" >&6
11232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11235 # Is the header compilable?
11236 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11238 cat >conftest.
$ac_ext <<_ACEOF
11239 #line $LINENO "configure"
11242 cat confdefs.h
>>conftest.
$ac_ext
11243 cat >>conftest.
$ac_ext <<_ACEOF
11244 /* end confdefs.h. */
11245 $ac_includes_default
11246 #include <$ac_header>
11248 rm -f conftest.
$ac_objext
11249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11250 (eval $ac_compile) 2>&5
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); } &&
11254 { ac_try
='test -s conftest.$ac_objext'
11255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11256 (eval $ac_try) 2>&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); }; }; then
11260 ac_header_compiler
=yes
11262 echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.
$ac_ext >&5
11265 ac_header_compiler
=no
11267 rm -f conftest.
$ac_objext conftest.
$ac_ext
11268 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11269 echo "${ECHO_T}$ac_header_compiler" >&6
11271 # Is the header present?
11272 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11273 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11274 cat >conftest.
$ac_ext <<_ACEOF
11275 #line $LINENO "configure"
11278 cat confdefs.h
>>conftest.
$ac_ext
11279 cat >>conftest.
$ac_ext <<_ACEOF
11280 /* end confdefs.h. */
11281 #include <$ac_header>
11283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11284 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11286 grep -v '^ *+' conftest.er1
>conftest.err
11288 cat conftest.err
>&5
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); } >/dev
/null
; then
11291 if test -s conftest.err
; then
11292 ac_cpp_err
=$ac_c_preproc_warn_flag
11299 if test -z "$ac_cpp_err"; then
11300 ac_header_preproc
=yes
11302 echo "$as_me: failed program was:" >&5
11303 sed 's/^/| /' conftest.
$ac_ext >&5
11305 ac_header_preproc
=no
11307 rm -f conftest.err conftest.
$ac_ext
11308 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11309 echo "${ECHO_T}$ac_header_preproc" >&6
11311 # So? What about this header?
11312 case $ac_header_compiler:$ac_header_preproc in
11314 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11315 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11320 ## ------------------------------------ ##
11321 ## Report this to bug-autoconf@gnu.org. ##
11322 ## ------------------------------------ ##
11325 sed "s/^/$as_me: WARNING: /" >&2
11328 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11329 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11330 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11331 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11336 ## ------------------------------------ ##
11337 ## Report this to bug-autoconf@gnu.org. ##
11338 ## ------------------------------------ ##
11341 sed "s/^/$as_me: WARNING: /" >&2
11344 echo "$as_me:$LINENO: checking for $ac_header" >&5
11345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
11349 eval "$as_ac_Header=$ac_header_preproc"
11351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11356 cat >>confdefs.h
<<_ACEOF
11357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11432 for ac_func
in gethostname getdomainname dup2 \
11433 rename closedir mkdir
rmdir sysinfo \
11434 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
11435 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
11436 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11437 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11438 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11439 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
11440 memset memcmp memmove difftime memcpy mempcpy mblen mbrlen posix_memalign
11442 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11443 echo "$as_me:$LINENO: checking for $ac_func" >&5
11444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11445 if eval "test \"\${$as_ac_var+set}\" = set"; then
11446 echo $ECHO_N "(cached) $ECHO_C" >&6
11448 cat >conftest.
$ac_ext <<_ACEOF
11449 #line $LINENO "configure"
11452 cat confdefs.h
>>conftest.
$ac_ext
11453 cat >>conftest.
$ac_ext <<_ACEOF
11454 /* end confdefs.h. */
11455 /* System header to define __stub macros and hopefully few prototypes,
11456 which can conflict with char $ac_func (); below.
11457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11458 <limits.h> exists even on freestanding compilers. */
11460 # include <limits.h>
11462 # include <assert.h>
11464 /* Override any gcc2 internal prototype to avoid an error. */
11469 /* We use char because int might match the return type of a gcc2
11470 builtin and then its argument prototype would still apply. */
11472 /* The GNU C library defines this for functions which it implements
11473 to always fail with ENOSYS. Some functions are actually named
11474 something starting with __ and the normal name is an alias. */
11475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11478 char (*f) () = $ac_func;
11487 return f != $ac_func;
11492 rm -f conftest.
$ac_objext conftest
$ac_exeext
11493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11494 (eval $ac_link) 2>&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } &&
11498 { ac_try
='test -s conftest$ac_exeext'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; }; then
11504 eval "$as_ac_var=yes"
11506 echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.
$ac_ext >&5
11509 eval "$as_ac_var=no"
11511 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11514 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11515 if test `eval echo '${'$as_ac_var'}'` = yes; then
11516 cat >>confdefs.h
<<_ACEOF
11517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11525 for ac_header
in sys
/un.h
11527 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11529 echo "$as_me:$LINENO: checking for $ac_header" >&5
11530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11532 echo $ECHO_N "(cached) $ECHO_C" >&6
11534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11537 # Is the header compilable?
11538 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11540 cat >conftest.
$ac_ext <<_ACEOF
11541 #line $LINENO "configure"
11544 cat confdefs.h
>>conftest.
$ac_ext
11545 cat >>conftest.
$ac_ext <<_ACEOF
11546 /* end confdefs.h. */
11547 $ac_includes_default
11548 #include <$ac_header>
11550 rm -f conftest.
$ac_objext
11551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11552 (eval $ac_compile) 2>&5
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); } &&
11556 { ac_try
='test -s conftest.$ac_objext'
11557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11558 (eval $ac_try) 2>&5
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); }; }; then
11562 ac_header_compiler
=yes
11564 echo "$as_me: failed program was:" >&5
11565 sed 's/^/| /' conftest.
$ac_ext >&5
11567 ac_header_compiler
=no
11569 rm -f conftest.
$ac_objext conftest.
$ac_ext
11570 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11571 echo "${ECHO_T}$ac_header_compiler" >&6
11573 # Is the header present?
11574 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11576 cat >conftest.
$ac_ext <<_ACEOF
11577 #line $LINENO "configure"
11580 cat confdefs.h
>>conftest.
$ac_ext
11581 cat >>conftest.
$ac_ext <<_ACEOF
11582 /* end confdefs.h. */
11583 #include <$ac_header>
11585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11586 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11588 grep -v '^ *+' conftest.er1
>conftest.err
11590 cat conftest.err
>&5
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); } >/dev
/null
; then
11593 if test -s conftest.err
; then
11594 ac_cpp_err
=$ac_c_preproc_warn_flag
11601 if test -z "$ac_cpp_err"; then
11602 ac_header_preproc
=yes
11604 echo "$as_me: failed program was:" >&5
11605 sed 's/^/| /' conftest.
$ac_ext >&5
11607 ac_header_preproc
=no
11609 rm -f conftest.err conftest.
$ac_ext
11610 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11611 echo "${ECHO_T}$ac_header_preproc" >&6
11613 # So? What about this header?
11614 case $ac_header_compiler:$ac_header_preproc in
11616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11619 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11622 ## ------------------------------------ ##
11623 ## Report this to bug-autoconf@gnu.org. ##
11624 ## ------------------------------------ ##
11627 sed "s/^/$as_me: WARNING: /" >&2
11630 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11631 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11632 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11633 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11638 ## ------------------------------------ ##
11639 ## Report this to bug-autoconf@gnu.org. ##
11640 ## ------------------------------------ ##
11643 sed "s/^/$as_me: WARNING: /" >&2
11646 echo "$as_me:$LINENO: checking for $ac_header" >&5
11647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11649 echo $ECHO_N "(cached) $ECHO_C" >&6
11651 eval "$as_ac_Header=$ac_header_preproc"
11653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11658 cat >>confdefs.h
<<_ACEOF
11659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11669 for ac_header
in sys
/time.h unistd.h
11671 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11673 echo "$as_me:$LINENO: checking for $ac_header" >&5
11674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11676 echo $ECHO_N "(cached) $ECHO_C" >&6
11678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11681 # Is the header compilable?
11682 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11684 cat >conftest.
$ac_ext <<_ACEOF
11685 #line $LINENO "configure"
11688 cat confdefs.h
>>conftest.
$ac_ext
11689 cat >>conftest.
$ac_ext <<_ACEOF
11690 /* end confdefs.h. */
11691 $ac_includes_default
11692 #include <$ac_header>
11694 rm -f conftest.
$ac_objext
11695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11696 (eval $ac_compile) 2>&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } &&
11700 { ac_try
='test -s conftest.$ac_objext'
11701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11702 (eval $ac_try) 2>&5
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); }; }; then
11706 ac_header_compiler
=yes
11708 echo "$as_me: failed program was:" >&5
11709 sed 's/^/| /' conftest.
$ac_ext >&5
11711 ac_header_compiler
=no
11713 rm -f conftest.
$ac_objext conftest.
$ac_ext
11714 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11715 echo "${ECHO_T}$ac_header_compiler" >&6
11717 # Is the header present?
11718 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11719 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11720 cat >conftest.
$ac_ext <<_ACEOF
11721 #line $LINENO "configure"
11724 cat confdefs.h
>>conftest.
$ac_ext
11725 cat >>conftest.
$ac_ext <<_ACEOF
11726 /* end confdefs.h. */
11727 #include <$ac_header>
11729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11730 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11732 grep -v '^ *+' conftest.er1
>conftest.err
11734 cat conftest.err
>&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); } >/dev
/null
; then
11737 if test -s conftest.err
; then
11738 ac_cpp_err
=$ac_c_preproc_warn_flag
11745 if test -z "$ac_cpp_err"; then
11746 ac_header_preproc
=yes
11748 echo "$as_me: failed program was:" >&5
11749 sed 's/^/| /' conftest.
$ac_ext >&5
11751 ac_header_preproc
=no
11753 rm -f conftest.err conftest.
$ac_ext
11754 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11755 echo "${ECHO_T}$ac_header_preproc" >&6
11757 # So? What about this header?
11758 case $ac_header_compiler:$ac_header_preproc in
11760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11761 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11766 ## ------------------------------------ ##
11767 ## Report this to bug-autoconf@gnu.org. ##
11768 ## ------------------------------------ ##
11771 sed "s/^/$as_me: WARNING: /" >&2
11774 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11775 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11776 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11777 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11782 ## ------------------------------------ ##
11783 ## Report this to bug-autoconf@gnu.org. ##
11784 ## ------------------------------------ ##
11787 sed "s/^/$as_me: WARNING: /" >&2
11790 echo "$as_me:$LINENO: checking for $ac_header" >&5
11791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11793 echo $ECHO_N "(cached) $ECHO_C" >&6
11795 eval "$as_ac_Header=$ac_header_preproc"
11797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11802 cat >>confdefs.h
<<_ACEOF
11803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11811 for ac_func
in alarm
11813 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11814 echo "$as_me:$LINENO: checking for $ac_func" >&5
11815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11816 if eval "test \"\${$as_ac_var+set}\" = set"; then
11817 echo $ECHO_N "(cached) $ECHO_C" >&6
11819 cat >conftest.
$ac_ext <<_ACEOF
11820 #line $LINENO "configure"
11823 cat confdefs.h
>>conftest.
$ac_ext
11824 cat >>conftest.
$ac_ext <<_ACEOF
11825 /* end confdefs.h. */
11826 /* System header to define __stub macros and hopefully few prototypes,
11827 which can conflict with char $ac_func (); below.
11828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11829 <limits.h> exists even on freestanding compilers. */
11831 # include <limits.h>
11833 # include <assert.h>
11835 /* Override any gcc2 internal prototype to avoid an error. */
11840 /* We use char because int might match the return type of a gcc2
11841 builtin and then its argument prototype would still apply. */
11843 /* The GNU C library defines this for functions which it implements
11844 to always fail with ENOSYS. Some functions are actually named
11845 something starting with __ and the normal name is an alias. */
11846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11849 char (*f) () = $ac_func;
11858 return f != $ac_func;
11863 rm -f conftest.
$ac_objext conftest
$ac_exeext
11864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11865 (eval $ac_link) 2>&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); } &&
11869 { ac_try
='test -s conftest$ac_exeext'
11870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11871 (eval $ac_try) 2>&5
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); }; }; then
11875 eval "$as_ac_var=yes"
11877 echo "$as_me: failed program was:" >&5
11878 sed 's/^/| /' conftest.
$ac_ext >&5
11880 eval "$as_ac_var=no"
11882 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11885 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11886 if test `eval echo '${'$as_ac_var'}'` = yes; then
11887 cat >>confdefs.h
<<_ACEOF
11888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11894 echo "$as_me:$LINENO: checking for working mktime" >&5
11895 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
11896 if test "${ac_cv_func_working_mktime+set}" = set; then
11897 echo $ECHO_N "(cached) $ECHO_C" >&6
11899 if test "$cross_compiling" = yes; then
11900 ac_cv_func_working_mktime
=no
11902 cat >conftest.
$ac_ext <<_ACEOF
11903 #line $LINENO "configure"
11906 cat confdefs.h
>>conftest.
$ac_ext
11907 cat >>conftest.
$ac_ext <<_ACEOF
11908 /* end confdefs.h. */
11909 /* Test program from Paul Eggert and Tony Leneis. */
11910 #if TIME_WITH_SYS_TIME
11911 # include <sys/time.h>
11914 # if HAVE_SYS_TIME_H
11915 # include <sys/time.h>
11922 # include <unistd.h>
11926 # define alarm(X) /* empty */
11929 /* Work around redefinition to rpl_putenv by other config tests. */
11932 static time_t time_t_max;
11934 /* Values we'll use to set the TZ environment variable. */
11935 static const char *const tz_strings[] = {
11936 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11937 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11939 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11941 /* Fail if mktime fails to convert a date in the spring-forward gap.
11942 Based on a problem report from Andreas Jaeger. */
11944 spring_forward_gap ()
11946 /* glibc (up to about 1998-10-07) failed this test. */
11949 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11950 instead of "TZ=America/Vancouver" in order to detect the bug even
11951 on systems that don't support the Olson extension, or don't have the
11952 full zoneinfo tables installed. */
11953 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11962 if (mktime (&tm) == (time_t)-1)
11971 if ((lt = localtime (&now)) && mktime (lt) != now)
11973 now = time_t_max - now;
11974 if ((lt = localtime (&now)) && mktime (lt) != now)
11981 /* Based on code from Ariel Faigon. */
11991 if (tm.tm_mon != 2 || tm.tm_mday != 31)
12001 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12002 now = mktime (&tm);
12003 if (now != (time_t) -1)
12005 struct tm *lt = localtime (&now);
12007 && lt->tm_year == tm.tm_year
12008 && lt->tm_mon == tm.tm_mon
12009 && lt->tm_mday == tm.tm_mday
12010 && lt->tm_hour == tm.tm_hour
12011 && lt->tm_min == tm.tm_min
12012 && lt->tm_sec == tm.tm_sec
12013 && lt->tm_yday == tm.tm_yday
12014 && lt->tm_wday == tm.tm_wday
12015 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12016 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12027 /* This test makes some buggy mktime implementations loop.
12028 Give up after 60 seconds; a mktime slower than that
12029 isn't worth using anyway. */
12032 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
12035 delta = time_t_max / 997; /* a suitable prime number */
12036 for (i = 0; i < N_STRINGS; i++)
12039 putenv (tz_strings[i]);
12041 for (t = 0; t <= time_t_max - delta; t += delta)
12043 mktime_test ((time_t) 60 * 60);
12044 mktime_test ((time_t) 60 * 60 * 24);
12046 for (j = 1; 0 < j; j *= 2)
12048 bigtime_test (j - 1);
12051 spring_forward_gap ();
12055 rm -f conftest
$ac_exeext
12056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12057 (eval $ac_link) 2>&5
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12062 (eval $ac_try) 2>&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); }; }; then
12066 ac_cv_func_working_mktime
=yes
12068 echo "$as_me: program exited with status $ac_status" >&5
12069 echo "$as_me: failed program was:" >&5
12070 sed 's/^/| /' conftest.
$ac_ext >&5
12072 ( exit $ac_status )
12073 ac_cv_func_working_mktime
=no
12075 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12078 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
12079 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
12080 if test $ac_cv_func_working_mktime = no
; then
12081 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
12084 if test "$ac_cv_func_working_mktime" = no
; then
12086 cat >>confdefs.h
<<\_ACEOF
12087 #define BROKEN_MKTIME 1
12092 ac_have_func
=no
# yes means we've found a way to get the load average.
12094 # Make sure getloadavg.c is where it belongs, at configure-time.
12095 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12096 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
12097 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
12098 { (exit 1); exit 1; }; }
12102 # Check for getloadavg, but be sure not to touch the cache variable.
12103 (echo "$as_me:$LINENO: checking for getloadavg" >&5
12104 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
12105 if test "${ac_cv_func_getloadavg+set}" = set; then
12106 echo $ECHO_N "(cached) $ECHO_C" >&6
12108 cat >conftest.
$ac_ext <<_ACEOF
12109 #line $LINENO "configure"
12112 cat confdefs.h
>>conftest.
$ac_ext
12113 cat >>conftest.
$ac_ext <<_ACEOF
12114 /* end confdefs.h. */
12115 /* System header to define __stub macros and hopefully few prototypes,
12116 which can conflict with char getloadavg (); below.
12117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12118 <limits.h> exists even on freestanding compilers. */
12120 # include <limits.h>
12122 # include <assert.h>
12124 /* Override any gcc2 internal prototype to avoid an error. */
12129 /* We use char because int might match the return type of a gcc2
12130 builtin and then its argument prototype would still apply. */
12131 char getloadavg ();
12132 /* The GNU C library defines this for functions which it implements
12133 to always fail with ENOSYS. Some functions are actually named
12134 something starting with __ and the normal name is an alias. */
12135 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
12138 char (*f) () = getloadavg;
12147 return f != getloadavg;
12152 rm -f conftest.
$ac_objext conftest
$ac_exeext
12153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12154 (eval $ac_link) 2>&5
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); } &&
12158 { ac_try
='test -s conftest$ac_exeext'
12159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12160 (eval $ac_try) 2>&5
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); }; }; then
12164 ac_cv_func_getloadavg
=yes
12166 echo "$as_me: failed program was:" >&5
12167 sed 's/^/| /' conftest.
$ac_ext >&5
12169 ac_cv_func_getloadavg
=no
12171 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12173 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
12174 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
12175 if test $ac_cv_func_getloadavg = yes; then
12180 ) && ac_have_func
=yes
12182 # On HPUX9, an unprivileged user can get load averages through this function.
12184 for ac_func
in pstat_getdynamic
12186 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12187 echo "$as_me:$LINENO: checking for $ac_func" >&5
12188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12189 if eval "test \"\${$as_ac_var+set}\" = set"; then
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12192 cat >conftest.
$ac_ext <<_ACEOF
12193 #line $LINENO "configure"
12196 cat confdefs.h
>>conftest.
$ac_ext
12197 cat >>conftest.
$ac_ext <<_ACEOF
12198 /* end confdefs.h. */
12199 /* System header to define __stub macros and hopefully few prototypes,
12200 which can conflict with char $ac_func (); below.
12201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12202 <limits.h> exists even on freestanding compilers. */
12204 # include <limits.h>
12206 # include <assert.h>
12208 /* Override any gcc2 internal prototype to avoid an error. */
12213 /* We use char because int might match the return type of a gcc2
12214 builtin and then its argument prototype would still apply. */
12216 /* The GNU C library defines this for functions which it implements
12217 to always fail with ENOSYS. Some functions are actually named
12218 something starting with __ and the normal name is an alias. */
12219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12222 char (*f) () = $ac_func;
12231 return f != $ac_func;
12236 rm -f conftest.
$ac_objext conftest
$ac_exeext
12237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12238 (eval $ac_link) 2>&5
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); } &&
12242 { ac_try
='test -s conftest$ac_exeext'
12243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244 (eval $ac_try) 2>&5
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); }; }; then
12248 eval "$as_ac_var=yes"
12250 echo "$as_me: failed program was:" >&5
12251 sed 's/^/| /' conftest.
$ac_ext >&5
12253 eval "$as_ac_var=no"
12255 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12258 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12259 if test `eval echo '${'$as_ac_var'}'` = yes; then
12260 cat >>confdefs.h
<<_ACEOF
12261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12268 # Solaris has libkstat which does not require root.
12270 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
12271 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
12272 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12275 ac_check_lib_save_LIBS
=$LIBS
12276 LIBS
="-lkstat $LIBS"
12277 cat >conftest.
$ac_ext <<_ACEOF
12278 #line $LINENO "configure"
12281 cat confdefs.h
>>conftest.
$ac_ext
12282 cat >>conftest.
$ac_ext <<_ACEOF
12283 /* end confdefs.h. */
12285 /* Override any gcc2 internal prototype to avoid an error. */
12289 /* We use char because int might match the return type of a gcc2
12290 builtin and then its argument prototype would still apply. */
12291 char kstat_open ();
12300 rm -f conftest.
$ac_objext conftest
$ac_exeext
12301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12302 (eval $ac_link) 2>&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); } &&
12306 { ac_try
='test -s conftest$ac_exeext'
12307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12308 (eval $ac_try) 2>&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); }; }; then
12312 ac_cv_lib_kstat_kstat_open
=yes
12314 echo "$as_me: failed program was:" >&5
12315 sed 's/^/| /' conftest.
$ac_ext >&5
12317 ac_cv_lib_kstat_kstat_open
=no
12319 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12320 LIBS
=$ac_check_lib_save_LIBS
12322 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
12323 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
12324 if test $ac_cv_lib_kstat_kstat_open = yes; then
12325 cat >>confdefs.h
<<_ACEOF
12326 #define HAVE_LIBKSTAT 1
12329 LIBS
="-lkstat $LIBS"
12333 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
12335 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12336 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12337 # to get the right answer into the cache.
12338 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12339 if test $ac_have_func = no
; then
12340 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
12341 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
12342 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
12343 echo $ECHO_N "(cached) $ECHO_C" >&6
12345 ac_check_lib_save_LIBS
=$LIBS
12347 cat >conftest.
$ac_ext <<_ACEOF
12348 #line $LINENO "configure"
12351 cat confdefs.h
>>conftest.
$ac_ext
12352 cat >>conftest.
$ac_ext <<_ACEOF
12353 /* end confdefs.h. */
12355 /* Override any gcc2 internal prototype to avoid an error. */
12359 /* We use char because int might match the return type of a gcc2
12360 builtin and then its argument prototype would still apply. */
12370 rm -f conftest.
$ac_objext conftest
$ac_exeext
12371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12372 (eval $ac_link) 2>&5
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); } &&
12376 { ac_try
='test -s conftest$ac_exeext'
12377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12378 (eval $ac_try) 2>&5
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); }; }; then
12382 ac_cv_lib_elf_elf_begin
=yes
12384 echo "$as_me: failed program was:" >&5
12385 sed 's/^/| /' conftest.
$ac_ext >&5
12387 ac_cv_lib_elf_elf_begin
=no
12389 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12390 LIBS
=$ac_check_lib_save_LIBS
12392 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
12393 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
12394 if test $ac_cv_lib_elf_elf_begin = yes; then
12399 if test $ac_have_func = no
; then
12400 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
12401 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
12402 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
12403 echo $ECHO_N "(cached) $ECHO_C" >&6
12405 ac_check_lib_save_LIBS
=$LIBS
12407 cat >conftest.
$ac_ext <<_ACEOF
12408 #line $LINENO "configure"
12411 cat confdefs.h
>>conftest.
$ac_ext
12412 cat >>conftest.
$ac_ext <<_ACEOF
12413 /* end confdefs.h. */
12415 /* Override any gcc2 internal prototype to avoid an error. */
12419 /* We use char because int might match the return type of a gcc2
12420 builtin and then its argument prototype would still apply. */
12430 rm -f conftest.
$ac_objext conftest
$ac_exeext
12431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12432 (eval $ac_link) 2>&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } &&
12436 { ac_try
='test -s conftest$ac_exeext'
12437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12438 (eval $ac_try) 2>&5
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); }; }; then
12442 ac_cv_lib_kvm_kvm_open
=yes
12444 echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.
$ac_ext >&5
12447 ac_cv_lib_kvm_kvm_open
=no
12449 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12450 LIBS
=$ac_check_lib_save_LIBS
12452 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
12453 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
12454 if test $ac_cv_lib_kvm_kvm_open = yes; then
12458 # Check for the 4.4BSD definition of getloadavg.
12459 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
12460 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
12461 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
12462 echo $ECHO_N "(cached) $ECHO_C" >&6
12464 ac_check_lib_save_LIBS
=$LIBS
12465 LIBS
="-lutil $LIBS"
12466 cat >conftest.
$ac_ext <<_ACEOF
12467 #line $LINENO "configure"
12470 cat confdefs.h
>>conftest.
$ac_ext
12471 cat >>conftest.
$ac_ext <<_ACEOF
12472 /* end confdefs.h. */
12474 /* Override any gcc2 internal prototype to avoid an error. */
12478 /* We use char because int might match the return type of a gcc2
12479 builtin and then its argument prototype would still apply. */
12480 char getloadavg ();
12489 rm -f conftest.
$ac_objext conftest
$ac_exeext
12490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12491 (eval $ac_link) 2>&5
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); } &&
12495 { ac_try
='test -s conftest$ac_exeext'
12496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12497 (eval $ac_try) 2>&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); }; }; then
12501 ac_cv_lib_util_getloadavg
=yes
12503 echo "$as_me: failed program was:" >&5
12504 sed 's/^/| /' conftest.
$ac_ext >&5
12506 ac_cv_lib_util_getloadavg
=no
12508 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12509 LIBS
=$ac_check_lib_save_LIBS
12511 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
12512 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
12513 if test $ac_cv_lib_util_getloadavg = yes; then
12514 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
12519 if test $ac_have_func = no
; then
12520 # There is a commonly available library for RS/6000 AIX.
12521 # Since it is not a standard part of AIX, it might be installed locally.
12522 ac_getloadavg_LIBS
=$LIBS
12523 LIBS
="-L/usr/local/lib $LIBS"
12524 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
12525 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
12526 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
12527 echo $ECHO_N "(cached) $ECHO_C" >&6
12529 ac_check_lib_save_LIBS
=$LIBS
12530 LIBS
="-lgetloadavg $LIBS"
12531 cat >conftest.
$ac_ext <<_ACEOF
12532 #line $LINENO "configure"
12535 cat confdefs.h
>>conftest.
$ac_ext
12536 cat >>conftest.
$ac_ext <<_ACEOF
12537 /* end confdefs.h. */
12539 /* Override any gcc2 internal prototype to avoid an error. */
12543 /* We use char because int might match the return type of a gcc2
12544 builtin and then its argument prototype would still apply. */
12545 char getloadavg ();
12554 rm -f conftest.
$ac_objext conftest
$ac_exeext
12555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12556 (eval $ac_link) 2>&5
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); } &&
12560 { ac_try
='test -s conftest$ac_exeext'
12561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12562 (eval $ac_try) 2>&5
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); }; }; then
12566 ac_cv_lib_getloadavg_getloadavg
=yes
12568 echo "$as_me: failed program was:" >&5
12569 sed 's/^/| /' conftest.
$ac_ext >&5
12571 ac_cv_lib_getloadavg_getloadavg
=no
12573 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12574 LIBS
=$ac_check_lib_save_LIBS
12576 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12577 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
12578 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
12579 LIBS
="-lgetloadavg $LIBS"
12581 LIBS
=$ac_getloadavg_LIBS
12586 # Make sure it is really in the library, if we think we found it,
12587 # otherwise set up the replacement function.
12589 for ac_func
in getloadavg
12591 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12592 echo "$as_me:$LINENO: checking for $ac_func" >&5
12593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12594 if eval "test \"\${$as_ac_var+set}\" = set"; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12597 cat >conftest.
$ac_ext <<_ACEOF
12598 #line $LINENO "configure"
12601 cat confdefs.h
>>conftest.
$ac_ext
12602 cat >>conftest.
$ac_ext <<_ACEOF
12603 /* end confdefs.h. */
12604 /* System header to define __stub macros and hopefully few prototypes,
12605 which can conflict with char $ac_func (); below.
12606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12607 <limits.h> exists even on freestanding compilers. */
12609 # include <limits.h>
12611 # include <assert.h>
12613 /* Override any gcc2 internal prototype to avoid an error. */
12618 /* We use char because int might match the return type of a gcc2
12619 builtin and then its argument prototype would still apply. */
12621 /* The GNU C library defines this for functions which it implements
12622 to always fail with ENOSYS. Some functions are actually named
12623 something starting with __ and the normal name is an alias. */
12624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12627 char (*f) () = $ac_func;
12636 return f != $ac_func;
12641 rm -f conftest.
$ac_objext conftest
$ac_exeext
12642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12643 (eval $ac_link) 2>&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); } &&
12647 { ac_try
='test -s conftest$ac_exeext'
12648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12649 (eval $ac_try) 2>&5
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); }; }; then
12653 eval "$as_ac_var=yes"
12655 echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.
$ac_ext >&5
12658 eval "$as_ac_var=no"
12660 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12663 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12664 if test `eval echo '${'$as_ac_var'}'` = yes; then
12665 cat >>confdefs.h
<<_ACEOF
12666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12670 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
12672 cat >>confdefs.h
<<\_ACEOF
12673 #define C_GETLOADAVG 1
12676 # Figure out what our getloadavg.c needs.
12678 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12679 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12680 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12681 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12682 echo $ECHO_N "(cached) $ECHO_C" >&6
12684 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12685 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12687 # Is the header compilable?
12688 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
12689 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
12690 cat >conftest.
$ac_ext <<_ACEOF
12691 #line $LINENO "configure"
12694 cat confdefs.h
>>conftest.
$ac_ext
12695 cat >>conftest.
$ac_ext <<_ACEOF
12696 /* end confdefs.h. */
12697 $ac_includes_default
12698 #include <sys/dg_sys_info.h>
12700 rm -f conftest.
$ac_objext
12701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12702 (eval $ac_compile) 2>&5
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); } &&
12706 { ac_try
='test -s conftest.$ac_objext'
12707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12708 (eval $ac_try) 2>&5
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); }; }; then
12712 ac_header_compiler
=yes
12714 echo "$as_me: failed program was:" >&5
12715 sed 's/^/| /' conftest.
$ac_ext >&5
12717 ac_header_compiler
=no
12719 rm -f conftest.
$ac_objext conftest.
$ac_ext
12720 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12721 echo "${ECHO_T}$ac_header_compiler" >&6
12723 # Is the header present?
12724 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
12725 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
12726 cat >conftest.
$ac_ext <<_ACEOF
12727 #line $LINENO "configure"
12730 cat confdefs.h
>>conftest.
$ac_ext
12731 cat >>conftest.
$ac_ext <<_ACEOF
12732 /* end confdefs.h. */
12733 #include <sys/dg_sys_info.h>
12735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12736 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12738 grep -v '^ *+' conftest.er1
>conftest.err
12740 cat conftest.err
>&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); } >/dev
/null
; then
12743 if test -s conftest.err
; then
12744 ac_cpp_err
=$ac_c_preproc_warn_flag
12751 if test -z "$ac_cpp_err"; then
12752 ac_header_preproc
=yes
12754 echo "$as_me: failed program was:" >&5
12755 sed 's/^/| /' conftest.
$ac_ext >&5
12757 ac_header_preproc
=no
12759 rm -f conftest.err conftest.
$ac_ext
12760 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12761 echo "${ECHO_T}$ac_header_preproc" >&6
12763 # So? What about this header?
12764 case $ac_header_compiler:$ac_header_preproc in
12766 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
12767 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12768 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12769 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12772 ## ------------------------------------ ##
12773 ## Report this to bug-autoconf@gnu.org. ##
12774 ## ------------------------------------ ##
12777 sed "s/^/$as_me: WARNING: /" >&2
12780 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
12781 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
12782 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
12783 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
12784 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12785 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12788 ## ------------------------------------ ##
12789 ## Report this to bug-autoconf@gnu.org. ##
12790 ## ------------------------------------ ##
12793 sed "s/^/$as_me: WARNING: /" >&2
12796 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12797 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12798 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12799 echo $ECHO_N "(cached) $ECHO_C" >&6
12801 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
12803 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12804 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12807 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
12810 cat >>confdefs.h
<<\_ACEOF
12815 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
12816 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
12817 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
12818 echo $ECHO_N "(cached) $ECHO_C" >&6
12820 ac_check_lib_save_LIBS
=$LIBS
12822 cat >conftest.
$ac_ext <<_ACEOF
12823 #line $LINENO "configure"
12826 cat confdefs.h
>>conftest.
$ac_ext
12827 cat >>conftest.
$ac_ext <<_ACEOF
12828 /* end 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 dg_sys_info ();
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_dgc_dg_sys_info
=yes
12859 echo "$as_me: failed program was:" >&5
12860 sed 's/^/| /' conftest.
$ac_ext >&5
12862 ac_cv_lib_dgc_dg_sys_info
=no
12864 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12865 LIBS
=$ac_check_lib_save_LIBS
12867 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12868 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
12869 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
12870 cat >>confdefs.h
<<_ACEOF
12871 #define HAVE_LIBDGC 1
12882 if test "${ac_cv_header_locale_h+set}" = set; then
12883 echo "$as_me:$LINENO: checking for locale.h" >&5
12884 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12885 if test "${ac_cv_header_locale_h+set}" = set; then
12886 echo $ECHO_N "(cached) $ECHO_C" >&6
12888 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12889 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12891 # Is the header compilable?
12892 echo "$as_me:$LINENO: checking locale.h usability" >&5
12893 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
12894 cat >conftest.
$ac_ext <<_ACEOF
12895 #line $LINENO "configure"
12898 cat confdefs.h
>>conftest.
$ac_ext
12899 cat >>conftest.
$ac_ext <<_ACEOF
12900 /* end confdefs.h. */
12901 $ac_includes_default
12902 #include <locale.h>
12904 rm -f conftest.
$ac_objext
12905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12906 (eval $ac_compile) 2>&5
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); } &&
12910 { ac_try
='test -s conftest.$ac_objext'
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_header_compiler
=yes
12918 echo "$as_me: failed program was:" >&5
12919 sed 's/^/| /' conftest.
$ac_ext >&5
12921 ac_header_compiler
=no
12923 rm -f conftest.
$ac_objext conftest.
$ac_ext
12924 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12925 echo "${ECHO_T}$ac_header_compiler" >&6
12927 # Is the header present?
12928 echo "$as_me:$LINENO: checking locale.h presence" >&5
12929 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
12930 cat >conftest.
$ac_ext <<_ACEOF
12931 #line $LINENO "configure"
12934 cat confdefs.h
>>conftest.
$ac_ext
12935 cat >>conftest.
$ac_ext <<_ACEOF
12936 /* end confdefs.h. */
12937 #include <locale.h>
12939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12940 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12942 grep -v '^ *+' conftest.er1
>conftest.err
12944 cat conftest.err
>&5
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); } >/dev
/null
; then
12947 if test -s conftest.err
; then
12948 ac_cpp_err
=$ac_c_preproc_warn_flag
12955 if test -z "$ac_cpp_err"; then
12956 ac_header_preproc
=yes
12958 echo "$as_me: failed program was:" >&5
12959 sed 's/^/| /' conftest.
$ac_ext >&5
12961 ac_header_preproc
=no
12963 rm -f conftest.err conftest.
$ac_ext
12964 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12965 echo "${ECHO_T}$ac_header_preproc" >&6
12967 # So? What about this header?
12968 case $ac_header_compiler:$ac_header_preproc in
12970 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
12971 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12972 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12973 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12976 ## ------------------------------------ ##
12977 ## Report this to bug-autoconf@gnu.org. ##
12978 ## ------------------------------------ ##
12981 sed "s/^/$as_me: WARNING: /" >&2
12984 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
12985 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
12986 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
12987 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
12988 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12989 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12992 ## ------------------------------------ ##
12993 ## Report this to bug-autoconf@gnu.org. ##
12994 ## ------------------------------------ ##
12997 sed "s/^/$as_me: WARNING: /" >&2
13000 echo "$as_me:$LINENO: checking for locale.h" >&5
13001 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
13002 if test "${ac_cv_header_locale_h+set}" = set; then
13003 echo $ECHO_N "(cached) $ECHO_C" >&6
13005 ac_cv_header_locale_h
=$ac_header_preproc
13007 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
13008 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
13014 for ac_func
in setlocale
13016 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13017 echo "$as_me:$LINENO: checking for $ac_func" >&5
13018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13019 if eval "test \"\${$as_ac_var+set}\" = set"; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13022 cat >conftest.
$ac_ext <<_ACEOF
13023 #line $LINENO "configure"
13026 cat confdefs.h
>>conftest.
$ac_ext
13027 cat >>conftest.
$ac_ext <<_ACEOF
13028 /* end confdefs.h. */
13029 /* System header to define __stub macros and hopefully few prototypes,
13030 which can conflict with char $ac_func (); below.
13031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13032 <limits.h> exists even on freestanding compilers. */
13034 # include <limits.h>
13036 # include <assert.h>
13038 /* Override any gcc2 internal prototype to avoid an error. */
13043 /* We use char because int might match the return type of a gcc2
13044 builtin and then its argument prototype would still apply. */
13046 /* The GNU C library defines this for functions which it implements
13047 to always fail with ENOSYS. Some functions are actually named
13048 something starting with __ and the normal name is an alias. */
13049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13052 char (*f) () = $ac_func;
13061 return f != $ac_func;
13066 rm -f conftest.
$ac_objext conftest
$ac_exeext
13067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13068 (eval $ac_link) 2>&5
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); } &&
13072 { ac_try
='test -s conftest$ac_exeext'
13073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13074 (eval $ac_try) 2>&5
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); }; }; then
13078 eval "$as_ac_var=yes"
13080 echo "$as_me: failed program was:" >&5
13081 sed 's/^/| /' conftest.
$ac_ext >&5
13083 eval "$as_ac_var=no"
13085 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13088 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13089 if test `eval echo '${'$as_ac_var'}'` = yes; then
13090 cat >>confdefs.h
<<_ACEOF
13091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13098 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13099 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13100 # Irix 4.0.5F has the header but not the library.
13101 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
13104 cat >>confdefs.h
<<\_ACEOF
13110 if test $ac_have_func = no
; then
13111 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13112 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13113 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13114 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13115 echo $ECHO_N "(cached) $ECHO_C" >&6
13117 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13118 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13120 # Is the header compilable?
13121 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
13122 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
13123 cat >conftest.
$ac_ext <<_ACEOF
13124 #line $LINENO "configure"
13127 cat confdefs.h
>>conftest.
$ac_ext
13128 cat >>conftest.
$ac_ext <<_ACEOF
13129 /* end confdefs.h. */
13130 $ac_includes_default
13131 #include <inq_stats/cpustats.h>
13133 rm -f conftest.
$ac_objext
13134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13135 (eval $ac_compile) 2>&5
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); } &&
13139 { ac_try
='test -s conftest.$ac_objext'
13140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13141 (eval $ac_try) 2>&5
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); }; }; then
13145 ac_header_compiler
=yes
13147 echo "$as_me: failed program was:" >&5
13148 sed 's/^/| /' conftest.
$ac_ext >&5
13150 ac_header_compiler
=no
13152 rm -f conftest.
$ac_objext conftest.
$ac_ext
13153 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13154 echo "${ECHO_T}$ac_header_compiler" >&6
13156 # Is the header present?
13157 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
13158 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
13159 cat >conftest.
$ac_ext <<_ACEOF
13160 #line $LINENO "configure"
13163 cat confdefs.h
>>conftest.
$ac_ext
13164 cat >>conftest.
$ac_ext <<_ACEOF
13165 /* end confdefs.h. */
13166 #include <inq_stats/cpustats.h>
13168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13169 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13171 grep -v '^ *+' conftest.er1
>conftest.err
13173 cat conftest.err
>&5
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); } >/dev
/null
; then
13176 if test -s conftest.err
; then
13177 ac_cpp_err
=$ac_c_preproc_warn_flag
13184 if test -z "$ac_cpp_err"; then
13185 ac_header_preproc
=yes
13187 echo "$as_me: failed program was:" >&5
13188 sed 's/^/| /' conftest.
$ac_ext >&5
13190 ac_header_preproc
=no
13192 rm -f conftest.err conftest.
$ac_ext
13193 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13194 echo "${ECHO_T}$ac_header_preproc" >&6
13196 # So? What about this header?
13197 case $ac_header_compiler:$ac_header_preproc in
13199 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13200 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13201 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13202 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13205 ## ------------------------------------ ##
13206 ## Report this to bug-autoconf@gnu.org. ##
13207 ## ------------------------------------ ##
13210 sed "s/^/$as_me: WARNING: /" >&2
13213 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
13214 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
13215 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
13216 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
13217 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13218 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13221 ## ------------------------------------ ##
13222 ## Report this to bug-autoconf@gnu.org. ##
13223 ## ------------------------------------ ##
13226 sed "s/^/$as_me: WARNING: /" >&2
13229 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13230 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13231 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13232 echo $ECHO_N "(cached) $ECHO_C" >&6
13234 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
13236 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13237 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13240 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
13243 cat >>confdefs.h
<<\_ACEOF
13248 cat >>confdefs.h
<<\_ACEOF
13257 if test $ac_have_func = no
; then
13258 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13259 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13260 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13261 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13262 echo $ECHO_N "(cached) $ECHO_C" >&6
13264 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13265 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13267 # Is the header compilable?
13268 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
13269 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
13270 cat >conftest.
$ac_ext <<_ACEOF
13271 #line $LINENO "configure"
13274 cat confdefs.h
>>conftest.
$ac_ext
13275 cat >>conftest.
$ac_ext <<_ACEOF
13276 /* end confdefs.h. */
13277 $ac_includes_default
13278 #include <sys/cpustats.h>
13280 rm -f conftest.
$ac_objext
13281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13282 (eval $ac_compile) 2>&5
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); } &&
13286 { ac_try
='test -s conftest.$ac_objext'
13287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13288 (eval $ac_try) 2>&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); }; }; then
13292 ac_header_compiler
=yes
13294 echo "$as_me: failed program was:" >&5
13295 sed 's/^/| /' conftest.
$ac_ext >&5
13297 ac_header_compiler
=no
13299 rm -f conftest.
$ac_objext conftest.
$ac_ext
13300 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13301 echo "${ECHO_T}$ac_header_compiler" >&6
13303 # Is the header present?
13304 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
13305 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
13306 cat >conftest.
$ac_ext <<_ACEOF
13307 #line $LINENO "configure"
13310 cat confdefs.h
>>conftest.
$ac_ext
13311 cat >>conftest.
$ac_ext <<_ACEOF
13312 /* end confdefs.h. */
13313 #include <sys/cpustats.h>
13315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13316 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13318 grep -v '^ *+' conftest.er1
>conftest.err
13320 cat conftest.err
>&5
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); } >/dev
/null
; then
13323 if test -s conftest.err
; then
13324 ac_cpp_err
=$ac_c_preproc_warn_flag
13331 if test -z "$ac_cpp_err"; then
13332 ac_header_preproc
=yes
13334 echo "$as_me: failed program was:" >&5
13335 sed 's/^/| /' conftest.
$ac_ext >&5
13337 ac_header_preproc
=no
13339 rm -f conftest.err conftest.
$ac_ext
13340 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13341 echo "${ECHO_T}$ac_header_preproc" >&6
13343 # So? What about this header?
13344 case $ac_header_compiler:$ac_header_preproc in
13346 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13347 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13348 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13349 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13352 ## ------------------------------------ ##
13353 ## Report this to bug-autoconf@gnu.org. ##
13354 ## ------------------------------------ ##
13357 sed "s/^/$as_me: WARNING: /" >&2
13360 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
13361 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
13362 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
13363 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
13364 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13365 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13368 ## ------------------------------------ ##
13369 ## Report this to bug-autoconf@gnu.org. ##
13370 ## ------------------------------------ ##
13373 sed "s/^/$as_me: WARNING: /" >&2
13376 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13377 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13378 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13379 echo $ECHO_N "(cached) $ECHO_C" >&6
13381 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
13383 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13384 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13387 if test $ac_cv_header_sys_cpustats_h = yes; then
13388 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
13397 if test $ac_have_func = no
; then
13399 for ac_header
in mach
/mach.h
13401 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13403 echo "$as_me:$LINENO: checking for $ac_header" >&5
13404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13406 echo $ECHO_N "(cached) $ECHO_C" >&6
13408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13411 # Is the header compilable?
13412 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13413 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13414 cat >conftest.
$ac_ext <<_ACEOF
13415 #line $LINENO "configure"
13418 cat confdefs.h
>>conftest.
$ac_ext
13419 cat >>conftest.
$ac_ext <<_ACEOF
13420 /* end confdefs.h. */
13421 $ac_includes_default
13422 #include <$ac_header>
13424 rm -f conftest.
$ac_objext
13425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13426 (eval $ac_compile) 2>&5
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); } &&
13430 { ac_try
='test -s conftest.$ac_objext'
13431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13432 (eval $ac_try) 2>&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; }; then
13436 ac_header_compiler
=yes
13438 echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.
$ac_ext >&5
13441 ac_header_compiler
=no
13443 rm -f conftest.
$ac_objext conftest.
$ac_ext
13444 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13445 echo "${ECHO_T}$ac_header_compiler" >&6
13447 # Is the header present?
13448 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13450 cat >conftest.
$ac_ext <<_ACEOF
13451 #line $LINENO "configure"
13454 cat confdefs.h
>>conftest.
$ac_ext
13455 cat >>conftest.
$ac_ext <<_ACEOF
13456 /* end confdefs.h. */
13457 #include <$ac_header>
13459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13460 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13462 grep -v '^ *+' conftest.er1
>conftest.err
13464 cat conftest.err
>&5
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); } >/dev
/null
; then
13467 if test -s conftest.err
; then
13468 ac_cpp_err
=$ac_c_preproc_warn_flag
13475 if test -z "$ac_cpp_err"; then
13476 ac_header_preproc
=yes
13478 echo "$as_me: failed program was:" >&5
13479 sed 's/^/| /' conftest.
$ac_ext >&5
13481 ac_header_preproc
=no
13483 rm -f conftest.err conftest.
$ac_ext
13484 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13485 echo "${ECHO_T}$ac_header_preproc" >&6
13487 # So? What about this header?
13488 case $ac_header_compiler:$ac_header_preproc in
13490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13496 ## ------------------------------------ ##
13497 ## Report this to bug-autoconf@gnu.org. ##
13498 ## ------------------------------------ ##
13501 sed "s/^/$as_me: WARNING: /" >&2
13504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13507 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13512 ## ------------------------------------ ##
13513 ## Report this to bug-autoconf@gnu.org. ##
13514 ## ------------------------------------ ##
13517 sed "s/^/$as_me: WARNING: /" >&2
13520 echo "$as_me:$LINENO: checking for $ac_header" >&5
13521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13523 echo $ECHO_N "(cached) $ECHO_C" >&6
13525 eval "$as_ac_Header=$ac_header_preproc"
13527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13532 cat >>confdefs.h
<<_ACEOF
13533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13543 for ac_header
in nlist.h
13545 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13547 echo "$as_me:$LINENO: checking for $ac_header" >&5
13548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13550 echo $ECHO_N "(cached) $ECHO_C" >&6
13552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13555 # Is the header compilable?
13556 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13557 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13558 cat >conftest.
$ac_ext <<_ACEOF
13559 #line $LINENO "configure"
13562 cat confdefs.h
>>conftest.
$ac_ext
13563 cat >>conftest.
$ac_ext <<_ACEOF
13564 /* end confdefs.h. */
13565 $ac_includes_default
13566 #include <$ac_header>
13568 rm -f conftest.
$ac_objext
13569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13570 (eval $ac_compile) 2>&5
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); } &&
13574 { ac_try
='test -s conftest.$ac_objext'
13575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13576 (eval $ac_try) 2>&5
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); }; }; then
13580 ac_header_compiler
=yes
13582 echo "$as_me: failed program was:" >&5
13583 sed 's/^/| /' conftest.
$ac_ext >&5
13585 ac_header_compiler
=no
13587 rm -f conftest.
$ac_objext conftest.
$ac_ext
13588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13589 echo "${ECHO_T}$ac_header_compiler" >&6
13591 # Is the header present?
13592 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13594 cat >conftest.
$ac_ext <<_ACEOF
13595 #line $LINENO "configure"
13598 cat confdefs.h
>>conftest.
$ac_ext
13599 cat >>conftest.
$ac_ext <<_ACEOF
13600 /* end confdefs.h. */
13601 #include <$ac_header>
13603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13604 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13606 grep -v '^ *+' conftest.er1
>conftest.err
13608 cat conftest.err
>&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); } >/dev
/null
; then
13611 if test -s conftest.err
; then
13612 ac_cpp_err
=$ac_c_preproc_warn_flag
13619 if test -z "$ac_cpp_err"; then
13620 ac_header_preproc
=yes
13622 echo "$as_me: failed program was:" >&5
13623 sed 's/^/| /' conftest.
$ac_ext >&5
13625 ac_header_preproc
=no
13627 rm -f conftest.err conftest.
$ac_ext
13628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13629 echo "${ECHO_T}$ac_header_preproc" >&6
13631 # So? What about this header?
13632 case $ac_header_compiler:$ac_header_preproc in
13634 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13637 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13640 ## ------------------------------------ ##
13641 ## Report this to bug-autoconf@gnu.org. ##
13642 ## ------------------------------------ ##
13645 sed "s/^/$as_me: WARNING: /" >&2
13648 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13649 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13650 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13651 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13656 ## ------------------------------------ ##
13657 ## Report this to bug-autoconf@gnu.org. ##
13658 ## ------------------------------------ ##
13661 sed "s/^/$as_me: WARNING: /" >&2
13664 echo "$as_me:$LINENO: checking for $ac_header" >&5
13665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13667 echo $ECHO_N "(cached) $ECHO_C" >&6
13669 eval "$as_ac_Header=$ac_header_preproc"
13671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13672 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13675 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13676 cat >>confdefs.h
<<_ACEOF
13677 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13679 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
13680 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
13681 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
13682 echo $ECHO_N "(cached) $ECHO_C" >&6
13684 cat >conftest.
$ac_ext <<_ACEOF
13685 #line $LINENO "configure"
13688 cat confdefs.h
>>conftest.
$ac_ext
13689 cat >>conftest.
$ac_ext <<_ACEOF
13690 /* end confdefs.h. */
13696 static struct nlist ac_aggr;
13697 if (ac_aggr.n_un.n_name)
13703 rm -f conftest.
$ac_objext
13704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13705 (eval $ac_compile) 2>&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } &&
13709 { ac_try
='test -s conftest.$ac_objext'
13710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13711 (eval $ac_try) 2>&5
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); }; }; then
13715 ac_cv_member_struct_nlist_n_un_n_name
=yes
13717 echo "$as_me: failed program was:" >&5
13718 sed 's/^/| /' conftest.
$ac_ext >&5
13720 cat >conftest.
$ac_ext <<_ACEOF
13721 #line $LINENO "configure"
13724 cat confdefs.h
>>conftest.
$ac_ext
13725 cat >>conftest.
$ac_ext <<_ACEOF
13726 /* end confdefs.h. */
13732 static struct nlist ac_aggr;
13733 if (sizeof ac_aggr.n_un.n_name)
13739 rm -f conftest.
$ac_objext
13740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13741 (eval $ac_compile) 2>&5
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); } &&
13745 { ac_try
='test -s conftest.$ac_objext'
13746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13747 (eval $ac_try) 2>&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); }; }; then
13751 ac_cv_member_struct_nlist_n_un_n_name
=yes
13753 echo "$as_me: failed program was:" >&5
13754 sed 's/^/| /' conftest.
$ac_ext >&5
13756 ac_cv_member_struct_nlist_n_un_n_name
=no
13758 rm -f conftest.
$ac_objext conftest.
$ac_ext
13760 rm -f conftest.
$ac_objext conftest.
$ac_ext
13762 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
13763 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
13764 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
13766 cat >>confdefs.h
<<_ACEOF
13767 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13771 cat >>confdefs.h
<<\_ACEOF
13772 #define NLIST_NAME_UNION 1
13786 # Some definitions of getloadavg require that the program be installed setgid.
13787 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
13788 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
13789 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
13790 echo $ECHO_N "(cached) $ECHO_C" >&6
13792 cat >conftest.
$ac_ext <<_ACEOF
13793 #line $LINENO "configure"
13796 cat confdefs.h
>>conftest.
$ac_ext
13797 cat >>conftest.
$ac_ext <<_ACEOF
13798 /* end confdefs.h. */
13799 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13800 #ifdef LDAV_PRIVILEGED
13801 Yowza Am I SETGID yet
13804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13805 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
13806 ac_cv_func_getloadavg_setgid
=yes
13808 ac_cv_func_getloadavg_setgid
=no
13813 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
13814 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
13815 if test $ac_cv_func_getloadavg_setgid = yes; then
13818 cat >>confdefs.h
<<\_ACEOF
13819 #define GETLOADAVG_PRIVILEGED 1
13826 if test $ac_cv_func_getloadavg_setgid = yes; then
13827 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
13828 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
13829 if test "${ac_cv_group_kmem+set}" = set; then
13830 echo $ECHO_N "(cached) $ECHO_C" >&6
13832 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13833 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
13834 # If we got an error (system does not support symlinks), try without -L.
13835 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
13836 ac_cv_group_kmem
=`echo $ac_ls_output \
13837 | sed -ne 's/[ ][ ]*/ /g;
13838 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13842 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
13843 echo "${ECHO_T}$ac_cv_group_kmem" >&6
13844 KMEM_GROUP
=$ac_cv_group_kmem
13846 if test "x$ac_save_LIBS" = x
; then
13847 GETLOADAVG_LIBS
=$LIBS
13849 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
13855 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13856 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13857 if test "${ac_cv_sys_largefile_source+set}" = set; then
13858 echo $ECHO_N "(cached) $ECHO_C" >&6
13861 ac_cv_sys_largefile_source
=no
13862 cat >conftest.
$ac_ext <<_ACEOF
13863 #line $LINENO "configure"
13866 cat confdefs.h
>>conftest.
$ac_ext
13867 cat >>conftest.
$ac_ext <<_ACEOF
13868 /* end confdefs.h. */
13878 rm -f conftest.
$ac_objext
13879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13880 (eval $ac_compile) 2>&5
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); } &&
13884 { ac_try
='test -s conftest.$ac_objext'
13885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13886 (eval $ac_try) 2>&5
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); }; }; then
13892 echo "$as_me: failed program was:" >&5
13893 sed 's/^/| /' conftest.
$ac_ext >&5
13896 rm -f conftest.
$ac_objext conftest.
$ac_ext
13897 cat >conftest.
$ac_ext <<_ACEOF
13898 #line $LINENO "configure"
13901 cat confdefs.h
>>conftest.
$ac_ext
13902 cat >>conftest.
$ac_ext <<_ACEOF
13903 /* end confdefs.h. */
13904 #define _LARGEFILE_SOURCE 1
13914 rm -f conftest.
$ac_objext
13915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13916 (eval $ac_compile) 2>&5
13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); } &&
13920 { ac_try
='test -s conftest.$ac_objext'
13921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13922 (eval $ac_try) 2>&5
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); }; }; then
13926 ac_cv_sys_largefile_source
=1; break
13928 echo "$as_me: failed program was:" >&5
13929 sed 's/^/| /' conftest.
$ac_ext >&5
13932 rm -f conftest.
$ac_objext conftest.
$ac_ext
13936 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13937 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13938 if test "$ac_cv_sys_largefile_source" != no
; then
13940 cat >>confdefs.h
<<_ACEOF
13941 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13947 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13948 # in glibc 2.1.3, but that breaks too many other things.
13949 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13950 echo "$as_me:$LINENO: checking for fseeko" >&5
13951 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13952 if test "${ac_cv_func_fseeko+set}" = set; then
13953 echo $ECHO_N "(cached) $ECHO_C" >&6
13955 cat >conftest.
$ac_ext <<_ACEOF
13956 #line $LINENO "configure"
13959 cat confdefs.h
>>conftest.
$ac_ext
13960 cat >>conftest.
$ac_ext <<_ACEOF
13961 /* end confdefs.h. */
13966 return fseeko && fseeko (stdin, 0, 0);
13971 rm -f conftest.
$ac_objext conftest
$ac_exeext
13972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13973 (eval $ac_link) 2>&5
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); } &&
13977 { ac_try
='test -s conftest$ac_exeext'
13978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13979 (eval $ac_try) 2>&5
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); }; }; then
13983 ac_cv_func_fseeko
=yes
13985 echo "$as_me: failed program was:" >&5
13986 sed 's/^/| /' conftest.
$ac_ext >&5
13988 ac_cv_func_fseeko
=no
13990 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13992 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13993 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13994 if test $ac_cv_func_fseeko = yes; then
13996 cat >>confdefs.h
<<\_ACEOF
13997 #define HAVE_FSEEKO 1
14003 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
14004 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
14005 if test "${ac_cv_func_getpgrp_void+set}" = set; then
14006 echo $ECHO_N "(cached) $ECHO_C" >&6
14008 # Use it with a single arg.
14009 cat >conftest.
$ac_ext <<_ACEOF
14010 #line $LINENO "configure"
14013 cat confdefs.h
>>conftest.
$ac_ext
14014 cat >>conftest.
$ac_ext <<_ACEOF
14015 /* end confdefs.h. */
14016 $ac_includes_default
14025 rm -f conftest.
$ac_objext
14026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14027 (eval $ac_compile) 2>&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); } &&
14031 { ac_try
='test -s conftest.$ac_objext'
14032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033 (eval $ac_try) 2>&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; }; then
14037 ac_cv_func_getpgrp_void
=no
14039 echo "$as_me: failed program was:" >&5
14040 sed 's/^/| /' conftest.
$ac_ext >&5
14042 ac_cv_func_getpgrp_void
=yes
14044 rm -f conftest.
$ac_objext conftest.
$ac_ext
14047 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
14048 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
14049 if test $ac_cv_func_getpgrp_void = yes; then
14051 cat >>confdefs.h
<<\_ACEOF
14052 #define GETPGRP_VOID 1
14059 for ac_func
in strftime
14061 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14062 echo "$as_me:$LINENO: checking for $ac_func" >&5
14063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14064 if eval "test \"\${$as_ac_var+set}\" = set"; then
14065 echo $ECHO_N "(cached) $ECHO_C" >&6
14067 cat >conftest.
$ac_ext <<_ACEOF
14068 #line $LINENO "configure"
14071 cat confdefs.h
>>conftest.
$ac_ext
14072 cat >>conftest.
$ac_ext <<_ACEOF
14073 /* end confdefs.h. */
14074 /* System header to define __stub macros and hopefully few prototypes,
14075 which can conflict with char $ac_func (); below.
14076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14077 <limits.h> exists even on freestanding compilers. */
14079 # include <limits.h>
14081 # include <assert.h>
14083 /* Override any gcc2 internal prototype to avoid an error. */
14088 /* We use char because int might match the return type of a gcc2
14089 builtin and then its argument prototype would still apply. */
14091 /* The GNU C library defines this for functions which it implements
14092 to always fail with ENOSYS. Some functions are actually named
14093 something starting with __ and the normal name is an alias. */
14094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14097 char (*f) () = $ac_func;
14106 return f != $ac_func;
14111 rm -f conftest.
$ac_objext conftest
$ac_exeext
14112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14113 (eval $ac_link) 2>&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } &&
14117 { ac_try
='test -s conftest$ac_exeext'
14118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14119 (eval $ac_try) 2>&5
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }; }; then
14123 eval "$as_ac_var=yes"
14125 echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.
$ac_ext >&5
14128 eval "$as_ac_var=no"
14130 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14133 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14134 if test `eval echo '${'$as_ac_var'}'` = yes; then
14135 cat >>confdefs.h
<<_ACEOF
14136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14140 # strftime is in -lintl on SCO UNIX.
14141 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14142 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
14143 if test "${ac_cv_lib_intl_strftime+set}" = set; then
14144 echo $ECHO_N "(cached) $ECHO_C" >&6
14146 ac_check_lib_save_LIBS
=$LIBS
14147 LIBS
="-lintl $LIBS"
14148 cat >conftest.
$ac_ext <<_ACEOF
14149 #line $LINENO "configure"
14152 cat confdefs.h
>>conftest.
$ac_ext
14153 cat >>conftest.
$ac_ext <<_ACEOF
14154 /* end confdefs.h. */
14156 /* Override any gcc2 internal prototype to avoid an error. */
14160 /* We use char because int might match the return type of a gcc2
14161 builtin and then its argument prototype would still apply. */
14171 rm -f conftest.
$ac_objext conftest
$ac_exeext
14172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14173 (eval $ac_link) 2>&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } &&
14177 { ac_try
='test -s conftest$ac_exeext'
14178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14179 (eval $ac_try) 2>&5
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); }; }; then
14183 ac_cv_lib_intl_strftime
=yes
14185 echo "$as_me: failed program was:" >&5
14186 sed 's/^/| /' conftest.
$ac_ext >&5
14188 ac_cv_lib_intl_strftime
=no
14190 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14191 LIBS
=$ac_check_lib_save_LIBS
14193 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14194 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
14195 if test $ac_cv_lib_intl_strftime = yes; then
14196 cat >>confdefs.h
<<\_ACEOF
14197 #define HAVE_STRFTIME 1
14200 LIBS
="-lintl $LIBS"
14209 for ac_func
in grantpt
14211 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14212 echo "$as_me:$LINENO: checking for $ac_func" >&5
14213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14214 if eval "test \"\${$as_ac_var+set}\" = set"; then
14215 echo $ECHO_N "(cached) $ECHO_C" >&6
14217 cat >conftest.
$ac_ext <<_ACEOF
14218 #line $LINENO "configure"
14221 cat confdefs.h
>>conftest.
$ac_ext
14222 cat >>conftest.
$ac_ext <<_ACEOF
14223 /* end confdefs.h. */
14224 /* System header to define __stub macros and hopefully few prototypes,
14225 which can conflict with char $ac_func (); below.
14226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14227 <limits.h> exists even on freestanding compilers. */
14229 # include <limits.h>
14231 # include <assert.h>
14233 /* Override any gcc2 internal prototype to avoid an error. */
14238 /* We use char because int might match the return type of a gcc2
14239 builtin and then its argument prototype would still apply. */
14241 /* The GNU C library defines this for functions which it implements
14242 to always fail with ENOSYS. Some functions are actually named
14243 something starting with __ and the normal name is an alias. */
14244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14247 char (*f) () = $ac_func;
14256 return f != $ac_func;
14261 rm -f conftest.
$ac_objext conftest
$ac_exeext
14262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14263 (eval $ac_link) 2>&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); } &&
14267 { ac_try
='test -s 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 eval "$as_ac_var=yes"
14275 echo "$as_me: failed program was:" >&5
14276 sed 's/^/| /' conftest.
$ac_ext >&5
14278 eval "$as_ac_var=no"
14280 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14283 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14284 if test `eval echo '${'$as_ac_var'}'` = yes; then
14285 cat >>confdefs.h
<<_ACEOF
14286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14293 # PTY-related GNU extensions.
14295 for ac_func
in getpt
14297 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14298 echo "$as_me:$LINENO: checking for $ac_func" >&5
14299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14300 if eval "test \"\${$as_ac_var+set}\" = set"; then
14301 echo $ECHO_N "(cached) $ECHO_C" >&6
14303 cat >conftest.
$ac_ext <<_ACEOF
14304 #line $LINENO "configure"
14307 cat confdefs.h
>>conftest.
$ac_ext
14308 cat >>conftest.
$ac_ext <<_ACEOF
14309 /* end confdefs.h. */
14310 /* System header to define __stub macros and hopefully few prototypes,
14311 which can conflict with char $ac_func (); below.
14312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14313 <limits.h> exists even on freestanding compilers. */
14315 # include <limits.h>
14317 # include <assert.h>
14319 /* Override any gcc2 internal prototype to avoid an error. */
14324 /* We use char because int might match the return type of a gcc2
14325 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)
14333 char (*f) () = $ac_func;
14342 return f != $ac_func;
14347 rm -f conftest.
$ac_objext conftest
$ac_exeext
14348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14349 (eval $ac_link) 2>&5
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); } &&
14353 { ac_try
='test -s conftest$ac_exeext'
14354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14355 (eval $ac_try) 2>&5
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); }; }; then
14359 eval "$as_ac_var=yes"
14361 echo "$as_me: failed program was:" >&5
14362 sed 's/^/| /' conftest.
$ac_ext >&5
14364 eval "$as_ac_var=no"
14366 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14369 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14370 if test `eval echo '${'$as_ac_var'}'` = yes; then
14371 cat >>confdefs.h
<<_ACEOF
14372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14379 # Check this now, so that we will NOT find the above functions in ncurses.
14380 # That is because we have not set up to link ncurses in lib-src.
14381 # It's better to believe a function is not available
14382 # than to expect to find it in ncurses.
14384 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
14385 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
14386 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
14387 echo $ECHO_N "(cached) $ECHO_C" >&6
14389 ac_check_lib_save_LIBS
=$LIBS
14390 LIBS
="-lncurses $LIBS"
14391 cat >conftest.
$ac_ext <<_ACEOF
14392 #line $LINENO "configure"
14395 cat confdefs.h
>>conftest.
$ac_ext
14396 cat >>conftest.
$ac_ext <<_ACEOF
14397 /* end confdefs.h. */
14399 /* Override any gcc2 internal prototype to avoid an error. */
14403 /* We use char because int might match the return type of a gcc2
14404 builtin and then its argument prototype would still apply. */
14414 rm -f conftest.
$ac_objext conftest
$ac_exeext
14415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14416 (eval $ac_link) 2>&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } &&
14420 { ac_try
='test -s conftest$ac_exeext'
14421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422 (eval $ac_try) 2>&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); }; }; then
14426 ac_cv_lib_ncurses_tparm
=yes
14428 echo "$as_me: failed program was:" >&5
14429 sed 's/^/| /' conftest.
$ac_ext >&5
14431 ac_cv_lib_ncurses_tparm
=no
14433 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14434 LIBS
=$ac_check_lib_save_LIBS
14436 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
14437 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
14438 if test $ac_cv_lib_ncurses_tparm = yes; then
14439 cat >>confdefs.h
<<_ACEOF
14440 #define HAVE_LIBNCURSES 1
14443 LIBS
="-lncurses $LIBS"
14448 # Do we need the Hesiod library to provide the support routines?
14449 if test "$with_hesiod" = yes ; then
14450 # Don't set $LIBS here -- see comments above.
14452 echo "$as_me:$LINENO: checking for res_send" >&5
14453 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
14454 if test "${ac_cv_func_res_send+set}" = set; then
14455 echo $ECHO_N "(cached) $ECHO_C" >&6
14457 cat >conftest.
$ac_ext <<_ACEOF
14458 #line $LINENO "configure"
14461 cat confdefs.h
>>conftest.
$ac_ext
14462 cat >>conftest.
$ac_ext <<_ACEOF
14463 /* end confdefs.h. */
14464 /* System header to define __stub macros and hopefully few prototypes,
14465 which can conflict with char res_send (); below.
14466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14467 <limits.h> exists even on freestanding compilers. */
14469 # include <limits.h>
14471 # include <assert.h>
14473 /* Override any gcc2 internal prototype to avoid an error. */
14478 /* We use char because int might match the return type of a gcc2
14479 builtin and then its argument prototype would still apply. */
14481 /* The GNU C library defines this for functions which it implements
14482 to always fail with ENOSYS. Some functions are actually named
14483 something starting with __ and the normal name is an alias. */
14484 #if defined (__stub_res_send) || defined (__stub___res_send)
14487 char (*f) () = res_send;
14496 return f != res_send;
14501 rm -f conftest.
$ac_objext conftest
$ac_exeext
14502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14503 (eval $ac_link) 2>&5
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); } &&
14507 { ac_try
='test -s conftest$ac_exeext'
14508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14509 (eval $ac_try) 2>&5
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); }; }; then
14513 ac_cv_func_res_send
=yes
14515 echo "$as_me: failed program was:" >&5
14516 sed 's/^/| /' conftest.
$ac_ext >&5
14518 ac_cv_func_res_send
=no
14520 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14522 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
14523 echo "${ECHO_T}$ac_cv_func_res_send" >&6
14524 if test $ac_cv_func_res_send = yes; then
14527 echo "$as_me:$LINENO: checking for __res_send" >&5
14528 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
14529 if test "${ac_cv_func___res_send+set}" = set; then
14530 echo $ECHO_N "(cached) $ECHO_C" >&6
14532 cat >conftest.
$ac_ext <<_ACEOF
14533 #line $LINENO "configure"
14536 cat confdefs.h
>>conftest.
$ac_ext
14537 cat >>conftest.
$ac_ext <<_ACEOF
14538 /* end confdefs.h. */
14539 /* System header to define __stub macros and hopefully few prototypes,
14540 which can conflict with char __res_send (); below.
14541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14542 <limits.h> exists even on freestanding compilers. */
14544 # include <limits.h>
14546 # include <assert.h>
14548 /* Override any gcc2 internal prototype to avoid an error. */
14553 /* We use char because int might match the return type of a gcc2
14554 builtin and then its argument prototype would still apply. */
14555 char __res_send ();
14556 /* The GNU C library defines this for functions which it implements
14557 to always fail with ENOSYS. Some functions are actually named
14558 something starting with __ and the normal name is an alias. */
14559 #if defined (__stub___res_send) || defined (__stub_____res_send)
14562 char (*f) () = __res_send;
14571 return f != __res_send;
14576 rm -f conftest.
$ac_objext conftest
$ac_exeext
14577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14578 (eval $ac_link) 2>&5
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); } &&
14582 { ac_try
='test -s conftest$ac_exeext'
14583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584 (eval $ac_try) 2>&5
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; }; then
14588 ac_cv_func___res_send
=yes
14590 echo "$as_me: failed program was:" >&5
14591 sed 's/^/| /' conftest.
$ac_ext >&5
14593 ac_cv_func___res_send
=no
14595 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14597 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
14598 echo "${ECHO_T}$ac_cv_func___res_send" >&6
14599 if test $ac_cv_func___res_send = yes; then
14602 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
14603 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
14604 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
14605 echo $ECHO_N "(cached) $ECHO_C" >&6
14607 ac_check_lib_save_LIBS
=$LIBS
14608 LIBS
="-lresolv $LIBS"
14609 cat >conftest.
$ac_ext <<_ACEOF
14610 #line $LINENO "configure"
14613 cat confdefs.h
>>conftest.
$ac_ext
14614 cat >>conftest.
$ac_ext <<_ACEOF
14615 /* end confdefs.h. */
14617 /* Override any gcc2 internal prototype to avoid an error. */
14621 /* We use char because int might match the return type of a gcc2
14622 builtin and then its argument prototype would still apply. */
14632 rm -f conftest.
$ac_objext conftest
$ac_exeext
14633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14634 (eval $ac_link) 2>&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); } &&
14638 { ac_try
='test -s conftest$ac_exeext'
14639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14640 (eval $ac_try) 2>&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); }; }; then
14644 ac_cv_lib_resolv_res_send
=yes
14646 echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.
$ac_ext >&5
14649 ac_cv_lib_resolv_res_send
=no
14651 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14652 LIBS
=$ac_check_lib_save_LIBS
14654 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
14655 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
14656 if test $ac_cv_lib_resolv_res_send = yes; then
14659 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
14660 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
14661 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
14662 echo $ECHO_N "(cached) $ECHO_C" >&6
14664 ac_check_lib_save_LIBS
=$LIBS
14665 LIBS
="-lresolv $LIBS"
14666 cat >conftest.
$ac_ext <<_ACEOF
14667 #line $LINENO "configure"
14670 cat confdefs.h
>>conftest.
$ac_ext
14671 cat >>conftest.
$ac_ext <<_ACEOF
14672 /* end confdefs.h. */
14674 /* Override any gcc2 internal prototype to avoid an error. */
14678 /* We use char because int might match the return type of a gcc2
14679 builtin and then its argument prototype would still apply. */
14680 char __res_send ();
14689 rm -f conftest.
$ac_objext conftest
$ac_exeext
14690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14691 (eval $ac_link) 2>&5
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); } &&
14695 { ac_try
='test -s conftest$ac_exeext'
14696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14697 (eval $ac_try) 2>&5
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); }; }; then
14701 ac_cv_lib_resolv___res_send
=yes
14703 echo "$as_me: failed program was:" >&5
14704 sed 's/^/| /' conftest.
$ac_ext >&5
14706 ac_cv_lib_resolv___res_send
=no
14708 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14709 LIBS
=$ac_check_lib_save_LIBS
14711 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
14712 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
14713 if test $ac_cv_lib_resolv___res_send = yes; then
14723 if test "$resolv" = yes ; then
14726 cat >>confdefs.h
<<\_ACEOF
14727 #define HAVE_LIBRESOLV 1
14733 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
14734 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
14735 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
14736 echo $ECHO_N "(cached) $ECHO_C" >&6
14738 cat >conftest.
$ac_ext <<_ACEOF
14739 #line $LINENO "configure"
14742 cat confdefs.h
>>conftest.
$ac_ext
14743 cat >>conftest.
$ac_ext <<_ACEOF
14744 /* end confdefs.h. */
14745 /* System header to define __stub macros and hopefully few prototypes,
14746 which can conflict with char hes_getmailhost (); below.
14747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14748 <limits.h> exists even on freestanding compilers. */
14750 # include <limits.h>
14752 # include <assert.h>
14754 /* Override any gcc2 internal prototype to avoid an error. */
14759 /* We use char because int might match the return type of a gcc2
14760 builtin and then its argument prototype would still apply. */
14761 char hes_getmailhost ();
14762 /* The GNU C library defines this for functions which it implements
14763 to always fail with ENOSYS. Some functions are actually named
14764 something starting with __ and the normal name is an alias. */
14765 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
14768 char (*f) () = hes_getmailhost;
14777 return f != hes_getmailhost;
14782 rm -f conftest.
$ac_objext conftest
$ac_exeext
14783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14784 (eval $ac_link) 2>&5
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); } &&
14788 { ac_try
='test -s conftest$ac_exeext'
14789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14790 (eval $ac_try) 2>&5
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); }; }; then
14794 ac_cv_func_hes_getmailhost
=yes
14796 echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.
$ac_ext >&5
14799 ac_cv_func_hes_getmailhost
=no
14801 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14803 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
14804 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
14805 if test $ac_cv_func_hes_getmailhost = yes; then
14808 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
14809 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
14810 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
14811 echo $ECHO_N "(cached) $ECHO_C" >&6
14813 ac_check_lib_save_LIBS
=$LIBS
14814 LIBS
="-lhesiod $RESOLVLIB $LIBS"
14815 cat >conftest.
$ac_ext <<_ACEOF
14816 #line $LINENO "configure"
14819 cat confdefs.h
>>conftest.
$ac_ext
14820 cat >>conftest.
$ac_ext <<_ACEOF
14821 /* end confdefs.h. */
14823 /* Override any gcc2 internal prototype to avoid an error. */
14827 /* We use char because int might match the return type of a gcc2
14828 builtin and then its argument prototype would still apply. */
14829 char hes_getmailhost ();
14833 hes_getmailhost ();
14838 rm -f conftest.
$ac_objext conftest
$ac_exeext
14839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14840 (eval $ac_link) 2>&5
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); } &&
14844 { ac_try
='test -s conftest$ac_exeext'
14845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14846 (eval $ac_try) 2>&5
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); }; }; then
14850 ac_cv_lib_hesiod_hes_getmailhost
=yes
14852 echo "$as_me: failed program was:" >&5
14853 sed 's/^/| /' conftest.
$ac_ext >&5
14855 ac_cv_lib_hesiod_hes_getmailhost
=no
14857 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14858 LIBS
=$ac_check_lib_save_LIBS
14860 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14861 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
14862 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
14864 cat >>confdefs.h
<<\_ACEOF
14865 #define HAVE_LIBHESIOD 1
14876 # These tell us which Kerberos-related libraries to use.
14877 if test "${with_kerberos+set}" = set; then
14879 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
14880 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
14881 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
14882 echo $ECHO_N "(cached) $ECHO_C" >&6
14884 ac_check_lib_save_LIBS
=$LIBS
14885 LIBS
="-lcom_err $LIBS"
14886 cat >conftest.
$ac_ext <<_ACEOF
14887 #line $LINENO "configure"
14890 cat confdefs.h
>>conftest.
$ac_ext
14891 cat >>conftest.
$ac_ext <<_ACEOF
14892 /* end confdefs.h. */
14894 /* Override any gcc2 internal prototype to avoid an error. */
14898 /* We use char because int might match the return type of a gcc2
14899 builtin and then its argument prototype would still apply. */
14909 rm -f conftest.
$ac_objext conftest
$ac_exeext
14910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14911 (eval $ac_link) 2>&5
14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); } &&
14915 { ac_try
='test -s conftest$ac_exeext'
14916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14917 (eval $ac_try) 2>&5
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); }; }; then
14921 ac_cv_lib_com_err_com_err
=yes
14923 echo "$as_me: failed program was:" >&5
14924 sed 's/^/| /' conftest.
$ac_ext >&5
14926 ac_cv_lib_com_err_com_err
=no
14928 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14929 LIBS
=$ac_check_lib_save_LIBS
14931 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
14932 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
14933 if test $ac_cv_lib_com_err_com_err = yes; then
14934 cat >>confdefs.h
<<_ACEOF
14935 #define HAVE_LIBCOM_ERR 1
14938 LIBS
="-lcom_err $LIBS"
14943 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14944 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
14945 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
14946 echo $ECHO_N "(cached) $ECHO_C" >&6
14948 ac_check_lib_save_LIBS
=$LIBS
14949 LIBS
="-lk5crypto $LIBS"
14950 cat >conftest.
$ac_ext <<_ACEOF
14951 #line $LINENO "configure"
14954 cat confdefs.h
>>conftest.
$ac_ext
14955 cat >>conftest.
$ac_ext <<_ACEOF
14956 /* end confdefs.h. */
14958 /* Override any gcc2 internal prototype to avoid an error. */
14962 /* We use char because int might match the return type of a gcc2
14963 builtin and then its argument prototype would still apply. */
14964 char mit_des_cbc_encrypt ();
14968 mit_des_cbc_encrypt ();
14973 rm -f conftest.
$ac_objext conftest
$ac_exeext
14974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14975 (eval $ac_link) 2>&5
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); } &&
14979 { ac_try
='test -s conftest$ac_exeext'
14980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14981 (eval $ac_try) 2>&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); }; }; then
14985 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
14987 echo "$as_me: failed program was:" >&5
14988 sed 's/^/| /' conftest.
$ac_ext >&5
14990 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
14992 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14993 LIBS
=$ac_check_lib_save_LIBS
14995 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14996 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
14997 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
14998 cat >>confdefs.h
<<_ACEOF
14999 #define HAVE_LIBK5CRYPTO 1
15002 LIBS
="-lk5crypto $LIBS"
15007 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15008 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
15009 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
15010 echo $ECHO_N "(cached) $ECHO_C" >&6
15012 ac_check_lib_save_LIBS
=$LIBS
15013 LIBS
="-lcrypto $LIBS"
15014 cat >conftest.
$ac_ext <<_ACEOF
15015 #line $LINENO "configure"
15018 cat confdefs.h
>>conftest.
$ac_ext
15019 cat >>conftest.
$ac_ext <<_ACEOF
15020 /* end confdefs.h. */
15022 /* Override any gcc2 internal prototype to avoid an error. */
15026 /* We use char because int might match the return type of a gcc2
15027 builtin and then its argument prototype would still apply. */
15028 char mit_des_cbc_encrypt ();
15032 mit_des_cbc_encrypt ();
15037 rm -f conftest.
$ac_objext conftest
$ac_exeext
15038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15039 (eval $ac_link) 2>&5
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); } &&
15043 { ac_try
='test -s conftest$ac_exeext'
15044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15045 (eval $ac_try) 2>&5
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); }; }; then
15049 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
15051 echo "$as_me: failed program was:" >&5
15052 sed 's/^/| /' conftest.
$ac_ext >&5
15054 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
15056 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15057 LIBS
=$ac_check_lib_save_LIBS
15059 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15060 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
15061 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
15062 cat >>confdefs.h
<<_ACEOF
15063 #define HAVE_LIBCRYPTO 1
15066 LIBS
="-lcrypto $LIBS"
15071 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
15072 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
15073 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
15074 echo $ECHO_N "(cached) $ECHO_C" >&6
15076 ac_check_lib_save_LIBS
=$LIBS
15077 LIBS
="-lkrb5 $LIBS"
15078 cat >conftest.
$ac_ext <<_ACEOF
15079 #line $LINENO "configure"
15082 cat confdefs.h
>>conftest.
$ac_ext
15083 cat >>conftest.
$ac_ext <<_ACEOF
15084 /* end confdefs.h. */
15086 /* Override any gcc2 internal prototype to avoid an error. */
15090 /* We use char because int might match the return type of a gcc2
15091 builtin and then its argument prototype would still apply. */
15092 char krb5_init_context ();
15096 krb5_init_context ();
15101 rm -f conftest.
$ac_objext conftest
$ac_exeext
15102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15103 (eval $ac_link) 2>&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); } &&
15107 { ac_try
='test -s conftest$ac_exeext'
15108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15109 (eval $ac_try) 2>&5
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); }; }; then
15113 ac_cv_lib_krb5_krb5_init_context
=yes
15115 echo "$as_me: failed program was:" >&5
15116 sed 's/^/| /' conftest.
$ac_ext >&5
15118 ac_cv_lib_krb5_krb5_init_context
=no
15120 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15121 LIBS
=$ac_check_lib_save_LIBS
15123 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15124 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
15125 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
15126 cat >>confdefs.h
<<_ACEOF
15127 #define HAVE_LIBKRB5 1
15130 LIBS
="-lkrb5 $LIBS"
15134 if test "${with_kerberos5+set}" != set; then
15136 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
15137 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
15138 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
15139 echo $ECHO_N "(cached) $ECHO_C" >&6
15141 ac_check_lib_save_LIBS
=$LIBS
15142 LIBS
="-ldes425 $LIBS"
15143 cat >conftest.
$ac_ext <<_ACEOF
15144 #line $LINENO "configure"
15147 cat confdefs.h
>>conftest.
$ac_ext
15148 cat >>conftest.
$ac_ext <<_ACEOF
15149 /* end confdefs.h. */
15151 /* Override any gcc2 internal prototype to avoid an error. */
15155 /* We use char because int might match the return type of a gcc2
15156 builtin and then its argument prototype would still apply. */
15157 char des_cbc_encrypt ();
15161 des_cbc_encrypt ();
15166 rm -f conftest.
$ac_objext conftest
$ac_exeext
15167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15168 (eval $ac_link) 2>&5
15170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171 (exit $ac_status); } &&
15172 { ac_try
='test -s conftest$ac_exeext'
15173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15174 (eval $ac_try) 2>&5
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); }; }; then
15178 ac_cv_lib_des425_des_cbc_encrypt
=yes
15180 echo "$as_me: failed program was:" >&5
15181 sed 's/^/| /' conftest.
$ac_ext >&5
15183 ac_cv_lib_des425_des_cbc_encrypt
=no
15185 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15186 LIBS
=$ac_check_lib_save_LIBS
15188 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15189 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
15190 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
15191 cat >>confdefs.h
<<_ACEOF
15192 #define HAVE_LIBDES425 1
15195 LIBS
="-ldes425 $LIBS"
15199 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
15200 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
15201 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
15202 echo $ECHO_N "(cached) $ECHO_C" >&6
15204 ac_check_lib_save_LIBS
=$LIBS
15206 cat >conftest.
$ac_ext <<_ACEOF
15207 #line $LINENO "configure"
15210 cat confdefs.h
>>conftest.
$ac_ext
15211 cat >>conftest.
$ac_ext <<_ACEOF
15212 /* end confdefs.h. */
15214 /* Override any gcc2 internal prototype to avoid an error. */
15218 /* We use char because int might match the return type of a gcc2
15219 builtin and then its argument prototype would still apply. */
15220 char des_cbc_encrypt ();
15224 des_cbc_encrypt ();
15229 rm -f conftest.
$ac_objext conftest
$ac_exeext
15230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15231 (eval $ac_link) 2>&5
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); } &&
15235 { ac_try
='test -s conftest$ac_exeext'
15236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15237 (eval $ac_try) 2>&5
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); }; }; then
15241 ac_cv_lib_des_des_cbc_encrypt
=yes
15243 echo "$as_me: failed program was:" >&5
15244 sed 's/^/| /' conftest.
$ac_ext >&5
15246 ac_cv_lib_des_des_cbc_encrypt
=no
15248 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15249 LIBS
=$ac_check_lib_save_LIBS
15251 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15252 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
15253 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
15254 cat >>confdefs.h
<<_ACEOF
15255 #define HAVE_LIBDES 1
15265 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
15266 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
15267 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
15268 echo $ECHO_N "(cached) $ECHO_C" >&6
15270 ac_check_lib_save_LIBS
=$LIBS
15271 LIBS
="-lkrb4 $LIBS"
15272 cat >conftest.
$ac_ext <<_ACEOF
15273 #line $LINENO "configure"
15276 cat confdefs.h
>>conftest.
$ac_ext
15277 cat >>conftest.
$ac_ext <<_ACEOF
15278 /* end confdefs.h. */
15280 /* Override any gcc2 internal prototype to avoid an error. */
15284 /* We use char because int might match the return type of a gcc2
15285 builtin and then its argument prototype would still apply. */
15286 char krb_get_cred ();
15295 rm -f conftest.
$ac_objext conftest
$ac_exeext
15296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15297 (eval $ac_link) 2>&5
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); } &&
15301 { ac_try
='test -s conftest$ac_exeext'
15302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15303 (eval $ac_try) 2>&5
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); }; }; then
15307 ac_cv_lib_krb4_krb_get_cred
=yes
15309 echo "$as_me: failed program was:" >&5
15310 sed 's/^/| /' conftest.
$ac_ext >&5
15312 ac_cv_lib_krb4_krb_get_cred
=no
15314 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15315 LIBS
=$ac_check_lib_save_LIBS
15317 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15318 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
15319 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
15320 cat >>confdefs.h
<<_ACEOF
15321 #define HAVE_LIBKRB4 1
15324 LIBS
="-lkrb4 $LIBS"
15328 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
15329 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
15330 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
15331 echo $ECHO_N "(cached) $ECHO_C" >&6
15333 ac_check_lib_save_LIBS
=$LIBS
15335 cat >conftest.
$ac_ext <<_ACEOF
15336 #line $LINENO "configure"
15339 cat confdefs.h
>>conftest.
$ac_ext
15340 cat >>conftest.
$ac_ext <<_ACEOF
15341 /* end confdefs.h. */
15343 /* Override any gcc2 internal prototype to avoid an error. */
15347 /* We use char because int might match the return type of a gcc2
15348 builtin and then its argument prototype would still apply. */
15349 char krb_get_cred ();
15358 rm -f conftest.
$ac_objext conftest
$ac_exeext
15359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15360 (eval $ac_link) 2>&5
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); } &&
15364 { ac_try
='test -s conftest$ac_exeext'
15365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15366 (eval $ac_try) 2>&5
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); }; }; then
15370 ac_cv_lib_krb_krb_get_cred
=yes
15372 echo "$as_me: failed program was:" >&5
15373 sed 's/^/| /' conftest.
$ac_ext >&5
15375 ac_cv_lib_krb_krb_get_cred
=no
15377 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15378 LIBS
=$ac_check_lib_save_LIBS
15380 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
15381 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
15382 if test $ac_cv_lib_krb_krb_get_cred = yes; then
15383 cat >>confdefs.h
<<_ACEOF
15384 #define HAVE_LIBKRB 1
15395 if test "${with_kerberos5+set}" = set; then
15397 for ac_header
in krb5.h
15399 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15401 echo "$as_me:$LINENO: checking for $ac_header" >&5
15402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15404 echo $ECHO_N "(cached) $ECHO_C" >&6
15406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15409 # Is the header compilable?
15410 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15412 cat >conftest.
$ac_ext <<_ACEOF
15413 #line $LINENO "configure"
15416 cat confdefs.h
>>conftest.
$ac_ext
15417 cat >>conftest.
$ac_ext <<_ACEOF
15418 /* end confdefs.h. */
15419 $ac_includes_default
15420 #include <$ac_header>
15422 rm -f conftest.
$ac_objext
15423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15424 (eval $ac_compile) 2>&5
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); } &&
15428 { ac_try
='test -s conftest.$ac_objext'
15429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15430 (eval $ac_try) 2>&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); }; }; then
15434 ac_header_compiler
=yes
15436 echo "$as_me: failed program was:" >&5
15437 sed 's/^/| /' conftest.
$ac_ext >&5
15439 ac_header_compiler
=no
15441 rm -f conftest.
$ac_objext conftest.
$ac_ext
15442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15443 echo "${ECHO_T}$ac_header_compiler" >&6
15445 # Is the header present?
15446 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15448 cat >conftest.
$ac_ext <<_ACEOF
15449 #line $LINENO "configure"
15452 cat confdefs.h
>>conftest.
$ac_ext
15453 cat >>conftest.
$ac_ext <<_ACEOF
15454 /* end confdefs.h. */
15455 #include <$ac_header>
15457 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15458 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15460 grep -v '^ *+' conftest.er1
>conftest.err
15462 cat conftest.err
>&5
15463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464 (exit $ac_status); } >/dev
/null
; then
15465 if test -s conftest.err
; then
15466 ac_cpp_err
=$ac_c_preproc_warn_flag
15473 if test -z "$ac_cpp_err"; then
15474 ac_header_preproc
=yes
15476 echo "$as_me: failed program was:" >&5
15477 sed 's/^/| /' conftest.
$ac_ext >&5
15479 ac_header_preproc
=no
15481 rm -f conftest.err conftest.
$ac_ext
15482 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15483 echo "${ECHO_T}$ac_header_preproc" >&6
15485 # So? What about this header?
15486 case $ac_header_compiler:$ac_header_preproc in
15488 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15489 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15494 ## ------------------------------------ ##
15495 ## Report this to bug-autoconf@gnu.org. ##
15496 ## ------------------------------------ ##
15499 sed "s/^/$as_me: WARNING: /" >&2
15502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15505 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15510 ## ------------------------------------ ##
15511 ## Report this to bug-autoconf@gnu.org. ##
15512 ## ------------------------------------ ##
15515 sed "s/^/$as_me: WARNING: /" >&2
15518 echo "$as_me:$LINENO: checking for $ac_header" >&5
15519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15521 echo $ECHO_N "(cached) $ECHO_C" >&6
15523 eval "$as_ac_Header=$ac_header_preproc"
15525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15530 cat >>confdefs.h
<<_ACEOF
15531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15540 for ac_header
in des.h
15542 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15544 echo "$as_me:$LINENO: checking for $ac_header" >&5
15545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15547 echo $ECHO_N "(cached) $ECHO_C" >&6
15549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15552 # Is the header compilable?
15553 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15555 cat >conftest.
$ac_ext <<_ACEOF
15556 #line $LINENO "configure"
15559 cat confdefs.h
>>conftest.
$ac_ext
15560 cat >>conftest.
$ac_ext <<_ACEOF
15561 /* end confdefs.h. */
15562 $ac_includes_default
15563 #include <$ac_header>
15565 rm -f conftest.
$ac_objext
15566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15567 (eval $ac_compile) 2>&5
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); } &&
15571 { ac_try
='test -s conftest.$ac_objext'
15572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15573 (eval $ac_try) 2>&5
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); }; }; then
15577 ac_header_compiler
=yes
15579 echo "$as_me: failed program was:" >&5
15580 sed 's/^/| /' conftest.
$ac_ext >&5
15582 ac_header_compiler
=no
15584 rm -f conftest.
$ac_objext conftest.
$ac_ext
15585 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15586 echo "${ECHO_T}$ac_header_compiler" >&6
15588 # Is the header present?
15589 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15591 cat >conftest.
$ac_ext <<_ACEOF
15592 #line $LINENO "configure"
15595 cat confdefs.h
>>conftest.
$ac_ext
15596 cat >>conftest.
$ac_ext <<_ACEOF
15597 /* end confdefs.h. */
15598 #include <$ac_header>
15600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15601 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15603 grep -v '^ *+' conftest.er1
>conftest.err
15605 cat conftest.err
>&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); } >/dev
/null
; then
15608 if test -s conftest.err
; then
15609 ac_cpp_err
=$ac_c_preproc_warn_flag
15616 if test -z "$ac_cpp_err"; then
15617 ac_header_preproc
=yes
15619 echo "$as_me: failed program was:" >&5
15620 sed 's/^/| /' conftest.
$ac_ext >&5
15622 ac_header_preproc
=no
15624 rm -f conftest.err conftest.
$ac_ext
15625 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15626 echo "${ECHO_T}$ac_header_preproc" >&6
15628 # So? What about this header?
15629 case $ac_header_compiler:$ac_header_preproc in
15631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15634 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15637 ## ------------------------------------ ##
15638 ## Report this to bug-autoconf@gnu.org. ##
15639 ## ------------------------------------ ##
15642 sed "s/^/$as_me: WARNING: /" >&2
15645 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15647 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15648 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15653 ## ------------------------------------ ##
15654 ## Report this to bug-autoconf@gnu.org. ##
15655 ## ------------------------------------ ##
15658 sed "s/^/$as_me: WARNING: /" >&2
15661 echo "$as_me:$LINENO: checking for $ac_header" >&5
15662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15664 echo $ECHO_N "(cached) $ECHO_C" >&6
15666 eval "$as_ac_Header=$ac_header_preproc"
15668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15673 cat >>confdefs.h
<<_ACEOF
15674 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15679 for ac_header
in kerberosIV
/des.h
15681 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15682 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15683 echo "$as_me:$LINENO: checking for $ac_header" >&5
15684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15686 echo $ECHO_N "(cached) $ECHO_C" >&6
15688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15689 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15691 # Is the header compilable?
15692 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15693 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15694 cat >conftest.
$ac_ext <<_ACEOF
15695 #line $LINENO "configure"
15698 cat confdefs.h
>>conftest.
$ac_ext
15699 cat >>conftest.
$ac_ext <<_ACEOF
15700 /* end confdefs.h. */
15701 $ac_includes_default
15702 #include <$ac_header>
15704 rm -f conftest.
$ac_objext
15705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15706 (eval $ac_compile) 2>&5
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); } &&
15710 { ac_try
='test -s conftest.$ac_objext'
15711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15712 (eval $ac_try) 2>&5
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); }; }; then
15716 ac_header_compiler
=yes
15718 echo "$as_me: failed program was:" >&5
15719 sed 's/^/| /' conftest.
$ac_ext >&5
15721 ac_header_compiler
=no
15723 rm -f conftest.
$ac_objext conftest.
$ac_ext
15724 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15725 echo "${ECHO_T}$ac_header_compiler" >&6
15727 # Is the header present?
15728 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15730 cat >conftest.
$ac_ext <<_ACEOF
15731 #line $LINENO "configure"
15734 cat confdefs.h
>>conftest.
$ac_ext
15735 cat >>conftest.
$ac_ext <<_ACEOF
15736 /* end confdefs.h. */
15737 #include <$ac_header>
15739 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15740 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15742 grep -v '^ *+' conftest.er1
>conftest.err
15744 cat conftest.err
>&5
15745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); } >/dev
/null
; then
15747 if test -s conftest.err
; then
15748 ac_cpp_err
=$ac_c_preproc_warn_flag
15755 if test -z "$ac_cpp_err"; then
15756 ac_header_preproc
=yes
15758 echo "$as_me: failed program was:" >&5
15759 sed 's/^/| /' conftest.
$ac_ext >&5
15761 ac_header_preproc
=no
15763 rm -f conftest.err conftest.
$ac_ext
15764 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15765 echo "${ECHO_T}$ac_header_preproc" >&6
15767 # So? What about this header?
15768 case $ac_header_compiler:$ac_header_preproc in
15770 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15771 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15776 ## ------------------------------------ ##
15777 ## Report this to bug-autoconf@gnu.org. ##
15778 ## ------------------------------------ ##
15781 sed "s/^/$as_me: WARNING: /" >&2
15784 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15786 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15787 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15789 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15792 ## ------------------------------------ ##
15793 ## Report this to bug-autoconf@gnu.org. ##
15794 ## ------------------------------------ ##
15797 sed "s/^/$as_me: WARNING: /" >&2
15800 echo "$as_me:$LINENO: checking for $ac_header" >&5
15801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15803 echo $ECHO_N "(cached) $ECHO_C" >&6
15805 eval "$as_ac_Header=$ac_header_preproc"
15807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15808 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15812 cat >>confdefs.h
<<_ACEOF
15813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15818 for ac_header
in kerberos
/des.h
15820 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15822 echo "$as_me:$LINENO: checking for $ac_header" >&5
15823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15825 echo $ECHO_N "(cached) $ECHO_C" >&6
15827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15830 # Is the header compilable?
15831 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15833 cat >conftest.
$ac_ext <<_ACEOF
15834 #line $LINENO "configure"
15837 cat confdefs.h
>>conftest.
$ac_ext
15838 cat >>conftest.
$ac_ext <<_ACEOF
15839 /* end confdefs.h. */
15840 $ac_includes_default
15841 #include <$ac_header>
15843 rm -f conftest.
$ac_objext
15844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15845 (eval $ac_compile) 2>&5
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); } &&
15849 { ac_try
='test -s conftest.$ac_objext'
15850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15851 (eval $ac_try) 2>&5
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); }; }; then
15855 ac_header_compiler
=yes
15857 echo "$as_me: failed program was:" >&5
15858 sed 's/^/| /' conftest.
$ac_ext >&5
15860 ac_header_compiler
=no
15862 rm -f conftest.
$ac_objext conftest.
$ac_ext
15863 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15864 echo "${ECHO_T}$ac_header_compiler" >&6
15866 # Is the header present?
15867 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15868 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15869 cat >conftest.
$ac_ext <<_ACEOF
15870 #line $LINENO "configure"
15873 cat confdefs.h
>>conftest.
$ac_ext
15874 cat >>conftest.
$ac_ext <<_ACEOF
15875 /* end confdefs.h. */
15876 #include <$ac_header>
15878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15879 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15881 grep -v '^ *+' conftest.er1
>conftest.err
15883 cat conftest.err
>&5
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); } >/dev
/null
; then
15886 if test -s conftest.err
; then
15887 ac_cpp_err
=$ac_c_preproc_warn_flag
15894 if test -z "$ac_cpp_err"; then
15895 ac_header_preproc
=yes
15897 echo "$as_me: failed program was:" >&5
15898 sed 's/^/| /' conftest.
$ac_ext >&5
15900 ac_header_preproc
=no
15902 rm -f conftest.err conftest.
$ac_ext
15903 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15904 echo "${ECHO_T}$ac_header_preproc" >&6
15906 # So? What about this header?
15907 case $ac_header_compiler:$ac_header_preproc in
15909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15915 ## ------------------------------------ ##
15916 ## Report this to bug-autoconf@gnu.org. ##
15917 ## ------------------------------------ ##
15920 sed "s/^/$as_me: WARNING: /" >&2
15923 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15925 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15926 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15931 ## ------------------------------------ ##
15932 ## Report this to bug-autoconf@gnu.org. ##
15933 ## ------------------------------------ ##
15936 sed "s/^/$as_me: WARNING: /" >&2
15939 echo "$as_me:$LINENO: checking for $ac_header" >&5
15940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15942 echo $ECHO_N "(cached) $ECHO_C" >&6
15944 eval "$as_ac_Header=$ac_header_preproc"
15946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15951 cat >>confdefs.h
<<_ACEOF
15952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15968 for ac_header
in krb.h
15970 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15972 echo "$as_me:$LINENO: checking for $ac_header" >&5
15973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15975 echo $ECHO_N "(cached) $ECHO_C" >&6
15977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15980 # Is the header compilable?
15981 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15982 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15983 cat >conftest.
$ac_ext <<_ACEOF
15984 #line $LINENO "configure"
15987 cat confdefs.h
>>conftest.
$ac_ext
15988 cat >>conftest.
$ac_ext <<_ACEOF
15989 /* end confdefs.h. */
15990 $ac_includes_default
15991 #include <$ac_header>
15993 rm -f conftest.
$ac_objext
15994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15995 (eval $ac_compile) 2>&5
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); } &&
15999 { ac_try
='test -s conftest.$ac_objext'
16000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16001 (eval $ac_try) 2>&5
16003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004 (exit $ac_status); }; }; then
16005 ac_header_compiler
=yes
16007 echo "$as_me: failed program was:" >&5
16008 sed 's/^/| /' conftest.
$ac_ext >&5
16010 ac_header_compiler
=no
16012 rm -f conftest.
$ac_objext conftest.
$ac_ext
16013 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16014 echo "${ECHO_T}$ac_header_compiler" >&6
16016 # Is the header present?
16017 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16018 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16019 cat >conftest.
$ac_ext <<_ACEOF
16020 #line $LINENO "configure"
16023 cat confdefs.h
>>conftest.
$ac_ext
16024 cat >>conftest.
$ac_ext <<_ACEOF
16025 /* end confdefs.h. */
16026 #include <$ac_header>
16028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16029 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16031 grep -v '^ *+' conftest.er1
>conftest.err
16033 cat conftest.err
>&5
16034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035 (exit $ac_status); } >/dev
/null
; then
16036 if test -s conftest.err
; then
16037 ac_cpp_err
=$ac_c_preproc_warn_flag
16044 if test -z "$ac_cpp_err"; then
16045 ac_header_preproc
=yes
16047 echo "$as_me: failed program was:" >&5
16048 sed 's/^/| /' conftest.
$ac_ext >&5
16050 ac_header_preproc
=no
16052 rm -f conftest.err conftest.
$ac_ext
16053 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16054 echo "${ECHO_T}$ac_header_preproc" >&6
16056 # So? What about this header?
16057 case $ac_header_compiler:$ac_header_preproc in
16059 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16060 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16065 ## ------------------------------------ ##
16066 ## Report this to bug-autoconf@gnu.org. ##
16067 ## ------------------------------------ ##
16070 sed "s/^/$as_me: WARNING: /" >&2
16073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16076 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16081 ## ------------------------------------ ##
16082 ## Report this to bug-autoconf@gnu.org. ##
16083 ## ------------------------------------ ##
16086 sed "s/^/$as_me: WARNING: /" >&2
16089 echo "$as_me:$LINENO: checking for $ac_header" >&5
16090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16092 echo $ECHO_N "(cached) $ECHO_C" >&6
16094 eval "$as_ac_Header=$ac_header_preproc"
16096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16101 cat >>confdefs.h
<<_ACEOF
16102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16107 for ac_header
in kerberosIV
/krb.h
16109 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16111 echo "$as_me:$LINENO: checking for $ac_header" >&5
16112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16114 echo $ECHO_N "(cached) $ECHO_C" >&6
16116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16119 # Is the header compilable?
16120 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16122 cat >conftest.
$ac_ext <<_ACEOF
16123 #line $LINENO "configure"
16126 cat confdefs.h
>>conftest.
$ac_ext
16127 cat >>conftest.
$ac_ext <<_ACEOF
16128 /* end confdefs.h. */
16129 $ac_includes_default
16130 #include <$ac_header>
16132 rm -f conftest.
$ac_objext
16133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16134 (eval $ac_compile) 2>&5
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); } &&
16138 { ac_try
='test -s conftest.$ac_objext'
16139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16140 (eval $ac_try) 2>&5
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); }; }; then
16144 ac_header_compiler
=yes
16146 echo "$as_me: failed program was:" >&5
16147 sed 's/^/| /' conftest.
$ac_ext >&5
16149 ac_header_compiler
=no
16151 rm -f conftest.
$ac_objext conftest.
$ac_ext
16152 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16153 echo "${ECHO_T}$ac_header_compiler" >&6
16155 # Is the header present?
16156 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16157 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16158 cat >conftest.
$ac_ext <<_ACEOF
16159 #line $LINENO "configure"
16162 cat confdefs.h
>>conftest.
$ac_ext
16163 cat >>conftest.
$ac_ext <<_ACEOF
16164 /* end confdefs.h. */
16165 #include <$ac_header>
16167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16168 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16170 grep -v '^ *+' conftest.er1
>conftest.err
16172 cat conftest.err
>&5
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); } >/dev
/null
; then
16175 if test -s conftest.err
; then
16176 ac_cpp_err
=$ac_c_preproc_warn_flag
16183 if test -z "$ac_cpp_err"; then
16184 ac_header_preproc
=yes
16186 echo "$as_me: failed program was:" >&5
16187 sed 's/^/| /' conftest.
$ac_ext >&5
16189 ac_header_preproc
=no
16191 rm -f conftest.err conftest.
$ac_ext
16192 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16193 echo "${ECHO_T}$ac_header_preproc" >&6
16195 # So? What about this header?
16196 case $ac_header_compiler:$ac_header_preproc in
16198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16204 ## ------------------------------------ ##
16205 ## Report this to bug-autoconf@gnu.org. ##
16206 ## ------------------------------------ ##
16209 sed "s/^/$as_me: WARNING: /" >&2
16212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16215 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16220 ## ------------------------------------ ##
16221 ## Report this to bug-autoconf@gnu.org. ##
16222 ## ------------------------------------ ##
16225 sed "s/^/$as_me: WARNING: /" >&2
16228 echo "$as_me:$LINENO: checking for $ac_header" >&5
16229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16231 echo $ECHO_N "(cached) $ECHO_C" >&6
16233 eval "$as_ac_Header=$ac_header_preproc"
16235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16240 cat >>confdefs.h
<<_ACEOF
16241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16246 for ac_header
in kerberos
/krb.h
16248 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16250 echo "$as_me:$LINENO: checking for $ac_header" >&5
16251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16253 echo $ECHO_N "(cached) $ECHO_C" >&6
16255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16258 # Is the header compilable?
16259 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16260 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16261 cat >conftest.
$ac_ext <<_ACEOF
16262 #line $LINENO "configure"
16265 cat confdefs.h
>>conftest.
$ac_ext
16266 cat >>conftest.
$ac_ext <<_ACEOF
16267 /* end confdefs.h. */
16268 $ac_includes_default
16269 #include <$ac_header>
16271 rm -f conftest.
$ac_objext
16272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16273 (eval $ac_compile) 2>&5
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); } &&
16277 { ac_try
='test -s conftest.$ac_objext'
16278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16279 (eval $ac_try) 2>&5
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); }; }; then
16283 ac_header_compiler
=yes
16285 echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.
$ac_ext >&5
16288 ac_header_compiler
=no
16290 rm -f conftest.
$ac_objext conftest.
$ac_ext
16291 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16292 echo "${ECHO_T}$ac_header_compiler" >&6
16294 # Is the header present?
16295 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16296 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16297 cat >conftest.
$ac_ext <<_ACEOF
16298 #line $LINENO "configure"
16301 cat confdefs.h
>>conftest.
$ac_ext
16302 cat >>conftest.
$ac_ext <<_ACEOF
16303 /* end confdefs.h. */
16304 #include <$ac_header>
16306 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16307 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16309 grep -v '^ *+' conftest.er1
>conftest.err
16311 cat conftest.err
>&5
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); } >/dev
/null
; then
16314 if test -s conftest.err
; then
16315 ac_cpp_err
=$ac_c_preproc_warn_flag
16322 if test -z "$ac_cpp_err"; then
16323 ac_header_preproc
=yes
16325 echo "$as_me: failed program was:" >&5
16326 sed 's/^/| /' conftest.
$ac_ext >&5
16328 ac_header_preproc
=no
16330 rm -f conftest.err conftest.
$ac_ext
16331 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16332 echo "${ECHO_T}$ac_header_preproc" >&6
16334 # So? What about this header?
16335 case $ac_header_compiler:$ac_header_preproc in
16337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16343 ## ------------------------------------ ##
16344 ## Report this to bug-autoconf@gnu.org. ##
16345 ## ------------------------------------ ##
16348 sed "s/^/$as_me: WARNING: /" >&2
16351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16354 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16359 ## ------------------------------------ ##
16360 ## Report this to bug-autoconf@gnu.org. ##
16361 ## ------------------------------------ ##
16364 sed "s/^/$as_me: WARNING: /" >&2
16367 echo "$as_me:$LINENO: checking for $ac_header" >&5
16368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16370 echo $ECHO_N "(cached) $ECHO_C" >&6
16372 eval "$as_ac_Header=$ac_header_preproc"
16374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16379 cat >>confdefs.h
<<_ACEOF
16380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16397 for ac_header
in com_err.h
16399 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16401 echo "$as_me:$LINENO: checking for $ac_header" >&5
16402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16404 echo $ECHO_N "(cached) $ECHO_C" >&6
16406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16409 # Is the header compilable?
16410 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16412 cat >conftest.
$ac_ext <<_ACEOF
16413 #line $LINENO "configure"
16416 cat confdefs.h
>>conftest.
$ac_ext
16417 cat >>conftest.
$ac_ext <<_ACEOF
16418 /* end confdefs.h. */
16419 $ac_includes_default
16420 #include <$ac_header>
16422 rm -f conftest.
$ac_objext
16423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16424 (eval $ac_compile) 2>&5
16426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); } &&
16428 { ac_try
='test -s conftest.$ac_objext'
16429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16430 (eval $ac_try) 2>&5
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); }; }; then
16434 ac_header_compiler
=yes
16436 echo "$as_me: failed program was:" >&5
16437 sed 's/^/| /' conftest.
$ac_ext >&5
16439 ac_header_compiler
=no
16441 rm -f conftest.
$ac_objext conftest.
$ac_ext
16442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16443 echo "${ECHO_T}$ac_header_compiler" >&6
16445 # Is the header present?
16446 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16448 cat >conftest.
$ac_ext <<_ACEOF
16449 #line $LINENO "configure"
16452 cat confdefs.h
>>conftest.
$ac_ext
16453 cat >>conftest.
$ac_ext <<_ACEOF
16454 /* end confdefs.h. */
16455 #include <$ac_header>
16457 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16458 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16460 grep -v '^ *+' conftest.er1
>conftest.err
16462 cat conftest.err
>&5
16463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); } >/dev
/null
; then
16465 if test -s conftest.err
; then
16466 ac_cpp_err
=$ac_c_preproc_warn_flag
16473 if test -z "$ac_cpp_err"; then
16474 ac_header_preproc
=yes
16476 echo "$as_me: failed program was:" >&5
16477 sed 's/^/| /' conftest.
$ac_ext >&5
16479 ac_header_preproc
=no
16481 rm -f conftest.err conftest.
$ac_ext
16482 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16483 echo "${ECHO_T}$ac_header_preproc" >&6
16485 # So? What about this header?
16486 case $ac_header_compiler:$ac_header_preproc in
16488 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16489 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16494 ## ------------------------------------ ##
16495 ## Report this to bug-autoconf@gnu.org. ##
16496 ## ------------------------------------ ##
16499 sed "s/^/$as_me: WARNING: /" >&2
16502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16505 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16510 ## ------------------------------------ ##
16511 ## Report this to bug-autoconf@gnu.org. ##
16512 ## ------------------------------------ ##
16515 sed "s/^/$as_me: WARNING: /" >&2
16518 echo "$as_me:$LINENO: checking for $ac_header" >&5
16519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16521 echo $ECHO_N "(cached) $ECHO_C" >&6
16523 eval "$as_ac_Header=$ac_header_preproc"
16525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16530 cat >>confdefs.h
<<_ACEOF
16531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16540 # Solaris requires -lintl if you want strerror (which calls dgettext)
16541 # to return localized messages.
16543 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
16544 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
16545 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
16546 echo $ECHO_N "(cached) $ECHO_C" >&6
16548 ac_check_lib_save_LIBS
=$LIBS
16549 LIBS
="-lintl $LIBS"
16550 cat >conftest.
$ac_ext <<_ACEOF
16551 #line $LINENO "configure"
16554 cat confdefs.h
>>conftest.
$ac_ext
16555 cat >>conftest.
$ac_ext <<_ACEOF
16556 /* end confdefs.h. */
16558 /* Override any gcc2 internal prototype to avoid an error. */
16562 /* We use char because int might match the return type of a gcc2
16563 builtin and then its argument prototype would still apply. */
16573 rm -f conftest.
$ac_objext conftest
$ac_exeext
16574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16575 (eval $ac_link) 2>&5
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); } &&
16579 { ac_try
='test -s conftest$ac_exeext'
16580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16581 (eval $ac_try) 2>&5
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); }; }; then
16585 ac_cv_lib_intl_dgettext
=yes
16587 echo "$as_me: failed program was:" >&5
16588 sed 's/^/| /' conftest.
$ac_ext >&5
16590 ac_cv_lib_intl_dgettext
=no
16592 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16593 LIBS
=$ac_check_lib_save_LIBS
16595 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
16596 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
16597 if test $ac_cv_lib_intl_dgettext = yes; then
16598 cat >>confdefs.h
<<_ACEOF
16599 #define HAVE_LIBINTL 1
16602 LIBS
="-lintl $LIBS"
16607 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
16608 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
16609 if test "${emacs_cv_localtime_cache+set}" = set; then
16610 echo $ECHO_N "(cached) $ECHO_C" >&6
16612 if test x
$ac_cv_func_tzset = xyes
; then
16613 if test "$cross_compiling" = yes; then
16614 # If we have tzset, assume the worst when cross-compiling.
16615 emacs_cv_localtime_cache
=yes
16617 cat >conftest.
$ac_ext <<_ACEOF
16618 #line $LINENO "configure"
16621 cat confdefs.h
>>conftest.
$ac_ext
16622 cat >>conftest.
$ac_ext <<_ACEOF
16623 /* end confdefs.h. */
16625 extern char **environ;
16629 for (to = from = environ; (*to = *from); from++)
16630 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
16633 char TZ_GMT0[] = "TZ=GMT0";
16634 char TZ_PST8[] = "TZ=PST8";
16637 time_t now = time ((time_t *) 0);
16638 int hour_GMT0, hour_unset;
16639 if (putenv (TZ_GMT0) != 0)
16641 hour_GMT0 = localtime (&now)->tm_hour;
16643 hour_unset = localtime (&now)->tm_hour;
16644 if (putenv (TZ_PST8) != 0)
16646 if (localtime (&now)->tm_hour == hour_GMT0)
16649 if (localtime (&now)->tm_hour != hour_unset)
16654 rm -f conftest
$ac_exeext
16655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16656 (eval $ac_link) 2>&5
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16661 (eval $ac_try) 2>&5
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); }; }; then
16665 emacs_cv_localtime_cache
=no
16667 echo "$as_me: program exited with status $ac_status" >&5
16668 echo "$as_me: failed program was:" >&5
16669 sed 's/^/| /' conftest.
$ac_ext >&5
16671 ( exit $ac_status )
16672 emacs_cv_localtime_cache
=yes
16674 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16677 # If we lack tzset, report that localtime does not cache TZ,
16678 # since we can't invalidate the cache if we don't have tzset.
16679 emacs_cv_localtime_cache
=no
16682 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
16683 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
16684 if test $emacs_cv_localtime_cache = yes; then
16686 cat >>confdefs.h
<<\_ACEOF
16687 #define LOCALTIME_CACHE 1
16692 if test "x$HAVE_TIMEVAL" = xyes
; then
16694 for ac_func
in gettimeofday
16696 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16697 echo "$as_me:$LINENO: checking for $ac_func" >&5
16698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16699 if eval "test \"\${$as_ac_var+set}\" = set"; then
16700 echo $ECHO_N "(cached) $ECHO_C" >&6
16702 cat >conftest.
$ac_ext <<_ACEOF
16703 #line $LINENO "configure"
16706 cat confdefs.h
>>conftest.
$ac_ext
16707 cat >>conftest.
$ac_ext <<_ACEOF
16708 /* end confdefs.h. */
16709 /* System header to define __stub macros and hopefully few prototypes,
16710 which can conflict with char $ac_func (); below.
16711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16712 <limits.h> exists even on freestanding compilers. */
16714 # include <limits.h>
16716 # include <assert.h>
16718 /* Override any gcc2 internal prototype to avoid an error. */
16723 /* We use char because int might match the return type of a gcc2
16724 builtin and then its argument prototype would still apply. */
16726 /* The GNU C library defines this for functions which it implements
16727 to always fail with ENOSYS. Some functions are actually named
16728 something starting with __ and the normal name is an alias. */
16729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16732 char (*f) () = $ac_func;
16741 return f != $ac_func;
16746 rm -f conftest.
$ac_objext conftest
$ac_exeext
16747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16748 (eval $ac_link) 2>&5
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); } &&
16752 { ac_try
='test -s conftest$ac_exeext'
16753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16754 (eval $ac_try) 2>&5
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); }; }; then
16758 eval "$as_ac_var=yes"
16760 echo "$as_me: failed program was:" >&5
16761 sed 's/^/| /' conftest.
$ac_ext >&5
16763 eval "$as_ac_var=no"
16765 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16768 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16769 if test `eval echo '${'$as_ac_var'}'` = yes; then
16770 cat >>confdefs.h
<<_ACEOF
16771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16777 if test $ac_cv_func_gettimeofday = yes; then
16778 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
16779 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
16780 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
16781 echo $ECHO_N "(cached) $ECHO_C" >&6
16783 cat >conftest.
$ac_ext <<_ACEOF
16784 #line $LINENO "configure"
16787 cat confdefs.h
>>conftest.
$ac_ext
16788 cat >>conftest.
$ac_ext <<_ACEOF
16789 /* end confdefs.h. */
16791 #ifdef TIME_WITH_SYS_TIME
16792 #include <sys/time.h>
16795 #ifdef HAVE_SYS_TIME_H
16796 #include <sys/time.h>
16804 struct timeval time;
16805 gettimeofday (&time, 0);
16810 rm -f conftest.
$ac_objext
16811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16812 (eval $ac_compile) 2>&5
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); } &&
16816 { ac_try
='test -s conftest.$ac_objext'
16817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16818 (eval $ac_try) 2>&5
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); }; }; then
16822 emacs_cv_gettimeofday_two_arguments
=yes
16824 echo "$as_me: failed program was:" >&5
16825 sed 's/^/| /' conftest.
$ac_ext >&5
16827 emacs_cv_gettimeofday_two_arguments
=no
16829 rm -f conftest.
$ac_objext conftest.
$ac_ext
16831 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
16832 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
16833 if test $emacs_cv_gettimeofday_two_arguments = no
; then
16835 cat >>confdefs.h
<<\_ACEOF
16836 #define GETTIMEOFDAY_ONE_ARGUMENT 1
16843 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
16844 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16845 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16846 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16847 echo $ECHO_N "(cached) $ECHO_C" >&6
16849 cat >conftest.
$ac_ext <<_ACEOF
16850 #line $LINENO "configure"
16853 cat confdefs.h
>>conftest.
$ac_ext
16854 cat >>conftest.
$ac_ext <<_ACEOF
16855 /* end confdefs.h. */
16856 #include <sys/types.h>
16857 #include <$ac_cv_struct_tm>
16863 static struct tm ac_aggr;
16864 if (ac_aggr.tm_zone)
16870 rm -f conftest.
$ac_objext
16871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16872 (eval $ac_compile) 2>&5
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); } &&
16876 { ac_try
='test -s conftest.$ac_objext'
16877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16878 (eval $ac_try) 2>&5
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); }; }; then
16882 ac_cv_member_struct_tm_tm_zone
=yes
16884 echo "$as_me: failed program was:" >&5
16885 sed 's/^/| /' conftest.
$ac_ext >&5
16887 cat >conftest.
$ac_ext <<_ACEOF
16888 #line $LINENO "configure"
16891 cat confdefs.h
>>conftest.
$ac_ext
16892 cat >>conftest.
$ac_ext <<_ACEOF
16893 /* end confdefs.h. */
16894 #include <sys/types.h>
16895 #include <$ac_cv_struct_tm>
16901 static struct tm ac_aggr;
16902 if (sizeof ac_aggr.tm_zone)
16908 rm -f conftest.
$ac_objext
16909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16910 (eval $ac_compile) 2>&5
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); } &&
16914 { ac_try
='test -s conftest.$ac_objext'
16915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16916 (eval $ac_try) 2>&5
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); }; }; then
16920 ac_cv_member_struct_tm_tm_zone
=yes
16922 echo "$as_me: failed program was:" >&5
16923 sed 's/^/| /' conftest.
$ac_ext >&5
16925 ac_cv_member_struct_tm_tm_zone
=no
16927 rm -f conftest.
$ac_objext conftest.
$ac_ext
16929 rm -f conftest.
$ac_objext conftest.
$ac_ext
16931 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16932 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
16933 if test $ac_cv_member_struct_tm_tm_zone = yes; then
16935 cat >>confdefs.h
<<_ACEOF
16936 #define HAVE_STRUCT_TM_TM_ZONE 1
16942 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16944 cat >>confdefs.h
<<\_ACEOF
16945 #define HAVE_TM_ZONE 1
16949 echo "$as_me:$LINENO: checking for tzname" >&5
16950 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
16951 if test "${ac_cv_var_tzname+set}" = set; then
16952 echo $ECHO_N "(cached) $ECHO_C" >&6
16954 cat >conftest.
$ac_ext <<_ACEOF
16955 #line $LINENO "configure"
16958 cat confdefs.h
>>conftest.
$ac_ext
16959 cat >>conftest.
$ac_ext <<_ACEOF
16960 /* end confdefs.h. */
16962 #ifndef tzname /* For SGI. */
16963 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
16974 rm -f conftest.
$ac_objext conftest
$ac_exeext
16975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16976 (eval $ac_link) 2>&5
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); } &&
16980 { ac_try
='test -s conftest$ac_exeext'
16981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16982 (eval $ac_try) 2>&5
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); }; }; then
16986 ac_cv_var_tzname
=yes
16988 echo "$as_me: failed program was:" >&5
16989 sed 's/^/| /' conftest.
$ac_ext >&5
16991 ac_cv_var_tzname
=no
16993 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16995 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
16996 echo "${ECHO_T}$ac_cv_var_tzname" >&6
16997 if test $ac_cv_var_tzname = yes; then
16999 cat >>confdefs.h
<<\_ACEOF
17000 #define HAVE_TZNAME 1
17007 if test "$ac_cv_func_gettimeofday" = yes; then
17008 echo "$as_me:$LINENO: checking for struct timezone" >&5
17009 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
17010 if test "${emacs_cv_struct_timezone+set}" = set; then
17011 echo $ECHO_N "(cached) $ECHO_C" >&6
17013 cat >conftest.
$ac_ext <<_ACEOF
17014 #line $LINENO "configure"
17017 cat confdefs.h
>>conftest.
$ac_ext
17018 cat >>conftest.
$ac_ext <<_ACEOF
17019 /* end confdefs.h. */
17020 #include <sys/time.h>
17024 struct timezone tz;
17029 rm -f conftest.
$ac_objext
17030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17031 (eval $ac_compile) 2>&5
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); } &&
17035 { ac_try
='test -s conftest.$ac_objext'
17036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17037 (eval $ac_try) 2>&5
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); }; }; then
17041 if test "$cross_compiling" = yes; then
17042 emacs_cv_struct_timezone
=yes
17044 cat >conftest.
$ac_ext <<_ACEOF
17045 #line $LINENO "configure"
17048 cat confdefs.h
>>conftest.
$ac_ext
17049 cat >>conftest.
$ac_ext <<_ACEOF
17050 /* end confdefs.h. */
17052 #ifdef TIME_WITH_SYS_TIME
17053 #include <sys/time.h>
17056 #ifdef HAVE_SYS_TIME_H
17057 #include <sys/time.h>
17063 struct timeval time;
17064 struct timezone dummy;
17065 exit (gettimeofday (&time, &dummy));
17068 rm -f conftest
$ac_exeext
17069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17070 (eval $ac_link) 2>&5
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17075 (eval $ac_try) 2>&5
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); }; }; then
17079 emacs_cv_struct_timezone
=yes
17081 echo "$as_me: program exited with status $ac_status" >&5
17082 echo "$as_me: failed program was:" >&5
17083 sed 's/^/| /' conftest.
$ac_ext >&5
17085 ( exit $ac_status )
17086 emacs_cv_struct_timezone
=no
17088 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17091 echo "$as_me: failed program was:" >&5
17092 sed 's/^/| /' conftest.
$ac_ext >&5
17094 emacs_cv_struct_timezone
=no
17096 rm -f conftest.
$ac_objext conftest.
$ac_ext
17098 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
17099 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
17103 echo "$as_me:$LINENO: checking for socket" >&5
17104 echo $ECHO_N "checking for socket... $ECHO_C" >&6
17105 if test "${ac_cv_func_socket+set}" = set; then
17106 echo $ECHO_N "(cached) $ECHO_C" >&6
17108 cat >conftest.
$ac_ext <<_ACEOF
17109 #line $LINENO "configure"
17112 cat confdefs.h
>>conftest.
$ac_ext
17113 cat >>conftest.
$ac_ext <<_ACEOF
17114 /* end confdefs.h. */
17115 /* System header to define __stub macros and hopefully few prototypes,
17116 which can conflict with char socket (); below.
17117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17118 <limits.h> exists even on freestanding compilers. */
17120 # include <limits.h>
17122 # include <assert.h>
17124 /* Override any gcc2 internal prototype to avoid an error. */
17129 /* We use char because int might match the return type of a gcc2
17130 builtin and then its argument prototype would still apply. */
17132 /* The GNU C library defines this for functions which it implements
17133 to always fail with ENOSYS. Some functions are actually named
17134 something starting with __ and the normal name is an alias. */
17135 #if defined (__stub_socket) || defined (__stub___socket)
17138 char (*f) () = socket;
17147 return f != socket;
17152 rm -f conftest.
$ac_objext conftest
$ac_exeext
17153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17154 (eval $ac_link) 2>&5
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); } &&
17158 { ac_try
='test -s conftest$ac_exeext'
17159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17160 (eval $ac_try) 2>&5
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); }; }; then
17164 ac_cv_func_socket
=yes
17166 echo "$as_me: failed program was:" >&5
17167 sed 's/^/| /' conftest.
$ac_ext >&5
17169 ac_cv_func_socket
=no
17171 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17173 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17174 echo "${ECHO_T}$ac_cv_func_socket" >&6
17175 if test $ac_cv_func_socket = yes; then
17181 if test $ok_so_far = yes; then
17182 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17183 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17184 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17185 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17186 echo $ECHO_N "(cached) $ECHO_C" >&6
17188 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17189 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17191 # Is the header compilable?
17192 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
17193 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
17194 cat >conftest.
$ac_ext <<_ACEOF
17195 #line $LINENO "configure"
17198 cat confdefs.h
>>conftest.
$ac_ext
17199 cat >>conftest.
$ac_ext <<_ACEOF
17200 /* end confdefs.h. */
17201 $ac_includes_default
17202 #include <netinet/in.h>
17204 rm -f conftest.
$ac_objext
17205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17206 (eval $ac_compile) 2>&5
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); } &&
17210 { ac_try
='test -s conftest.$ac_objext'
17211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17212 (eval $ac_try) 2>&5
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); }; }; then
17216 ac_header_compiler
=yes
17218 echo "$as_me: failed program was:" >&5
17219 sed 's/^/| /' conftest.
$ac_ext >&5
17221 ac_header_compiler
=no
17223 rm -f conftest.
$ac_objext conftest.
$ac_ext
17224 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17225 echo "${ECHO_T}$ac_header_compiler" >&6
17227 # Is the header present?
17228 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
17229 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
17230 cat >conftest.
$ac_ext <<_ACEOF
17231 #line $LINENO "configure"
17234 cat confdefs.h
>>conftest.
$ac_ext
17235 cat >>conftest.
$ac_ext <<_ACEOF
17236 /* end confdefs.h. */
17237 #include <netinet/in.h>
17239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17240 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17242 grep -v '^ *+' conftest.er1
>conftest.err
17244 cat conftest.err
>&5
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); } >/dev
/null
; then
17247 if test -s conftest.err
; then
17248 ac_cpp_err
=$ac_c_preproc_warn_flag
17255 if test -z "$ac_cpp_err"; then
17256 ac_header_preproc
=yes
17258 echo "$as_me: failed program was:" >&5
17259 sed 's/^/| /' conftest.
$ac_ext >&5
17261 ac_header_preproc
=no
17263 rm -f conftest.err conftest.
$ac_ext
17264 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17265 echo "${ECHO_T}$ac_header_preproc" >&6
17267 # So? What about this header?
17268 case $ac_header_compiler:$ac_header_preproc in
17270 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
17271 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17272 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
17273 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
17276 ## ------------------------------------ ##
17277 ## Report this to bug-autoconf@gnu.org. ##
17278 ## ------------------------------------ ##
17281 sed "s/^/$as_me: WARNING: /" >&2
17284 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
17285 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
17286 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
17287 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
17288 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
17289 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
17292 ## ------------------------------------ ##
17293 ## Report this to bug-autoconf@gnu.org. ##
17294 ## ------------------------------------ ##
17297 sed "s/^/$as_me: WARNING: /" >&2
17300 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17301 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17302 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17303 echo $ECHO_N "(cached) $ECHO_C" >&6
17305 ac_cv_header_netinet_in_h
=$ac_header_preproc
17307 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17308 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17311 if test $ac_cv_header_netinet_in_h = yes; then
17319 if test $ok_so_far = yes; then
17320 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17321 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17322 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17323 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17324 echo $ECHO_N "(cached) $ECHO_C" >&6
17326 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17327 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17329 # Is the header compilable?
17330 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
17331 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
17332 cat >conftest.
$ac_ext <<_ACEOF
17333 #line $LINENO "configure"
17336 cat confdefs.h
>>conftest.
$ac_ext
17337 cat >>conftest.
$ac_ext <<_ACEOF
17338 /* end confdefs.h. */
17339 $ac_includes_default
17340 #include <arpa/inet.h>
17342 rm -f conftest.
$ac_objext
17343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17344 (eval $ac_compile) 2>&5
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); } &&
17348 { ac_try
='test -s conftest.$ac_objext'
17349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17350 (eval $ac_try) 2>&5
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); }; }; then
17354 ac_header_compiler
=yes
17356 echo "$as_me: failed program was:" >&5
17357 sed 's/^/| /' conftest.
$ac_ext >&5
17359 ac_header_compiler
=no
17361 rm -f conftest.
$ac_objext conftest.
$ac_ext
17362 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17363 echo "${ECHO_T}$ac_header_compiler" >&6
17365 # Is the header present?
17366 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
17367 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
17368 cat >conftest.
$ac_ext <<_ACEOF
17369 #line $LINENO "configure"
17372 cat confdefs.h
>>conftest.
$ac_ext
17373 cat >>conftest.
$ac_ext <<_ACEOF
17374 /* end confdefs.h. */
17375 #include <arpa/inet.h>
17377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17378 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17380 grep -v '^ *+' conftest.er1
>conftest.err
17382 cat conftest.err
>&5
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); } >/dev
/null
; then
17385 if test -s conftest.err
; then
17386 ac_cpp_err
=$ac_c_preproc_warn_flag
17393 if test -z "$ac_cpp_err"; then
17394 ac_header_preproc
=yes
17396 echo "$as_me: failed program was:" >&5
17397 sed 's/^/| /' conftest.
$ac_ext >&5
17399 ac_header_preproc
=no
17401 rm -f conftest.err conftest.
$ac_ext
17402 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17403 echo "${ECHO_T}$ac_header_preproc" >&6
17405 # So? What about this header?
17406 case $ac_header_compiler:$ac_header_preproc in
17408 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
17409 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17410 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
17411 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
17414 ## ------------------------------------ ##
17415 ## Report this to bug-autoconf@gnu.org. ##
17416 ## ------------------------------------ ##
17419 sed "s/^/$as_me: WARNING: /" >&2
17422 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
17423 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
17424 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
17425 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
17426 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
17427 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
17430 ## ------------------------------------ ##
17431 ## Report this to bug-autoconf@gnu.org. ##
17432 ## ------------------------------------ ##
17435 sed "s/^/$as_me: WARNING: /" >&2
17438 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17439 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17440 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17441 echo $ECHO_N "(cached) $ECHO_C" >&6
17443 ac_cv_header_arpa_inet_h
=$ac_header_preproc
17445 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17446 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17449 if test $ac_cv_header_arpa_inet_h = yes; then
17457 if test $ok_so_far = yes; then
17459 cat >>confdefs.h
<<\_ACEOF
17460 #define HAVE_INET_SOCKETS 1
17465 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
17467 cat >>confdefs.h
<<\_ACEOF
17468 #define HAVE_AIX_SMT_EXP 1
17473 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
17474 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
17475 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
17476 echo "$as_me:$LINENO: result: yes" >&5
17477 echo "${ECHO_T}yes" >&6
17479 cat >>confdefs.h
<<\_ACEOF
17480 #define HAVE_DEV_PTMX 1
17484 echo "$as_me:$LINENO: result: no" >&5
17485 echo "${ECHO_T}no" >&6
17488 echo "$as_me:$LINENO: checking for pid_t" >&5
17489 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17490 if test "${ac_cv_type_pid_t+set}" = set; then
17491 echo $ECHO_N "(cached) $ECHO_C" >&6
17493 cat >conftest.
$ac_ext <<_ACEOF
17494 #line $LINENO "configure"
17497 cat confdefs.h
>>conftest.
$ac_ext
17498 cat >>conftest.
$ac_ext <<_ACEOF
17499 /* end confdefs.h. */
17500 $ac_includes_default
17506 if (sizeof (pid_t))
17512 rm -f conftest.
$ac_objext
17513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17514 (eval $ac_compile) 2>&5
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); } &&
17518 { ac_try
='test -s conftest.$ac_objext'
17519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17520 (eval $ac_try) 2>&5
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); }; }; then
17524 ac_cv_type_pid_t
=yes
17526 echo "$as_me: failed program was:" >&5
17527 sed 's/^/| /' conftest.
$ac_ext >&5
17529 ac_cv_type_pid_t
=no
17531 rm -f conftest.
$ac_objext conftest.
$ac_ext
17533 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17534 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17535 if test $ac_cv_type_pid_t = yes; then
17539 cat >>confdefs.h
<<_ACEOF
17547 for ac_header
in unistd.h vfork.h
17549 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17551 echo "$as_me:$LINENO: checking for $ac_header" >&5
17552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17554 echo $ECHO_N "(cached) $ECHO_C" >&6
17556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17559 # Is the header compilable?
17560 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17561 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17562 cat >conftest.
$ac_ext <<_ACEOF
17563 #line $LINENO "configure"
17566 cat confdefs.h
>>conftest.
$ac_ext
17567 cat >>conftest.
$ac_ext <<_ACEOF
17568 /* end confdefs.h. */
17569 $ac_includes_default
17570 #include <$ac_header>
17572 rm -f conftest.
$ac_objext
17573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17574 (eval $ac_compile) 2>&5
17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); } &&
17578 { ac_try
='test -s conftest.$ac_objext'
17579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17580 (eval $ac_try) 2>&5
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); }; }; then
17584 ac_header_compiler
=yes
17586 echo "$as_me: failed program was:" >&5
17587 sed 's/^/| /' conftest.
$ac_ext >&5
17589 ac_header_compiler
=no
17591 rm -f conftest.
$ac_objext conftest.
$ac_ext
17592 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17593 echo "${ECHO_T}$ac_header_compiler" >&6
17595 # Is the header present?
17596 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17598 cat >conftest.
$ac_ext <<_ACEOF
17599 #line $LINENO "configure"
17602 cat confdefs.h
>>conftest.
$ac_ext
17603 cat >>conftest.
$ac_ext <<_ACEOF
17604 /* end confdefs.h. */
17605 #include <$ac_header>
17607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17608 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17610 grep -v '^ *+' conftest.er1
>conftest.err
17612 cat conftest.err
>&5
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); } >/dev
/null
; then
17615 if test -s conftest.err
; then
17616 ac_cpp_err
=$ac_c_preproc_warn_flag
17623 if test -z "$ac_cpp_err"; then
17624 ac_header_preproc
=yes
17626 echo "$as_me: failed program was:" >&5
17627 sed 's/^/| /' conftest.
$ac_ext >&5
17629 ac_header_preproc
=no
17631 rm -f conftest.err conftest.
$ac_ext
17632 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17633 echo "${ECHO_T}$ac_header_preproc" >&6
17635 # So? What about this header?
17636 case $ac_header_compiler:$ac_header_preproc in
17638 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17644 ## ------------------------------------ ##
17645 ## Report this to bug-autoconf@gnu.org. ##
17646 ## ------------------------------------ ##
17649 sed "s/^/$as_me: WARNING: /" >&2
17652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17657 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17660 ## ------------------------------------ ##
17661 ## Report this to bug-autoconf@gnu.org. ##
17662 ## ------------------------------------ ##
17665 sed "s/^/$as_me: WARNING: /" >&2
17668 echo "$as_me:$LINENO: checking for $ac_header" >&5
17669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17671 echo $ECHO_N "(cached) $ECHO_C" >&6
17673 eval "$as_ac_Header=$ac_header_preproc"
17675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17680 cat >>confdefs.h
<<_ACEOF
17681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17690 for ac_func
in fork vfork
17692 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17693 echo "$as_me:$LINENO: checking for $ac_func" >&5
17694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17695 if eval "test \"\${$as_ac_var+set}\" = set"; then
17696 echo $ECHO_N "(cached) $ECHO_C" >&6
17698 cat >conftest.
$ac_ext <<_ACEOF
17699 #line $LINENO "configure"
17702 cat confdefs.h
>>conftest.
$ac_ext
17703 cat >>conftest.
$ac_ext <<_ACEOF
17704 /* end confdefs.h. */
17705 /* System header to define __stub macros and hopefully few prototypes,
17706 which can conflict with char $ac_func (); below.
17707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17708 <limits.h> exists even on freestanding compilers. */
17710 # include <limits.h>
17712 # include <assert.h>
17714 /* Override any gcc2 internal prototype to avoid an error. */
17719 /* We use char because int might match the return type of a gcc2
17720 builtin and then its argument prototype would still apply. */
17722 /* The GNU C library defines this for functions which it implements
17723 to always fail with ENOSYS. Some functions are actually named
17724 something starting with __ and the normal name is an alias. */
17725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17728 char (*f) () = $ac_func;
17737 return f != $ac_func;
17742 rm -f conftest.
$ac_objext conftest
$ac_exeext
17743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17744 (eval $ac_link) 2>&5
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); } &&
17748 { ac_try
='test -s conftest$ac_exeext'
17749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17750 (eval $ac_try) 2>&5
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); }; }; then
17754 eval "$as_ac_var=yes"
17756 echo "$as_me: failed program was:" >&5
17757 sed 's/^/| /' conftest.
$ac_ext >&5
17759 eval "$as_ac_var=no"
17761 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17764 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17765 if test `eval echo '${'$as_ac_var'}'` = yes; then
17766 cat >>confdefs.h
<<_ACEOF
17767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17773 if test "x$ac_cv_func_fork" = xyes
; then
17774 echo "$as_me:$LINENO: checking for working fork" >&5
17775 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17776 if test "${ac_cv_func_fork_works+set}" = set; then
17777 echo $ECHO_N "(cached) $ECHO_C" >&6
17779 if test "$cross_compiling" = yes; then
17780 ac_cv_func_fork_works
=cross
17782 cat >conftest.
$ac_ext <<_ACEOF
17783 /* By Ruediger Kuhlmann. */
17784 #include <sys/types.h>
17786 # include <unistd.h>
17788 /* Some systems only have a dummy stub for fork() */
17796 rm -f conftest
$ac_exeext
17797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17798 (eval $ac_link) 2>&5
17800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17803 (eval $ac_try) 2>&5
17805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806 (exit $ac_status); }; }; then
17807 ac_cv_func_fork_works
=yes
17809 echo "$as_me: program exited with status $ac_status" >&5
17810 echo "$as_me: failed program was:" >&5
17811 sed 's/^/| /' conftest.
$ac_ext >&5
17813 ( exit $ac_status )
17814 ac_cv_func_fork_works
=no
17816 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17819 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
17820 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17823 ac_cv_func_fork_works
=$ac_cv_func_fork
17825 if test "x$ac_cv_func_fork_works" = xcross
; then
17827 *-*-amigaos* |
*-*-msdosdjgpp*)
17828 # Override, as these systems have only a dummy fork() stub
17829 ac_cv_func_fork_works
=no
17832 ac_cv_func_fork_works
=yes
17835 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17836 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17838 ac_cv_func_vfork_works
=$ac_cv_func_vfork
17839 if test "x$ac_cv_func_vfork" = xyes
; then
17840 echo "$as_me:$LINENO: checking for working vfork" >&5
17841 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17842 if test "${ac_cv_func_vfork_works+set}" = set; then
17843 echo $ECHO_N "(cached) $ECHO_C" >&6
17845 if test "$cross_compiling" = yes; then
17846 ac_cv_func_vfork_works
=cross
17848 cat >conftest.
$ac_ext <<_ACEOF
17849 #line $LINENO "configure"
17852 cat confdefs.h
>>conftest.
$ac_ext
17853 cat >>conftest.
$ac_ext <<_ACEOF
17854 /* end confdefs.h. */
17855 /* Thanks to Paul Eggert for this test. */
17857 #include <stdlib.h>
17858 #include <sys/types.h>
17859 #include <sys/stat.h>
17860 #include <sys/wait.h>
17862 # include <unistd.h>
17865 # include <vfork.h>
17867 /* On some sparc systems, changes by the child to local and incoming
17868 argument registers are propagated back to the parent. The compiler
17869 is told about this with #include <vfork.h>, but some compilers
17870 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17871 static variable whose address is put into a register that is
17872 clobbered by the vfork. */
17875 sparc_address_test (int arg)
17877 sparc_address_test (arg) int arg;
17880 static pid_t child;
17898 pid_t parent = getpid ();
17901 sparc_address_test (0);
17906 /* Here is another test for sparc vfork register problems. This
17907 test uses lots of local variables, at least as many local
17908 variables as main has allocated so far including compiler
17909 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17910 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17911 reuse the register of parent for one of the local variables,
17912 since it will think that parent can't possibly be used any more
17913 in this routine. Assigning to the local variable will thus
17914 munge parent in the parent process. */
17916 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17917 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17918 /* Convince the compiler that p..p7 are live; otherwise, it might
17919 use the same hardware register for all 8 local variables. */
17920 if (p != p1 || p != p2 || p != p3 || p != p4
17921 || p != p5 || p != p6 || p != p7)
17924 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17925 from child file descriptors. If the child closes a descriptor
17926 before it execs or exits, this munges the parent's descriptor
17927 as well. Test for this by closing stdout in the child. */
17928 _exit(close(fileno(stdout)) != 0);
17933 while (wait(&status) != child)
17936 /* Was there some problem with vforking? */
17939 /* Did the child fail? (This shouldn't happen.) */
17942 /* Did the vfork/compiler bug occur? */
17943 || parent != getpid()
17945 /* Did the file descriptor bug occur? */
17946 || fstat(fileno(stdout), &st) != 0
17951 rm -f conftest
$ac_exeext
17952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17953 (eval $ac_link) 2>&5
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17958 (eval $ac_try) 2>&5
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); }; }; then
17962 ac_cv_func_vfork_works
=yes
17964 echo "$as_me: program exited with status $ac_status" >&5
17965 echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.
$ac_ext >&5
17968 ( exit $ac_status )
17969 ac_cv_func_vfork_works
=no
17971 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17974 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
17975 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17978 if test "x$ac_cv_func_fork_works" = xcross
; then
17979 ac_cv_func_vfork_works
=ac_cv_func_vfork
17980 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17981 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17984 if test "x$ac_cv_func_vfork_works" = xyes
; then
17986 cat >>confdefs.h
<<\_ACEOF
17987 #define HAVE_WORKING_VFORK 1
17992 cat >>confdefs.h
<<\_ACEOF
17997 if test "x$ac_cv_func_fork_works" = xyes
; then
17999 cat >>confdefs.h
<<\_ACEOF
18000 #define HAVE_WORKING_FORK 1
18006 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
18007 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
18008 if test "${emacs_cv_langinfo_codeset+set}" = set; then
18009 echo $ECHO_N "(cached) $ECHO_C" >&6
18011 cat >conftest.
$ac_ext <<_ACEOF
18012 #line $LINENO "configure"
18015 cat confdefs.h
>>conftest.
$ac_ext
18016 cat >>conftest.
$ac_ext <<_ACEOF
18017 /* end confdefs.h. */
18018 #include <langinfo.h>
18022 char* cs = nl_langinfo(CODESET);
18027 rm -f conftest.
$ac_objext conftest
$ac_exeext
18028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18029 (eval $ac_link) 2>&5
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); } &&
18033 { ac_try
='test -s conftest$ac_exeext'
18034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18035 (eval $ac_try) 2>&5
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); }; }; then
18039 emacs_cv_langinfo_codeset
=yes
18041 echo "$as_me: failed program was:" >&5
18042 sed 's/^/| /' conftest.
$ac_ext >&5
18044 emacs_cv_langinfo_codeset
=no
18046 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
18049 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
18050 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
18051 if test $emacs_cv_langinfo_codeset = yes; then
18053 cat >>confdefs.h
<<\_ACEOF
18054 #define HAVE_LANGINFO_CODESET 1
18059 echo "$as_me:$LINENO: checking for size_t" >&5
18060 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18061 if test "${ac_cv_type_size_t+set}" = set; then
18062 echo $ECHO_N "(cached) $ECHO_C" >&6
18064 cat >conftest.
$ac_ext <<_ACEOF
18065 #line $LINENO "configure"
18068 cat confdefs.h
>>conftest.
$ac_ext
18069 cat >>conftest.
$ac_ext <<_ACEOF
18070 /* end confdefs.h. */
18071 $ac_includes_default
18077 if (sizeof (size_t))
18083 rm -f conftest.
$ac_objext
18084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18085 (eval $ac_compile) 2>&5
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); } &&
18089 { ac_try
='test -s conftest.$ac_objext'
18090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18091 (eval $ac_try) 2>&5
18093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094 (exit $ac_status); }; }; then
18095 ac_cv_type_size_t
=yes
18097 echo "$as_me: failed program was:" >&5
18098 sed 's/^/| /' conftest.
$ac_ext >&5
18100 ac_cv_type_size_t
=no
18102 rm -f conftest.
$ac_objext conftest.
$ac_ext
18104 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18105 echo "${ECHO_T}$ac_cv_type_size_t" >&6
18106 if test $ac_cv_type_size_t = yes; then
18108 cat >>confdefs.h
<<_ACEOF
18109 #define HAVE_SIZE_T 1
18116 echo "$as_me:$LINENO: checking for mbstate_t" >&5
18117 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
18118 if test "${ac_cv_type_mbstate_t+set}" = set; then
18119 echo $ECHO_N "(cached) $ECHO_C" >&6
18121 cat >conftest.
$ac_ext <<_ACEOF
18122 #line $LINENO "configure"
18125 cat confdefs.h
>>conftest.
$ac_ext
18126 cat >>conftest.
$ac_ext <<_ACEOF
18127 /* end confdefs.h. */
18128 $ac_includes_default
18129 # include <wchar.h>
18133 mbstate_t x; return sizeof x;
18138 rm -f conftest.
$ac_objext
18139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18140 (eval $ac_compile) 2>&5
18142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143 (exit $ac_status); } &&
18144 { ac_try
='test -s conftest.$ac_objext'
18145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18146 (eval $ac_try) 2>&5
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); }; }; then
18150 ac_cv_type_mbstate_t
=yes
18152 echo "$as_me: failed program was:" >&5
18153 sed 's/^/| /' conftest.
$ac_ext >&5
18155 ac_cv_type_mbstate_t
=no
18157 rm -f conftest.
$ac_objext conftest.
$ac_ext
18159 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
18160 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
18161 if test $ac_cv_type_mbstate_t = yes; then
18163 cat >>confdefs.h
<<\_ACEOF
18164 #define HAVE_MBSTATE_T 1
18169 cat >>confdefs.h
<<\_ACEOF
18170 #define mbstate_t int
18175 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
18176 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
18177 if test "${emacs_cv_c_restrict+set}" = set; then
18178 echo $ECHO_N "(cached) $ECHO_C" >&6
18180 cat >conftest.
$ac_ext <<_ACEOF
18181 #line $LINENO "configure"
18184 cat confdefs.h
>>conftest.
$ac_ext
18185 cat >>conftest.
$ac_ext <<_ACEOF
18186 /* end confdefs.h. */
18187 void fred (int *restrict x);
18196 rm -f conftest.
$ac_objext
18197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18198 (eval $ac_compile) 2>&5
18200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201 (exit $ac_status); } &&
18202 { ac_try
='test -s conftest.$ac_objext'
18203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18204 (eval $ac_try) 2>&5
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); }; }; then
18208 emacs_cv_c_restrict
=yes
18210 echo "$as_me: failed program was:" >&5
18211 sed 's/^/| /' conftest.
$ac_ext >&5
18213 cat >conftest.
$ac_ext <<_ACEOF
18214 #line $LINENO "configure"
18217 cat confdefs.h
>>conftest.
$ac_ext
18218 cat >>conftest.
$ac_ext <<_ACEOF
18219 /* end confdefs.h. */
18220 void fred (int *__restrict x);
18229 rm -f conftest.
$ac_objext
18230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18231 (eval $ac_compile) 2>&5
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); } &&
18235 { ac_try
='test -s conftest.$ac_objext'
18236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18237 (eval $ac_try) 2>&5
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); }; }; then
18241 emacs_cv_c_restrict
=__restrict
18243 echo "$as_me: failed program was:" >&5
18244 sed 's/^/| /' conftest.
$ac_ext >&5
18246 emacs_cv_c_restrict
=no
18248 rm -f conftest.
$ac_objext conftest.
$ac_ext
18250 rm -f conftest.
$ac_objext conftest.
$ac_ext
18252 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
18253 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
18254 case "$emacs_cv_c_restrict" in
18255 yes) emacs_restrict
=restrict
;;
18256 no
) emacs_restrict
="";;
18257 *) emacs_restrict
="$emacs_cv_c_restrict";;
18259 if test "$emacs_restrict" != __restrict
; then
18261 cat >>confdefs.h
<<_ACEOF
18262 #define __restrict $emacs_restrict
18267 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
18268 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
18269 if test "${emacs_cv_c_restrict_arr+set}" = set; then
18270 echo $ECHO_N "(cached) $ECHO_C" >&6
18272 cat >conftest.
$ac_ext <<_ACEOF
18273 #line $LINENO "configure"
18276 cat confdefs.h
>>conftest.
$ac_ext
18277 cat >>conftest.
$ac_ext <<_ACEOF
18278 /* end confdefs.h. */
18279 void fred (int x[__restrict]);
18288 rm -f conftest.
$ac_objext
18289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18290 (eval $ac_compile) 2>&5
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); } &&
18294 { ac_try
='test -s conftest.$ac_objext'
18295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18296 (eval $ac_try) 2>&5
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); }; }; then
18300 emacs_cv_c_restrict_arr
=yes
18302 echo "$as_me: failed program was:" >&5
18303 sed 's/^/| /' conftest.
$ac_ext >&5
18305 emacs_cv_c_restrict_arr
=no
18307 rm -f conftest.
$ac_objext conftest.
$ac_ext
18309 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
18310 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
18311 if test "$emacs_cv_c_restrict_arr" = yes; then
18313 cat >>confdefs.h
<<\_ACEOF
18314 #define __restrict_arr __restrict
18321 # Set up the CFLAGS for real compilation, so we can substitute it.
18322 CFLAGS
="$REAL_CFLAGS"
18323 CPPFLAGS
="$REAL_CPPFLAGS"
18325 #### Find out which version of Emacs this is.
18326 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
18327 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
18328 if test x
"${version}" = x
; then
18329 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
18330 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
18331 { (exit 1); exit 1; }; }
18334 ### Specify what sort of things we'll be editing into Makefile and config.h.
18335 ### Use configuration here uncanonicalized to avoid exceeding size limits.
18371 cat >>confdefs.h
<<_ACEOF
18372 #define EMACS_CONFIGURATION "${canonical}"
18376 cat >>confdefs.h
<<_ACEOF
18377 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
18381 cat >>confdefs.h
<<_ACEOF
18382 #define config_machfile "${machfile}"
18386 cat >>confdefs.h
<<_ACEOF
18387 #define config_opsysfile "${opsysfile}"
18391 cat >>confdefs.h
<<_ACEOF
18392 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
18396 cat >>confdefs.h
<<_ACEOF
18397 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
18401 cat >>confdefs.h
<<_ACEOF
18402 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
18406 cat >>confdefs.h
<<_ACEOF
18407 #define UNEXEC_SRC ${UNEXEC_SRC}
18411 if test "${HAVE_X_WINDOWS}" = "yes" ; then
18413 cat >>confdefs.h
<<\_ACEOF
18414 #define HAVE_X_WINDOWS 1
18418 if test "${USE_X_TOOLKIT}" != "none" ; then
18420 cat >>confdefs.h
<<\_ACEOF
18421 #define USE_X_TOOLKIT 1
18425 if test "${HAVE_X11}" = "yes" ; then
18427 cat >>confdefs.h
<<\_ACEOF
18432 if test "${HAVE_XFREE386}" = "yes" ; then
18434 cat >>confdefs.h
<<\_ACEOF
18435 #define HAVE_XFREE386 1
18439 if test "${HAVE_MENUS}" = "yes" ; then
18441 cat >>confdefs.h
<<\_ACEOF
18442 #define HAVE_MENUS 1
18446 if test "${GNU_MALLOC}" = "yes" ; then
18448 cat >>confdefs.h
<<\_ACEOF
18449 #define GNU_MALLOC 1
18453 if test "${REL_ALLOC}" = "yes" ; then
18455 cat >>confdefs.h
<<\_ACEOF
18456 #define REL_ALLOC 1
18465 #### Report on what we decided to do.
18466 #### Report GTK as a toolkit, even if it doesn't use Xt.
18467 #### It makes printing result more understandable as using GTK sets
18468 #### toolkit_scroll_bars to yes by default.
18469 if test "${HAVE_GTK}" = "yes"; then
18474 Configured for \`${canonical}'.
18476 Where should the build process find the source code? ${srcdir}
18477 What operating system and machine description files should Emacs use?
18478 \`${opsysfile}' and \`${machfile}'
18479 What compiler should emacs be built with? ${CC} ${CFLAGS}
18480 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
18481 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
18482 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
18483 What window system should Emacs use? ${window_system}
18484 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
18486 if test -n "${x_includes}"; then
18487 echo " Where do we find X Windows header files? ${x_includes}"
18489 echo " Where do we find X Windows header files? Standard dirs"
18491 if test -n "${x_libraries}"; then
18492 echo " Where do we find X Windows libraries? ${x_libraries}"
18494 echo " Where do we find X Windows libraries? Standard dirs"
18497 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
18498 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
18499 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
18500 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
18501 echo " Does Emacs use -lungif? ${HAVE_GIF}"
18502 echo " Does Emacs use -lpng? ${HAVE_PNG}"
18503 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
18506 # Remove any trailing slashes in these variables.
18507 test "${prefix}" != NONE
&&
18508 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
18509 test "${exec_prefix}" != NONE
&&
18510 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
18512 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
18513 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
18514 ## from Makefile.c can correctly provide the arg `-traditional' to the
18517 cat >conftest.
$ac_ext <<_ACEOF
18518 #line $LINENO "configure"
18521 cat confdefs.h
>>conftest.
$ac_ext
18522 cat >>conftest.
$ac_ext <<_ACEOF
18523 /* end confdefs.h. */
18526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18527 $EGREP "yes..yes" >/dev
/null
2>&1; then
18528 CPP_NEED_TRADITIONAL
=no
18530 CPP_NEED_TRADITIONAL
=yes
18535 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"
18536 ac_config_commands
="$ac_config_commands default"
18537 cat >confcache
<<\_ACEOF
18538 # This file is a shell script that caches the results of configure
18539 # tests run on this system so they can be shared between configure
18540 # scripts and configure runs, see configure's option --config-cache.
18541 # It is not useful on other systems. If it contains results you don't
18542 # want to keep, you may remove or edit it.
18544 # config.status only pays attention to the cache file if you give it
18545 # the --recheck option to rerun configure.
18547 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18548 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18549 # following values.
18553 # The following way of writing the cache mishandles newlines in values,
18554 # but we know of no workaround that is simple, portable, and efficient.
18555 # So, don't put newlines in cache variables' values.
18556 # Ultrix sh set writes to stderr and can't be redirected directly,
18557 # and sets the high bit in the cache file unless we assign to the vars.
18560 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18562 # `set' does not quote correctly, so add quotes (double-quote
18563 # substitution turns \\\\ into \\, and sed turns \\ into \).
18566 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18569 # `set' quotes correctly as required by POSIX, so do not add quotes.
18571 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18578 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18580 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18582 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
18583 if test -w $cache_file; then
18584 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18585 cat confcache
>$cache_file
18587 echo "not updating unwritable cache $cache_file"
18592 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
18593 # Let make expand exec_prefix.
18594 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
18596 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18597 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18598 # trailing colons and then remove the whole line if VPATH becomes empty
18599 # (actually we leave an empty line to preserve line numbers).
18600 if test "x$srcdir" = x.
; then
18601 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
18602 s/:*\$(srcdir):*/:/;
18603 s/:*\${srcdir}:*/:/;
18605 s/^\([^=]*=[ ]*\):*/\1/;
18611 DEFS
=-DHAVE_CONFIG_H
18615 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
18616 # 1. Remove the extension, and $U if already installed.
18617 ac_i
=`echo "$ac_i" |
18618 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18620 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
18621 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
18623 LIBOBJS
=$ac_libobjs
18625 LTLIBOBJS
=$ac_ltlibobjs
18629 : ${CONFIG_STATUS=./config.status}
18630 ac_clean_files_save
=$ac_clean_files
18631 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
18632 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18633 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18634 cat >$CONFIG_STATUS <<_ACEOF
18636 # Generated by $as_me.
18637 # Run this file to recreate the current configuration.
18638 # Compiler output produced by configure, useful for debugging
18639 # configure, is in config.log if it exists.
18642 ac_cs_recheck=false
18644 SHELL=\${CONFIG_SHELL-$SHELL}
18647 cat >>$CONFIG_STATUS <<\_ACEOF
18648 ## --------------------- ##
18649 ## M4sh Initialization. ##
18650 ## --------------------- ##
18652 # Be Bourne compatible
18653 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18656 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18657 # is contrary to our usage. Disable this feature.
18658 alias -g '${1+"$@"}'='"$@"'
18659 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
18663 # Support unset when possible.
18664 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
18671 # Work around bugs in pre-3.0 UWIN ksh.
18672 $as_unset ENV MAIL MAILPATH
18679 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18680 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18681 LC_TELEPHONE LC_TIME
18683 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18684 eval $as_var=C
; export $as_var
18690 # Required to use basename.
18691 if expr a
: '\(a\)' >/dev
/null
2>&1; then
18697 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
18698 as_basename
=basename
18704 # Name of the executable.
18705 as_me
=`$as_basename "$0" ||
18706 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18707 X"$0" : 'X\(//\)$' \| \
18708 X"$0" : 'X\(/\)$' \| \
18709 . : '\(.\)' 2>/dev/null ||
18711 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18712 /^X\/\(\/\/\)$/{ s//\1/; q; }
18713 /^X\/\(\/\).*/{ s//\1/; q; }
18717 # PATH needs CR, and LINENO needs CR and PATH.
18718 # Avoid depending upon Character Ranges.
18719 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18720 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18721 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18722 as_cr_digits
='0123456789'
18723 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18725 # The user is always right.
18726 if test "${PATH_SEPARATOR+set}" != set; then
18727 echo "#! /bin/sh" >conf$$.sh
18728 echo "exit 0" >>conf$$.sh
18730 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
18739 as_lineno_1
=$LINENO
18740 as_lineno_2
=$LINENO
18741 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
18742 test "x$as_lineno_1" != "x$as_lineno_2" &&
18743 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
18744 # Find who we are. Look in the path if we contain no path at all
18747 *[\\/]* ) as_myself
=$0 ;;
18748 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18749 for as_dir
in $PATH
18752 test -z "$as_dir" && as_dir
=.
18753 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
18758 # We did not find ourselves, most probably we were run as `sh COMMAND'
18759 # in which case we are not to be found in the path.
18760 if test "x$as_myself" = x
; then
18763 if test ! -f "$as_myself"; then
18764 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18765 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18766 { (exit 1); exit 1; }; }
18768 case $CONFIG_SHELL in
18770 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18771 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
18774 test -z "$as_dir" && as_dir
=.
18775 for as_base
in sh bash ksh sh5
; do
18778 if ("$as_dir/$as_base" -c '
18779 as_lineno_1=$LINENO
18780 as_lineno_2=$LINENO
18781 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18782 test "x$as_lineno_1" != "x$as_lineno_2" &&
18783 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
18784 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
18785 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
18786 CONFIG_SHELL
=$as_dir/$as_base
18787 export CONFIG_SHELL
18788 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18796 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18797 # uniformly replaced by the line number. The first 'sed' inserts a
18798 # line-number line before each line; the second 'sed' does the real
18799 # work. The second script uses 'N' to pair each line-number line
18800 # with the numbered line, and appends trailing '-' during
18801 # substitution so that $LINENO is not a special case at line end.
18802 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18803 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18804 sed '=' <$as_myself |
18809 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18812 s,^['$as_cr_digits']*\n,,
18813 ' >$as_me.lineno
&&
18814 chmod +x
$as_me.lineno ||
18815 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18816 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18817 { (exit 1); exit 1; }; }
18819 # Don't try to exec as it changes $[0], causing all sort of problems
18820 # (the dirname of $[0] is not the place where we might find the
18821 # original and so on. Autoconf is especially sensible to this).
18823 # Exit status is that of the last command.
18828 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18829 *c
*,-n*) ECHO_N
= ECHO_C
='
18831 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
18832 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
18835 if expr a
: '\(a\)' >/dev
/null
2>&1; then
18841 rm -f conf$$ conf$$.exe conf$$.
file
18843 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18844 # We could just check for DJGPP; but this test a) works b) is more generic
18845 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18846 if test -f conf$$.exe
; then
18847 # Don't use ln at all; we don't have any links
18852 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18857 rm -f conf$$ conf$$.exe conf$$.
file
18859 if mkdir
-p .
2>/dev
/null
; then
18865 as_executable_p
="test -f"
18867 # Sed expression to map a string onto a valid CPP name.
18868 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18870 # Sed expression to map a string onto a valid variable name.
18871 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18875 # We need space, tab and new line, in precisely that order.
18885 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18886 # report actual input values of CONFIG_FILES etc. instead of their
18887 # values after options handling. Logging --version etc. is OK.
18891 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18892 ## Running $as_me. ##
18897 This file was extended by $as_me, which was
18898 generated by GNU Autoconf 2.57. Invocation command line was
18900 CONFIG_FILES = $CONFIG_FILES
18901 CONFIG_HEADERS = $CONFIG_HEADERS
18902 CONFIG_LINKS = $CONFIG_LINKS
18903 CONFIG_COMMANDS = $CONFIG_COMMANDS
18907 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18911 # Files that config.status was made for.
18912 if test -n "$ac_config_files"; then
18913 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18916 if test -n "$ac_config_headers"; then
18917 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18920 if test -n "$ac_config_links"; then
18921 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18924 if test -n "$ac_config_commands"; then
18925 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18928 cat >>$CONFIG_STATUS <<\_ACEOF
18931 \`$as_me' instantiates files from templates according to the
18932 current configuration.
18934 Usage: $0 [OPTIONS] [FILE]...
18936 -h, --help print this help, then exit
18937 -V, --version print version number, then exit
18938 -q, --quiet do not print progress messages
18939 -d, --debug don't remove temporary files
18940 --recheck update $as_me by reconfiguring in the same conditions
18941 --file=FILE[:TEMPLATE]
18942 instantiate the configuration file FILE
18943 --header=FILE[:TEMPLATE]
18944 instantiate the configuration header FILE
18946 Configuration files:
18949 Configuration headers:
18952 Configuration commands:
18955 Report bugs to <bug-autoconf@gnu.org>."
18958 cat >>$CONFIG_STATUS <<_ACEOF
18961 configured by $0, generated by GNU Autoconf 2.57,
18962 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18964 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18965 Free Software Foundation, Inc.
18966 This config.status script is free software; the Free Software Foundation
18967 gives unlimited permission to copy, distribute and modify it."
18972 cat >>$CONFIG_STATUS <<\_ACEOF
18973 # If no file are specified by the user, then we need to provide default
18974 # value. By we need to know if files were specified by the user.
18980 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
18981 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
18989 *) # This is not an option, so the user has probably given explicit
18992 ac_need_defaults
=false
;;
18996 # Handling of the options.
18998 cat >>$CONFIG_STATUS <<\_ACEOF
18999 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19001 --version |
--vers* |
-V )
19002 echo "$ac_cs_version"; exit 0 ;;
19004 # Conflict between --help and --header
19005 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19006 Try \`$0 --help' for more information." >&5
19007 echo "$as_me: error: ambiguous option: $1
19008 Try \`$0 --help' for more information." >&2;}
19009 { (exit 1); exit 1; }; };;
19010 --help |
--hel |
-h )
19011 echo "$ac_cs_usage"; exit 0 ;;
19012 --debug |
--d* |
-d )
19014 --file |
--fil |
--fi |
--f )
19016 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
19017 ac_need_defaults
=false
;;
19018 --header |
--heade |
--head |
--hea )
19020 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
19021 ac_need_defaults
=false
;;
19022 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19023 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19026 # This is an error.
19027 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19028 Try \`$0 --help' for more information." >&5
19029 echo "$as_me: error: unrecognized option: $1
19030 Try \`$0 --help' for more information." >&2;}
19031 { (exit 1); exit 1; }; } ;;
19033 *) ac_config_targets
="$ac_config_targets $1" ;;
19039 ac_configure_extra_args
=
19041 if $ac_cs_silent; then
19043 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19047 cat >>$CONFIG_STATUS <<_ACEOF
19048 if \$ac_cs_recheck; then
19049 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19050 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19055 cat >>$CONFIG_STATUS <<_ACEOF
19057 # INIT-COMMANDS section.
19060 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
19066 cat >>$CONFIG_STATUS <<\_ACEOF
19067 for ac_config_target
in $ac_config_targets
19069 case "$ac_config_target" in
19070 # Handling of arguments.
19071 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19072 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
19073 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
19074 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
19075 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
19076 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
19077 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
19078 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
19079 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
19080 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
19081 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
19082 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
19083 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19084 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19085 { (exit 1); exit 1; }; };;
19089 # If the user did not use the arguments to specify the items to instantiate,
19090 # then the envvar interface is used. Set only those that are not.
19091 # We use the long form for the default assignment because of an extremely
19092 # bizarre bug on SunOS 4.1.3.
19093 if $ac_need_defaults; then
19094 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19095 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
19096 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
19099 # Have a temporary directory for convenience. Make it in the build tree
19100 # simply because there is no reason to put it here, and in addition,
19101 # creating and moving files from /tmp can sometimes cause problems.
19102 # Create a temporary directory, and hook for its removal unless debugging.
19105 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19106 trap '{ (exit 1); exit 1; }' 1 2 13 15
19109 # Create a (secure) tmp directory for tmp files.
19112 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19113 test -n "$tmp" && test -d "$tmp"
19116 tmp
=.
/confstat$$
-$RANDOM
19117 (umask 077 && mkdir
$tmp)
19120 echo "$me: cannot create a temporary directory in ." >&2
19121 { (exit 1); exit 1; }
19126 cat >>$CONFIG_STATUS <<_ACEOF
19129 # CONFIG_FILES section.
19132 # No need to generate the scripts if there are no CONFIG_FILES.
19133 # This happens for instance when ./config.status config.h
19134 if test -n "\$CONFIG_FILES"; then
19135 # Protect against being on the right side of a sed subst in config.status.
19136 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19137 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19138 s,@SHELL@,$SHELL,;t t
19139 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19140 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19141 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19142 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19143 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19144 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19145 s,@exec_prefix@,$exec_prefix,;t t
19146 s,@prefix@,$prefix,;t t
19147 s,@program_transform_name@,$program_transform_name,;t t
19148 s,@bindir@,$bindir,;t t
19149 s,@sbindir@,$sbindir,;t t
19150 s,@libexecdir@,$libexecdir,;t t
19151 s,@datadir@,$datadir,;t t
19152 s,@sysconfdir@,$sysconfdir,;t t
19153 s,@sharedstatedir@,$sharedstatedir,;t t
19154 s,@localstatedir@,$localstatedir,;t t
19155 s,@libdir@,$libdir,;t t
19156 s,@includedir@,$includedir,;t t
19157 s,@oldincludedir@,$oldincludedir,;t t
19158 s,@infodir@,$infodir,;t t
19159 s,@mandir@,$mandir,;t t
19160 s,@build_alias@,$build_alias,;t t
19161 s,@host_alias@,$host_alias,;t t
19162 s,@target_alias@,$target_alias,;t t
19163 s,@DEFS@,$DEFS,;t t
19164 s,@ECHO_C@,$ECHO_C,;t t
19165 s,@ECHO_N@,$ECHO_N,;t t
19166 s,@ECHO_T@,$ECHO_T,;t t
19167 s,@LIBS@,$LIBS,;t t
19168 s,@MAINT@,$MAINT,;t t
19169 s,@build@,$build,;t t
19170 s,@build_cpu@,$build_cpu,;t t
19171 s,@build_vendor@,$build_vendor,;t t
19172 s,@build_os@,$build_os,;t t
19173 s,@host@,$host,;t t
19174 s,@host_cpu@,$host_cpu,;t t
19175 s,@host_vendor@,$host_vendor,;t t
19176 s,@host_os@,$host_os,;t t
19178 s,@CFLAGS@,$CFLAGS,;t t
19179 s,@LDFLAGS@,$LDFLAGS,;t t
19180 s,@CPPFLAGS@,$CPPFLAGS,;t t
19181 s,@ac_ct_CC@,$ac_ct_CC,;t t
19182 s,@EXEEXT@,$EXEEXT,;t t
19183 s,@OBJEXT@,$OBJEXT,;t t
19184 s,@LN_S@,$LN_S,;t t
19186 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19187 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19188 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19189 s,@RANLIB@,$RANLIB,;t t
19190 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19191 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
19192 s,@EGREP@,$EGREP,;t t
19193 s,@LIBSOUND@,$LIBSOUND,;t t
19194 s,@SET_MAKE@,$SET_MAKE,;t t
19195 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19196 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
19197 s,@GTK_LIBS@,$GTK_LIBS,;t t
19198 s,@ALLOCA@,$ALLOCA,;t t
19199 s,@liblockfile@,$liblockfile,;t t
19200 s,@LIBOBJS@,$LIBOBJS,;t t
19201 s,@NEED_SETGID@,$NEED_SETGID,;t t
19202 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
19203 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
19204 s,@version@,$version,;t t
19205 s,@configuration@,$configuration,;t t
19206 s,@canonical@,$canonical,;t t
19207 s,@srcdir@,$srcdir,;t t
19208 s,@lispdir@,$lispdir,;t t
19209 s,@locallisppath@,$locallisppath,;t t
19210 s,@lisppath@,$lisppath,;t t
19211 s,@x_default_search_path@,$x_default_search_path,;t t
19212 s,@etcdir@,$etcdir,;t t
19213 s,@archlibdir@,$archlibdir,;t t
19214 s,@docdir@,$docdir,;t t
19215 s,@bitmapdir@,$bitmapdir,;t t
19216 s,@gamedir@,$gamedir,;t t
19217 s,@gameuser@,$gameuser,;t t
19218 s,@c_switch_system@,$c_switch_system,;t t
19219 s,@c_switch_machine@,$c_switch_machine,;t t
19220 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
19221 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
19222 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
19223 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
19224 s,@machfile@,$machfile,;t t
19225 s,@opsysfile@,$opsysfile,;t t
19226 s,@carbon_appdir@,$carbon_appdir,;t t
19227 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19232 cat >>$CONFIG_STATUS <<\_ACEOF
19233 # Split the substitutions into bite-sized pieces for seds with
19234 # small command number limits, like on Digital OSF/1 and HP-UX.
19235 ac_max_sed_lines
=48
19236 ac_sed_frag
=1 # Number of current file.
19237 ac_beg
=1 # First line for current file.
19238 ac_end
=$ac_max_sed_lines # Line after last line for current file.
19241 while $ac_more_lines; do
19242 if test $ac_beg -gt 1; then
19243 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
19245 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
19247 if test ! -s $tmp/subs.frag
; then
19248 ac_more_lines
=false
19250 # The purpose of the label and of the branching condition is to
19251 # speed up the sed processing (if there are no `@' at all, there
19252 # is no need to browse any of the substitutions).
19253 # These are the two extra sed commands mentioned above.
19255 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
19256 if test -z "$ac_sed_cmds"; then
19257 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
19259 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19261 ac_sed_frag
=`expr $ac_sed_frag + 1`
19263 ac_end
=`expr $ac_end + $ac_max_sed_lines`
19266 if test -z "$ac_sed_cmds"; then
19269 fi # test -n "$CONFIG_FILES"
19272 cat >>$CONFIG_STATUS <<\_ACEOF
19273 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
19274 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19276 - |
*:- |
*:-:* ) # input from stdin
19278 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19279 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19280 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19281 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19282 * ) ac_file_in
=$ac_file.
in ;;
19285 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19286 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
19287 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19288 X"$ac_file" : 'X\(//\)[^/]' \| \
19289 X"$ac_file" : 'X\(//\)$' \| \
19290 X"$ac_file" : 'X\(/\)' \| \
19291 . : '\(.\)' 2>/dev/null ||
19293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19294 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19295 /^X\(\/\/\)$/{ s//\1/; q; }
19296 /^X\(\/\).*/{ s//\1/; q; }
19298 { if $as_mkdir_p; then
19303 while test ! -d "$as_dir"; do
19304 as_dirs
="$as_dir $as_dirs"
19305 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
19306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19307 X"$as_dir" : 'X\(//\)[^/]' \| \
19308 X"$as_dir" : 'X\(//\)$' \| \
19309 X"$as_dir" : 'X\(/\)' \| \
19310 . : '\(.\)' 2>/dev/null ||
19312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19313 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19314 /^X\(\/\/\)$/{ s//\1/; q; }
19315 /^X\(\/\).*/{ s//\1/; q; }
19318 test ! -n "$as_dirs" || mkdir
$as_dirs
19319 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19320 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19321 { (exit 1); exit 1; }; }; }
19325 if test "$ac_dir" != .
; then
19326 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19327 # A "../" for each directory in $ac_dir_suffix.
19328 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19330 ac_dir_suffix
= ac_top_builddir
=
19334 .
) # No --srcdir option. We are building in place.
19336 if test -z "$ac_top_builddir"; then
19339 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
19341 [\\/]* | ?
:[\\/]* ) # Absolute path.
19342 ac_srcdir
=$srcdir$ac_dir_suffix;
19343 ac_top_srcdir
=$srcdir ;;
19344 *) # Relative path.
19345 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
19346 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
19348 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19350 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
19351 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19352 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19353 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19357 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
19358 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
19361 if test x
"$ac_file" != x-
; then
19362 { echo "$as_me:$LINENO: creating $ac_file" >&5
19363 echo "$as_me: creating $ac_file" >&6;}
19366 # Let's still pretend it is `configure' which instantiates (i.e., don't
19367 # use $as_me), people would be surprised to read:
19368 # /* config.h. Generated by config.status. */
19369 if test x
"$ac_file" = x-
; then
19372 configure_input
="$ac_file. "
19374 configure_input
=$configure_input"Generated from `echo $ac_file_in |
19375 sed 's,.*/,,'` by configure."
19377 # First look for the input files in the build tree, otherwise in the
19379 ac_file_inputs
=`IFS=:
19380 for f in $ac_file_in; do
19382 -) echo $tmp/stdin ;;
19384 # Absolute (can't be DOS-style, as IFS=:)
19385 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19386 echo "$as_me: error: cannot find input file: $f" >&2;}
19387 { (exit 1); exit 1; }; }
19390 if test -f "$f"; then
19393 elif test -f "$srcdir/$f"; then
19398 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19399 echo "$as_me: error: cannot find input file: $f" >&2;}
19400 { (exit 1); exit 1; }; }
19403 done` ||
{ (exit 1); exit 1; }
19405 cat >>$CONFIG_STATUS <<_ACEOF
19409 cat >>$CONFIG_STATUS <<\_ACEOF
19411 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19412 s
,@configure_input@
,$configure_input,;t t
19413 s
,@srcdir@
,$ac_srcdir,;t t
19414 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
19415 s
,@top_srcdir@
,$ac_top_srcdir,;t t
19416 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
19417 s
,@builddir@
,$ac_builddir,;t t
19418 s
,@abs_builddir@
,$ac_abs_builddir,;t t
19419 s
,@top_builddir@
,$ac_top_builddir,;t t
19420 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
19421 s
,@INSTALL@
,$ac_INSTALL,;t t
19422 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19424 if test x"$ac_file" != x-; then
19425 mv $tmp/out $ac_file
19433 cat >>$CONFIG_STATUS <<\_ACEOF
19436 # CONFIG_HEADER section.
19439 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
19440 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19442 # ac_d sets the value in "#define NAME VALUE" lines.
19443 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19444 ac_dB
='[ ].*$,\1#\2'
19447 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19448 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19449 ac_uB
='$,\1#\2define\3'
19453 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
19454 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19456 - |
*:- |
*:-:* ) # input from stdin
19458 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19459 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19460 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19461 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19462 * ) ac_file_in
=$ac_file.
in ;;
19465 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
19466 echo "$as_me: creating $ac_file" >&6;}
19468 # First look for the input files in the build tree, otherwise in the
19470 ac_file_inputs
=`IFS=:
19471 for f in $ac_file_in; do
19473 -) echo $tmp/stdin ;;
19475 # Absolute (can't be DOS-style, as IFS=:)
19476 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19477 echo "$as_me: error: cannot find input file: $f" >&2;}
19478 { (exit 1); exit 1; }; }
19481 if test -f "$f"; then
19484 elif test -f "$srcdir/$f"; then
19489 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19490 echo "$as_me: error: cannot find input file: $f" >&2;}
19491 { (exit 1); exit 1; }; }
19494 done` ||
{ (exit 1); exit 1; }
19495 # Remove the trailing spaces.
19496 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19500 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19501 # `conftest.undefs', that substitutes the proper values into
19502 # config.h.in to produce config.h. The first handles `#define'
19503 # templates, and the second `#undef' templates.
19504 # And first: Protect against being on the right side of a sed subst in
19505 # config.status. Protect against being in an unquoted here document
19506 # in config.status.
19507 rm -f conftest.defines conftest.undefs
19508 # Using a here document instead of a string reduces the quoting nightmare.
19509 # Putting comments in sed scripts is not portable.
19511 # `end' is used to avoid that the second main sed command (meant for
19512 # 0-ary CPP macros) applies to n-ary macro definitions.
19513 # See the Autoconf documentation for `clear'.
19514 cat >confdef2sed.
sed <<\_ACEOF
19519 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19521 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19524 # If some macros were called several times there might be several times
19525 # the same #defines, which is useless. Nevertheless, we may not want to
19526 # sort them, since we want the *last* AC-DEFINE to be honored.
19527 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19528 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19529 rm -f confdef2sed.sed
19531 # This sed command replaces #undef with comments. This is necessary, for
19532 # example, in the case of _POSIX_SOURCE, which is predefined and required
19533 # on some systems where configure will not decide to define it.
19534 cat >>conftest.undefs <<\_ACEOF
19535 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19538 # Break up conftest.defines because some shells have a limit on the size
19539 # of here documents, and old seds have small limits too (100 cmds).
19540 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19541 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19542 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19543 echo ' :' >>$CONFIG_STATUS
19544 rm -f conftest.tail
19545 while grep . conftest.defines >/dev/null
19547 # Write a limited-size here document to $tmp/defines.sed.
19548 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19549 # Speed up: don't consider the non `#define' lines.
19550 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19551 # Work around the forget-to-reset-the-flag bug.
19552 echo 't clr' >>$CONFIG_STATUS
19553 echo ': clr' >>$CONFIG_STATUS
19554 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
19556 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19558 mv $tmp/out $tmp/in
19560 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
19561 rm -f conftest.defines
19562 mv conftest.
tail conftest.defines
19564 rm -f conftest.defines
19565 echo ' fi # grep' >>$CONFIG_STATUS
19566 echo >>$CONFIG_STATUS
19568 # Break up conftest.undefs because some shells have a limit on the size
19569 # of here documents, and old seds have small limits too (100 cmds).
19570 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19571 rm -f conftest.
tail
19572 while grep . conftest.undefs
>/dev
/null
19574 # Write a limited-size here document to $tmp/undefs.sed.
19575 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19576 # Speed up: don't consider the non
`#undef'
19577 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19578 # Work around the forget-to-reset-the-flag bug.
19579 echo 't clr' >>$CONFIG_STATUS
19580 echo ': clr' >>$CONFIG_STATUS
19581 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19583 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19585 mv $tmp/out $tmp/in
19587 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19588 rm -f conftest.undefs
19589 mv conftest.tail conftest.undefs
19591 rm -f conftest.undefs
19593 cat >>$CONFIG_STATUS <<\_ACEOF
19594 # Let's still pretend it is `configure
' which instantiates (i.e., don't
19595 # use $as_me), people would be surprised to read:
19596 # /* config.h. Generated by config.status. */
19597 if test x
"$ac_file" = x-
; then
19598 echo "/* Generated by configure. */" >$tmp/config.h
19600 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19602 cat $tmp/in >>$tmp/config.h
19604 if test x
"$ac_file" != x-
; then
19605 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
19606 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19607 echo "$as_me: $ac_file is unchanged" >&6;}
19609 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
19610 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19611 X"$ac_file" : 'X\(//\)[^/]' \| \
19612 X"$ac_file" : 'X\(//\)$' \| \
19613 X"$ac_file" : 'X\(/\)' \| \
19614 . : '\(.\)' 2>/dev/null ||
19616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19617 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19618 /^X\(\/\/\)$/{ s//\1/; q; }
19619 /^X\(\/\).*/{ s//\1/; q; }
19621 { if $as_mkdir_p; then
19626 while test ! -d "$as_dir"; do
19627 as_dirs
="$as_dir $as_dirs"
19628 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
19629 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19630 X"$as_dir" : 'X\(//\)[^/]' \| \
19631 X"$as_dir" : 'X\(//\)$' \| \
19632 X"$as_dir" : 'X\(/\)' \| \
19633 . : '\(.\)' 2>/dev/null ||
19635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19636 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19637 /^X\(\/\/\)$/{ s//\1/; q; }
19638 /^X\(\/\).*/{ s//\1/; q; }
19641 test ! -n "$as_dirs" || mkdir
$as_dirs
19642 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19643 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19644 { (exit 1); exit 1; }; }; }
19647 mv $tmp/config.h
$ac_file
19651 rm -f $tmp/config.h
19655 cat >>$CONFIG_STATUS <<\_ACEOF
19658 # CONFIG_COMMANDS section.
19660 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
19661 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
19662 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19663 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
19664 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19665 X"$ac_dest" : 'X\(//\)[^/]' \| \
19666 X"$ac_dest" : 'X\(//\)$' \| \
19667 X"$ac_dest" : 'X\(/\)' \| \
19668 . : '\(.\)' 2>/dev/null ||
19670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19671 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19672 /^X\(\/\/\)$/{ s//\1/; q; }
19673 /^X\(\/\).*/{ s//\1/; q; }
19677 if test "$ac_dir" != .
; then
19678 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19679 # A "../" for each directory in $ac_dir_suffix.
19680 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19682 ac_dir_suffix
= ac_top_builddir
=
19686 .
) # No --srcdir option. We are building in place.
19688 if test -z "$ac_top_builddir"; then
19691 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
19693 [\\/]* | ?
:[\\/]* ) # Absolute path.
19694 ac_srcdir
=$srcdir$ac_dir_suffix;
19695 ac_top_srcdir
=$srcdir ;;
19696 *) # Relative path.
19697 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
19698 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
19700 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19702 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
19703 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19704 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19705 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19708 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19709 echo "$as_me: executing $ac_dest commands" >&6;}
19713 ### Make the necessary directories, if they don't exist.
19714 for dir
in etc lisp
; do
19715 test -d ${dir} || mkdir
${dir}
19718 # Build src/Makefile from ${srcdir}/src/Makefile.c
19719 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
19720 # This must be done after src/config.h is built, since we rely on that file.
19722 # Now get this: Some word that is part of the ${srcdir} directory name
19723 # or the ${configuration} value might, just might, happen to be an
19724 # identifier like `sun4' or `i386' or something, and be predefined by
19725 # the C preprocessor to some helpful value like 1, or maybe the empty
19726 # string. Needless to say consequent macro substitutions are less
19727 # than conducive to the makefile finding the correct directory.
19728 undefs
="`echo $top_srcdir $configuration $canonical |
19729 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
19730 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
19733 echo creating src
/epaths.h
19734 ${MAKE-make} epaths-force
19736 # As of 2000-11-19, newest development versions of GNU cpp preprocess
19737 # `..' to `. .' unless invoked with -traditional
19739 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
19740 CPPFLAGS
="$CPPFLAGS -traditional"
19743 echo creating lib-src
/Makefile
19745 rm -f junk.c junk1.c junk2.c
19746 sed -e '/start of cpp stuff/q' \
19747 < Makefile.c
> junk1.c
19748 sed -e '1,/start of cpp stuff/d'\
19749 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19750 < Makefile.c
> junk.c
19751 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
19752 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19753 cat junk1.c junk2.c
> Makefile.new
19754 rm -f junk.c junk1.c junk2.c
19755 chmod 444 Makefile.new
19756 mv -f Makefile.new Makefile
19759 echo creating src
/Makefile
19761 rm -f junk.c junk1.c junk2.c
19762 sed -e '/start of cpp stuff/q' \
19763 < Makefile.c
> junk1.c
19764 sed -e '1,/start of cpp stuff/d'\
19765 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19766 < Makefile.c
> junk.c
19767 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
19768 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19769 cat junk1.c junk2.c
> Makefile.new
19770 rm -f junk.c junk1.c junk2.c
19771 chmod 444 Makefile.new
19772 mv -f Makefile.new Makefile
19775 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
19776 echo creating src
/.gdbinit
19777 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
19780 # This is how we know whether to re-run configure in certain cases.
19781 touch src
/config.stamp
19788 cat >>$CONFIG_STATUS <<\_ACEOF
19790 { (exit 0); exit 0; }
19792 chmod +x
$CONFIG_STATUS
19793 ac_clean_files
=$ac_clean_files_save
19796 # configure is writing to config.log, and then calls config.status.
19797 # config.status does its own redirection, appending to config.log.
19798 # Unfortunately, on DOS this fails, as config.log is still kept open
19799 # by configure, so config.status won't be able to write to it; its
19800 # output is simply discarded. So we exec the FD to /dev/null,
19801 # effectively closing config.log, so it can be properly (re)opened and
19802 # appended to by config.status. When coming back to configure, we
19803 # need to make the FD available again.
19804 if test "$no_create" != yes; then
19806 ac_config_status_args
=
19807 test "$silent" = yes &&
19808 ac_config_status_args
="$ac_config_status_args --quiet"
19810 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19812 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19813 # would make configure fail if this is the last instruction.
19814 $ac_cs_success ||
{ (exit 1); exit 1; }