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
6275 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6276 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6277 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6278 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 cat >conftest.
$ac_ext <<_ACEOF
6281 #line $LINENO "configure"
6284 cat confdefs.h
>>conftest.
$ac_ext
6285 cat >>conftest.
$ac_ext <<_ACEOF
6286 /* end confdefs.h. */
6292 static struct ifreq ac_aggr;
6293 if (ac_aggr.ifr_flags)
6299 rm -f conftest.
$ac_objext
6300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6301 (eval $ac_compile) 2>&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } &&
6305 { ac_try
='test -s conftest.$ac_objext'
6306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); }; }; then
6311 ac_cv_member_struct_ifreq_ifr_flags
=yes
6313 echo "$as_me: failed program was:" >&5
6314 sed 's/^/| /' conftest.
$ac_ext >&5
6316 cat >conftest.
$ac_ext <<_ACEOF
6317 #line $LINENO "configure"
6320 cat confdefs.h
>>conftest.
$ac_ext
6321 cat >>conftest.
$ac_ext <<_ACEOF
6322 /* end confdefs.h. */
6328 static struct ifreq ac_aggr;
6329 if (sizeof ac_aggr.ifr_flags)
6335 rm -f conftest.
$ac_objext
6336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6337 (eval $ac_compile) 2>&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); } &&
6341 { ac_try
='test -s conftest.$ac_objext'
6342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }; }; then
6347 ac_cv_member_struct_ifreq_ifr_flags
=yes
6349 echo "$as_me: failed program was:" >&5
6350 sed 's/^/| /' conftest.
$ac_ext >&5
6352 ac_cv_member_struct_ifreq_ifr_flags
=no
6354 rm -f conftest.
$ac_objext conftest.
$ac_ext
6356 rm -f conftest.
$ac_objext conftest.
$ac_ext
6358 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
6359 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
6360 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
6362 cat >>confdefs.h
<<_ACEOF
6363 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6368 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
6369 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
6370 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
6371 echo $ECHO_N "(cached) $ECHO_C" >&6
6373 cat >conftest.
$ac_ext <<_ACEOF
6374 #line $LINENO "configure"
6377 cat confdefs.h
>>conftest.
$ac_ext
6378 cat >>conftest.
$ac_ext <<_ACEOF
6379 /* end confdefs.h. */
6385 static struct ifreq ac_aggr;
6386 if (ac_aggr.ifr_hwaddr)
6392 rm -f conftest.
$ac_objext
6393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6394 (eval $ac_compile) 2>&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } &&
6398 { ac_try
='test -s conftest.$ac_objext'
6399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; }; then
6404 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
6406 echo "$as_me: failed program was:" >&5
6407 sed 's/^/| /' conftest.
$ac_ext >&5
6409 cat >conftest.
$ac_ext <<_ACEOF
6410 #line $LINENO "configure"
6413 cat confdefs.h
>>conftest.
$ac_ext
6414 cat >>conftest.
$ac_ext <<_ACEOF
6415 /* end confdefs.h. */
6421 static struct ifreq ac_aggr;
6422 if (sizeof ac_aggr.ifr_hwaddr)
6428 rm -f conftest.
$ac_objext
6429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6430 (eval $ac_compile) 2>&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } &&
6434 { ac_try
='test -s conftest.$ac_objext'
6435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); }; }; then
6440 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
6442 echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.
$ac_ext >&5
6445 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
6447 rm -f conftest.
$ac_objext conftest.
$ac_ext
6449 rm -f conftest.
$ac_objext conftest.
$ac_ext
6451 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
6452 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
6453 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
6455 cat >>confdefs.h
<<_ACEOF
6456 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6461 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
6462 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
6463 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
6464 echo $ECHO_N "(cached) $ECHO_C" >&6
6466 cat >conftest.
$ac_ext <<_ACEOF
6467 #line $LINENO "configure"
6470 cat confdefs.h
>>conftest.
$ac_ext
6471 cat >>conftest.
$ac_ext <<_ACEOF
6472 /* end confdefs.h. */
6478 static struct ifreq ac_aggr;
6479 if (ac_aggr.ifr_netmask)
6485 rm -f conftest.
$ac_objext
6486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6487 (eval $ac_compile) 2>&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); } &&
6491 { ac_try
='test -s conftest.$ac_objext'
6492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); }; }; then
6497 ac_cv_member_struct_ifreq_ifr_netmask
=yes
6499 echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.
$ac_ext >&5
6502 cat >conftest.
$ac_ext <<_ACEOF
6503 #line $LINENO "configure"
6506 cat confdefs.h
>>conftest.
$ac_ext
6507 cat >>conftest.
$ac_ext <<_ACEOF
6508 /* end confdefs.h. */
6514 static struct ifreq ac_aggr;
6515 if (sizeof ac_aggr.ifr_netmask)
6521 rm -f conftest.
$ac_objext
6522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6523 (eval $ac_compile) 2>&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); } &&
6527 { ac_try
='test -s conftest.$ac_objext'
6528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }; }; then
6533 ac_cv_member_struct_ifreq_ifr_netmask
=yes
6535 echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.
$ac_ext >&5
6538 ac_cv_member_struct_ifreq_ifr_netmask
=no
6540 rm -f conftest.
$ac_objext conftest.
$ac_ext
6542 rm -f conftest.
$ac_objext conftest.
$ac_ext
6544 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
6545 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
6546 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
6548 cat >>confdefs.h
<<_ACEOF
6549 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6554 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
6555 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
6556 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
6557 echo $ECHO_N "(cached) $ECHO_C" >&6
6559 cat >conftest.
$ac_ext <<_ACEOF
6560 #line $LINENO "configure"
6563 cat confdefs.h
>>conftest.
$ac_ext
6564 cat >>conftest.
$ac_ext <<_ACEOF
6565 /* end confdefs.h. */
6571 static struct ifreq ac_aggr;
6572 if (ac_aggr.ifr_broadaddr)
6578 rm -f conftest.
$ac_objext
6579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6580 (eval $ac_compile) 2>&5
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); } &&
6584 { ac_try
='test -s conftest.$ac_objext'
6585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); }; }; then
6590 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
6592 echo "$as_me: failed program was:" >&5
6593 sed 's/^/| /' conftest.
$ac_ext >&5
6595 cat >conftest.
$ac_ext <<_ACEOF
6596 #line $LINENO "configure"
6599 cat confdefs.h
>>conftest.
$ac_ext
6600 cat >>conftest.
$ac_ext <<_ACEOF
6601 /* end confdefs.h. */
6607 static struct ifreq ac_aggr;
6608 if (sizeof ac_aggr.ifr_broadaddr)
6614 rm -f conftest.
$ac_objext
6615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6616 (eval $ac_compile) 2>&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); } &&
6620 { ac_try
='test -s conftest.$ac_objext'
6621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); }; }; then
6626 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
6628 echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.
$ac_ext >&5
6631 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
6633 rm -f conftest.
$ac_objext conftest.
$ac_ext
6635 rm -f conftest.
$ac_objext conftest.
$ac_ext
6637 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
6638 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
6639 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
6641 cat >>confdefs.h
<<_ACEOF
6642 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6647 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
6648 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
6649 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
6650 echo $ECHO_N "(cached) $ECHO_C" >&6
6652 cat >conftest.
$ac_ext <<_ACEOF
6653 #line $LINENO "configure"
6656 cat confdefs.h
>>conftest.
$ac_ext
6657 cat >>conftest.
$ac_ext <<_ACEOF
6658 /* end confdefs.h. */
6664 static struct ifreq ac_aggr;
6665 if (ac_aggr.ifr_addr)
6671 rm -f conftest.
$ac_objext
6672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6673 (eval $ac_compile) 2>&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); } &&
6677 { ac_try
='test -s conftest.$ac_objext'
6678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); }; }; then
6683 ac_cv_member_struct_ifreq_ifr_addr
=yes
6685 echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.
$ac_ext >&5
6688 cat >conftest.
$ac_ext <<_ACEOF
6689 #line $LINENO "configure"
6692 cat confdefs.h
>>conftest.
$ac_ext
6693 cat >>conftest.
$ac_ext <<_ACEOF
6694 /* end confdefs.h. */
6700 static struct ifreq ac_aggr;
6701 if (sizeof ac_aggr.ifr_addr)
6707 rm -f conftest.
$ac_objext
6708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6709 (eval $ac_compile) 2>&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } &&
6713 { ac_try
='test -s conftest.$ac_objext'
6714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); }; }; then
6719 ac_cv_member_struct_ifreq_ifr_addr
=yes
6721 echo "$as_me: failed program was:" >&5
6722 sed 's/^/| /' conftest.
$ac_ext >&5
6724 ac_cv_member_struct_ifreq_ifr_addr
=no
6726 rm -f conftest.
$ac_objext conftest.
$ac_ext
6728 rm -f conftest.
$ac_objext conftest.
$ac_ext
6730 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
6731 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
6732 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
6734 cat >>confdefs.h
<<_ACEOF
6735 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6743 echo "$as_me:$LINENO: checking for function prototypes" >&5
6744 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6745 if test "$ac_cv_prog_cc_stdc" != no
; then
6746 echo "$as_me:$LINENO: result: yes" >&5
6747 echo "${ECHO_T}yes" >&6
6749 cat >>confdefs.h
<<\_ACEOF
6750 #define PROTOTYPES 1
6754 cat >>confdefs.h
<<\_ACEOF
6755 #define __PROTOTYPES 1
6759 echo "$as_me:$LINENO: result: no" >&5
6760 echo "${ECHO_T}no" >&6
6763 echo "$as_me:$LINENO: checking for working volatile" >&5
6764 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6765 if test "${ac_cv_c_volatile+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 cat >conftest.
$ac_ext <<_ACEOF
6769 #line $LINENO "configure"
6772 cat confdefs.h
>>conftest.
$ac_ext
6773 cat >>conftest.
$ac_ext <<_ACEOF
6774 /* end confdefs.h. */
6786 rm -f conftest.
$ac_objext
6787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6788 (eval $ac_compile) 2>&5
6790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); } &&
6792 { ac_try
='test -s conftest.$ac_objext'
6793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); }; }; then
6798 ac_cv_c_volatile
=yes
6800 echo "$as_me: failed program was:" >&5
6801 sed 's/^/| /' conftest.
$ac_ext >&5
6805 rm -f conftest.
$ac_objext conftest.
$ac_ext
6807 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6808 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6809 if test $ac_cv_c_volatile = no
; then
6811 cat >>confdefs.h
<<\_ACEOF
6817 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6818 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6819 if test "${ac_cv_c_const+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
6822 cat >conftest.
$ac_ext <<_ACEOF
6823 #line $LINENO "configure"
6826 cat confdefs.h
>>conftest.
$ac_ext
6827 cat >>conftest.
$ac_ext <<_ACEOF
6828 /* end confdefs.h. */
6833 /* FIXME: Include the comments suggested by Paul. */
6835 /* Ultrix mips cc rejects this. */
6836 typedef int charset[2];
6838 /* SunOS 4.1.1 cc rejects this. */
6839 char const *const *ccp;
6841 /* NEC SVR4.0.2 mips cc rejects this. */
6842 struct point {int x, y;};
6843 static struct point const zero = {0,0};
6844 /* AIX XL C 1.02.0.0 rejects this.
6845 It does not let you subtract one const X* pointer from another in
6846 an arm of an if-expression whose if-part is not a constant
6848 const char *g = "string";
6849 ccp = &g + (g ? g-g : 0);
6850 /* HPUX 7.0 cc rejects these. */
6853 ccp = (char const *const *) p;
6854 { /* SCO 3.2v4 cc rejects this. */
6856 char const *s = 0 ? (char *) 0 : (char const *) 0;
6860 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6862 const int *foo = &x[0];
6865 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6866 typedef const int *iptr;
6870 { /* AIX XL C 1.02.0.0 rejects this saying
6871 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6872 struct s { int j; const int *ap[3]; };
6873 struct s *b; b->j = 5;
6875 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6884 rm -f conftest.
$ac_objext
6885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6886 (eval $ac_compile) 2>&5
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); } &&
6890 { ac_try
='test -s conftest.$ac_objext'
6891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); }; }; then
6898 echo "$as_me: failed program was:" >&5
6899 sed 's/^/| /' conftest.
$ac_ext >&5
6903 rm -f conftest.
$ac_objext conftest.
$ac_ext
6905 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6906 echo "${ECHO_T}$ac_cv_c_const" >&6
6907 if test $ac_cv_c_const = no
; then
6909 cat >>confdefs.h
<<\_ACEOF
6915 echo "$as_me:$LINENO: checking for void * support" >&5
6916 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
6917 if test "${emacs_cv_void_star+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6920 cat >conftest.
$ac_ext <<_ACEOF
6921 #line $LINENO "configure"
6924 cat confdefs.h
>>conftest.
$ac_ext
6925 cat >>conftest.
$ac_ext <<_ACEOF
6926 /* end confdefs.h. */
6936 rm -f conftest.
$ac_objext
6937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6938 (eval $ac_compile) 2>&5
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); } &&
6942 { ac_try
='test -s conftest.$ac_objext'
6943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); }; }; then
6948 emacs_cv_void_star
=yes
6950 echo "$as_me: failed program was:" >&5
6951 sed 's/^/| /' conftest.
$ac_ext >&5
6953 emacs_cv_void_star
=no
6955 rm -f conftest.
$ac_objext conftest.
$ac_ext
6957 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6958 echo "${ECHO_T}$emacs_cv_void_star" >&6
6959 if test $emacs_cv_void_star = yes; then
6960 cat >>confdefs.h
<<\_ACEOF
6961 #define POINTER_TYPE void
6965 cat >>confdefs.h
<<\_ACEOF
6966 #define POINTER_TYPE char
6973 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6974 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6975 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
6976 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6977 echo $ECHO_N "(cached) $ECHO_C" >&6
6979 cat >conftest.
make <<\_ACEOF
6981 @
echo 'ac_maketemp="$(MAKE)"'
6983 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6984 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6985 if test -n "$ac_maketemp"; then
6986 eval ac_cv_prog_make_
${ac_make}_set
=yes
6988 eval ac_cv_prog_make_
${ac_make}_set
=no
6992 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6993 echo "$as_me:$LINENO: result: yes" >&5
6994 echo "${ECHO_T}yes" >&6
6997 echo "$as_me:$LINENO: result: no" >&5
6998 echo "${ECHO_T}no" >&6
6999 SET_MAKE
="MAKE=${MAKE-make}"
7003 echo "$as_me:$LINENO: checking for long file names" >&5
7004 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7005 if test "${ac_cv_sys_long_file_names+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7008 ac_cv_sys_long_file_names
=yes
7009 # Test for long file names in all the places we know might matter:
7010 # . the current directory, where building will happen
7011 # $prefix/lib where we will be installing things
7012 # $exec_prefix/lib likewise
7013 # eval it to expand exec_prefix.
7014 # $TMPDIR if set, where it might want to write temporary files
7015 # if $TMPDIR is not set:
7016 # /tmp where it might want to write temporary files
7019 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7022 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
7024 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7025 test -d $ac_dir ||
continue
7026 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
7027 ac_xdir
=$ac_dir/cf$$
7028 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
7029 ac_tf1
=$ac_xdir/conftest9012345
7030 ac_tf2
=$ac_xdir/conftest9012346
7031 (echo 1 >$ac_tf1) 2>/dev
/null
7032 (echo 2 >$ac_tf2) 2>/dev
/null
7033 ac_val
=`cat $ac_tf1 2>/dev/null`
7034 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
7035 ac_cv_sys_long_file_names
=no
7036 rm -rf $ac_xdir 2>/dev
/null
7039 rm -rf $ac_xdir 2>/dev
/null
7042 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7043 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7044 if test $ac_cv_sys_long_file_names = yes; then
7046 cat >>confdefs.h
<<\_ACEOF
7047 #define HAVE_LONG_FILE_NAMES 1
7053 #### Choose a window system.
7055 echo "$as_me:$LINENO: checking for X" >&5
7056 echo $ECHO_N "checking for X... $ECHO_C" >&6
7059 # Check whether --with-x or --without-x was given.
7060 if test "${with_x+set}" = set; then
7064 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7065 if test "x$with_x" = xno
; then
7066 # The user explicitly disabled X.
7069 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
7070 # Both variables are already set.
7073 if test "${ac_cv_have_x+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7076 # One or both of the vars are not set, and there is no cached value.
7077 ac_x_includes
=no ac_x_libraries
=no
7079 if mkdir conftest.dir
; then
7081 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7082 cat >Imakefile
<<'_ACEOF'
7084 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7086 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7087 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7088 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7089 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7090 for ac_extension
in a so sl
; do
7091 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
7092 test -f $ac_im_libdir/libX11.
$ac_extension; then
7093 ac_im_usrlibdir
=$ac_im_libdir; break
7096 # Screen out bogus values from the imake configuration. They are
7097 # bogus both because they are the default anyway, and because
7098 # using them would break gcc on systems where it needs fixed includes.
7099 case $ac_im_incroot in
7101 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
7103 case $ac_im_usrlibdir in
7105 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
7112 # Standard set of common directories for X headers.
7113 # Check X11 before X11Rn because it is often a symlink to the current release.
7125 /usr/local/X11/include
7126 /usr/local/X11R6/include
7127 /usr/local/X11R5/include
7128 /usr/local/X11R4/include
7130 /usr/local/include/X11
7131 /usr/local/include/X11R6
7132 /usr/local/include/X11R5
7133 /usr/local/include/X11R4
7137 /usr/XFree86/include/X11
7141 /usr/unsupported/include
7143 /usr/local/x11r5/include
7144 /usr/lpp/Xamples/include
7146 /usr/openwin/include
7147 /usr/openwin/share/include'
7149 if test "$ac_x_includes" = no
; then
7150 # Guess where to find include files, by looking for Intrinsic.h.
7151 # First, try using that file with no special directory specified.
7152 cat >conftest.
$ac_ext <<_ACEOF
7153 #line $LINENO "configure"
7156 cat confdefs.h
>>conftest.
$ac_ext
7157 cat >>conftest.
$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7159 #include <X11/Intrinsic.h>
7161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7162 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7164 grep -v '^ *+' conftest.er1
>conftest.err
7166 cat conftest.err
>&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); } >/dev
/null
; then
7169 if test -s conftest.err
; then
7170 ac_cpp_err
=$ac_c_preproc_warn_flag
7177 if test -z "$ac_cpp_err"; then
7178 # We can compile using X headers with no special include directory.
7181 echo "$as_me: failed program was:" >&5
7182 sed 's/^/| /' conftest.
$ac_ext >&5
7184 for ac_dir
in $ac_x_header_dirs; do
7185 if test -r "$ac_dir/X11/Intrinsic.h"; then
7186 ac_x_includes
=$ac_dir
7191 rm -f conftest.err conftest.
$ac_ext
7192 fi # $ac_x_includes = no
7194 if test "$ac_x_libraries" = no
; then
7195 # Check for the libraries.
7196 # See if we find them without any special options.
7197 # Don't add to $LIBS permanently.
7200 cat >conftest.
$ac_ext <<_ACEOF
7201 #line $LINENO "configure"
7204 cat confdefs.h
>>conftest.
$ac_ext
7205 cat >>conftest.
$ac_ext <<_ACEOF
7206 /* end confdefs.h. */
7207 #include <X11/Intrinsic.h>
7216 rm -f conftest.
$ac_objext conftest
$ac_exeext
7217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7218 (eval $ac_link) 2>&5
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); } &&
7222 { ac_try
='test -s conftest$ac_exeext'
7223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); }; }; then
7229 # We can link X programs with no special library path.
7232 echo "$as_me: failed program was:" >&5
7233 sed 's/^/| /' conftest.
$ac_ext >&5
7236 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7238 # Don't even attempt the hair of trying to link an X program!
7239 for ac_extension
in a so sl
; do
7240 if test -r $ac_dir/libXt.
$ac_extension; then
7241 ac_x_libraries
=$ac_dir
7247 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7248 fi # $ac_x_libraries = no
7250 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
7251 # Didn't find X anywhere. Cache the known absence of X.
7252 ac_cv_have_x
="have_x=no"
7254 # Record where we found X for the cache.
7255 ac_cv_have_x
="have_x=yes \
7256 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7261 eval "$ac_cv_have_x"
7264 if test "$have_x" != yes; then
7265 echo "$as_me:$LINENO: result: $have_x" >&5
7266 echo "${ECHO_T}$have_x" >&6
7269 # If each of the values was on the command line, it overrides each guess.
7270 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
7271 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
7272 # Update the cache value to reflect the command line values.
7273 ac_cv_have_x
="have_x=yes \
7274 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7275 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7276 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7279 if test "$no_x" = yes; then
7285 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
7286 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7287 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7288 x_default_search_path
=""
7289 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
7291 ${x_library}/X11/%L/%T/%N%C%S:\
7292 ${x_library}/X11/%l/%T/%N%C%S:\
7293 ${x_library}/X11/%T/%N%C%S:\
7294 ${x_library}/X11/%L/%T/%N%S:\
7295 ${x_library}/X11/%l/%T/%N%S:\
7296 ${x_library}/X11/%T/%N%S"
7297 if test x
"${x_default_search_path}" = x
; then
7298 x_default_search_path
=${x_search_path}
7300 x_default_search_path
="${x_search_path}:${x_default_search_path}"
7304 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
7305 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7308 if test x
"${x_includes}" = x
; then
7309 bitmapdir
=/usr
/include
/X11
/bitmaps
7311 # accumulate include directories that have X11 bitmap subdirectories
7313 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7314 if test -d "${bmd}/X11/bitmaps"; then
7315 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
7317 if test -d "${bmd}/bitmaps"; then
7318 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
7321 if test ${bmd_acc} != "dummyval"; then
7322 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7326 case "${window_system}" in
7330 case "${with_x_toolkit}" in
7331 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
7332 motif
) USE_X_TOOLKIT
=MOTIF
;;
7334 USE_X_TOOLKIT
=none
;;
7335 no
) USE_X_TOOLKIT
=none
;;
7336 * ) USE_X_TOOLKIT
=maybe
;;
7346 ### If we're using X11, we should use the X menu package.
7349 yes ) HAVE_MENUS
=yes ;;
7352 if test "${opsys}" = "hpux9"; then
7353 case "${x_libraries}" in
7355 opsysfile
="s/hpux9-x11r4.h"
7360 if test "${opsys}" = "hpux9shr"; then
7361 case "${x_libraries}" in
7363 opsysfile
="s/hpux9shxr4.h"
7368 ### Compute the unexec source name from the object name.
7369 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
7371 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7372 # Assume not, until told otherwise.
7375 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
7376 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
7377 if test "${ac_cv_func_malloc_get_state+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7380 cat >conftest.
$ac_ext <<_ACEOF
7381 #line $LINENO "configure"
7384 cat confdefs.h
>>conftest.
$ac_ext
7385 cat >>conftest.
$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7387 /* System header to define __stub macros and hopefully few prototypes,
7388 which can conflict with char malloc_get_state (); below.
7389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7390 <limits.h> exists even on freestanding compilers. */
7392 # include <limits.h>
7394 # include <assert.h>
7396 /* Override any gcc2 internal prototype to avoid an error. */
7401 /* We use char because int might match the return type of a gcc2
7402 builtin and then its argument prototype would still apply. */
7403 char malloc_get_state ();
7404 /* The GNU C library defines this for functions which it implements
7405 to always fail with ENOSYS. Some functions are actually named
7406 something starting with __ and the normal name is an alias. */
7407 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
7410 char (*f) () = malloc_get_state;
7419 return f != malloc_get_state;
7424 rm -f conftest.
$ac_objext conftest
$ac_exeext
7425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7426 (eval $ac_link) 2>&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); } &&
7430 { ac_try
='test -s conftest$ac_exeext'
7431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); }; }; then
7436 ac_cv_func_malloc_get_state
=yes
7438 echo "$as_me: failed program was:" >&5
7439 sed 's/^/| /' conftest.
$ac_ext >&5
7441 ac_cv_func_malloc_get_state
=no
7443 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7445 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
7446 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
7447 if test $ac_cv_func_malloc_get_state = yes; then
7453 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
7454 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
7455 if test "${ac_cv_func_malloc_set_state+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7458 cat >conftest.
$ac_ext <<_ACEOF
7459 #line $LINENO "configure"
7462 cat confdefs.h
>>conftest.
$ac_ext
7463 cat >>conftest.
$ac_ext <<_ACEOF
7464 /* end confdefs.h. */
7465 /* System header to define __stub macros and hopefully few prototypes,
7466 which can conflict with char malloc_set_state (); below.
7467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7468 <limits.h> exists even on freestanding compilers. */
7470 # include <limits.h>
7472 # include <assert.h>
7474 /* Override any gcc2 internal prototype to avoid an error. */
7479 /* We use char because int might match the return type of a gcc2
7480 builtin and then its argument prototype would still apply. */
7481 char malloc_set_state ();
7482 /* The GNU C library defines this for functions which it implements
7483 to always fail with ENOSYS. Some functions are actually named
7484 something starting with __ and the normal name is an alias. */
7485 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
7488 char (*f) () = malloc_set_state;
7497 return f != malloc_set_state;
7502 rm -f conftest.
$ac_objext conftest
$ac_exeext
7503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7504 (eval $ac_link) 2>&5
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); } &&
7508 { ac_try
='test -s 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_malloc_set_state
=yes
7516 echo "$as_me: failed program was:" >&5
7517 sed 's/^/| /' conftest.
$ac_ext >&5
7519 ac_cv_func_malloc_set_state
=no
7521 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7523 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
7524 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
7525 if test $ac_cv_func_malloc_set_state = yes; then
7531 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7532 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
7533 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 cat >conftest.
$ac_ext <<_ACEOF
7537 #line $LINENO "configure"
7540 cat confdefs.h
>>conftest.
$ac_ext
7541 cat >>conftest.
$ac_ext <<_ACEOF
7542 /* end confdefs.h. */
7543 extern void (* __after_morecore_hook)();
7547 __after_morecore_hook = 0
7552 rm -f conftest.
$ac_objext conftest
$ac_exeext
7553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7554 (eval $ac_link) 2>&5
7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); } &&
7558 { ac_try
='test -s conftest$ac_exeext'
7559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); }; }; then
7564 emacs_cv_var___after_morecore_hook
=yes
7566 echo "$as_me: failed program was:" >&5
7567 sed 's/^/| /' conftest.
$ac_ext >&5
7569 emacs_cv_var___after_morecore_hook
=no
7571 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7573 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7574 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
7575 if test $emacs_cv_var___after_morecore_hook = no
; then
7578 if test "${system_malloc}" = "yes"; then
7581 (The GNU allocators don't work with this system configuration.)"
7583 if test "$doug_lea_malloc" = "yes" ; then
7584 if test "$GNU_MALLOC" = yes ; then
7586 (Using Doug Lea's new malloc from the GNU C Library.)"
7589 cat >>confdefs.h
<<\_ACEOF
7590 #define DOUG_LEA_MALLOC 1
7595 if test x
"${REL_ALLOC}" = x
; then
7596 REL_ALLOC
=${GNU_MALLOC}
7602 for ac_header
in stdlib.h unistd.h
7604 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7606 echo "$as_me:$LINENO: checking for $ac_header" >&5
7607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7609 echo $ECHO_N "(cached) $ECHO_C" >&6
7611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7614 # Is the header compilable?
7615 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7616 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7617 cat >conftest.
$ac_ext <<_ACEOF
7618 #line $LINENO "configure"
7621 cat confdefs.h
>>conftest.
$ac_ext
7622 cat >>conftest.
$ac_ext <<_ACEOF
7623 /* end confdefs.h. */
7624 $ac_includes_default
7625 #include <$ac_header>
7627 rm -f conftest.
$ac_objext
7628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7629 (eval $ac_compile) 2>&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); } &&
7633 { ac_try
='test -s conftest.$ac_objext'
7634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); }; }; then
7639 ac_header_compiler
=yes
7641 echo "$as_me: failed program was:" >&5
7642 sed 's/^/| /' conftest.
$ac_ext >&5
7644 ac_header_compiler
=no
7646 rm -f conftest.
$ac_objext conftest.
$ac_ext
7647 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7648 echo "${ECHO_T}$ac_header_compiler" >&6
7650 # Is the header present?
7651 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7653 cat >conftest.
$ac_ext <<_ACEOF
7654 #line $LINENO "configure"
7657 cat confdefs.h
>>conftest.
$ac_ext
7658 cat >>conftest.
$ac_ext <<_ACEOF
7659 /* end confdefs.h. */
7660 #include <$ac_header>
7662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7663 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7665 grep -v '^ *+' conftest.er1
>conftest.err
7667 cat conftest.err
>&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); } >/dev
/null
; then
7670 if test -s conftest.err
; then
7671 ac_cpp_err
=$ac_c_preproc_warn_flag
7678 if test -z "$ac_cpp_err"; then
7679 ac_header_preproc
=yes
7681 echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.
$ac_ext >&5
7684 ac_header_preproc
=no
7686 rm -f conftest.err conftest.
$ac_ext
7687 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7688 echo "${ECHO_T}$ac_header_preproc" >&6
7690 # So? What about this header?
7691 case $ac_header_compiler:$ac_header_preproc in
7693 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7694 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7699 ## ------------------------------------ ##
7700 ## Report this to bug-autoconf@gnu.org. ##
7701 ## ------------------------------------ ##
7704 sed "s/^/$as_me: WARNING: /" >&2
7707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7710 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7712 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7715 ## ------------------------------------ ##
7716 ## Report this to bug-autoconf@gnu.org. ##
7717 ## ------------------------------------ ##
7720 sed "s/^/$as_me: WARNING: /" >&2
7723 echo "$as_me:$LINENO: checking for $ac_header" >&5
7724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7728 eval "$as_ac_Header=$ac_header_preproc"
7730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7735 cat >>confdefs.h
<<_ACEOF
7736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7744 for ac_func
in getpagesize
7746 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7747 echo "$as_me:$LINENO: checking for $ac_func" >&5
7748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7749 if eval "test \"\${$as_ac_var+set}\" = set"; then
7750 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
7759 /* System header to define __stub macros and hopefully few prototypes,
7760 which can conflict with char $ac_func (); below.
7761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7762 <limits.h> exists even on freestanding compilers. */
7764 # include <limits.h>
7766 # include <assert.h>
7768 /* Override any gcc2 internal prototype to avoid an error. */
7773 /* We use char because int might match the return type of a gcc2
7774 builtin and then its argument prototype would still apply. */
7776 /* The GNU C library defines this for functions which it implements
7777 to always fail with ENOSYS. Some functions are actually named
7778 something starting with __ and the normal name is an alias. */
7779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7782 char (*f) () = $ac_func;
7791 return f != $ac_func;
7796 rm -f conftest.
$ac_objext conftest
$ac_exeext
7797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7798 (eval $ac_link) 2>&5
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); } &&
7802 { ac_try
='test -s conftest$ac_exeext'
7803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); }; }; then
7808 eval "$as_ac_var=yes"
7810 echo "$as_me: failed program was:" >&5
7811 sed 's/^/| /' conftest.
$ac_ext >&5
7813 eval "$as_ac_var=no"
7815 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7818 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7819 if test `eval echo '${'$as_ac_var'}'` = yes; then
7820 cat >>confdefs.h
<<_ACEOF
7821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7827 echo "$as_me:$LINENO: checking for working mmap" >&5
7828 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7829 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 if test "$cross_compiling" = yes; then
7833 ac_cv_func_mmap_fixed_mapped
=no
7835 cat >conftest.
$ac_ext <<_ACEOF
7836 #line $LINENO "configure"
7839 cat confdefs.h
>>conftest.
$ac_ext
7840 cat >>conftest.
$ac_ext <<_ACEOF
7841 /* end confdefs.h. */
7842 $ac_includes_default
7843 /* malloc might have been renamed as rpl_malloc. */
7846 /* Thanks to Mike Haertel and Jim Avera for this test.
7847 Here is a matrix of mmap possibilities:
7848 mmap private not fixed
7849 mmap private fixed at somewhere currently unmapped
7850 mmap private fixed at somewhere already mapped
7851 mmap shared not fixed
7852 mmap shared fixed at somewhere currently unmapped
7853 mmap shared fixed at somewhere already mapped
7854 For private mappings, we should verify that changes cannot be read()
7855 back from the file, nor mmap's back from the file at a different
7856 address. (There have been systems where private was not correctly
7857 implemented like the infamous i386 svr4.0, and systems where the
7858 VM page cache was not coherent with the file system buffer cache
7859 like early versions of FreeBSD and possibly contemporary NetBSD.)
7860 For shared mappings, we should conversely verify that changes get
7861 propagated back to all the places they're supposed to be.
7863 Grep wants private fixed already mapped.
7864 The main things grep needs to know about mmap are:
7865 * does it exist and is it safe to write into the mmap'd area
7866 * how to use it (BSD variants) */
7869 #include <sys/mman.h>
7871 #if !STDC_HEADERS && !HAVE_STDLIB_H
7875 /* This mess was copied from the GNU getpagesize.h. */
7876 #if !HAVE_GETPAGESIZE
7877 /* Assume that all systems that can run configure have sys/param.h. */
7878 # if !HAVE_SYS_PARAM_H
7879 # define HAVE_SYS_PARAM_H 1
7882 # ifdef _SC_PAGESIZE
7883 # define getpagesize() sysconf(_SC_PAGESIZE)
7884 # else /* no _SC_PAGESIZE */
7885 # if HAVE_SYS_PARAM_H
7886 # include <sys/param.h>
7887 # ifdef EXEC_PAGESIZE
7888 # define getpagesize() EXEC_PAGESIZE
7889 # else /* no EXEC_PAGESIZE */
7891 # define getpagesize() NBPG * CLSIZE
7894 # endif /* no CLSIZE */
7895 # else /* no NBPG */
7897 # define getpagesize() NBPC
7898 # else /* no NBPC */
7900 # define getpagesize() PAGESIZE
7901 # endif /* PAGESIZE */
7902 # endif /* no NBPC */
7903 # endif /* no NBPG */
7904 # endif /* no EXEC_PAGESIZE */
7905 # else /* no HAVE_SYS_PARAM_H */
7906 # define getpagesize() 8192 /* punt totally */
7907 # endif /* no HAVE_SYS_PARAM_H */
7908 # endif /* no _SC_PAGESIZE */
7910 #endif /* no HAVE_GETPAGESIZE */
7915 char *data, *data2, *data3;
7919 pagesize = getpagesize ();
7921 /* First, make a file with some known garbage in it. */
7922 data = (char *) malloc (pagesize);
7925 for (i = 0; i < pagesize; ++i)
7926 *(data + i) = rand ();
7928 fd = creat ("conftest.mmap", 0600);
7931 if (write (fd, data, pagesize) != pagesize)
7935 /* Next, try to mmap the file at a fixed address which already has
7936 something else allocated at it. If we can, also make sure that
7937 we see the same garbage. */
7938 fd = open ("conftest.mmap", O_RDWR);
7941 data2 = (char *) malloc (2 * pagesize);
7944 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7945 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7946 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7948 for (i = 0; i < pagesize; ++i)
7949 if (*(data + i) != *(data2 + i))
7952 /* Finally, make sure that changes to the mapped area do not
7953 percolate back to the file as seen by read(). (This is a bug on
7954 some variants of i386 svr4.0.) */
7955 for (i = 0; i < pagesize; ++i)
7956 *(data2 + i) = *(data2 + i) + 1;
7957 data3 = (char *) malloc (pagesize);
7960 if (read (fd, data3, pagesize) != pagesize)
7962 for (i = 0; i < pagesize; ++i)
7963 if (*(data + i) != *(data3 + i))
7969 rm -f conftest
$ac_exeext
7970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7971 (eval $ac_link) 2>&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); }; }; then
7980 ac_cv_func_mmap_fixed_mapped
=yes
7982 echo "$as_me: program exited with status $ac_status" >&5
7983 echo "$as_me: failed program was:" >&5
7984 sed 's/^/| /' conftest.
$ac_ext >&5
7987 ac_cv_func_mmap_fixed_mapped
=no
7989 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7992 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7993 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7994 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7996 cat >>confdefs.h
<<\_ACEOF
8003 if test $use_mmap_for_buffers = yes; then
8007 LIBS
="$libsrc_libs $LIBS"
8010 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8011 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8012 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8015 ac_check_lib_save_LIBS
=$LIBS
8017 cat >conftest.
$ac_ext <<_ACEOF
8018 #line $LINENO "configure"
8021 cat confdefs.h
>>conftest.
$ac_ext
8022 cat >>conftest.
$ac_ext <<_ACEOF
8023 /* end confdefs.h. */
8025 /* Override any gcc2 internal prototype to avoid an error. */
8029 /* We use char because int might match the return type of a gcc2
8030 builtin and then its argument prototype would still apply. */
8040 rm -f conftest.
$ac_objext conftest
$ac_exeext
8041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8042 (eval $ac_link) 2>&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } &&
8046 { ac_try
='test -s conftest$ac_exeext'
8047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); }; }; then
8052 ac_cv_lib_dnet_dnet_ntoa
=yes
8054 echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.
$ac_ext >&5
8057 ac_cv_lib_dnet_dnet_ntoa
=no
8059 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8060 LIBS
=$ac_check_lib_save_LIBS
8062 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8063 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8064 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8065 cat >>confdefs.h
<<_ACEOF
8066 #define HAVE_LIBDNET 1
8074 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
8075 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
8076 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
8077 echo $ECHO_N "(cached) $ECHO_C" >&6
8079 ac_check_lib_save_LIBS
=$LIBS
8081 cat >conftest.
$ac_ext <<_ACEOF
8082 #line $LINENO "configure"
8085 cat confdefs.h
>>conftest.
$ac_ext
8086 cat >>conftest.
$ac_ext <<_ACEOF
8087 /* end confdefs.h. */
8098 rm -f conftest.
$ac_objext conftest
$ac_exeext
8099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8100 (eval $ac_link) 2>&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } &&
8104 { ac_try
='test -s conftest$ac_exeext'
8105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); }; }; then
8110 ac_cv_lib_Xbsd_main
=yes
8112 echo "$as_me: failed program was:" >&5
8113 sed 's/^/| /' conftest.
$ac_ext >&5
8115 ac_cv_lib_Xbsd_main
=no
8117 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8118 LIBS
=$ac_check_lib_save_LIBS
8120 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
8121 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
8122 if test $ac_cv_lib_Xbsd_main = yes; then
8123 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
8128 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
8129 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
8130 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
8131 echo $ECHO_N "(cached) $ECHO_C" >&6
8133 ac_check_lib_save_LIBS
=$LIBS
8134 LIBS
="-lpthreads $LIBS"
8135 cat >conftest.
$ac_ext <<_ACEOF
8136 #line $LINENO "configure"
8139 cat confdefs.h
>>conftest.
$ac_ext
8140 cat >>conftest.
$ac_ext <<_ACEOF
8141 /* end confdefs.h. */
8143 /* Override any gcc2 internal prototype to avoid an error. */
8147 /* We use char because int might match the return type of a gcc2
8148 builtin and then its argument prototype would still apply. */
8158 rm -f conftest.
$ac_objext conftest
$ac_exeext
8159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8160 (eval $ac_link) 2>&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); } &&
8164 { ac_try
='test -s conftest$ac_exeext'
8165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); }; }; then
8170 ac_cv_lib_pthreads_cma_open
=yes
8172 echo "$as_me: failed program was:" >&5
8173 sed 's/^/| /' conftest.
$ac_ext >&5
8175 ac_cv_lib_pthreads_cma_open
=no
8177 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8178 LIBS
=$ac_check_lib_save_LIBS
8180 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
8181 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
8182 if test $ac_cv_lib_pthreads_cma_open = yes; then
8183 cat >>confdefs.h
<<_ACEOF
8184 #define HAVE_LIBPTHREADS 1
8187 LIBS
="-lpthreads $LIBS"
8192 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
8193 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
8194 if test -d /usr
/X386
/include
; then
8196 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
8200 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
8201 echo "${ECHO_T}$HAVE_XFREE386" >&6
8206 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
8207 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
8208 if test "${gdb_cv_bigtoc+set}" = set; then
8209 echo $ECHO_N "(cached) $ECHO_C" >&6
8213 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
8214 *) gdb_cv_bigtoc
=-bbigtoc ;;
8217 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
8218 cat >conftest.
$ac_ext <<_ACEOF
8219 #line $LINENO "configure"
8222 cat confdefs.h
>>conftest.
$ac_ext
8223 cat >>conftest.
$ac_ext <<_ACEOF
8224 /* end confdefs.h. */
8234 rm -f conftest.
$ac_objext conftest
$ac_exeext
8235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8236 (eval $ac_link) 2>&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); } &&
8240 { ac_try
='test -s conftest$ac_exeext'
8241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); }; }; then
8248 echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.
$ac_ext >&5
8253 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8256 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
8257 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
8261 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8262 # used for the tests that follow. We set them back to REAL_CFLAGS and
8263 # REAL_CPPFLAGS later on.
8265 REAL_CPPFLAGS
="$CPPFLAGS"
8267 if test "${HAVE_X11}" = "yes"; then
8268 DEFS
="$C_SWITCH_X_SITE $DEFS"
8269 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
8271 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
8272 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
8274 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8275 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8276 # but it's more convenient here to set LD_RUN_PATH
8277 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8278 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8279 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8283 if test "${opsys}" = "gnu-linux"; then
8284 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
8285 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
8286 cat >conftest.
$ac_ext <<_ACEOF
8287 #line $LINENO "configure"
8290 cat confdefs.h
>>conftest.
$ac_ext
8291 cat >>conftest.
$ac_ext <<_ACEOF
8292 /* end confdefs.h. */
8297 XOpenDisplay ("foo");
8302 rm -f conftest.
$ac_objext conftest
$ac_exeext
8303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8304 (eval $ac_link) 2>&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); } &&
8308 { ac_try
='test -s conftest$ac_exeext'
8309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; }; then
8314 xlinux_first_failure
=no
8316 echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.
$ac_ext >&5
8319 xlinux_first_failure
=yes
8321 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8322 if test "${xlinux_first_failure}" = "yes"; then
8323 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
8324 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
8325 OLD_CPPFLAGS
="$CPPFLAGS"
8327 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
8328 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
8329 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
8330 LIBS
="$LIBS -b i486-linuxaout"
8331 cat >conftest.
$ac_ext <<_ACEOF
8332 #line $LINENO "configure"
8335 cat confdefs.h
>>conftest.
$ac_ext
8336 cat >>conftest.
$ac_ext <<_ACEOF
8337 /* end confdefs.h. */
8342 XOpenDisplay ("foo");
8347 rm -f conftest.
$ac_objext conftest
$ac_exeext
8348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8349 (eval $ac_link) 2>&5
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); } &&
8353 { ac_try
='test -s conftest$ac_exeext'
8354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); }; }; then
8359 xlinux_second_failure
=no
8361 echo "$as_me: failed program was:" >&5
8362 sed 's/^/| /' conftest.
$ac_ext >&5
8364 xlinux_second_failure
=yes
8366 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8367 if test "${xlinux_second_failure}" = "yes"; then
8368 # If we get the same failure with -b, there is no use adding -b.
8369 # So take it out. This plays safe.
8370 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
8371 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
8372 CPPFLAGS
="$OLD_CPPFLAGS"
8374 echo "$as_me:$LINENO: result: no" >&5
8375 echo "${ECHO_T}no" >&6
8377 echo "$as_me:$LINENO: result: yes" >&5
8378 echo "${ECHO_T}yes" >&6
8381 echo "$as_me:$LINENO: result: no" >&5
8382 echo "${ECHO_T}no" >&6
8386 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8387 # header files included from there.
8388 echo "$as_me:$LINENO: checking for Xkb" >&5
8389 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
8390 cat >conftest.
$ac_ext <<_ACEOF
8391 #line $LINENO "configure"
8394 cat confdefs.h
>>conftest.
$ac_ext
8395 cat >>conftest.
$ac_ext <<_ACEOF
8396 /* end confdefs.h. */
8397 #include <X11/Xlib.h>
8398 #include <X11/XKBlib.h>
8402 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8407 rm -f conftest.
$ac_objext conftest
$ac_exeext
8408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8409 (eval $ac_link) 2>&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } &&
8413 { ac_try
='test -s conftest$ac_exeext'
8414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8421 echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.
$ac_ext >&5
8426 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8427 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
8428 echo "${ECHO_T}$emacs_xkb" >&6
8429 if test $emacs_xkb = yes; then
8431 cat >>confdefs.h
<<\_ACEOF
8432 #define HAVE_XKBGETKEYBOARD 1
8441 for ac_func
in XrmSetDatabase XScreenResourceString \
8442 XScreenNumberOfScreen XSetWMProtocols
8444 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8445 echo "$as_me:$LINENO: checking for $ac_func" >&5
8446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8447 if eval "test \"\${$as_ac_var+set}\" = set"; then
8448 echo $ECHO_N "(cached) $ECHO_C" >&6
8450 cat >conftest.
$ac_ext <<_ACEOF
8451 #line $LINENO "configure"
8454 cat confdefs.h
>>conftest.
$ac_ext
8455 cat >>conftest.
$ac_ext <<_ACEOF
8456 /* end confdefs.h. */
8457 /* System header to define __stub macros and hopefully few prototypes,
8458 which can conflict with char $ac_func (); below.
8459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8460 <limits.h> exists even on freestanding compilers. */
8462 # include <limits.h>
8464 # include <assert.h>
8466 /* Override any gcc2 internal prototype to avoid an error. */
8471 /* We use char because int might match the return type of a gcc2
8472 builtin and then its argument prototype would still apply. */
8474 /* The GNU C library defines this for functions which it implements
8475 to always fail with ENOSYS. Some functions are actually named
8476 something starting with __ and the normal name is an alias. */
8477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8480 char (*f) () = $ac_func;
8489 return f != $ac_func;
8494 rm -f conftest.
$ac_objext conftest
$ac_exeext
8495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8496 (eval $ac_link) 2>&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } &&
8500 { ac_try
='test -s conftest$ac_exeext'
8501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; }; then
8506 eval "$as_ac_var=yes"
8508 echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.
$ac_ext >&5
8511 eval "$as_ac_var=no"
8513 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8516 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8517 if test `eval echo '${'$as_ac_var'}'` = yes; then
8518 cat >>confdefs.h
<<_ACEOF
8519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8527 if test "${window_system}" = "x11"; then
8528 echo "$as_me:$LINENO: checking X11 version 6" >&5
8529 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
8530 if test "${emacs_cv_x11_version_6+set}" = set; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
8533 cat >conftest.
$ac_ext <<_ACEOF
8534 #line $LINENO "configure"
8537 cat confdefs.h
>>conftest.
$ac_ext
8538 cat >>conftest.
$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8540 #include <X11/Xlib.h>
8544 #if XlibSpecificationRelease < 6
8552 rm -f conftest.
$ac_objext conftest
$ac_exeext
8553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8554 (eval $ac_link) 2>&5
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } &&
8558 { ac_try
='test -s conftest$ac_exeext'
8559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; }; then
8564 emacs_cv_x11_version_6
=yes
8566 echo "$as_me: failed program was:" >&5
8567 sed 's/^/| /' conftest.
$ac_ext >&5
8569 emacs_cv_x11_version_6
=no
8571 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8574 if test $emacs_cv_x11_version_6 = yes; then
8575 echo "$as_me:$LINENO: result: 6 or newer" >&5
8576 echo "${ECHO_T}6 or newer" >&6
8578 cat >>confdefs.h
<<\_ACEOF
8579 #define HAVE_X11R6 1
8583 echo "$as_me:$LINENO: result: before 6" >&5
8584 echo "${ECHO_T}before 6" >&6
8588 if test "${window_system}" = "x11"; then
8589 echo "$as_me:$LINENO: checking X11 version 5" >&5
8590 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
8591 if test "${emacs_cv_x11_version_5+set}" = set; then
8592 echo $ECHO_N "(cached) $ECHO_C" >&6
8594 cat >conftest.
$ac_ext <<_ACEOF
8595 #line $LINENO "configure"
8598 cat confdefs.h
>>conftest.
$ac_ext
8599 cat >>conftest.
$ac_ext <<_ACEOF
8600 /* end confdefs.h. */
8601 #include <X11/Xlib.h>
8605 #if XlibSpecificationRelease < 5
8613 rm -f conftest.
$ac_objext conftest
$ac_exeext
8614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8615 (eval $ac_link) 2>&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } &&
8619 { ac_try
='test -s conftest$ac_exeext'
8620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; }; then
8625 emacs_cv_x11_version_5
=yes
8627 echo "$as_me: failed program was:" >&5
8628 sed 's/^/| /' conftest.
$ac_ext >&5
8630 emacs_cv_x11_version_5
=no
8632 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8635 if test $emacs_cv_x11_version_5 = yes; then
8636 echo "$as_me:$LINENO: result: 5 or newer" >&5
8637 echo "${ECHO_T}5 or newer" >&6
8640 cat >>confdefs.h
<<\_ACEOF
8641 #define HAVE_X11R5 1
8646 echo "$as_me:$LINENO: result: before 5" >&5
8647 echo "${ECHO_T}before 5" >&6
8654 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
8655 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
8656 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
8657 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
8658 { (exit 1); exit 1; }; };
8662 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8664 if test "X${with_pkg_config_prog}" != X
; then
8665 PKG_CONFIG
="${with_pkg_config_prog}"
8670 if test -z "$PKG_CONFIG"; then
8671 # Extract the first word of "pkg-config", so it can be a program name with args.
8672 set dummy pkg-config
; ac_word
=$2
8673 echo "$as_me:$LINENO: checking for $ac_word" >&5
8674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8675 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8676 echo $ECHO_N "(cached) $ECHO_C" >&6
8680 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8683 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8687 test -z "$as_dir" && as_dir
=.
8688 for ac_exec_ext
in '' $ac_executable_extensions; do
8689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8690 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8697 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8701 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8703 if test -n "$PKG_CONFIG"; then
8704 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8705 echo "${ECHO_T}$PKG_CONFIG" >&6
8707 echo "$as_me:$LINENO: result: no" >&5
8708 echo "${ECHO_T}no" >&6
8713 if test "$PKG_CONFIG" = "no" ; then
8714 echo "*** The pkg-config script could not be found. Make sure it is"
8715 echo "*** in your path, or give the full path to pkg-config with"
8716 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
8717 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8719 PKG_CONFIG_MIN_VERSION
=0.9.0
8720 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8721 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
8722 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
8724 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
8725 echo "$as_me:$LINENO: result: yes" >&5
8726 echo "${ECHO_T}yes" >&6
8729 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
8730 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
8731 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
8732 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
8733 echo "${ECHO_T}$GTK_CFLAGS" >&6
8735 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
8736 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
8737 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
8738 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
8739 echo "${ECHO_T}$GTK_LIBS" >&6
8743 ## If we have a custom action on failure, don't print errors, but
8744 ## do set a variable so people can do so.
8745 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8746 echo $GTK_PKG_ERRORS
8752 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8753 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8757 if test $succeeded = yes; then
8760 { { 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
8761 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;}
8762 { (exit 1); exit 1; }; }
8767 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
8768 CFLAGS
="$CFLAGS $GTK_CFLAGS"
8769 LIBS
="$GTK_LIBS $LIBS"
8772 cat >>confdefs.h
<<\_ACEOF
8778 with_toolkit_scroll_bars
=yes
8780 HAVE_GTK_MULTIDISPLAY
=no
8782 for ac_func
in gdk_display_open
8784 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8785 echo "$as_me:$LINENO: checking for $ac_func" >&5
8786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8787 if eval "test \"\${$as_ac_var+set}\" = set"; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
8790 cat >conftest.
$ac_ext <<_ACEOF
8791 #line $LINENO "configure"
8794 cat confdefs.h
>>conftest.
$ac_ext
8795 cat >>conftest.
$ac_ext <<_ACEOF
8796 /* end confdefs.h. */
8797 /* System header to define __stub macros and hopefully few prototypes,
8798 which can conflict with char $ac_func (); below.
8799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8800 <limits.h> exists even on freestanding compilers. */
8802 # include <limits.h>
8804 # include <assert.h>
8806 /* Override any gcc2 internal prototype to avoid an error. */
8811 /* We use char because int might match the return type of a gcc2
8812 builtin and then its argument prototype would still apply. */
8814 /* The GNU C library defines this for functions which it implements
8815 to always fail with ENOSYS. Some functions are actually named
8816 something starting with __ and the normal name is an alias. */
8817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8820 char (*f) () = $ac_func;
8829 return f != $ac_func;
8834 rm -f conftest.
$ac_objext conftest
$ac_exeext
8835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8836 (eval $ac_link) 2>&5
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); } &&
8840 { ac_try
='test -s conftest$ac_exeext'
8841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); }; }; then
8846 eval "$as_ac_var=yes"
8848 echo "$as_me: failed program was:" >&5
8849 sed 's/^/| /' conftest.
$ac_ext >&5
8851 eval "$as_ac_var=no"
8853 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8857 if test `eval echo '${'$as_ac_var'}'` = yes; then
8858 cat >>confdefs.h
<<_ACEOF
8859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8861 HAVE_GTK_MULTIDISPLAY
=yes
8865 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
8867 cat >>confdefs.h
<<\_ACEOF
8868 #define HAVE_GTK_MULTIDISPLAY 1
8874 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
8875 if test x
"${HAVE_X11R5}" = xyes
; then
8876 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
8877 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
8878 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
8879 echo $ECHO_N "(cached) $ECHO_C" >&6
8881 cat >conftest.
$ac_ext <<_ACEOF
8882 #line $LINENO "configure"
8885 cat confdefs.h
>>conftest.
$ac_ext
8886 cat >>conftest.
$ac_ext <<_ACEOF
8887 /* end confdefs.h. */
8889 #include <X11/Intrinsic.h>
8890 #include <X11/Xaw/Simple.h>
8899 rm -f conftest.
$ac_objext conftest
$ac_exeext
8900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8901 (eval $ac_link) 2>&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); } &&
8905 { ac_try
='test -s conftest$ac_exeext'
8906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }; }; then
8911 emacs_cv_x11_version_5_with_xaw
=yes
8913 echo "$as_me: failed program was:" >&5
8914 sed 's/^/| /' conftest.
$ac_ext >&5
8916 emacs_cv_x11_version_5_with_xaw
=no
8918 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8921 if test $emacs_cv_x11_version_5_with_xaw = yes; then
8922 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
8923 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
8926 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
8927 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
8935 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
8937 if test "${USE_X_TOOLKIT}" != "none"; then
8938 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8939 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
8940 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8941 echo $ECHO_N "(cached) $ECHO_C" >&6
8943 cat >conftest.
$ac_ext <<_ACEOF
8944 #line $LINENO "configure"
8947 cat confdefs.h
>>conftest.
$ac_ext
8948 cat >>conftest.
$ac_ext <<_ACEOF
8949 /* end confdefs.h. */
8950 #include <X11/Intrinsic.h>
8954 #if XtSpecificationRelease < 6
8962 rm -f conftest.
$ac_objext conftest
$ac_exeext
8963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8964 (eval $ac_link) 2>&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } &&
8968 { ac_try
='test -s conftest$ac_exeext'
8969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); }; }; then
8974 emacs_cv_x11_toolkit_version_6
=yes
8976 echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.
$ac_ext >&5
8979 emacs_cv_x11_toolkit_version_6
=no
8981 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8984 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
8985 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8986 echo "$as_me:$LINENO: result: 6 or newer" >&5
8987 echo "${ECHO_T}6 or newer" >&6
8989 cat >>confdefs.h
<<\_ACEOF
8990 #define HAVE_X11XTR6 1
8994 echo "$as_me:$LINENO: result: before 6" >&5
8995 echo "${ECHO_T}before 6" >&6
8999 if test x
$HAVE_X11XTR6 = xyes
; then
9000 LIBS
="-lXt -lSM -lICE $LIBS"
9005 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
9006 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
9007 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
9008 echo $ECHO_N "(cached) $ECHO_C" >&6
9010 ac_check_lib_save_LIBS
=$LIBS
9012 cat >conftest.
$ac_ext <<_ACEOF
9013 #line $LINENO "configure"
9016 cat confdefs.h
>>conftest.
$ac_ext
9017 cat >>conftest.
$ac_ext <<_ACEOF
9018 /* end confdefs.h. */
9020 /* Override any gcc2 internal prototype to avoid an error. */
9024 /* We use char because int might match the return type of a gcc2
9025 builtin and then its argument prototype would still apply. */
9026 char XmuConvertStandardSelection ();
9030 XmuConvertStandardSelection ();
9035 rm -f conftest.
$ac_objext conftest
$ac_exeext
9036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9037 (eval $ac_link) 2>&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); } &&
9041 { ac_try
='test -s conftest$ac_exeext'
9042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); }; }; then
9047 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
9049 echo "$as_me: failed program was:" >&5
9050 sed 's/^/| /' conftest.
$ac_ext >&5
9052 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
9054 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9055 LIBS
=$ac_check_lib_save_LIBS
9057 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9058 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
9059 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
9060 cat >>confdefs.h
<<_ACEOF
9061 #define HAVE_LIBXMU 1
9068 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
9071 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9072 if test "${HAVE_X11}" = "yes"; then
9073 if test "${USE_X_TOOLKIT}" != "none"; then
9075 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9076 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
9077 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9080 ac_check_lib_save_LIBS
=$LIBS
9082 cat >conftest.
$ac_ext <<_ACEOF
9083 #line $LINENO "configure"
9086 cat confdefs.h
>>conftest.
$ac_ext
9087 cat >>conftest.
$ac_ext <<_ACEOF
9088 /* end confdefs.h. */
9090 /* Override any gcc2 internal prototype to avoid an error. */
9094 /* We use char because int might match the return type of a gcc2
9095 builtin and then its argument prototype would still apply. */
9096 char XShapeQueryExtension ();
9100 XShapeQueryExtension ();
9105 rm -f conftest.
$ac_objext conftest
$ac_exeext
9106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9107 (eval $ac_link) 2>&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } &&
9111 { ac_try
='test -s conftest$ac_exeext'
9112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); }; }; then
9117 ac_cv_lib_Xext_XShapeQueryExtension
=yes
9119 echo "$as_me: failed program was:" >&5
9120 sed 's/^/| /' conftest.
$ac_ext >&5
9122 ac_cv_lib_Xext_XShapeQueryExtension
=no
9124 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9125 LIBS
=$ac_check_lib_save_LIBS
9127 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9128 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
9129 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9130 cat >>confdefs.h
<<_ACEOF
9131 #define HAVE_LIBXEXT 1
9141 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9142 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
9143 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
9144 if test "${emacs_cv_lesstif+set}" = set; then
9145 echo $ECHO_N "(cached) $ECHO_C" >&6
9147 # We put this in CFLAGS temporarily to precede other -I options
9148 # that might be in CFLAGS temporarily.
9149 # We put this in CPPFLAGS where it precedes the other -I options.
9150 OLD_CPPFLAGS
=$CPPFLAGS
9152 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9153 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9154 cat >conftest.
$ac_ext <<_ACEOF
9155 #line $LINENO "configure"
9158 cat confdefs.h
>>conftest.
$ac_ext
9159 cat >>conftest.
$ac_ext <<_ACEOF
9160 /* end confdefs.h. */
9161 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9170 rm -f conftest.
$ac_objext
9171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9172 (eval $ac_compile) 2>&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); } &&
9176 { ac_try
='test -s conftest.$ac_objext'
9177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); }; }; then
9182 emacs_cv_lesstif
=yes
9184 echo "$as_me: failed program was:" >&5
9185 sed 's/^/| /' conftest.
$ac_ext >&5
9189 rm -f conftest.
$ac_objext conftest.
$ac_ext
9191 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
9192 echo "${ECHO_T}$emacs_cv_lesstif" >&6
9193 if test $emacs_cv_lesstif = yes; then
9194 # Make sure this -I option remains in CPPFLAGS after it is set
9195 # back to REAL_CPPFLAGS.
9196 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9197 # have those other -I options anyway. Ultimately, having this
9198 # directory ultimately in CPPFLAGS will be enough.
9199 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9200 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9203 CPPFLAGS
=$OLD_CPPFLAGS
9205 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
9206 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
9207 if test "${emacs_cv_motif_version_2_1+set}" = set; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9210 cat >conftest.
$ac_ext <<_ACEOF
9211 #line $LINENO "configure"
9214 cat confdefs.h
>>conftest.
$ac_ext
9215 cat >>conftest.
$ac_ext <<_ACEOF
9216 /* end confdefs.h. */
9221 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9224 Motif version prior to 2.1.
9230 rm -f conftest.
$ac_objext
9231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9232 (eval $ac_compile) 2>&5
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); } &&
9236 { ac_try
='test -s conftest.$ac_objext'
9237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); }; }; then
9242 emacs_cv_motif_version_2_1
=yes
9244 echo "$as_me: failed program was:" >&5
9245 sed 's/^/| /' conftest.
$ac_ext >&5
9247 emacs_cv_motif_version_2_1
=no
9249 rm -f conftest.
$ac_objext conftest.
$ac_ext
9251 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
9252 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
9253 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
9254 if test $emacs_cv_motif_version_2_1 = yes; then
9257 cat >>confdefs.h
<<\_ACEOF
9258 #define HAVE_MOTIF_2_1 1
9261 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
9262 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
9263 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
9264 echo $ECHO_N "(cached) $ECHO_C" >&6
9266 ac_check_lib_save_LIBS
=$LIBS
9268 cat >conftest.
$ac_ext <<_ACEOF
9269 #line $LINENO "configure"
9272 cat confdefs.h
>>conftest.
$ac_ext
9273 cat >>conftest.
$ac_ext <<_ACEOF
9274 /* end confdefs.h. */
9276 /* Override any gcc2 internal prototype to avoid an error. */
9280 /* We use char because int might match the return type of a gcc2
9281 builtin and then its argument prototype would still apply. */
9282 char XpCreateContext ();
9291 rm -f conftest.
$ac_objext conftest
$ac_exeext
9292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9293 (eval $ac_link) 2>&5
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); } &&
9297 { ac_try
='test -s conftest$ac_exeext'
9298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); }; }; then
9303 ac_cv_lib_Xp_XpCreateContext
=yes
9305 echo "$as_me: failed program was:" >&5
9306 sed 's/^/| /' conftest.
$ac_ext >&5
9308 ac_cv_lib_Xp_XpCreateContext
=no
9310 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9311 LIBS
=$ac_check_lib_save_LIBS
9313 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9314 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
9315 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
9319 if test ${HAVE_LIBXP} = yes; then
9321 cat >>confdefs.h
<<\_ACEOF
9322 #define HAVE_LIBXP 1
9329 ### Is -lXaw3d available?
9331 if test "${HAVE_X11}" = "yes"; then
9332 if test "${USE_X_TOOLKIT}" != "none"; then
9333 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
9334 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
9335 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
9336 echo $ECHO_N "(cached) $ECHO_C" >&6
9338 cat >conftest.
$ac_ext <<_ACEOF
9339 #line $LINENO "configure"
9342 cat confdefs.h
>>conftest.
$ac_ext
9343 cat >>conftest.
$ac_ext <<_ACEOF
9344 /* end confdefs.h. */
9345 #include <X11/Xaw3d/Scrollbar.h>
9347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9348 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9350 grep -v '^ *+' conftest.er1
>conftest.err
9352 cat conftest.err
>&5
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); } >/dev
/null
; then
9355 if test -s conftest.err
; then
9356 ac_cpp_err
=$ac_c_preproc_warn_flag
9363 if test -z "$ac_cpp_err"; then
9364 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
9366 echo "$as_me: failed program was:" >&5
9367 sed 's/^/| /' conftest.
$ac_ext >&5
9369 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
9371 rm -f conftest.err conftest.
$ac_ext
9373 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
9374 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
9375 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
9376 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
9377 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
9378 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
9379 echo $ECHO_N "(cached) $ECHO_C" >&6
9381 ac_check_lib_save_LIBS
=$LIBS
9382 LIBS
="-lXaw3d $LIBS"
9383 cat >conftest.
$ac_ext <<_ACEOF
9384 #line $LINENO "configure"
9387 cat confdefs.h
>>conftest.
$ac_ext
9388 cat >>conftest.
$ac_ext <<_ACEOF
9389 /* end confdefs.h. */
9391 /* Override any gcc2 internal prototype to avoid an error. */
9395 /* We use char because int might match the return type of a gcc2
9396 builtin and then its argument prototype would still apply. */
9397 char XawScrollbarSetThumb ();
9401 XawScrollbarSetThumb ();
9406 rm -f conftest.
$ac_objext conftest
$ac_exeext
9407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9408 (eval $ac_link) 2>&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); } &&
9412 { ac_try
='test -s conftest$ac_exeext'
9413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); }; }; then
9418 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
9420 echo "$as_me: failed program was:" >&5
9421 sed 's/^/| /' conftest.
$ac_ext >&5
9423 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
9425 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9426 LIBS
=$ac_check_lib_save_LIBS
9428 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
9429 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
9430 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
9437 if test "${HAVE_XAW3D}" = "yes"; then
9439 cat >>confdefs.h
<<\_ACEOF
9440 #define HAVE_XAW3D 1
9449 USE_TOOLKIT_SCROLL_BARS
=no
9450 if test "${with_toolkit_scroll_bars}" != "no"; then
9451 if test "${USE_X_TOOLKIT}" != "none"; then
9452 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9453 cat >>confdefs.h
<<\_ACEOF
9454 #define USE_TOOLKIT_SCROLL_BARS 1
9458 USE_TOOLKIT_SCROLL_BARS
=yes
9459 elif test "${HAVE_XAW3D}" = "yes"; then
9460 cat >>confdefs.h
<<\_ACEOF
9461 #define USE_TOOLKIT_SCROLL_BARS 1
9464 USE_TOOLKIT_SCROLL_BARS
=yes
9466 elif test "${HAVE_GTK}" = "yes"; then
9467 cat >>confdefs.h
<<\_ACEOF
9468 #define USE_TOOLKIT_SCROLL_BARS 1
9471 USE_TOOLKIT_SCROLL_BARS
=yes
9475 cat >conftest.
$ac_ext <<_ACEOF
9476 #line $LINENO "configure"
9479 cat confdefs.h
>>conftest.
$ac_ext
9480 cat >>conftest.
$ac_ext <<_ACEOF
9481 /* end confdefs.h. */
9483 #include <X11/Xlib.h>
9484 #include <X11/Xresource.h>
9493 rm -f conftest.
$ac_objext
9494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9495 (eval $ac_compile) 2>&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); } &&
9499 { ac_try
='test -s conftest.$ac_objext'
9500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); }; }; then
9507 cat >>confdefs.h
<<\_ACEOF
9512 echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.
$ac_ext >&5
9517 rm -f conftest.
$ac_objext conftest.
$ac_ext
9520 if test "${with_xim}" != "no"; then
9522 cat >>confdefs.h
<<\_ACEOF
9529 if test "${HAVE_XIM}" != "no"; then
9531 if test "$GCC" = yes; then
9532 CFLAGS
="$CFLAGS --pedantic-errors"
9534 cat >conftest.
$ac_ext <<_ACEOF
9535 #line $LINENO "configure"
9538 cat confdefs.h
>>conftest.
$ac_ext
9539 cat >>conftest.
$ac_ext <<_ACEOF
9540 /* end confdefs.h. */
9542 #include <X11/Xlib.h>
9543 #include <X11/Xresource.h>
9552 XPointer *client_data;
9554 /* If we're not using GCC, it's probably not XFree86, and this is
9555 probably right, but we can't use something like --pedantic-errors. */
9556 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9557 char*, XIMProc, XPointer*);
9559 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9565 rm -f conftest.
$ac_objext
9566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9567 (eval $ac_compile) 2>&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); } &&
9571 { ac_try
='test -s conftest.$ac_objext'
9572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; }; then
9577 emacs_cv_arg6_star
=yes
9579 echo "$as_me: failed program was:" >&5
9580 sed 's/^/| /' conftest.
$ac_ext >&5
9583 rm -f conftest.
$ac_objext conftest.
$ac_ext
9585 if test "$emacs_cv_arg6_star" = yes; then
9586 cat >>confdefs.h
<<\_ACEOF
9587 #define XRegisterIMInstantiateCallback_arg6 XPointer*
9591 cat >>confdefs.h
<<\_ACEOF
9592 #define XRegisterIMInstantiateCallback_arg6 XPointer
9599 ### Use -lXpm if available, unless `--with-xpm=no'.
9601 if test "${HAVE_X11}" = "yes"; then
9602 if test "${with_xpm}" != "no"; then
9603 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9604 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9605 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
9606 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9609 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
9610 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
9612 # Is the header compilable?
9613 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
9614 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
9615 cat >conftest.
$ac_ext <<_ACEOF
9616 #line $LINENO "configure"
9619 cat confdefs.h
>>conftest.
$ac_ext
9620 cat >>conftest.
$ac_ext <<_ACEOF
9621 /* end confdefs.h. */
9622 $ac_includes_default
9623 #include <X11/xpm.h>
9625 rm -f conftest.
$ac_objext
9626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9627 (eval $ac_compile) 2>&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); } &&
9631 { ac_try
='test -s conftest.$ac_objext'
9632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); }; }; then
9637 ac_header_compiler
=yes
9639 echo "$as_me: failed program was:" >&5
9640 sed 's/^/| /' conftest.
$ac_ext >&5
9642 ac_header_compiler
=no
9644 rm -f conftest.
$ac_objext conftest.
$ac_ext
9645 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9646 echo "${ECHO_T}$ac_header_compiler" >&6
9648 # Is the header present?
9649 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
9650 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
9651 cat >conftest.
$ac_ext <<_ACEOF
9652 #line $LINENO "configure"
9655 cat confdefs.h
>>conftest.
$ac_ext
9656 cat >>conftest.
$ac_ext <<_ACEOF
9657 /* end confdefs.h. */
9658 #include <X11/xpm.h>
9660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9661 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9663 grep -v '^ *+' conftest.er1
>conftest.err
9665 cat conftest.err
>&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); } >/dev
/null
; then
9668 if test -s conftest.err
; then
9669 ac_cpp_err
=$ac_c_preproc_warn_flag
9676 if test -z "$ac_cpp_err"; then
9677 ac_header_preproc
=yes
9679 echo "$as_me: failed program was:" >&5
9680 sed 's/^/| /' conftest.
$ac_ext >&5
9682 ac_header_preproc
=no
9684 rm -f conftest.err conftest.
$ac_ext
9685 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9686 echo "${ECHO_T}$ac_header_preproc" >&6
9688 # So? What about this header?
9689 case $ac_header_compiler:$ac_header_preproc in
9691 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
9692 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9693 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9694 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
9697 ## ------------------------------------ ##
9698 ## Report this to bug-autoconf@gnu.org. ##
9699 ## ------------------------------------ ##
9702 sed "s/^/$as_me: WARNING: /" >&2
9705 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
9706 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
9707 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
9708 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
9709 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9710 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
9713 ## ------------------------------------ ##
9714 ## Report this to bug-autoconf@gnu.org. ##
9715 ## ------------------------------------ ##
9718 sed "s/^/$as_me: WARNING: /" >&2
9721 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9722 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
9723 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9724 echo $ECHO_N "(cached) $ECHO_C" >&6
9726 ac_cv_header_X11_xpm_h
=$ac_header_preproc
9728 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
9729 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
9732 if test $ac_cv_header_X11_xpm_h = yes; then
9733 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
9734 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
9735 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
9736 echo $ECHO_N "(cached) $ECHO_C" >&6
9738 ac_check_lib_save_LIBS
=$LIBS
9739 LIBS
="-lXpm -lX11 $LIBS"
9740 cat >conftest.
$ac_ext <<_ACEOF
9741 #line $LINENO "configure"
9744 cat confdefs.h
>>conftest.
$ac_ext
9745 cat >>conftest.
$ac_ext <<_ACEOF
9746 /* end confdefs.h. */
9748 /* Override any gcc2 internal prototype to avoid an error. */
9752 /* We use char because int might match the return type of a gcc2
9753 builtin and then its argument prototype would still apply. */
9754 char XpmReadFileToPixmap ();
9758 XpmReadFileToPixmap ();
9763 rm -f conftest.
$ac_objext conftest
$ac_exeext
9764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9765 (eval $ac_link) 2>&5
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); } &&
9769 { ac_try
='test -s conftest$ac_exeext'
9770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); }; }; then
9775 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
9777 echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.
$ac_ext >&5
9780 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
9782 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9783 LIBS
=$ac_check_lib_save_LIBS
9785 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9786 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
9787 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9794 if test "${HAVE_XPM}" = "yes"; then
9795 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9796 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
9797 cat >conftest.
$ac_ext <<_ACEOF
9798 #line $LINENO "configure"
9801 cat confdefs.h
>>conftest.
$ac_ext
9802 cat >>conftest.
$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9804 #include "X11/xpm.h"
9805 #ifndef XpmReturnAllocPixels
9806 no_return_alloc_pixels
9810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9811 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
9819 if test "${HAVE_XPM}" = "yes"; then
9820 echo "$as_me:$LINENO: result: yes" >&5
9821 echo "${ECHO_T}yes" >&6
9823 echo "$as_me:$LINENO: result: no" >&5
9824 echo "${ECHO_T}no" >&6
9829 if test "${HAVE_XPM}" = "yes"; then
9831 cat >>confdefs.h
<<\_ACEOF
9838 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9840 if test "${HAVE_X11}" = "yes"; then
9841 if test "${with_jpeg}" != "no"; then
9842 if test "${ac_cv_header_jerror_h+set}" = set; then
9843 echo "$as_me:$LINENO: checking for jerror.h" >&5
9844 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9845 if test "${ac_cv_header_jerror_h+set}" = set; then
9846 echo $ECHO_N "(cached) $ECHO_C" >&6
9848 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9849 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9851 # Is the header compilable?
9852 echo "$as_me:$LINENO: checking jerror.h usability" >&5
9853 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
9854 cat >conftest.
$ac_ext <<_ACEOF
9855 #line $LINENO "configure"
9858 cat confdefs.h
>>conftest.
$ac_ext
9859 cat >>conftest.
$ac_ext <<_ACEOF
9860 /* end confdefs.h. */
9861 $ac_includes_default
9864 rm -f conftest.
$ac_objext
9865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9866 (eval $ac_compile) 2>&5
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); } &&
9870 { ac_try
='test -s conftest.$ac_objext'
9871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); }; }; then
9876 ac_header_compiler
=yes
9878 echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.
$ac_ext >&5
9881 ac_header_compiler
=no
9883 rm -f conftest.
$ac_objext conftest.
$ac_ext
9884 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9885 echo "${ECHO_T}$ac_header_compiler" >&6
9887 # Is the header present?
9888 echo "$as_me:$LINENO: checking jerror.h presence" >&5
9889 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
9890 cat >conftest.
$ac_ext <<_ACEOF
9891 #line $LINENO "configure"
9894 cat confdefs.h
>>conftest.
$ac_ext
9895 cat >>conftest.
$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9900 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9902 grep -v '^ *+' conftest.er1
>conftest.err
9904 cat conftest.err
>&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } >/dev
/null
; then
9907 if test -s conftest.err
; then
9908 ac_cpp_err
=$ac_c_preproc_warn_flag
9915 if test -z "$ac_cpp_err"; then
9916 ac_header_preproc
=yes
9918 echo "$as_me: failed program was:" >&5
9919 sed 's/^/| /' conftest.
$ac_ext >&5
9921 ac_header_preproc
=no
9923 rm -f conftest.err conftest.
$ac_ext
9924 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9925 echo "${ECHO_T}$ac_header_preproc" >&6
9927 # So? What about this header?
9928 case $ac_header_compiler:$ac_header_preproc in
9930 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
9931 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9932 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9933 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9936 ## ------------------------------------ ##
9937 ## Report this to bug-autoconf@gnu.org. ##
9938 ## ------------------------------------ ##
9941 sed "s/^/$as_me: WARNING: /" >&2
9944 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
9945 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
9946 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
9947 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
9948 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9949 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9952 ## ------------------------------------ ##
9953 ## Report this to bug-autoconf@gnu.org. ##
9954 ## ------------------------------------ ##
9957 sed "s/^/$as_me: WARNING: /" >&2
9960 echo "$as_me:$LINENO: checking for jerror.h" >&5
9961 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9962 if test "${ac_cv_header_jerror_h+set}" = set; then
9963 echo $ECHO_N "(cached) $ECHO_C" >&6
9965 ac_cv_header_jerror_h
=$ac_header_preproc
9967 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9968 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9971 if test $ac_cv_header_jerror_h = yes; then
9972 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9973 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
9974 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 ac_check_lib_save_LIBS
=$LIBS
9979 cat >conftest.
$ac_ext <<_ACEOF
9980 #line $LINENO "configure"
9983 cat confdefs.h
>>conftest.
$ac_ext
9984 cat >>conftest.
$ac_ext <<_ACEOF
9985 /* end confdefs.h. */
9987 /* Override any gcc2 internal prototype to avoid an error. */
9991 /* We use char because int might match the return type of a gcc2
9992 builtin and then its argument prototype would still apply. */
9993 char jpeg_destroy_compress ();
9997 jpeg_destroy_compress ();
10002 rm -f conftest.
$ac_objext conftest
$ac_exeext
10003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10004 (eval $ac_link) 2>&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); } &&
10008 { ac_try
='test -s conftest$ac_exeext'
10009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10010 (eval $ac_try) 2>&5
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); }; }; then
10014 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
10016 echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.
$ac_ext >&5
10019 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
10021 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10022 LIBS
=$ac_check_lib_save_LIBS
10024 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10025 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
10026 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
10036 if test "${HAVE_JPEG}" = "yes"; then
10037 cat >>confdefs.h
<<\_ACEOF
10038 #define HAVE_JPEG 1
10041 cat >conftest.
$ac_ext <<_ACEOF
10042 #line $LINENO "configure"
10045 cat confdefs.h
>>conftest.
$ac_ext
10046 cat >>conftest.
$ac_ext <<_ACEOF
10047 /* end confdefs.h. */
10048 #include <jpeglib.h>
10049 version=JPEG_LIB_VERSION
10052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10053 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
10054 cat >>confdefs.h
<<\_ACEOF
10055 #define HAVE_JPEG 1
10059 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
10060 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10068 ### Use -lpng if available, unless `--with-png=no'.
10070 if test "${HAVE_X11}" = "yes"; then
10071 if test "${with_png}" != "no"; then
10072 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10073 # in /usr/include/libpng.
10076 for ac_header
in png.h libpng
/png.h
10078 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10080 echo "$as_me:$LINENO: checking for $ac_header" >&5
10081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10083 echo $ECHO_N "(cached) $ECHO_C" >&6
10085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10088 # Is the header compilable?
10089 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10090 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10091 cat >conftest.
$ac_ext <<_ACEOF
10092 #line $LINENO "configure"
10095 cat confdefs.h
>>conftest.
$ac_ext
10096 cat >>conftest.
$ac_ext <<_ACEOF
10097 /* end confdefs.h. */
10098 $ac_includes_default
10099 #include <$ac_header>
10101 rm -f conftest.
$ac_objext
10102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10103 (eval $ac_compile) 2>&5
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); } &&
10107 { ac_try
='test -s conftest.$ac_objext'
10108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109 (eval $ac_try) 2>&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; }; then
10113 ac_header_compiler
=yes
10115 echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.
$ac_ext >&5
10118 ac_header_compiler
=no
10120 rm -f conftest.
$ac_objext conftest.
$ac_ext
10121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10122 echo "${ECHO_T}$ac_header_compiler" >&6
10124 # Is the header present?
10125 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10127 cat >conftest.
$ac_ext <<_ACEOF
10128 #line $LINENO "configure"
10131 cat confdefs.h
>>conftest.
$ac_ext
10132 cat >>conftest.
$ac_ext <<_ACEOF
10133 /* end confdefs.h. */
10134 #include <$ac_header>
10136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10137 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10139 grep -v '^ *+' conftest.er1
>conftest.err
10141 cat conftest.err
>&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } >/dev
/null
; then
10144 if test -s conftest.err
; then
10145 ac_cpp_err
=$ac_c_preproc_warn_flag
10152 if test -z "$ac_cpp_err"; then
10153 ac_header_preproc
=yes
10155 echo "$as_me: failed program was:" >&5
10156 sed 's/^/| /' conftest.
$ac_ext >&5
10158 ac_header_preproc
=no
10160 rm -f conftest.err conftest.
$ac_ext
10161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10162 echo "${ECHO_T}$ac_header_preproc" >&6
10164 # So? What about this header?
10165 case $ac_header_compiler:$ac_header_preproc in
10167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10168 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10173 ## ------------------------------------ ##
10174 ## Report this to bug-autoconf@gnu.org. ##
10175 ## ------------------------------------ ##
10178 sed "s/^/$as_me: WARNING: /" >&2
10181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10184 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10189 ## ------------------------------------ ##
10190 ## Report this to bug-autoconf@gnu.org. ##
10191 ## ------------------------------------ ##
10194 sed "s/^/$as_me: WARNING: /" >&2
10197 echo "$as_me:$LINENO: checking for $ac_header" >&5
10198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10200 echo $ECHO_N "(cached) $ECHO_C" >&6
10202 eval "$as_ac_Header=$ac_header_preproc"
10204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10209 cat >>confdefs.h
<<_ACEOF
10210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10217 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
10218 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
10219 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
10220 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
10221 echo $ECHO_N "(cached) $ECHO_C" >&6
10223 ac_check_lib_save_LIBS
=$LIBS
10224 LIBS
="-lpng -lz -lm $LIBS"
10225 cat >conftest.
$ac_ext <<_ACEOF
10226 #line $LINENO "configure"
10229 cat confdefs.h
>>conftest.
$ac_ext
10230 cat >>conftest.
$ac_ext <<_ACEOF
10231 /* end confdefs.h. */
10233 /* Override any gcc2 internal prototype to avoid an error. */
10237 /* We use char because int might match the return type of a gcc2
10238 builtin and then its argument prototype would still apply. */
10239 char png_get_channels ();
10243 png_get_channels ();
10248 rm -f conftest.
$ac_objext conftest
$ac_exeext
10249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10250 (eval $ac_link) 2>&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); } &&
10254 { ac_try
='test -s conftest$ac_exeext'
10255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10256 (eval $ac_try) 2>&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); }; }; then
10260 ac_cv_lib_png_png_get_channels
=yes
10262 echo "$as_me: failed program was:" >&5
10263 sed 's/^/| /' conftest.
$ac_ext >&5
10265 ac_cv_lib_png_png_get_channels
=no
10267 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10268 LIBS
=$ac_check_lib_save_LIBS
10270 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
10271 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
10272 if test $ac_cv_lib_png_png_get_channels = yes; then
10279 if test "${HAVE_PNG}" = "yes"; then
10281 cat >>confdefs.h
<<\_ACEOF
10288 ### Use -ltiff if available, unless `--with-tiff=no'.
10290 if test "${HAVE_X11}" = "yes"; then
10291 if test "${with_tiff}" != "no"; then
10292 if test "${ac_cv_header_tiffio_h+set}" = set; then
10293 echo "$as_me:$LINENO: checking for tiffio.h" >&5
10294 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
10295 if test "${ac_cv_header_tiffio_h+set}" = set; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
10298 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
10299 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
10301 # Is the header compilable?
10302 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
10303 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
10304 cat >conftest.
$ac_ext <<_ACEOF
10305 #line $LINENO "configure"
10308 cat confdefs.h
>>conftest.
$ac_ext
10309 cat >>conftest.
$ac_ext <<_ACEOF
10310 /* end confdefs.h. */
10311 $ac_includes_default
10312 #include <tiffio.h>
10314 rm -f conftest.
$ac_objext
10315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10316 (eval $ac_compile) 2>&5
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); } &&
10320 { ac_try
='test -s conftest.$ac_objext'
10321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322 (eval $ac_try) 2>&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); }; }; then
10326 ac_header_compiler
=yes
10328 echo "$as_me: failed program was:" >&5
10329 sed 's/^/| /' conftest.
$ac_ext >&5
10331 ac_header_compiler
=no
10333 rm -f conftest.
$ac_objext conftest.
$ac_ext
10334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10335 echo "${ECHO_T}$ac_header_compiler" >&6
10337 # Is the header present?
10338 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
10339 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
10340 cat >conftest.
$ac_ext <<_ACEOF
10341 #line $LINENO "configure"
10344 cat confdefs.h
>>conftest.
$ac_ext
10345 cat >>conftest.
$ac_ext <<_ACEOF
10346 /* end confdefs.h. */
10347 #include <tiffio.h>
10349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10350 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10352 grep -v '^ *+' conftest.er1
>conftest.err
10354 cat conftest.err
>&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); } >/dev
/null
; then
10357 if test -s conftest.err
; then
10358 ac_cpp_err
=$ac_c_preproc_warn_flag
10365 if test -z "$ac_cpp_err"; then
10366 ac_header_preproc
=yes
10368 echo "$as_me: failed program was:" >&5
10369 sed 's/^/| /' conftest.
$ac_ext >&5
10371 ac_header_preproc
=no
10373 rm -f conftest.err conftest.
$ac_ext
10374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10375 echo "${ECHO_T}$ac_header_preproc" >&6
10377 # So? What about this header?
10378 case $ac_header_compiler:$ac_header_preproc in
10380 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
10381 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10382 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
10383 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
10386 ## ------------------------------------ ##
10387 ## Report this to bug-autoconf@gnu.org. ##
10388 ## ------------------------------------ ##
10391 sed "s/^/$as_me: WARNING: /" >&2
10394 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
10395 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
10396 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
10397 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
10398 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
10399 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
10402 ## ------------------------------------ ##
10403 ## Report this to bug-autoconf@gnu.org. ##
10404 ## ------------------------------------ ##
10407 sed "s/^/$as_me: WARNING: /" >&2
10410 echo "$as_me:$LINENO: checking for tiffio.h" >&5
10411 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
10412 if test "${ac_cv_header_tiffio_h+set}" = set; then
10413 echo $ECHO_N "(cached) $ECHO_C" >&6
10415 ac_cv_header_tiffio_h
=$ac_header_preproc
10417 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
10418 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
10421 if test $ac_cv_header_tiffio_h = yes; then
10423 # At least one tiff package requires the jpeg library.
10424 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
10425 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
10426 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
10427 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
10428 echo $ECHO_N "(cached) $ECHO_C" >&6
10430 ac_check_lib_save_LIBS
=$LIBS
10431 LIBS
="-ltiff $tifflibs $LIBS"
10432 cat >conftest.
$ac_ext <<_ACEOF
10433 #line $LINENO "configure"
10436 cat confdefs.h
>>conftest.
$ac_ext
10437 cat >>conftest.
$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10440 /* Override any gcc2 internal prototype to avoid an error. */
10444 /* We use char because int might match the return type of a gcc2
10445 builtin and then its argument prototype would still apply. */
10446 char TIFFGetVersion ();
10455 rm -f conftest.
$ac_objext conftest
$ac_exeext
10456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10457 (eval $ac_link) 2>&5
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } &&
10461 { ac_try
='test -s conftest$ac_exeext'
10462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10463 (eval $ac_try) 2>&5
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); }; }; then
10467 ac_cv_lib_tiff_TIFFGetVersion
=yes
10469 echo "$as_me: failed program was:" >&5
10470 sed 's/^/| /' conftest.
$ac_ext >&5
10472 ac_cv_lib_tiff_TIFFGetVersion
=no
10474 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10475 LIBS
=$ac_check_lib_save_LIBS
10477 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10478 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
10479 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
10488 if test "${HAVE_TIFF}" = "yes"; then
10490 cat >>confdefs.h
<<\_ACEOF
10491 #define HAVE_TIFF 1
10497 ### Use -lgif if available, unless `--with-gif=no'.
10499 if test "${HAVE_X11}" = "yes"; then
10500 if test "${with_gif}" != "no"; then
10501 if test "${ac_cv_header_gif_lib_h+set}" = set; then
10502 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
10503 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
10504 if test "${ac_cv_header_gif_lib_h+set}" = set; then
10505 echo $ECHO_N "(cached) $ECHO_C" >&6
10507 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
10508 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
10510 # Is the header compilable?
10511 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
10512 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
10513 cat >conftest.
$ac_ext <<_ACEOF
10514 #line $LINENO "configure"
10517 cat confdefs.h
>>conftest.
$ac_ext
10518 cat >>conftest.
$ac_ext <<_ACEOF
10519 /* end confdefs.h. */
10520 $ac_includes_default
10521 #include <gif_lib.h>
10523 rm -f conftest.
$ac_objext
10524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10525 (eval $ac_compile) 2>&5
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); } &&
10529 { ac_try
='test -s conftest.$ac_objext'
10530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10531 (eval $ac_try) 2>&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); }; }; then
10535 ac_header_compiler
=yes
10537 echo "$as_me: failed program was:" >&5
10538 sed 's/^/| /' conftest.
$ac_ext >&5
10540 ac_header_compiler
=no
10542 rm -f conftest.
$ac_objext conftest.
$ac_ext
10543 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10544 echo "${ECHO_T}$ac_header_compiler" >&6
10546 # Is the header present?
10547 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
10548 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
10549 cat >conftest.
$ac_ext <<_ACEOF
10550 #line $LINENO "configure"
10553 cat confdefs.h
>>conftest.
$ac_ext
10554 cat >>conftest.
$ac_ext <<_ACEOF
10555 /* end confdefs.h. */
10556 #include <gif_lib.h>
10558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10559 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10561 grep -v '^ *+' conftest.er1
>conftest.err
10563 cat conftest.err
>&5
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); } >/dev
/null
; then
10566 if test -s conftest.err
; then
10567 ac_cpp_err
=$ac_c_preproc_warn_flag
10574 if test -z "$ac_cpp_err"; then
10575 ac_header_preproc
=yes
10577 echo "$as_me: failed program was:" >&5
10578 sed 's/^/| /' conftest.
$ac_ext >&5
10580 ac_header_preproc
=no
10582 rm -f conftest.err conftest.
$ac_ext
10583 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10584 echo "${ECHO_T}$ac_header_preproc" >&6
10586 # So? What about this header?
10587 case $ac_header_compiler:$ac_header_preproc in
10589 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10590 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10591 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
10592 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
10595 ## ------------------------------------ ##
10596 ## Report this to bug-autoconf@gnu.org. ##
10597 ## ------------------------------------ ##
10600 sed "s/^/$as_me: WARNING: /" >&2
10603 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
10604 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
10605 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
10606 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
10607 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
10608 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
10611 ## ------------------------------------ ##
10612 ## Report this to bug-autoconf@gnu.org. ##
10613 ## ------------------------------------ ##
10616 sed "s/^/$as_me: WARNING: /" >&2
10619 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
10620 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
10621 if test "${ac_cv_header_gif_lib_h+set}" = set; then
10622 echo $ECHO_N "(cached) $ECHO_C" >&6
10624 ac_cv_header_gif_lib_h
=$ac_header_preproc
10626 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
10627 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
10630 if test $ac_cv_header_gif_lib_h = yes; then
10631 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10632 # Earlier versions can crash Emacs.
10633 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
10634 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
10635 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
10636 echo $ECHO_N "(cached) $ECHO_C" >&6
10638 ac_check_lib_save_LIBS
=$LIBS
10639 LIBS
="-lungif $LIBS"
10640 cat >conftest.
$ac_ext <<_ACEOF
10641 #line $LINENO "configure"
10644 cat confdefs.h
>>conftest.
$ac_ext
10645 cat >>conftest.
$ac_ext <<_ACEOF
10646 /* end confdefs.h. */
10648 /* Override any gcc2 internal prototype to avoid an error. */
10652 /* We use char because int might match the return type of a gcc2
10653 builtin and then its argument prototype would still apply. */
10654 char EGifPutExtensionLast ();
10658 EGifPutExtensionLast ();
10663 rm -f conftest.
$ac_objext conftest
$ac_exeext
10664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10665 (eval $ac_link) 2>&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); } &&
10669 { ac_try
='test -s conftest$ac_exeext'
10670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); }; }; then
10675 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
10677 echo "$as_me: failed program was:" >&5
10678 sed 's/^/| /' conftest.
$ac_ext >&5
10680 ac_cv_lib_ungif_EGifPutExtensionLast
=no
10682 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10683 LIBS
=$ac_check_lib_save_LIBS
10685 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10686 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
10687 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
10696 if test "${HAVE_GIF}" = "yes"; then
10698 cat >>confdefs.h
<<\_ACEOF
10705 ### Use Mac OS X Carbon API to implement GUI.
10707 if test "${with_carbon}" != "no"; then
10708 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10709 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10710 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10711 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10712 echo $ECHO_N "(cached) $ECHO_C" >&6
10714 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10715 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10717 # Is the header compilable?
10718 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
10719 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
10720 cat >conftest.
$ac_ext <<_ACEOF
10721 #line $LINENO "configure"
10724 cat confdefs.h
>>conftest.
$ac_ext
10725 cat >>conftest.
$ac_ext <<_ACEOF
10726 /* end confdefs.h. */
10727 $ac_includes_default
10728 #include <Carbon/Carbon.h>
10730 rm -f conftest.
$ac_objext
10731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10732 (eval $ac_compile) 2>&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); } &&
10736 { ac_try
='test -s conftest.$ac_objext'
10737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738 (eval $ac_try) 2>&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); }; }; then
10742 ac_header_compiler
=yes
10744 echo "$as_me: failed program was:" >&5
10745 sed 's/^/| /' conftest.
$ac_ext >&5
10747 ac_header_compiler
=no
10749 rm -f conftest.
$ac_objext conftest.
$ac_ext
10750 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10751 echo "${ECHO_T}$ac_header_compiler" >&6
10753 # Is the header present?
10754 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
10755 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
10756 cat >conftest.
$ac_ext <<_ACEOF
10757 #line $LINENO "configure"
10760 cat confdefs.h
>>conftest.
$ac_ext
10761 cat >>conftest.
$ac_ext <<_ACEOF
10762 /* end confdefs.h. */
10763 #include <Carbon/Carbon.h>
10765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10766 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10768 grep -v '^ *+' conftest.er1
>conftest.err
10770 cat conftest.err
>&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } >/dev
/null
; then
10773 if test -s conftest.err
; then
10774 ac_cpp_err
=$ac_c_preproc_warn_flag
10781 if test -z "$ac_cpp_err"; then
10782 ac_header_preproc
=yes
10784 echo "$as_me: failed program was:" >&5
10785 sed 's/^/| /' conftest.
$ac_ext >&5
10787 ac_header_preproc
=no
10789 rm -f conftest.err conftest.
$ac_ext
10790 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10791 echo "${ECHO_T}$ac_header_preproc" >&6
10793 # So? What about this header?
10794 case $ac_header_compiler:$ac_header_preproc in
10796 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
10797 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10798 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10799 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10802 ## ------------------------------------ ##
10803 ## Report this to bug-autoconf@gnu.org. ##
10804 ## ------------------------------------ ##
10807 sed "s/^/$as_me: WARNING: /" >&2
10810 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
10811 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
10812 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
10813 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
10814 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10815 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10818 ## ------------------------------------ ##
10819 ## Report this to bug-autoconf@gnu.org. ##
10820 ## ------------------------------------ ##
10823 sed "s/^/$as_me: WARNING: /" >&2
10826 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10827 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10828 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10831 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
10833 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10834 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10837 if test $ac_cv_header_Carbon_Carbon_h = yes; then
10844 if test "${HAVE_CARBON}" = "yes"; then
10846 cat >>confdefs.h
<<\_ACEOF
10847 #define HAVE_CARBON 1
10851 ## Specify the install directory
10853 if test "${carbon_appdir_x}" != ""; then
10854 case ${carbon_appdir_x} in
10855 y | ye |
yes) carbon_appdir
=/Applications
;;
10856 * ) carbon_appdir
=${carbon_appdir_x} ;;
10859 # We also have mouse menus.
10863 ### Use session management (-lSM -lICE) if available
10865 if test "${HAVE_X11}" = "yes"; then
10866 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10867 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10868 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10869 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10872 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10873 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10875 # Is the header compilable?
10876 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
10877 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
10878 cat >conftest.
$ac_ext <<_ACEOF
10879 #line $LINENO "configure"
10882 cat confdefs.h
>>conftest.
$ac_ext
10883 cat >>conftest.
$ac_ext <<_ACEOF
10884 /* end confdefs.h. */
10885 $ac_includes_default
10886 #include <X11/SM/SMlib.h>
10888 rm -f conftest.
$ac_objext
10889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10890 (eval $ac_compile) 2>&5
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); } &&
10894 { ac_try
='test -s conftest.$ac_objext'
10895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10896 (eval $ac_try) 2>&5
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); }; }; then
10900 ac_header_compiler
=yes
10902 echo "$as_me: failed program was:" >&5
10903 sed 's/^/| /' conftest.
$ac_ext >&5
10905 ac_header_compiler
=no
10907 rm -f conftest.
$ac_objext conftest.
$ac_ext
10908 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10909 echo "${ECHO_T}$ac_header_compiler" >&6
10911 # Is the header present?
10912 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
10913 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
10914 cat >conftest.
$ac_ext <<_ACEOF
10915 #line $LINENO "configure"
10918 cat confdefs.h
>>conftest.
$ac_ext
10919 cat >>conftest.
$ac_ext <<_ACEOF
10920 /* end confdefs.h. */
10921 #include <X11/SM/SMlib.h>
10923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10924 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10926 grep -v '^ *+' conftest.er1
>conftest.err
10928 cat conftest.err
>&5
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); } >/dev
/null
; then
10931 if test -s conftest.err
; then
10932 ac_cpp_err
=$ac_c_preproc_warn_flag
10939 if test -z "$ac_cpp_err"; then
10940 ac_header_preproc
=yes
10942 echo "$as_me: failed program was:" >&5
10943 sed 's/^/| /' conftest.
$ac_ext >&5
10945 ac_header_preproc
=no
10947 rm -f conftest.err conftest.
$ac_ext
10948 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10949 echo "${ECHO_T}$ac_header_preproc" >&6
10951 # So? What about this header?
10952 case $ac_header_compiler:$ac_header_preproc in
10954 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10955 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10956 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10957 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10960 ## ------------------------------------ ##
10961 ## Report this to bug-autoconf@gnu.org. ##
10962 ## ------------------------------------ ##
10965 sed "s/^/$as_me: WARNING: /" >&2
10968 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
10969 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
10970 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
10971 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
10972 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10973 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10976 ## ------------------------------------ ##
10977 ## Report this to bug-autoconf@gnu.org. ##
10978 ## ------------------------------------ ##
10981 sed "s/^/$as_me: WARNING: /" >&2
10984 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10985 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10986 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10987 echo $ECHO_N "(cached) $ECHO_C" >&6
10989 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
10991 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10992 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10995 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
10996 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10997 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
10998 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11001 ac_check_lib_save_LIBS
=$LIBS
11003 cat >conftest.
$ac_ext <<_ACEOF
11004 #line $LINENO "configure"
11007 cat confdefs.h
>>conftest.
$ac_ext
11008 cat >>conftest.
$ac_ext <<_ACEOF
11009 /* end confdefs.h. */
11011 /* Override any gcc2 internal prototype to avoid an error. */
11015 /* We use char because int might match the return type of a gcc2
11016 builtin and then its argument prototype would still apply. */
11017 char SmcOpenConnection ();
11021 SmcOpenConnection ();
11026 rm -f conftest.
$ac_objext conftest
$ac_exeext
11027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11028 (eval $ac_link) 2>&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); } &&
11032 { ac_try
='test -s conftest$ac_exeext'
11033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034 (eval $ac_try) 2>&5
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); }; }; then
11038 ac_cv_lib_SM_SmcOpenConnection
=yes
11040 echo "$as_me: failed program was:" >&5
11041 sed 's/^/| /' conftest.
$ac_ext >&5
11043 ac_cv_lib_SM_SmcOpenConnection
=no
11045 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11046 LIBS
=$ac_check_lib_save_LIBS
11048 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
11049 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
11050 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
11060 if test "${HAVE_X_SM}" = "yes"; then
11062 cat >>confdefs.h
<<\_ACEOF
11063 #define HAVE_X_SM 1
11068 *) LIBS
="-lSM -lICE $LIBS" ;;
11073 # If netdb.h doesn't declare h_errno, we must declare it by hand.
11074 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
11075 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
11076 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11079 cat >conftest.
$ac_ext <<_ACEOF
11080 #line $LINENO "configure"
11083 cat confdefs.h
>>conftest.
$ac_ext
11084 cat >>conftest.
$ac_ext <<_ACEOF
11085 /* end confdefs.h. */
11095 rm -f conftest.
$ac_objext conftest
$ac_exeext
11096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11097 (eval $ac_link) 2>&5
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); } &&
11101 { ac_try
='test -s conftest$ac_exeext'
11102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11103 (eval $ac_try) 2>&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }; }; then
11107 emacs_cv_netdb_declares_h_errno
=yes
11109 echo "$as_me: failed program was:" >&5
11110 sed 's/^/| /' conftest.
$ac_ext >&5
11112 emacs_cv_netdb_declares_h_errno
=no
11114 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11116 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
11117 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
11118 if test $emacs_cv_netdb_declares_h_errno = yes; then
11120 cat >>confdefs.h
<<\_ACEOF
11121 #define HAVE_H_ERRNO 1
11126 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11127 # for constant arguments. Useless!
11128 echo "$as_me:$LINENO: checking for working alloca.h" >&5
11129 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11130 if test "${ac_cv_working_alloca_h+set}" = set; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11133 cat >conftest.
$ac_ext <<_ACEOF
11134 #line $LINENO "configure"
11137 cat confdefs.h
>>conftest.
$ac_ext
11138 cat >>conftest.
$ac_ext <<_ACEOF
11139 /* end confdefs.h. */
11140 #include <alloca.h>
11144 char *p = (char *) alloca (2 * sizeof (int));
11149 rm -f conftest.
$ac_objext conftest
$ac_exeext
11150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11151 (eval $ac_link) 2>&5
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); } &&
11155 { ac_try
='test -s conftest$ac_exeext'
11156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11157 (eval $ac_try) 2>&5
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); }; }; then
11161 ac_cv_working_alloca_h
=yes
11163 echo "$as_me: failed program was:" >&5
11164 sed 's/^/| /' conftest.
$ac_ext >&5
11166 ac_cv_working_alloca_h
=no
11168 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11170 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11171 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11172 if test $ac_cv_working_alloca_h = yes; then
11174 cat >>confdefs.h
<<\_ACEOF
11175 #define HAVE_ALLOCA_H 1
11180 echo "$as_me:$LINENO: checking for alloca" >&5
11181 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11182 if test "${ac_cv_func_alloca_works+set}" = set; then
11183 echo $ECHO_N "(cached) $ECHO_C" >&6
11185 cat >conftest.
$ac_ext <<_ACEOF
11186 #line $LINENO "configure"
11189 cat confdefs.h
>>conftest.
$ac_ext
11190 cat >>conftest.
$ac_ext <<_ACEOF
11191 /* end confdefs.h. */
11193 # define alloca __builtin_alloca
11196 # include <malloc.h>
11197 # define alloca _alloca
11200 # include <alloca.h>
11205 # ifndef alloca /* predefined by HP cc +Olibcalls */
11216 char *p = (char *) alloca (1);
11221 rm -f conftest.
$ac_objext conftest
$ac_exeext
11222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11223 (eval $ac_link) 2>&5
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); } &&
11227 { ac_try
='test -s conftest$ac_exeext'
11228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11229 (eval $ac_try) 2>&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); }; }; then
11233 ac_cv_func_alloca_works
=yes
11235 echo "$as_me: failed program was:" >&5
11236 sed 's/^/| /' conftest.
$ac_ext >&5
11238 ac_cv_func_alloca_works
=no
11240 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11242 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11243 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11245 if test $ac_cv_func_alloca_works = yes; then
11247 cat >>confdefs.h
<<\_ACEOF
11248 #define HAVE_ALLOCA 1
11252 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11253 # that cause trouble. Some versions do not even contain alloca or
11254 # contain a buggy version. If you still want to use their alloca,
11255 # use ar to extract alloca.o from them instead of compiling alloca.c.
11257 ALLOCA
=alloca.
$ac_objext
11259 cat >>confdefs.h
<<\_ACEOF
11264 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11265 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11266 if test "${ac_cv_os_cray+set}" = set; then
11267 echo $ECHO_N "(cached) $ECHO_C" >&6
11269 cat >conftest.
$ac_ext <<_ACEOF
11270 #line $LINENO "configure"
11273 cat confdefs.h
>>conftest.
$ac_ext
11274 cat >>conftest.
$ac_ext <<_ACEOF
11275 /* end confdefs.h. */
11276 #if defined(CRAY) && ! defined(CRAY2)
11283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11284 $EGREP "webecray" >/dev
/null
2>&1; then
11292 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11293 echo "${ECHO_T}$ac_cv_os_cray" >&6
11294 if test $ac_cv_os_cray = yes; then
11295 for ac_func
in _getb67 GETB67 getb67
; do
11296 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11297 echo "$as_me:$LINENO: checking for $ac_func" >&5
11298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11299 if eval "test \"\${$as_ac_var+set}\" = set"; then
11300 echo $ECHO_N "(cached) $ECHO_C" >&6
11302 cat >conftest.
$ac_ext <<_ACEOF
11303 #line $LINENO "configure"
11306 cat confdefs.h
>>conftest.
$ac_ext
11307 cat >>conftest.
$ac_ext <<_ACEOF
11308 /* end confdefs.h. */
11309 /* System header to define __stub macros and hopefully few prototypes,
11310 which can conflict with char $ac_func (); below.
11311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11312 <limits.h> exists even on freestanding compilers. */
11314 # include <limits.h>
11316 # include <assert.h>
11318 /* Override any gcc2 internal prototype to avoid an error. */
11323 /* We use char because int might match the return type of a gcc2
11324 builtin and then its argument prototype would still apply. */
11326 /* The GNU C library defines this for functions which it implements
11327 to always fail with ENOSYS. Some functions are actually named
11328 something starting with __ and the normal name is an alias. */
11329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11332 char (*f) () = $ac_func;
11341 return f != $ac_func;
11346 rm -f conftest.
$ac_objext conftest
$ac_exeext
11347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11348 (eval $ac_link) 2>&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); } &&
11352 { ac_try
='test -s conftest$ac_exeext'
11353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11354 (eval $ac_try) 2>&5
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); }; }; then
11358 eval "$as_ac_var=yes"
11360 echo "$as_me: failed program was:" >&5
11361 sed 's/^/| /' conftest.
$ac_ext >&5
11363 eval "$as_ac_var=no"
11365 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11369 if test `eval echo '${'$as_ac_var'}'` = yes; then
11371 cat >>confdefs.h
<<_ACEOF
11372 #define CRAY_STACKSEG_END $ac_func
11381 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11382 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11383 if test "${ac_cv_c_stack_direction+set}" = set; then
11384 echo $ECHO_N "(cached) $ECHO_C" >&6
11386 if test "$cross_compiling" = yes; then
11387 ac_cv_c_stack_direction
=0
11389 cat >conftest.
$ac_ext <<_ACEOF
11390 #line $LINENO "configure"
11393 cat confdefs.h
>>conftest.
$ac_ext
11394 cat >>conftest.
$ac_ext <<_ACEOF
11395 /* end confdefs.h. */
11397 find_stack_direction ()
11399 static char *addr = 0;
11404 return find_stack_direction ();
11407 return (&dummy > addr) ? 1 : -1;
11413 exit (find_stack_direction () < 0);
11416 rm -f conftest
$ac_exeext
11417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11418 (eval $ac_link) 2>&5
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11423 (eval $ac_try) 2>&5
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); }; }; then
11427 ac_cv_c_stack_direction
=1
11429 echo "$as_me: program exited with status $ac_status" >&5
11430 echo "$as_me: failed program was:" >&5
11431 sed 's/^/| /' conftest.
$ac_ext >&5
11433 ( exit $ac_status )
11434 ac_cv_c_stack_direction
=-1
11436 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11439 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11440 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11442 cat >>confdefs.h
<<_ACEOF
11443 #define STACK_DIRECTION $ac_cv_c_stack_direction
11450 # fmod, logb, and frexp are found in -lm on most systems.
11451 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
11453 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
11454 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
11455 if test "${ac_cv_lib_m_sqrt+set}" = set; then
11456 echo $ECHO_N "(cached) $ECHO_C" >&6
11458 ac_check_lib_save_LIBS
=$LIBS
11460 cat >conftest.
$ac_ext <<_ACEOF
11461 #line $LINENO "configure"
11464 cat confdefs.h
>>conftest.
$ac_ext
11465 cat >>conftest.
$ac_ext <<_ACEOF
11466 /* end confdefs.h. */
11468 /* Override any gcc2 internal prototype to avoid an error. */
11472 /* We use char because int might match the return type of a gcc2
11473 builtin and then its argument prototype would still apply. */
11483 rm -f conftest.
$ac_objext conftest
$ac_exeext
11484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11485 (eval $ac_link) 2>&5
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); } &&
11489 { ac_try
='test -s conftest$ac_exeext'
11490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11491 (eval $ac_try) 2>&5
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); }; }; then
11495 ac_cv_lib_m_sqrt
=yes
11497 echo "$as_me: failed program was:" >&5
11498 sed 's/^/| /' conftest.
$ac_ext >&5
11500 ac_cv_lib_m_sqrt
=no
11502 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11503 LIBS
=$ac_check_lib_save_LIBS
11505 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
11506 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
11507 if test $ac_cv_lib_m_sqrt = yes; then
11508 cat >>confdefs.h
<<_ACEOF
11509 #define HAVE_LIBM 1
11517 # Check for mail-locking functions in a "mail" library. Probably this should
11518 # have the same check as for liblockfile below.
11520 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
11521 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
11522 if test "${ac_cv_lib_mail_maillock+set}" = set; then
11523 echo $ECHO_N "(cached) $ECHO_C" >&6
11525 ac_check_lib_save_LIBS
=$LIBS
11526 LIBS
="-lmail $LIBS"
11527 cat >conftest.
$ac_ext <<_ACEOF
11528 #line $LINENO "configure"
11531 cat confdefs.h
>>conftest.
$ac_ext
11532 cat >>conftest.
$ac_ext <<_ACEOF
11533 /* end confdefs.h. */
11535 /* Override any gcc2 internal prototype to avoid an error. */
11539 /* We use char because int might match the return type of a gcc2
11540 builtin and then its argument prototype would still apply. */
11550 rm -f conftest.
$ac_objext conftest
$ac_exeext
11551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11552 (eval $ac_link) 2>&5
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); } &&
11556 { ac_try
='test -s conftest$ac_exeext'
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_cv_lib_mail_maillock
=yes
11564 echo "$as_me: failed program was:" >&5
11565 sed 's/^/| /' conftest.
$ac_ext >&5
11567 ac_cv_lib_mail_maillock
=no
11569 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11570 LIBS
=$ac_check_lib_save_LIBS
11572 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
11573 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
11574 if test $ac_cv_lib_mail_maillock = yes; then
11575 cat >>confdefs.h
<<_ACEOF
11576 #define HAVE_LIBMAIL 1
11579 LIBS
="-lmail $LIBS"
11584 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
11585 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
11586 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
11587 echo $ECHO_N "(cached) $ECHO_C" >&6
11589 ac_check_lib_save_LIBS
=$LIBS
11590 LIBS
="-llockfile $LIBS"
11591 cat >conftest.
$ac_ext <<_ACEOF
11592 #line $LINENO "configure"
11595 cat confdefs.h
>>conftest.
$ac_ext
11596 cat >>conftest.
$ac_ext <<_ACEOF
11597 /* end confdefs.h. */
11599 /* Override any gcc2 internal prototype to avoid an error. */
11603 /* We use char because int might match the return type of a gcc2
11604 builtin and then its argument prototype would still apply. */
11614 rm -f conftest.
$ac_objext conftest
$ac_exeext
11615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11616 (eval $ac_link) 2>&5
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); } &&
11620 { ac_try
='test -s conftest$ac_exeext'
11621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11622 (eval $ac_try) 2>&5
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); }; }; then
11626 ac_cv_lib_lockfile_maillock
=yes
11628 echo "$as_me: failed program was:" >&5
11629 sed 's/^/| /' conftest.
$ac_ext >&5
11631 ac_cv_lib_lockfile_maillock
=no
11633 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11634 LIBS
=$ac_check_lib_save_LIBS
11636 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
11637 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
11638 if test $ac_cv_lib_lockfile_maillock = yes; then
11639 cat >>confdefs.h
<<_ACEOF
11640 #define HAVE_LIBLOCKFILE 1
11643 LIBS
="-llockfile $LIBS"
11647 # If we have the shared liblockfile, assume we must use it for mail
11648 # locking (e.g. Debian). If we couldn't link against liblockfile
11649 # (no liblockfile.a installed), ensure that we don't need to.
11650 if test "$ac_cv_lib_lockfile_maillock" = no
; then
11651 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11652 set dummy liblockfile.so
; ac_word
=$2
11653 echo "$as_me:$LINENO: checking for $ac_word" >&5
11654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11655 if test "${ac_cv_prog_liblockfile+set}" = set; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
11658 if test -n "$liblockfile"; then
11659 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
11661 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11662 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11663 for as_dir
in $as_dummy
11666 test -z "$as_dir" && as_dir
=.
11667 for ac_exec_ext
in '' $ac_executable_extensions; do
11668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11669 ac_cv_prog_liblockfile
="yes"
11670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11676 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
11679 liblockfile
=$ac_cv_prog_liblockfile
11680 if test -n "$liblockfile"; then
11681 echo "$as_me:$LINENO: result: $liblockfile" >&5
11682 echo "${ECHO_T}$liblockfile" >&6
11684 echo "$as_me:$LINENO: result: no" >&5
11685 echo "${ECHO_T}no" >&6
11688 if test $ac_cv_prog_liblockfile = yes; then
11689 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
11690 This probably means that movemail could lose mail.
11691 There may be a \`development' package to install containing liblockfile." >&5
11692 echo "$as_me: error: Shared liblockfile found but can't link against it.
11693 This probably means that movemail could lose mail.
11694 There may be a \`development' package to install containing liblockfile." >&2;}
11695 { (exit 1); exit 1; }; }
11700 for ac_func
in touchlock
11702 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11703 echo "$as_me:$LINENO: checking for $ac_func" >&5
11704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11705 if eval "test \"\${$as_ac_var+set}\" = set"; then
11706 echo $ECHO_N "(cached) $ECHO_C" >&6
11708 cat >conftest.
$ac_ext <<_ACEOF
11709 #line $LINENO "configure"
11712 cat confdefs.h
>>conftest.
$ac_ext
11713 cat >>conftest.
$ac_ext <<_ACEOF
11714 /* end confdefs.h. */
11715 /* System header to define __stub macros and hopefully few prototypes,
11716 which can conflict with char $ac_func (); below.
11717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11718 <limits.h> exists even on freestanding compilers. */
11720 # include <limits.h>
11722 # include <assert.h>
11724 /* Override any gcc2 internal prototype to avoid an error. */
11729 /* We use char because int might match the return type of a gcc2
11730 builtin and then its argument prototype would still apply. */
11732 /* The GNU C library defines this for functions which it implements
11733 to always fail with ENOSYS. Some functions are actually named
11734 something starting with __ and the normal name is an alias. */
11735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11738 char (*f) () = $ac_func;
11747 return f != $ac_func;
11752 rm -f conftest.
$ac_objext conftest
$ac_exeext
11753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11754 (eval $ac_link) 2>&5
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); } &&
11758 { ac_try
='test -s conftest$ac_exeext'
11759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11760 (eval $ac_try) 2>&5
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); }; }; then
11764 eval "$as_ac_var=yes"
11766 echo "$as_me: failed program was:" >&5
11767 sed 's/^/| /' conftest.
$ac_ext >&5
11769 eval "$as_ac_var=no"
11771 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11774 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11775 if test `eval echo '${'$as_ac_var'}'` = yes; then
11776 cat >>confdefs.h
<<_ACEOF
11777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11784 for ac_header
in maillock.h
11786 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11788 echo "$as_me:$LINENO: checking for $ac_header" >&5
11789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11791 echo $ECHO_N "(cached) $ECHO_C" >&6
11793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11796 # Is the header compilable?
11797 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11798 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11799 cat >conftest.
$ac_ext <<_ACEOF
11800 #line $LINENO "configure"
11803 cat confdefs.h
>>conftest.
$ac_ext
11804 cat >>conftest.
$ac_ext <<_ACEOF
11805 /* end confdefs.h. */
11806 $ac_includes_default
11807 #include <$ac_header>
11809 rm -f conftest.
$ac_objext
11810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11811 (eval $ac_compile) 2>&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); } &&
11815 { ac_try
='test -s conftest.$ac_objext'
11816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11817 (eval $ac_try) 2>&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); }; }; then
11821 ac_header_compiler
=yes
11823 echo "$as_me: failed program was:" >&5
11824 sed 's/^/| /' conftest.
$ac_ext >&5
11826 ac_header_compiler
=no
11828 rm -f conftest.
$ac_objext conftest.
$ac_ext
11829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11830 echo "${ECHO_T}$ac_header_compiler" >&6
11832 # Is the header present?
11833 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11835 cat >conftest.
$ac_ext <<_ACEOF
11836 #line $LINENO "configure"
11839 cat confdefs.h
>>conftest.
$ac_ext
11840 cat >>conftest.
$ac_ext <<_ACEOF
11841 /* end confdefs.h. */
11842 #include <$ac_header>
11844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11845 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11847 grep -v '^ *+' conftest.er1
>conftest.err
11849 cat conftest.err
>&5
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); } >/dev
/null
; then
11852 if test -s conftest.err
; then
11853 ac_cpp_err
=$ac_c_preproc_warn_flag
11860 if test -z "$ac_cpp_err"; then
11861 ac_header_preproc
=yes
11863 echo "$as_me: failed program was:" >&5
11864 sed 's/^/| /' conftest.
$ac_ext >&5
11866 ac_header_preproc
=no
11868 rm -f conftest.err conftest.
$ac_ext
11869 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11870 echo "${ECHO_T}$ac_header_preproc" >&6
11872 # So? What about this header?
11873 case $ac_header_compiler:$ac_header_preproc in
11875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11881 ## ------------------------------------ ##
11882 ## Report this to bug-autoconf@gnu.org. ##
11883 ## ------------------------------------ ##
11886 sed "s/^/$as_me: WARNING: /" >&2
11889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11892 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11897 ## ------------------------------------ ##
11898 ## Report this to bug-autoconf@gnu.org. ##
11899 ## ------------------------------------ ##
11902 sed "s/^/$as_me: WARNING: /" >&2
11905 echo "$as_me:$LINENO: checking for $ac_header" >&5
11906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11908 echo $ECHO_N "(cached) $ECHO_C" >&6
11910 eval "$as_ac_Header=$ac_header_preproc"
11912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11917 cat >>confdefs.h
<<_ACEOF
11918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11993 for ac_func
in gethostname getdomainname dup2 \
11994 rename closedir mkdir
rmdir sysinfo \
11995 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
11996 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
11997 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11998 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11999 sendto recvfrom getsockopt setsockopt getsockname getpeername \
12000 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
12001 memset memcmp memmove difftime memcpy mempcpy mblen mbrlen posix_memalign
12003 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12004 echo "$as_me:$LINENO: checking for $ac_func" >&5
12005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12006 if eval "test \"\${$as_ac_var+set}\" = set"; then
12007 echo $ECHO_N "(cached) $ECHO_C" >&6
12009 cat >conftest.
$ac_ext <<_ACEOF
12010 #line $LINENO "configure"
12013 cat confdefs.h
>>conftest.
$ac_ext
12014 cat >>conftest.
$ac_ext <<_ACEOF
12015 /* end confdefs.h. */
12016 /* System header to define __stub macros and hopefully few prototypes,
12017 which can conflict with char $ac_func (); below.
12018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12019 <limits.h> exists even on freestanding compilers. */
12021 # include <limits.h>
12023 # include <assert.h>
12025 /* Override any gcc2 internal prototype to avoid an error. */
12030 /* We use char because int might match the return type of a gcc2
12031 builtin and then its argument prototype would still apply. */
12033 /* The GNU C library defines this for functions which it implements
12034 to always fail with ENOSYS. Some functions are actually named
12035 something starting with __ and the normal name is an alias. */
12036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12039 char (*f) () = $ac_func;
12048 return f != $ac_func;
12053 rm -f conftest.
$ac_objext conftest
$ac_exeext
12054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12055 (eval $ac_link) 2>&5
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); } &&
12059 { ac_try
='test -s conftest$ac_exeext'
12060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12061 (eval $ac_try) 2>&5
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); }; }; then
12065 eval "$as_ac_var=yes"
12067 echo "$as_me: failed program was:" >&5
12068 sed 's/^/| /' conftest.
$ac_ext >&5
12070 eval "$as_ac_var=no"
12072 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12075 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12076 if test `eval echo '${'$as_ac_var'}'` = yes; then
12077 cat >>confdefs.h
<<_ACEOF
12078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12086 for ac_header
in sys
/un.h
12088 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12090 echo "$as_me:$LINENO: checking for $ac_header" >&5
12091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12093 echo $ECHO_N "(cached) $ECHO_C" >&6
12095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12098 # Is the header compilable?
12099 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12101 cat >conftest.
$ac_ext <<_ACEOF
12102 #line $LINENO "configure"
12105 cat confdefs.h
>>conftest.
$ac_ext
12106 cat >>conftest.
$ac_ext <<_ACEOF
12107 /* end confdefs.h. */
12108 $ac_includes_default
12109 #include <$ac_header>
12111 rm -f conftest.
$ac_objext
12112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12113 (eval $ac_compile) 2>&5
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); } &&
12117 { ac_try
='test -s conftest.$ac_objext'
12118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12119 (eval $ac_try) 2>&5
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); }; }; then
12123 ac_header_compiler
=yes
12125 echo "$as_me: failed program was:" >&5
12126 sed 's/^/| /' conftest.
$ac_ext >&5
12128 ac_header_compiler
=no
12130 rm -f conftest.
$ac_objext conftest.
$ac_ext
12131 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12132 echo "${ECHO_T}$ac_header_compiler" >&6
12134 # Is the header present?
12135 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12136 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12137 cat >conftest.
$ac_ext <<_ACEOF
12138 #line $LINENO "configure"
12141 cat confdefs.h
>>conftest.
$ac_ext
12142 cat >>conftest.
$ac_ext <<_ACEOF
12143 /* end confdefs.h. */
12144 #include <$ac_header>
12146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12147 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12149 grep -v '^ *+' conftest.er1
>conftest.err
12151 cat conftest.err
>&5
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); } >/dev
/null
; then
12154 if test -s conftest.err
; then
12155 ac_cpp_err
=$ac_c_preproc_warn_flag
12162 if test -z "$ac_cpp_err"; then
12163 ac_header_preproc
=yes
12165 echo "$as_me: failed program was:" >&5
12166 sed 's/^/| /' conftest.
$ac_ext >&5
12168 ac_header_preproc
=no
12170 rm -f conftest.err conftest.
$ac_ext
12171 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12172 echo "${ECHO_T}$ac_header_preproc" >&6
12174 # So? What about this header?
12175 case $ac_header_compiler:$ac_header_preproc in
12177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12183 ## ------------------------------------ ##
12184 ## Report this to bug-autoconf@gnu.org. ##
12185 ## ------------------------------------ ##
12188 sed "s/^/$as_me: WARNING: /" >&2
12191 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12192 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12193 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12194 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12199 ## ------------------------------------ ##
12200 ## Report this to bug-autoconf@gnu.org. ##
12201 ## ------------------------------------ ##
12204 sed "s/^/$as_me: WARNING: /" >&2
12207 echo "$as_me:$LINENO: checking for $ac_header" >&5
12208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12210 echo $ECHO_N "(cached) $ECHO_C" >&6
12212 eval "$as_ac_Header=$ac_header_preproc"
12214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12219 cat >>confdefs.h
<<_ACEOF
12220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12230 for ac_header
in sys
/time.h unistd.h
12232 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12234 echo "$as_me:$LINENO: checking for $ac_header" >&5
12235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12237 echo $ECHO_N "(cached) $ECHO_C" >&6
12239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12242 # Is the header compilable?
12243 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12245 cat >conftest.
$ac_ext <<_ACEOF
12246 #line $LINENO "configure"
12249 cat confdefs.h
>>conftest.
$ac_ext
12250 cat >>conftest.
$ac_ext <<_ACEOF
12251 /* end confdefs.h. */
12252 $ac_includes_default
12253 #include <$ac_header>
12255 rm -f conftest.
$ac_objext
12256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12257 (eval $ac_compile) 2>&5
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); } &&
12261 { ac_try
='test -s conftest.$ac_objext'
12262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12263 (eval $ac_try) 2>&5
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; }; then
12267 ac_header_compiler
=yes
12269 echo "$as_me: failed program was:" >&5
12270 sed 's/^/| /' conftest.
$ac_ext >&5
12272 ac_header_compiler
=no
12274 rm -f conftest.
$ac_objext conftest.
$ac_ext
12275 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12276 echo "${ECHO_T}$ac_header_compiler" >&6
12278 # Is the header present?
12279 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12280 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12281 cat >conftest.
$ac_ext <<_ACEOF
12282 #line $LINENO "configure"
12285 cat confdefs.h
>>conftest.
$ac_ext
12286 cat >>conftest.
$ac_ext <<_ACEOF
12287 /* end confdefs.h. */
12288 #include <$ac_header>
12290 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12291 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12293 grep -v '^ *+' conftest.er1
>conftest.err
12295 cat conftest.err
>&5
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); } >/dev
/null
; then
12298 if test -s conftest.err
; then
12299 ac_cpp_err
=$ac_c_preproc_warn_flag
12306 if test -z "$ac_cpp_err"; then
12307 ac_header_preproc
=yes
12309 echo "$as_me: failed program was:" >&5
12310 sed 's/^/| /' conftest.
$ac_ext >&5
12312 ac_header_preproc
=no
12314 rm -f conftest.err conftest.
$ac_ext
12315 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12316 echo "${ECHO_T}$ac_header_preproc" >&6
12318 # So? What about this header?
12319 case $ac_header_compiler:$ac_header_preproc in
12321 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12322 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12324 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12327 ## ------------------------------------ ##
12328 ## Report this to bug-autoconf@gnu.org. ##
12329 ## ------------------------------------ ##
12332 sed "s/^/$as_me: WARNING: /" >&2
12335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12336 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12338 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12343 ## ------------------------------------ ##
12344 ## Report this to bug-autoconf@gnu.org. ##
12345 ## ------------------------------------ ##
12348 sed "s/^/$as_me: WARNING: /" >&2
12351 echo "$as_me:$LINENO: checking for $ac_header" >&5
12352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12354 echo $ECHO_N "(cached) $ECHO_C" >&6
12356 eval "$as_ac_Header=$ac_header_preproc"
12358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12363 cat >>confdefs.h
<<_ACEOF
12364 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12372 for ac_func
in alarm
12374 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12375 echo "$as_me:$LINENO: checking for $ac_func" >&5
12376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12377 if eval "test \"\${$as_ac_var+set}\" = set"; then
12378 echo $ECHO_N "(cached) $ECHO_C" >&6
12380 cat >conftest.
$ac_ext <<_ACEOF
12381 #line $LINENO "configure"
12384 cat confdefs.h
>>conftest.
$ac_ext
12385 cat >>conftest.
$ac_ext <<_ACEOF
12386 /* end confdefs.h. */
12387 /* System header to define __stub macros and hopefully few prototypes,
12388 which can conflict with char $ac_func (); below.
12389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12390 <limits.h> exists even on freestanding compilers. */
12392 # include <limits.h>
12394 # include <assert.h>
12396 /* Override any gcc2 internal prototype to avoid an error. */
12401 /* We use char because int might match the return type of a gcc2
12402 builtin and then its argument prototype would still apply. */
12404 /* The GNU C library defines this for functions which it implements
12405 to always fail with ENOSYS. Some functions are actually named
12406 something starting with __ and the normal name is an alias. */
12407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12410 char (*f) () = $ac_func;
12419 return f != $ac_func;
12424 rm -f conftest.
$ac_objext conftest
$ac_exeext
12425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12426 (eval $ac_link) 2>&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); } &&
12430 { ac_try
='test -s conftest$ac_exeext'
12431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12432 (eval $ac_try) 2>&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); }; }; then
12436 eval "$as_ac_var=yes"
12438 echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.
$ac_ext >&5
12441 eval "$as_ac_var=no"
12443 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12446 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12447 if test `eval echo '${'$as_ac_var'}'` = yes; then
12448 cat >>confdefs.h
<<_ACEOF
12449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12455 echo "$as_me:$LINENO: checking for working mktime" >&5
12456 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
12457 if test "${ac_cv_func_working_mktime+set}" = set; then
12458 echo $ECHO_N "(cached) $ECHO_C" >&6
12460 if test "$cross_compiling" = yes; then
12461 ac_cv_func_working_mktime
=no
12463 cat >conftest.
$ac_ext <<_ACEOF
12464 #line $LINENO "configure"
12467 cat confdefs.h
>>conftest.
$ac_ext
12468 cat >>conftest.
$ac_ext <<_ACEOF
12469 /* end confdefs.h. */
12470 /* Test program from Paul Eggert and Tony Leneis. */
12471 #if TIME_WITH_SYS_TIME
12472 # include <sys/time.h>
12475 # if HAVE_SYS_TIME_H
12476 # include <sys/time.h>
12483 # include <unistd.h>
12487 # define alarm(X) /* empty */
12490 /* Work around redefinition to rpl_putenv by other config tests. */
12493 static time_t time_t_max;
12495 /* Values we'll use to set the TZ environment variable. */
12496 static const char *const tz_strings[] = {
12497 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
12498 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
12500 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
12502 /* Fail if mktime fails to convert a date in the spring-forward gap.
12503 Based on a problem report from Andreas Jaeger. */
12505 spring_forward_gap ()
12507 /* glibc (up to about 1998-10-07) failed this test. */
12510 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12511 instead of "TZ=America/Vancouver" in order to detect the bug even
12512 on systems that don't support the Olson extension, or don't have the
12513 full zoneinfo tables installed. */
12514 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
12523 if (mktime (&tm) == (time_t)-1)
12532 if ((lt = localtime (&now)) && mktime (lt) != now)
12534 now = time_t_max - now;
12535 if ((lt = localtime (&now)) && mktime (lt) != now)
12542 /* Based on code from Ariel Faigon. */
12552 if (tm.tm_mon != 2 || tm.tm_mday != 31)
12562 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12563 now = mktime (&tm);
12564 if (now != (time_t) -1)
12566 struct tm *lt = localtime (&now);
12568 && lt->tm_year == tm.tm_year
12569 && lt->tm_mon == tm.tm_mon
12570 && lt->tm_mday == tm.tm_mday
12571 && lt->tm_hour == tm.tm_hour
12572 && lt->tm_min == tm.tm_min
12573 && lt->tm_sec == tm.tm_sec
12574 && lt->tm_yday == tm.tm_yday
12575 && lt->tm_wday == tm.tm_wday
12576 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12577 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12588 /* This test makes some buggy mktime implementations loop.
12589 Give up after 60 seconds; a mktime slower than that
12590 isn't worth using anyway. */
12593 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
12596 delta = time_t_max / 997; /* a suitable prime number */
12597 for (i = 0; i < N_STRINGS; i++)
12600 putenv (tz_strings[i]);
12602 for (t = 0; t <= time_t_max - delta; t += delta)
12604 mktime_test ((time_t) 60 * 60);
12605 mktime_test ((time_t) 60 * 60 * 24);
12607 for (j = 1; 0 < j; j *= 2)
12609 bigtime_test (j - 1);
12612 spring_forward_gap ();
12616 rm -f conftest
$ac_exeext
12617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12618 (eval $ac_link) 2>&5
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12623 (eval $ac_try) 2>&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); }; }; then
12627 ac_cv_func_working_mktime
=yes
12629 echo "$as_me: program exited with status $ac_status" >&5
12630 echo "$as_me: failed program was:" >&5
12631 sed 's/^/| /' conftest.
$ac_ext >&5
12633 ( exit $ac_status )
12634 ac_cv_func_working_mktime
=no
12636 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12639 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
12640 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
12641 if test $ac_cv_func_working_mktime = no
; then
12642 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
12645 if test "$ac_cv_func_working_mktime" = no
; then
12647 cat >>confdefs.h
<<\_ACEOF
12648 #define BROKEN_MKTIME 1
12653 ac_have_func
=no
# yes means we've found a way to get the load average.
12655 # Make sure getloadavg.c is where it belongs, at configure-time.
12656 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12657 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
12658 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
12659 { (exit 1); exit 1; }; }
12663 # Check for getloadavg, but be sure not to touch the cache variable.
12664 (echo "$as_me:$LINENO: checking for getloadavg" >&5
12665 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
12666 if test "${ac_cv_func_getloadavg+set}" = set; then
12667 echo $ECHO_N "(cached) $ECHO_C" >&6
12669 cat >conftest.
$ac_ext <<_ACEOF
12670 #line $LINENO "configure"
12673 cat confdefs.h
>>conftest.
$ac_ext
12674 cat >>conftest.
$ac_ext <<_ACEOF
12675 /* end confdefs.h. */
12676 /* System header to define __stub macros and hopefully few prototypes,
12677 which can conflict with char getloadavg (); below.
12678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12679 <limits.h> exists even on freestanding compilers. */
12681 # include <limits.h>
12683 # include <assert.h>
12685 /* Override any gcc2 internal prototype to avoid an error. */
12690 /* We use char because int might match the return type of a gcc2
12691 builtin and then its argument prototype would still apply. */
12692 char getloadavg ();
12693 /* The GNU C library defines this for functions which it implements
12694 to always fail with ENOSYS. Some functions are actually named
12695 something starting with __ and the normal name is an alias. */
12696 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
12699 char (*f) () = getloadavg;
12708 return f != getloadavg;
12713 rm -f conftest.
$ac_objext conftest
$ac_exeext
12714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12715 (eval $ac_link) 2>&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } &&
12719 { ac_try
='test -s conftest$ac_exeext'
12720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12721 (eval $ac_try) 2>&5
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); }; }; then
12725 ac_cv_func_getloadavg
=yes
12727 echo "$as_me: failed program was:" >&5
12728 sed 's/^/| /' conftest.
$ac_ext >&5
12730 ac_cv_func_getloadavg
=no
12732 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12734 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
12735 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
12736 if test $ac_cv_func_getloadavg = yes; then
12741 ) && ac_have_func
=yes
12743 # On HPUX9, an unprivileged user can get load averages through this function.
12745 for ac_func
in pstat_getdynamic
12747 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12748 echo "$as_me:$LINENO: checking for $ac_func" >&5
12749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12750 if eval "test \"\${$as_ac_var+set}\" = set"; then
12751 echo $ECHO_N "(cached) $ECHO_C" >&6
12753 cat >conftest.
$ac_ext <<_ACEOF
12754 #line $LINENO "configure"
12757 cat confdefs.h
>>conftest.
$ac_ext
12758 cat >>conftest.
$ac_ext <<_ACEOF
12759 /* end confdefs.h. */
12760 /* System header to define __stub macros and hopefully few prototypes,
12761 which can conflict with char $ac_func (); below.
12762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12763 <limits.h> exists even on freestanding compilers. */
12765 # include <limits.h>
12767 # include <assert.h>
12769 /* Override any gcc2 internal prototype to avoid an error. */
12774 /* We use char because int might match the return type of a gcc2
12775 builtin and then its argument prototype would still apply. */
12777 /* The GNU C library defines this for functions which it implements
12778 to always fail with ENOSYS. Some functions are actually named
12779 something starting with __ and the normal name is an alias. */
12780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12783 char (*f) () = $ac_func;
12792 return f != $ac_func;
12797 rm -f conftest.
$ac_objext conftest
$ac_exeext
12798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12799 (eval $ac_link) 2>&5
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); } &&
12803 { ac_try
='test -s conftest$ac_exeext'
12804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12805 (eval $ac_try) 2>&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; }; then
12809 eval "$as_ac_var=yes"
12811 echo "$as_me: failed program was:" >&5
12812 sed 's/^/| /' conftest.
$ac_ext >&5
12814 eval "$as_ac_var=no"
12816 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12819 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12820 if test `eval echo '${'$as_ac_var'}'` = yes; then
12821 cat >>confdefs.h
<<_ACEOF
12822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12829 # Solaris has libkstat which does not require root.
12831 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
12832 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
12833 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
12834 echo $ECHO_N "(cached) $ECHO_C" >&6
12836 ac_check_lib_save_LIBS
=$LIBS
12837 LIBS
="-lkstat $LIBS"
12838 cat >conftest.
$ac_ext <<_ACEOF
12839 #line $LINENO "configure"
12842 cat confdefs.h
>>conftest.
$ac_ext
12843 cat >>conftest.
$ac_ext <<_ACEOF
12844 /* end confdefs.h. */
12846 /* Override any gcc2 internal prototype to avoid an error. */
12850 /* We use char because int might match the return type of a gcc2
12851 builtin and then its argument prototype would still apply. */
12852 char kstat_open ();
12861 rm -f conftest.
$ac_objext conftest
$ac_exeext
12862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12863 (eval $ac_link) 2>&5
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); } &&
12867 { ac_try
='test -s conftest$ac_exeext'
12868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12869 (eval $ac_try) 2>&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); }; }; then
12873 ac_cv_lib_kstat_kstat_open
=yes
12875 echo "$as_me: failed program was:" >&5
12876 sed 's/^/| /' conftest.
$ac_ext >&5
12878 ac_cv_lib_kstat_kstat_open
=no
12880 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12881 LIBS
=$ac_check_lib_save_LIBS
12883 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
12884 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
12885 if test $ac_cv_lib_kstat_kstat_open = yes; then
12886 cat >>confdefs.h
<<_ACEOF
12887 #define HAVE_LIBKSTAT 1
12890 LIBS
="-lkstat $LIBS"
12894 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
12896 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12897 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12898 # to get the right answer into the cache.
12899 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12900 if test $ac_have_func = no
; then
12901 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
12902 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
12903 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
12904 echo $ECHO_N "(cached) $ECHO_C" >&6
12906 ac_check_lib_save_LIBS
=$LIBS
12908 cat >conftest.
$ac_ext <<_ACEOF
12909 #line $LINENO "configure"
12912 cat confdefs.h
>>conftest.
$ac_ext
12913 cat >>conftest.
$ac_ext <<_ACEOF
12914 /* end confdefs.h. */
12916 /* Override any gcc2 internal prototype to avoid an error. */
12920 /* We use char because int might match the return type of a gcc2
12921 builtin and then its argument prototype would still apply. */
12931 rm -f conftest.
$ac_objext conftest
$ac_exeext
12932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12933 (eval $ac_link) 2>&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); } &&
12937 { ac_try
='test -s conftest$ac_exeext'
12938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12939 (eval $ac_try) 2>&5
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); }; }; then
12943 ac_cv_lib_elf_elf_begin
=yes
12945 echo "$as_me: failed program was:" >&5
12946 sed 's/^/| /' conftest.
$ac_ext >&5
12948 ac_cv_lib_elf_elf_begin
=no
12950 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12951 LIBS
=$ac_check_lib_save_LIBS
12953 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
12954 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
12955 if test $ac_cv_lib_elf_elf_begin = yes; then
12960 if test $ac_have_func = no
; then
12961 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
12962 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
12963 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
12964 echo $ECHO_N "(cached) $ECHO_C" >&6
12966 ac_check_lib_save_LIBS
=$LIBS
12968 cat >conftest.
$ac_ext <<_ACEOF
12969 #line $LINENO "configure"
12972 cat confdefs.h
>>conftest.
$ac_ext
12973 cat >>conftest.
$ac_ext <<_ACEOF
12974 /* end confdefs.h. */
12976 /* Override any gcc2 internal prototype to avoid an error. */
12980 /* We use char because int might match the return type of a gcc2
12981 builtin and then its argument prototype would still apply. */
12991 rm -f conftest.
$ac_objext conftest
$ac_exeext
12992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12993 (eval $ac_link) 2>&5
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); } &&
12997 { ac_try
='test -s conftest$ac_exeext'
12998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12999 (eval $ac_try) 2>&5
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); }; }; then
13003 ac_cv_lib_kvm_kvm_open
=yes
13005 echo "$as_me: failed program was:" >&5
13006 sed 's/^/| /' conftest.
$ac_ext >&5
13008 ac_cv_lib_kvm_kvm_open
=no
13010 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13011 LIBS
=$ac_check_lib_save_LIBS
13013 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
13014 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
13015 if test $ac_cv_lib_kvm_kvm_open = yes; then
13019 # Check for the 4.4BSD definition of getloadavg.
13020 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
13021 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
13022 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
13023 echo $ECHO_N "(cached) $ECHO_C" >&6
13025 ac_check_lib_save_LIBS
=$LIBS
13026 LIBS
="-lutil $LIBS"
13027 cat >conftest.
$ac_ext <<_ACEOF
13028 #line $LINENO "configure"
13031 cat confdefs.h
>>conftest.
$ac_ext
13032 cat >>conftest.
$ac_ext <<_ACEOF
13033 /* end confdefs.h. */
13035 /* Override any gcc2 internal prototype to avoid an error. */
13039 /* We use char because int might match the return type of a gcc2
13040 builtin and then its argument prototype would still apply. */
13041 char getloadavg ();
13050 rm -f conftest.
$ac_objext conftest
$ac_exeext
13051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13052 (eval $ac_link) 2>&5
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); } &&
13056 { ac_try
='test -s conftest$ac_exeext'
13057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13058 (eval $ac_try) 2>&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); }; }; then
13062 ac_cv_lib_util_getloadavg
=yes
13064 echo "$as_me: failed program was:" >&5
13065 sed 's/^/| /' conftest.
$ac_ext >&5
13067 ac_cv_lib_util_getloadavg
=no
13069 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13070 LIBS
=$ac_check_lib_save_LIBS
13072 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
13073 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
13074 if test $ac_cv_lib_util_getloadavg = yes; then
13075 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
13080 if test $ac_have_func = no
; then
13081 # There is a commonly available library for RS/6000 AIX.
13082 # Since it is not a standard part of AIX, it might be installed locally.
13083 ac_getloadavg_LIBS
=$LIBS
13084 LIBS
="-L/usr/local/lib $LIBS"
13085 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
13086 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
13087 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
13088 echo $ECHO_N "(cached) $ECHO_C" >&6
13090 ac_check_lib_save_LIBS
=$LIBS
13091 LIBS
="-lgetloadavg $LIBS"
13092 cat >conftest.
$ac_ext <<_ACEOF
13093 #line $LINENO "configure"
13096 cat confdefs.h
>>conftest.
$ac_ext
13097 cat >>conftest.
$ac_ext <<_ACEOF
13098 /* end confdefs.h. */
13100 /* Override any gcc2 internal prototype to avoid an error. */
13104 /* We use char because int might match the return type of a gcc2
13105 builtin and then its argument prototype would still apply. */
13106 char getloadavg ();
13115 rm -f conftest.
$ac_objext conftest
$ac_exeext
13116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13117 (eval $ac_link) 2>&5
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); } &&
13121 { ac_try
='test -s conftest$ac_exeext'
13122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13123 (eval $ac_try) 2>&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); }; }; then
13127 ac_cv_lib_getloadavg_getloadavg
=yes
13129 echo "$as_me: failed program was:" >&5
13130 sed 's/^/| /' conftest.
$ac_ext >&5
13132 ac_cv_lib_getloadavg_getloadavg
=no
13134 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13135 LIBS
=$ac_check_lib_save_LIBS
13137 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
13138 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
13139 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
13140 LIBS
="-lgetloadavg $LIBS"
13142 LIBS
=$ac_getloadavg_LIBS
13147 # Make sure it is really in the library, if we think we found it,
13148 # otherwise set up the replacement function.
13150 for ac_func
in getloadavg
13152 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13153 echo "$as_me:$LINENO: checking for $ac_func" >&5
13154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13155 if eval "test \"\${$as_ac_var+set}\" = set"; then
13156 echo $ECHO_N "(cached) $ECHO_C" >&6
13158 cat >conftest.
$ac_ext <<_ACEOF
13159 #line $LINENO "configure"
13162 cat confdefs.h
>>conftest.
$ac_ext
13163 cat >>conftest.
$ac_ext <<_ACEOF
13164 /* end confdefs.h. */
13165 /* System header to define __stub macros and hopefully few prototypes,
13166 which can conflict with char $ac_func (); below.
13167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13168 <limits.h> exists even on freestanding compilers. */
13170 # include <limits.h>
13172 # include <assert.h>
13174 /* Override any gcc2 internal prototype to avoid an error. */
13179 /* We use char because int might match the return type of a gcc2
13180 builtin and then its argument prototype would still apply. */
13182 /* The GNU C library defines this for functions which it implements
13183 to always fail with ENOSYS. Some functions are actually named
13184 something starting with __ and the normal name is an alias. */
13185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13188 char (*f) () = $ac_func;
13197 return f != $ac_func;
13202 rm -f conftest.
$ac_objext conftest
$ac_exeext
13203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13204 (eval $ac_link) 2>&5
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); } &&
13208 { ac_try
='test -s conftest$ac_exeext'
13209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13210 (eval $ac_try) 2>&5
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); }; }; then
13214 eval "$as_ac_var=yes"
13216 echo "$as_me: failed program was:" >&5
13217 sed 's/^/| /' conftest.
$ac_ext >&5
13219 eval "$as_ac_var=no"
13221 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13224 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13225 if test `eval echo '${'$as_ac_var'}'` = yes; then
13226 cat >>confdefs.h
<<_ACEOF
13227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13231 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
13233 cat >>confdefs.h
<<\_ACEOF
13234 #define C_GETLOADAVG 1
13237 # Figure out what our getloadavg.c needs.
13239 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
13240 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
13241 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
13242 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
13243 echo $ECHO_N "(cached) $ECHO_C" >&6
13245 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
13246 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
13248 # Is the header compilable?
13249 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
13250 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
13251 cat >conftest.
$ac_ext <<_ACEOF
13252 #line $LINENO "configure"
13255 cat confdefs.h
>>conftest.
$ac_ext
13256 cat >>conftest.
$ac_ext <<_ACEOF
13257 /* end confdefs.h. */
13258 $ac_includes_default
13259 #include <sys/dg_sys_info.h>
13261 rm -f conftest.
$ac_objext
13262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13263 (eval $ac_compile) 2>&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); } &&
13267 { ac_try
='test -s conftest.$ac_objext'
13268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13269 (eval $ac_try) 2>&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); }; }; then
13273 ac_header_compiler
=yes
13275 echo "$as_me: failed program was:" >&5
13276 sed 's/^/| /' conftest.
$ac_ext >&5
13278 ac_header_compiler
=no
13280 rm -f conftest.
$ac_objext conftest.
$ac_ext
13281 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13282 echo "${ECHO_T}$ac_header_compiler" >&6
13284 # Is the header present?
13285 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
13286 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
13287 cat >conftest.
$ac_ext <<_ACEOF
13288 #line $LINENO "configure"
13291 cat confdefs.h
>>conftest.
$ac_ext
13292 cat >>conftest.
$ac_ext <<_ACEOF
13293 /* end confdefs.h. */
13294 #include <sys/dg_sys_info.h>
13296 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13297 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13299 grep -v '^ *+' conftest.er1
>conftest.err
13301 cat conftest.err
>&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); } >/dev
/null
; then
13304 if test -s conftest.err
; then
13305 ac_cpp_err
=$ac_c_preproc_warn_flag
13312 if test -z "$ac_cpp_err"; then
13313 ac_header_preproc
=yes
13315 echo "$as_me: failed program was:" >&5
13316 sed 's/^/| /' conftest.
$ac_ext >&5
13318 ac_header_preproc
=no
13320 rm -f conftest.err conftest.
$ac_ext
13321 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13322 echo "${ECHO_T}$ac_header_preproc" >&6
13324 # So? What about this header?
13325 case $ac_header_compiler:$ac_header_preproc in
13327 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
13328 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13329 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
13330 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
13333 ## ------------------------------------ ##
13334 ## Report this to bug-autoconf@gnu.org. ##
13335 ## ------------------------------------ ##
13338 sed "s/^/$as_me: WARNING: /" >&2
13341 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
13342 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
13343 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
13344 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
13345 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
13346 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
13349 ## ------------------------------------ ##
13350 ## Report this to bug-autoconf@gnu.org. ##
13351 ## ------------------------------------ ##
13354 sed "s/^/$as_me: WARNING: /" >&2
13357 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
13358 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
13359 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
13360 echo $ECHO_N "(cached) $ECHO_C" >&6
13362 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
13364 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
13365 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
13368 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
13371 cat >>confdefs.h
<<\_ACEOF
13376 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
13377 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
13378 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
13379 echo $ECHO_N "(cached) $ECHO_C" >&6
13381 ac_check_lib_save_LIBS
=$LIBS
13383 cat >conftest.
$ac_ext <<_ACEOF
13384 #line $LINENO "configure"
13387 cat confdefs.h
>>conftest.
$ac_ext
13388 cat >>conftest.
$ac_ext <<_ACEOF
13389 /* end confdefs.h. */
13391 /* Override any gcc2 internal prototype to avoid an error. */
13395 /* We use char because int might match the return type of a gcc2
13396 builtin and then its argument prototype would still apply. */
13397 char dg_sys_info ();
13406 rm -f conftest.
$ac_objext conftest
$ac_exeext
13407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13408 (eval $ac_link) 2>&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); } &&
13412 { ac_try
='test -s conftest$ac_exeext'
13413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13414 (eval $ac_try) 2>&5
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); }; }; then
13418 ac_cv_lib_dgc_dg_sys_info
=yes
13420 echo "$as_me: failed program was:" >&5
13421 sed 's/^/| /' conftest.
$ac_ext >&5
13423 ac_cv_lib_dgc_dg_sys_info
=no
13425 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13426 LIBS
=$ac_check_lib_save_LIBS
13428 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
13429 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
13430 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
13431 cat >>confdefs.h
<<_ACEOF
13432 #define HAVE_LIBDGC 1
13443 if test "${ac_cv_header_locale_h+set}" = set; then
13444 echo "$as_me:$LINENO: checking for locale.h" >&5
13445 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
13446 if test "${ac_cv_header_locale_h+set}" = set; then
13447 echo $ECHO_N "(cached) $ECHO_C" >&6
13449 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
13450 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
13452 # Is the header compilable?
13453 echo "$as_me:$LINENO: checking locale.h usability" >&5
13454 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
13455 cat >conftest.
$ac_ext <<_ACEOF
13456 #line $LINENO "configure"
13459 cat confdefs.h
>>conftest.
$ac_ext
13460 cat >>conftest.
$ac_ext <<_ACEOF
13461 /* end confdefs.h. */
13462 $ac_includes_default
13463 #include <locale.h>
13465 rm -f conftest.
$ac_objext
13466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13467 (eval $ac_compile) 2>&5
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); } &&
13471 { ac_try
='test -s conftest.$ac_objext'
13472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13473 (eval $ac_try) 2>&5
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); }; }; then
13477 ac_header_compiler
=yes
13479 echo "$as_me: failed program was:" >&5
13480 sed 's/^/| /' conftest.
$ac_ext >&5
13482 ac_header_compiler
=no
13484 rm -f conftest.
$ac_objext conftest.
$ac_ext
13485 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13486 echo "${ECHO_T}$ac_header_compiler" >&6
13488 # Is the header present?
13489 echo "$as_me:$LINENO: checking locale.h presence" >&5
13490 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
13491 cat >conftest.
$ac_ext <<_ACEOF
13492 #line $LINENO "configure"
13495 cat confdefs.h
>>conftest.
$ac_ext
13496 cat >>conftest.
$ac_ext <<_ACEOF
13497 /* end confdefs.h. */
13498 #include <locale.h>
13500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13501 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13503 grep -v '^ *+' conftest.er1
>conftest.err
13505 cat conftest.err
>&5
13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); } >/dev
/null
; then
13508 if test -s conftest.err
; then
13509 ac_cpp_err
=$ac_c_preproc_warn_flag
13516 if test -z "$ac_cpp_err"; then
13517 ac_header_preproc
=yes
13519 echo "$as_me: failed program was:" >&5
13520 sed 's/^/| /' conftest.
$ac_ext >&5
13522 ac_header_preproc
=no
13524 rm -f conftest.err conftest.
$ac_ext
13525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13526 echo "${ECHO_T}$ac_header_preproc" >&6
13528 # So? What about this header?
13529 case $ac_header_compiler:$ac_header_preproc in
13531 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
13532 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13533 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
13534 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
13537 ## ------------------------------------ ##
13538 ## Report this to bug-autoconf@gnu.org. ##
13539 ## ------------------------------------ ##
13542 sed "s/^/$as_me: WARNING: /" >&2
13545 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
13546 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
13547 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
13548 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
13549 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
13550 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
13553 ## ------------------------------------ ##
13554 ## Report this to bug-autoconf@gnu.org. ##
13555 ## ------------------------------------ ##
13558 sed "s/^/$as_me: WARNING: /" >&2
13561 echo "$as_me:$LINENO: checking for locale.h" >&5
13562 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
13563 if test "${ac_cv_header_locale_h+set}" = set; then
13564 echo $ECHO_N "(cached) $ECHO_C" >&6
13566 ac_cv_header_locale_h
=$ac_header_preproc
13568 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
13569 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
13575 for ac_func
in setlocale
13577 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13578 echo "$as_me:$LINENO: checking for $ac_func" >&5
13579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13580 if eval "test \"\${$as_ac_var+set}\" = set"; then
13581 echo $ECHO_N "(cached) $ECHO_C" >&6
13583 cat >conftest.
$ac_ext <<_ACEOF
13584 #line $LINENO "configure"
13587 cat confdefs.h
>>conftest.
$ac_ext
13588 cat >>conftest.
$ac_ext <<_ACEOF
13589 /* end confdefs.h. */
13590 /* System header to define __stub macros and hopefully few prototypes,
13591 which can conflict with char $ac_func (); below.
13592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13593 <limits.h> exists even on freestanding compilers. */
13595 # include <limits.h>
13597 # include <assert.h>
13599 /* Override any gcc2 internal prototype to avoid an error. */
13604 /* We use char because int might match the return type of a gcc2
13605 builtin and then its argument prototype would still apply. */
13607 /* The GNU C library defines this for functions which it implements
13608 to always fail with ENOSYS. Some functions are actually named
13609 something starting with __ and the normal name is an alias. */
13610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13613 char (*f) () = $ac_func;
13622 return f != $ac_func;
13627 rm -f conftest.
$ac_objext conftest
$ac_exeext
13628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13629 (eval $ac_link) 2>&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); } &&
13633 { ac_try
='test -s conftest$ac_exeext'
13634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13635 (eval $ac_try) 2>&5
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); }; }; then
13639 eval "$as_ac_var=yes"
13641 echo "$as_me: failed program was:" >&5
13642 sed 's/^/| /' conftest.
$ac_ext >&5
13644 eval "$as_ac_var=no"
13646 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13650 if test `eval echo '${'$as_ac_var'}'` = yes; then
13651 cat >>confdefs.h
<<_ACEOF
13652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13659 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13660 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13661 # Irix 4.0.5F has the header but not the library.
13662 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
13665 cat >>confdefs.h
<<\_ACEOF
13671 if test $ac_have_func = no
; then
13672 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13673 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13674 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13675 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13676 echo $ECHO_N "(cached) $ECHO_C" >&6
13678 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13679 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13681 # Is the header compilable?
13682 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
13683 echo $ECHO_N "checking inq_stats/cpustats.h usability... $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. */
13691 $ac_includes_default
13692 #include <inq_stats/cpustats.h>
13694 rm -f conftest.
$ac_objext
13695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13696 (eval $ac_compile) 2>&5
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); } &&
13700 { ac_try
='test -s conftest.$ac_objext'
13701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13702 (eval $ac_try) 2>&5
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); }; }; then
13706 ac_header_compiler
=yes
13708 echo "$as_me: failed program was:" >&5
13709 sed 's/^/| /' conftest.
$ac_ext >&5
13711 ac_header_compiler
=no
13713 rm -f conftest.
$ac_objext conftest.
$ac_ext
13714 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13715 echo "${ECHO_T}$ac_header_compiler" >&6
13717 # Is the header present?
13718 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
13719 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
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. */
13727 #include <inq_stats/cpustats.h>
13729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13730 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13732 grep -v '^ *+' conftest.er1
>conftest.err
13734 cat conftest.err
>&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); } >/dev
/null
; then
13737 if test -s conftest.err
; then
13738 ac_cpp_err
=$ac_c_preproc_warn_flag
13745 if test -z "$ac_cpp_err"; then
13746 ac_header_preproc
=yes
13748 echo "$as_me: failed program was:" >&5
13749 sed 's/^/| /' conftest.
$ac_ext >&5
13751 ac_header_preproc
=no
13753 rm -f conftest.err conftest.
$ac_ext
13754 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13755 echo "${ECHO_T}$ac_header_preproc" >&6
13757 # So? What about this header?
13758 case $ac_header_compiler:$ac_header_preproc in
13760 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13761 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13762 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13763 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13766 ## ------------------------------------ ##
13767 ## Report this to bug-autoconf@gnu.org. ##
13768 ## ------------------------------------ ##
13771 sed "s/^/$as_me: WARNING: /" >&2
13774 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
13775 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
13776 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
13777 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
13778 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13779 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13782 ## ------------------------------------ ##
13783 ## Report this to bug-autoconf@gnu.org. ##
13784 ## ------------------------------------ ##
13787 sed "s/^/$as_me: WARNING: /" >&2
13790 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13791 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13792 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13793 echo $ECHO_N "(cached) $ECHO_C" >&6
13795 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
13797 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13798 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13801 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
13804 cat >>confdefs.h
<<\_ACEOF
13809 cat >>confdefs.h
<<\_ACEOF
13818 if test $ac_have_func = no
; then
13819 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13820 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13821 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13822 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13823 echo $ECHO_N "(cached) $ECHO_C" >&6
13825 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13826 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13828 # Is the header compilable?
13829 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
13830 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
13831 cat >conftest.
$ac_ext <<_ACEOF
13832 #line $LINENO "configure"
13835 cat confdefs.h
>>conftest.
$ac_ext
13836 cat >>conftest.
$ac_ext <<_ACEOF
13837 /* end confdefs.h. */
13838 $ac_includes_default
13839 #include <sys/cpustats.h>
13841 rm -f conftest.
$ac_objext
13842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13843 (eval $ac_compile) 2>&5
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); } &&
13847 { ac_try
='test -s conftest.$ac_objext'
13848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849 (eval $ac_try) 2>&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); }; }; then
13853 ac_header_compiler
=yes
13855 echo "$as_me: failed program was:" >&5
13856 sed 's/^/| /' conftest.
$ac_ext >&5
13858 ac_header_compiler
=no
13860 rm -f conftest.
$ac_objext conftest.
$ac_ext
13861 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13862 echo "${ECHO_T}$ac_header_compiler" >&6
13864 # Is the header present?
13865 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
13866 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
13867 cat >conftest.
$ac_ext <<_ACEOF
13868 #line $LINENO "configure"
13871 cat confdefs.h
>>conftest.
$ac_ext
13872 cat >>conftest.
$ac_ext <<_ACEOF
13873 /* end confdefs.h. */
13874 #include <sys/cpustats.h>
13876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13877 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13879 grep -v '^ *+' conftest.er1
>conftest.err
13881 cat conftest.err
>&5
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); } >/dev
/null
; then
13884 if test -s conftest.err
; then
13885 ac_cpp_err
=$ac_c_preproc_warn_flag
13892 if test -z "$ac_cpp_err"; then
13893 ac_header_preproc
=yes
13895 echo "$as_me: failed program was:" >&5
13896 sed 's/^/| /' conftest.
$ac_ext >&5
13898 ac_header_preproc
=no
13900 rm -f conftest.err conftest.
$ac_ext
13901 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13902 echo "${ECHO_T}$ac_header_preproc" >&6
13904 # So? What about this header?
13905 case $ac_header_compiler:$ac_header_preproc in
13907 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13908 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13909 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13910 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13913 ## ------------------------------------ ##
13914 ## Report this to bug-autoconf@gnu.org. ##
13915 ## ------------------------------------ ##
13918 sed "s/^/$as_me: WARNING: /" >&2
13921 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
13922 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
13923 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
13924 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
13925 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13926 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13929 ## ------------------------------------ ##
13930 ## Report this to bug-autoconf@gnu.org. ##
13931 ## ------------------------------------ ##
13934 sed "s/^/$as_me: WARNING: /" >&2
13937 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13938 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13939 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
13942 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
13944 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13945 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13948 if test $ac_cv_header_sys_cpustats_h = yes; then
13949 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
13958 if test $ac_have_func = no
; then
13960 for ac_header
in mach
/mach.h
13962 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13964 echo "$as_me:$LINENO: checking for $ac_header" >&5
13965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13967 echo $ECHO_N "(cached) $ECHO_C" >&6
13969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13972 # Is the header compilable?
13973 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13975 cat >conftest.
$ac_ext <<_ACEOF
13976 #line $LINENO "configure"
13979 cat confdefs.h
>>conftest.
$ac_ext
13980 cat >>conftest.
$ac_ext <<_ACEOF
13981 /* end confdefs.h. */
13982 $ac_includes_default
13983 #include <$ac_header>
13985 rm -f conftest.
$ac_objext
13986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13987 (eval $ac_compile) 2>&5
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); } &&
13991 { ac_try
='test -s conftest.$ac_objext'
13992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13993 (eval $ac_try) 2>&5
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); }; }; then
13997 ac_header_compiler
=yes
13999 echo "$as_me: failed program was:" >&5
14000 sed 's/^/| /' conftest.
$ac_ext >&5
14002 ac_header_compiler
=no
14004 rm -f conftest.
$ac_objext conftest.
$ac_ext
14005 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14006 echo "${ECHO_T}$ac_header_compiler" >&6
14008 # Is the header present?
14009 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14011 cat >conftest.
$ac_ext <<_ACEOF
14012 #line $LINENO "configure"
14015 cat confdefs.h
>>conftest.
$ac_ext
14016 cat >>conftest.
$ac_ext <<_ACEOF
14017 /* end confdefs.h. */
14018 #include <$ac_header>
14020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14021 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14023 grep -v '^ *+' conftest.er1
>conftest.err
14025 cat conftest.err
>&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); } >/dev
/null
; then
14028 if test -s conftest.err
; then
14029 ac_cpp_err
=$ac_c_preproc_warn_flag
14036 if test -z "$ac_cpp_err"; then
14037 ac_header_preproc
=yes
14039 echo "$as_me: failed program was:" >&5
14040 sed 's/^/| /' conftest.
$ac_ext >&5
14042 ac_header_preproc
=no
14044 rm -f conftest.err conftest.
$ac_ext
14045 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14046 echo "${ECHO_T}$ac_header_preproc" >&6
14048 # So? What about this header?
14049 case $ac_header_compiler:$ac_header_preproc in
14051 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14052 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14054 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14057 ## ------------------------------------ ##
14058 ## Report this to bug-autoconf@gnu.org. ##
14059 ## ------------------------------------ ##
14062 sed "s/^/$as_me: WARNING: /" >&2
14065 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14066 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14067 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14068 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14070 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14073 ## ------------------------------------ ##
14074 ## Report this to bug-autoconf@gnu.org. ##
14075 ## ------------------------------------ ##
14078 sed "s/^/$as_me: WARNING: /" >&2
14081 echo "$as_me:$LINENO: checking for $ac_header" >&5
14082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14084 echo $ECHO_N "(cached) $ECHO_C" >&6
14086 eval "$as_ac_Header=$ac_header_preproc"
14088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14093 cat >>confdefs.h
<<_ACEOF
14094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14104 for ac_header
in nlist.h
14106 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14108 echo "$as_me:$LINENO: checking for $ac_header" >&5
14109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14111 echo $ECHO_N "(cached) $ECHO_C" >&6
14113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14116 # Is the header compilable?
14117 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14119 cat >conftest.
$ac_ext <<_ACEOF
14120 #line $LINENO "configure"
14123 cat confdefs.h
>>conftest.
$ac_ext
14124 cat >>conftest.
$ac_ext <<_ACEOF
14125 /* end confdefs.h. */
14126 $ac_includes_default
14127 #include <$ac_header>
14129 rm -f conftest.
$ac_objext
14130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14131 (eval $ac_compile) 2>&5
14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); } &&
14135 { ac_try
='test -s conftest.$ac_objext'
14136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14137 (eval $ac_try) 2>&5
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); }; }; then
14141 ac_header_compiler
=yes
14143 echo "$as_me: failed program was:" >&5
14144 sed 's/^/| /' conftest.
$ac_ext >&5
14146 ac_header_compiler
=no
14148 rm -f conftest.
$ac_objext conftest.
$ac_ext
14149 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14150 echo "${ECHO_T}$ac_header_compiler" >&6
14152 # Is the header present?
14153 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14155 cat >conftest.
$ac_ext <<_ACEOF
14156 #line $LINENO "configure"
14159 cat confdefs.h
>>conftest.
$ac_ext
14160 cat >>conftest.
$ac_ext <<_ACEOF
14161 /* end confdefs.h. */
14162 #include <$ac_header>
14164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14165 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14167 grep -v '^ *+' conftest.er1
>conftest.err
14169 cat conftest.err
>&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); } >/dev
/null
; then
14172 if test -s conftest.err
; then
14173 ac_cpp_err
=$ac_c_preproc_warn_flag
14180 if test -z "$ac_cpp_err"; then
14181 ac_header_preproc
=yes
14183 echo "$as_me: failed program was:" >&5
14184 sed 's/^/| /' conftest.
$ac_ext >&5
14186 ac_header_preproc
=no
14188 rm -f conftest.err conftest.
$ac_ext
14189 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14190 echo "${ECHO_T}$ac_header_preproc" >&6
14192 # So? What about this header?
14193 case $ac_header_compiler:$ac_header_preproc in
14195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14198 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14201 ## ------------------------------------ ##
14202 ## Report this to bug-autoconf@gnu.org. ##
14203 ## ------------------------------------ ##
14206 sed "s/^/$as_me: WARNING: /" >&2
14209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14212 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14217 ## ------------------------------------ ##
14218 ## Report this to bug-autoconf@gnu.org. ##
14219 ## ------------------------------------ ##
14222 sed "s/^/$as_me: WARNING: /" >&2
14225 echo "$as_me:$LINENO: checking for $ac_header" >&5
14226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14228 echo $ECHO_N "(cached) $ECHO_C" >&6
14230 eval "$as_ac_Header=$ac_header_preproc"
14232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14237 cat >>confdefs.h
<<_ACEOF
14238 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14240 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
14241 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
14242 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
14243 echo $ECHO_N "(cached) $ECHO_C" >&6
14245 cat >conftest.
$ac_ext <<_ACEOF
14246 #line $LINENO "configure"
14249 cat confdefs.h
>>conftest.
$ac_ext
14250 cat >>conftest.
$ac_ext <<_ACEOF
14251 /* end confdefs.h. */
14257 static struct nlist ac_aggr;
14258 if (ac_aggr.n_un.n_name)
14264 rm -f conftest.
$ac_objext
14265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14266 (eval $ac_compile) 2>&5
14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); } &&
14270 { ac_try
='test -s conftest.$ac_objext'
14271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14272 (eval $ac_try) 2>&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); }; }; then
14276 ac_cv_member_struct_nlist_n_un_n_name
=yes
14278 echo "$as_me: failed program was:" >&5
14279 sed 's/^/| /' conftest.
$ac_ext >&5
14281 cat >conftest.
$ac_ext <<_ACEOF
14282 #line $LINENO "configure"
14285 cat confdefs.h
>>conftest.
$ac_ext
14286 cat >>conftest.
$ac_ext <<_ACEOF
14287 /* end confdefs.h. */
14293 static struct nlist ac_aggr;
14294 if (sizeof ac_aggr.n_un.n_name)
14300 rm -f conftest.
$ac_objext
14301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14302 (eval $ac_compile) 2>&5
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); } &&
14306 { ac_try
='test -s conftest.$ac_objext'
14307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14308 (eval $ac_try) 2>&5
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); }; }; then
14312 ac_cv_member_struct_nlist_n_un_n_name
=yes
14314 echo "$as_me: failed program was:" >&5
14315 sed 's/^/| /' conftest.
$ac_ext >&5
14317 ac_cv_member_struct_nlist_n_un_n_name
=no
14319 rm -f conftest.
$ac_objext conftest.
$ac_ext
14321 rm -f conftest.
$ac_objext conftest.
$ac_ext
14323 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
14324 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
14325 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
14327 cat >>confdefs.h
<<_ACEOF
14328 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
14332 cat >>confdefs.h
<<\_ACEOF
14333 #define NLIST_NAME_UNION 1
14347 # Some definitions of getloadavg require that the program be installed setgid.
14348 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
14349 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
14350 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
14351 echo $ECHO_N "(cached) $ECHO_C" >&6
14353 cat >conftest.
$ac_ext <<_ACEOF
14354 #line $LINENO "configure"
14357 cat confdefs.h
>>conftest.
$ac_ext
14358 cat >>conftest.
$ac_ext <<_ACEOF
14359 /* end confdefs.h. */
14360 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
14361 #ifdef LDAV_PRIVILEGED
14362 Yowza Am I SETGID yet
14365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14366 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
14367 ac_cv_func_getloadavg_setgid
=yes
14369 ac_cv_func_getloadavg_setgid
=no
14374 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
14375 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
14376 if test $ac_cv_func_getloadavg_setgid = yes; then
14379 cat >>confdefs.h
<<\_ACEOF
14380 #define GETLOADAVG_PRIVILEGED 1
14387 if test $ac_cv_func_getloadavg_setgid = yes; then
14388 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
14389 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
14390 if test "${ac_cv_group_kmem+set}" = set; then
14391 echo $ECHO_N "(cached) $ECHO_C" >&6
14393 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
14394 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
14395 # If we got an error (system does not support symlinks), try without -L.
14396 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
14397 ac_cv_group_kmem
=`echo $ac_ls_output \
14398 | sed -ne 's/[ ][ ]*/ /g;
14399 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
14403 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
14404 echo "${ECHO_T}$ac_cv_group_kmem" >&6
14405 KMEM_GROUP
=$ac_cv_group_kmem
14407 if test "x$ac_save_LIBS" = x
; then
14408 GETLOADAVG_LIBS
=$LIBS
14410 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
14416 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14417 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
14418 if test "${ac_cv_sys_largefile_source+set}" = set; then
14419 echo $ECHO_N "(cached) $ECHO_C" >&6
14422 ac_cv_sys_largefile_source
=no
14423 cat >conftest.
$ac_ext <<_ACEOF
14424 #line $LINENO "configure"
14427 cat confdefs.h
>>conftest.
$ac_ext
14428 cat >>conftest.
$ac_ext <<_ACEOF
14429 /* end confdefs.h. */
14439 rm -f conftest.
$ac_objext
14440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14441 (eval $ac_compile) 2>&5
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); } &&
14445 { ac_try
='test -s conftest.$ac_objext'
14446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14447 (eval $ac_try) 2>&5
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); }; }; then
14453 echo "$as_me: failed program was:" >&5
14454 sed 's/^/| /' conftest.
$ac_ext >&5
14457 rm -f conftest.
$ac_objext conftest.
$ac_ext
14458 cat >conftest.
$ac_ext <<_ACEOF
14459 #line $LINENO "configure"
14462 cat confdefs.h
>>conftest.
$ac_ext
14463 cat >>conftest.
$ac_ext <<_ACEOF
14464 /* end confdefs.h. */
14465 #define _LARGEFILE_SOURCE 1
14475 rm -f conftest.
$ac_objext
14476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14477 (eval $ac_compile) 2>&5
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); } &&
14481 { ac_try
='test -s conftest.$ac_objext'
14482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14483 (eval $ac_try) 2>&5
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); }; }; then
14487 ac_cv_sys_largefile_source
=1; break
14489 echo "$as_me: failed program was:" >&5
14490 sed 's/^/| /' conftest.
$ac_ext >&5
14493 rm -f conftest.
$ac_objext conftest.
$ac_ext
14497 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
14498 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
14499 if test "$ac_cv_sys_largefile_source" != no
; then
14501 cat >>confdefs.h
<<_ACEOF
14502 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14508 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14509 # in glibc 2.1.3, but that breaks too many other things.
14510 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14511 echo "$as_me:$LINENO: checking for fseeko" >&5
14512 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
14513 if test "${ac_cv_func_fseeko+set}" = set; then
14514 echo $ECHO_N "(cached) $ECHO_C" >&6
14516 cat >conftest.
$ac_ext <<_ACEOF
14517 #line $LINENO "configure"
14520 cat confdefs.h
>>conftest.
$ac_ext
14521 cat >>conftest.
$ac_ext <<_ACEOF
14522 /* end confdefs.h. */
14527 return fseeko && fseeko (stdin, 0, 0);
14532 rm -f conftest.
$ac_objext conftest
$ac_exeext
14533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14534 (eval $ac_link) 2>&5
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); } &&
14538 { ac_try
='test -s conftest$ac_exeext'
14539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14540 (eval $ac_try) 2>&5
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); }; }; then
14544 ac_cv_func_fseeko
=yes
14546 echo "$as_me: failed program was:" >&5
14547 sed 's/^/| /' conftest.
$ac_ext >&5
14549 ac_cv_func_fseeko
=no
14551 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14553 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
14554 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
14555 if test $ac_cv_func_fseeko = yes; then
14557 cat >>confdefs.h
<<\_ACEOF
14558 #define HAVE_FSEEKO 1
14564 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
14565 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
14566 if test "${ac_cv_func_getpgrp_void+set}" = set; then
14567 echo $ECHO_N "(cached) $ECHO_C" >&6
14569 # Use it with a single arg.
14570 cat >conftest.
$ac_ext <<_ACEOF
14571 #line $LINENO "configure"
14574 cat confdefs.h
>>conftest.
$ac_ext
14575 cat >>conftest.
$ac_ext <<_ACEOF
14576 /* end confdefs.h. */
14577 $ac_includes_default
14586 rm -f conftest.
$ac_objext
14587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14588 (eval $ac_compile) 2>&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); } &&
14592 { ac_try
='test -s conftest.$ac_objext'
14593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594 (eval $ac_try) 2>&5
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); }; }; then
14598 ac_cv_func_getpgrp_void
=no
14600 echo "$as_me: failed program was:" >&5
14601 sed 's/^/| /' conftest.
$ac_ext >&5
14603 ac_cv_func_getpgrp_void
=yes
14605 rm -f conftest.
$ac_objext conftest.
$ac_ext
14608 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
14609 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
14610 if test $ac_cv_func_getpgrp_void = yes; then
14612 cat >>confdefs.h
<<\_ACEOF
14613 #define GETPGRP_VOID 1
14620 for ac_func
in strftime
14622 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14623 echo "$as_me:$LINENO: checking for $ac_func" >&5
14624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14625 if eval "test \"\${$as_ac_var+set}\" = set"; then
14626 echo $ECHO_N "(cached) $ECHO_C" >&6
14628 cat >conftest.
$ac_ext <<_ACEOF
14629 #line $LINENO "configure"
14632 cat confdefs.h
>>conftest.
$ac_ext
14633 cat >>conftest.
$ac_ext <<_ACEOF
14634 /* end confdefs.h. */
14635 /* System header to define __stub macros and hopefully few prototypes,
14636 which can conflict with char $ac_func (); below.
14637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14638 <limits.h> exists even on freestanding compilers. */
14640 # include <limits.h>
14642 # include <assert.h>
14644 /* Override any gcc2 internal prototype to avoid an error. */
14649 /* We use char because int might match the return type of a gcc2
14650 builtin and then its argument prototype would still apply. */
14652 /* The GNU C library defines this for functions which it implements
14653 to always fail with ENOSYS. Some functions are actually named
14654 something starting with __ and the normal name is an alias. */
14655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14658 char (*f) () = $ac_func;
14667 return f != $ac_func;
14672 rm -f conftest.
$ac_objext conftest
$ac_exeext
14673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14674 (eval $ac_link) 2>&5
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); } &&
14678 { ac_try
='test -s conftest$ac_exeext'
14679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14680 (eval $ac_try) 2>&5
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); }; }; then
14684 eval "$as_ac_var=yes"
14686 echo "$as_me: failed program was:" >&5
14687 sed 's/^/| /' conftest.
$ac_ext >&5
14689 eval "$as_ac_var=no"
14691 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14694 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14695 if test `eval echo '${'$as_ac_var'}'` = yes; then
14696 cat >>confdefs.h
<<_ACEOF
14697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14701 # strftime is in -lintl on SCO UNIX.
14702 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14703 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
14704 if test "${ac_cv_lib_intl_strftime+set}" = set; then
14705 echo $ECHO_N "(cached) $ECHO_C" >&6
14707 ac_check_lib_save_LIBS
=$LIBS
14708 LIBS
="-lintl $LIBS"
14709 cat >conftest.
$ac_ext <<_ACEOF
14710 #line $LINENO "configure"
14713 cat confdefs.h
>>conftest.
$ac_ext
14714 cat >>conftest.
$ac_ext <<_ACEOF
14715 /* end confdefs.h. */
14717 /* Override any gcc2 internal prototype to avoid an error. */
14721 /* We use char because int might match the return type of a gcc2
14722 builtin and then its argument prototype would still apply. */
14732 rm -f conftest.
$ac_objext conftest
$ac_exeext
14733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14734 (eval $ac_link) 2>&5
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); } &&
14738 { ac_try
='test -s conftest$ac_exeext'
14739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14740 (eval $ac_try) 2>&5
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); }; }; then
14744 ac_cv_lib_intl_strftime
=yes
14746 echo "$as_me: failed program was:" >&5
14747 sed 's/^/| /' conftest.
$ac_ext >&5
14749 ac_cv_lib_intl_strftime
=no
14751 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14752 LIBS
=$ac_check_lib_save_LIBS
14754 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14755 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
14756 if test $ac_cv_lib_intl_strftime = yes; then
14757 cat >>confdefs.h
<<\_ACEOF
14758 #define HAVE_STRFTIME 1
14761 LIBS
="-lintl $LIBS"
14770 for ac_func
in grantpt
14772 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14773 echo "$as_me:$LINENO: checking for $ac_func" >&5
14774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14775 if eval "test \"\${$as_ac_var+set}\" = set"; then
14776 echo $ECHO_N "(cached) $ECHO_C" >&6
14778 cat >conftest.
$ac_ext <<_ACEOF
14779 #line $LINENO "configure"
14782 cat confdefs.h
>>conftest.
$ac_ext
14783 cat >>conftest.
$ac_ext <<_ACEOF
14784 /* end confdefs.h. */
14785 /* System header to define __stub macros and hopefully few prototypes,
14786 which can conflict with char $ac_func (); below.
14787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14788 <limits.h> exists even on freestanding compilers. */
14790 # include <limits.h>
14792 # include <assert.h>
14794 /* Override any gcc2 internal prototype to avoid an error. */
14799 /* We use char because int might match the return type of a gcc2
14800 builtin and then its argument prototype would still apply. */
14802 /* The GNU C library defines this for functions which it implements
14803 to always fail with ENOSYS. Some functions are actually named
14804 something starting with __ and the normal name is an alias. */
14805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14808 char (*f) () = $ac_func;
14817 return f != $ac_func;
14822 rm -f conftest.
$ac_objext conftest
$ac_exeext
14823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14824 (eval $ac_link) 2>&5
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); } &&
14828 { ac_try
='test -s conftest$ac_exeext'
14829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14830 (eval $ac_try) 2>&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); }; }; then
14834 eval "$as_ac_var=yes"
14836 echo "$as_me: failed program was:" >&5
14837 sed 's/^/| /' conftest.
$ac_ext >&5
14839 eval "$as_ac_var=no"
14841 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14844 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14845 if test `eval echo '${'$as_ac_var'}'` = yes; then
14846 cat >>confdefs.h
<<_ACEOF
14847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14854 # PTY-related GNU extensions.
14856 for ac_func
in getpt
14858 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14859 echo "$as_me:$LINENO: checking for $ac_func" >&5
14860 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14861 if eval "test \"\${$as_ac_var+set}\" = set"; then
14862 echo $ECHO_N "(cached) $ECHO_C" >&6
14864 cat >conftest.
$ac_ext <<_ACEOF
14865 #line $LINENO "configure"
14868 cat confdefs.h
>>conftest.
$ac_ext
14869 cat >>conftest.
$ac_ext <<_ACEOF
14870 /* end confdefs.h. */
14871 /* System header to define __stub macros and hopefully few prototypes,
14872 which can conflict with char $ac_func (); below.
14873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14874 <limits.h> exists even on freestanding compilers. */
14876 # include <limits.h>
14878 # include <assert.h>
14880 /* Override any gcc2 internal prototype to avoid an error. */
14885 /* We use char because int might match the return type of a gcc2
14886 builtin and then its argument prototype would still apply. */
14888 /* The GNU C library defines this for functions which it implements
14889 to always fail with ENOSYS. Some functions are actually named
14890 something starting with __ and the normal name is an alias. */
14891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14894 char (*f) () = $ac_func;
14903 return f != $ac_func;
14908 rm -f conftest.
$ac_objext conftest
$ac_exeext
14909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14910 (eval $ac_link) 2>&5
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); } &&
14914 { ac_try
='test -s conftest$ac_exeext'
14915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14916 (eval $ac_try) 2>&5
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); }; }; then
14920 eval "$as_ac_var=yes"
14922 echo "$as_me: failed program was:" >&5
14923 sed 's/^/| /' conftest.
$ac_ext >&5
14925 eval "$as_ac_var=no"
14927 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14930 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14931 if test `eval echo '${'$as_ac_var'}'` = yes; then
14932 cat >>confdefs.h
<<_ACEOF
14933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14940 # Check this now, so that we will NOT find the above functions in ncurses.
14941 # That is because we have not set up to link ncurses in lib-src.
14942 # It's better to believe a function is not available
14943 # than to expect to find it in ncurses.
14945 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
14946 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
14947 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
14948 echo $ECHO_N "(cached) $ECHO_C" >&6
14950 ac_check_lib_save_LIBS
=$LIBS
14951 LIBS
="-lncurses $LIBS"
14952 cat >conftest.
$ac_ext <<_ACEOF
14953 #line $LINENO "configure"
14956 cat confdefs.h
>>conftest.
$ac_ext
14957 cat >>conftest.
$ac_ext <<_ACEOF
14958 /* end confdefs.h. */
14960 /* Override any gcc2 internal prototype to avoid an error. */
14964 /* We use char because int might match the return type of a gcc2
14965 builtin and then its argument prototype would still apply. */
14975 rm -f conftest.
$ac_objext conftest
$ac_exeext
14976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14977 (eval $ac_link) 2>&5
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); } &&
14981 { ac_try
='test -s conftest$ac_exeext'
14982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14983 (eval $ac_try) 2>&5
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); }; }; then
14987 ac_cv_lib_ncurses_tparm
=yes
14989 echo "$as_me: failed program was:" >&5
14990 sed 's/^/| /' conftest.
$ac_ext >&5
14992 ac_cv_lib_ncurses_tparm
=no
14994 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14995 LIBS
=$ac_check_lib_save_LIBS
14997 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
14998 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
14999 if test $ac_cv_lib_ncurses_tparm = yes; then
15000 cat >>confdefs.h
<<_ACEOF
15001 #define HAVE_LIBNCURSES 1
15004 LIBS
="-lncurses $LIBS"
15009 # Do we need the Hesiod library to provide the support routines?
15010 if test "$with_hesiod" = yes ; then
15011 # Don't set $LIBS here -- see comments above.
15013 echo "$as_me:$LINENO: checking for res_send" >&5
15014 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
15015 if test "${ac_cv_func_res_send+set}" = set; then
15016 echo $ECHO_N "(cached) $ECHO_C" >&6
15018 cat >conftest.
$ac_ext <<_ACEOF
15019 #line $LINENO "configure"
15022 cat confdefs.h
>>conftest.
$ac_ext
15023 cat >>conftest.
$ac_ext <<_ACEOF
15024 /* end confdefs.h. */
15025 /* System header to define __stub macros and hopefully few prototypes,
15026 which can conflict with char res_send (); below.
15027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15028 <limits.h> exists even on freestanding compilers. */
15030 # include <limits.h>
15032 # include <assert.h>
15034 /* Override any gcc2 internal prototype to avoid an error. */
15039 /* We use char because int might match the return type of a gcc2
15040 builtin and then its argument prototype would still apply. */
15042 /* The GNU C library defines this for functions which it implements
15043 to always fail with ENOSYS. Some functions are actually named
15044 something starting with __ and the normal name is an alias. */
15045 #if defined (__stub_res_send) || defined (__stub___res_send)
15048 char (*f) () = res_send;
15057 return f != res_send;
15062 rm -f conftest.
$ac_objext conftest
$ac_exeext
15063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15064 (eval $ac_link) 2>&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); } &&
15068 { ac_try
='test -s conftest$ac_exeext'
15069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15070 (eval $ac_try) 2>&5
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); }; }; then
15074 ac_cv_func_res_send
=yes
15076 echo "$as_me: failed program was:" >&5
15077 sed 's/^/| /' conftest.
$ac_ext >&5
15079 ac_cv_func_res_send
=no
15081 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15083 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
15084 echo "${ECHO_T}$ac_cv_func_res_send" >&6
15085 if test $ac_cv_func_res_send = yes; then
15088 echo "$as_me:$LINENO: checking for __res_send" >&5
15089 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
15090 if test "${ac_cv_func___res_send+set}" = set; then
15091 echo $ECHO_N "(cached) $ECHO_C" >&6
15093 cat >conftest.
$ac_ext <<_ACEOF
15094 #line $LINENO "configure"
15097 cat confdefs.h
>>conftest.
$ac_ext
15098 cat >>conftest.
$ac_ext <<_ACEOF
15099 /* end confdefs.h. */
15100 /* System header to define __stub macros and hopefully few prototypes,
15101 which can conflict with char __res_send (); below.
15102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15103 <limits.h> exists even on freestanding compilers. */
15105 # include <limits.h>
15107 # include <assert.h>
15109 /* Override any gcc2 internal prototype to avoid an error. */
15114 /* We use char because int might match the return type of a gcc2
15115 builtin and then its argument prototype would still apply. */
15116 char __res_send ();
15117 /* The GNU C library defines this for functions which it implements
15118 to always fail with ENOSYS. Some functions are actually named
15119 something starting with __ and the normal name is an alias. */
15120 #if defined (__stub___res_send) || defined (__stub_____res_send)
15123 char (*f) () = __res_send;
15132 return f != __res_send;
15137 rm -f conftest.
$ac_objext conftest
$ac_exeext
15138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15139 (eval $ac_link) 2>&5
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); } &&
15143 { ac_try
='test -s conftest$ac_exeext'
15144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15145 (eval $ac_try) 2>&5
15147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); }; }; then
15149 ac_cv_func___res_send
=yes
15151 echo "$as_me: failed program was:" >&5
15152 sed 's/^/| /' conftest.
$ac_ext >&5
15154 ac_cv_func___res_send
=no
15156 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15158 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
15159 echo "${ECHO_T}$ac_cv_func___res_send" >&6
15160 if test $ac_cv_func___res_send = yes; then
15163 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
15164 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
15165 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
15166 echo $ECHO_N "(cached) $ECHO_C" >&6
15168 ac_check_lib_save_LIBS
=$LIBS
15169 LIBS
="-lresolv $LIBS"
15170 cat >conftest.
$ac_ext <<_ACEOF
15171 #line $LINENO "configure"
15174 cat confdefs.h
>>conftest.
$ac_ext
15175 cat >>conftest.
$ac_ext <<_ACEOF
15176 /* end confdefs.h. */
15178 /* Override any gcc2 internal prototype to avoid an error. */
15182 /* We use char because int might match the return type of a gcc2
15183 builtin and then its argument prototype would still apply. */
15193 rm -f conftest.
$ac_objext conftest
$ac_exeext
15194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15195 (eval $ac_link) 2>&5
15197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 (exit $ac_status); } &&
15199 { ac_try
='test -s conftest$ac_exeext'
15200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15201 (eval $ac_try) 2>&5
15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); }; }; then
15205 ac_cv_lib_resolv_res_send
=yes
15207 echo "$as_me: failed program was:" >&5
15208 sed 's/^/| /' conftest.
$ac_ext >&5
15210 ac_cv_lib_resolv_res_send
=no
15212 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15213 LIBS
=$ac_check_lib_save_LIBS
15215 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
15216 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
15217 if test $ac_cv_lib_resolv_res_send = yes; then
15220 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
15221 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
15222 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
15223 echo $ECHO_N "(cached) $ECHO_C" >&6
15225 ac_check_lib_save_LIBS
=$LIBS
15226 LIBS
="-lresolv $LIBS"
15227 cat >conftest.
$ac_ext <<_ACEOF
15228 #line $LINENO "configure"
15231 cat confdefs.h
>>conftest.
$ac_ext
15232 cat >>conftest.
$ac_ext <<_ACEOF
15233 /* end confdefs.h. */
15235 /* Override any gcc2 internal prototype to avoid an error. */
15239 /* We use char because int might match the return type of a gcc2
15240 builtin and then its argument prototype would still apply. */
15241 char __res_send ();
15250 rm -f conftest.
$ac_objext conftest
$ac_exeext
15251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15252 (eval $ac_link) 2>&5
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); } &&
15256 { ac_try
='test -s conftest$ac_exeext'
15257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15258 (eval $ac_try) 2>&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); }; }; then
15262 ac_cv_lib_resolv___res_send
=yes
15264 echo "$as_me: failed program was:" >&5
15265 sed 's/^/| /' conftest.
$ac_ext >&5
15267 ac_cv_lib_resolv___res_send
=no
15269 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15270 LIBS
=$ac_check_lib_save_LIBS
15272 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
15273 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
15274 if test $ac_cv_lib_resolv___res_send = yes; then
15284 if test "$resolv" = yes ; then
15287 cat >>confdefs.h
<<\_ACEOF
15288 #define HAVE_LIBRESOLV 1
15294 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
15295 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
15296 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
15297 echo $ECHO_N "(cached) $ECHO_C" >&6
15299 cat >conftest.
$ac_ext <<_ACEOF
15300 #line $LINENO "configure"
15303 cat confdefs.h
>>conftest.
$ac_ext
15304 cat >>conftest.
$ac_ext <<_ACEOF
15305 /* end confdefs.h. */
15306 /* System header to define __stub macros and hopefully few prototypes,
15307 which can conflict with char hes_getmailhost (); below.
15308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15309 <limits.h> exists even on freestanding compilers. */
15311 # include <limits.h>
15313 # include <assert.h>
15315 /* Override any gcc2 internal prototype to avoid an error. */
15320 /* We use char because int might match the return type of a gcc2
15321 builtin and then its argument prototype would still apply. */
15322 char hes_getmailhost ();
15323 /* The GNU C library defines this for functions which it implements
15324 to always fail with ENOSYS. Some functions are actually named
15325 something starting with __ and the normal name is an alias. */
15326 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
15329 char (*f) () = hes_getmailhost;
15338 return f != hes_getmailhost;
15343 rm -f conftest.
$ac_objext conftest
$ac_exeext
15344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15345 (eval $ac_link) 2>&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); } &&
15349 { ac_try
='test -s conftest$ac_exeext'
15350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15351 (eval $ac_try) 2>&5
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); }; }; then
15355 ac_cv_func_hes_getmailhost
=yes
15357 echo "$as_me: failed program was:" >&5
15358 sed 's/^/| /' conftest.
$ac_ext >&5
15360 ac_cv_func_hes_getmailhost
=no
15362 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15364 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
15365 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
15366 if test $ac_cv_func_hes_getmailhost = yes; then
15369 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
15370 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
15371 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
15372 echo $ECHO_N "(cached) $ECHO_C" >&6
15374 ac_check_lib_save_LIBS
=$LIBS
15375 LIBS
="-lhesiod $RESOLVLIB $LIBS"
15376 cat >conftest.
$ac_ext <<_ACEOF
15377 #line $LINENO "configure"
15380 cat confdefs.h
>>conftest.
$ac_ext
15381 cat >>conftest.
$ac_ext <<_ACEOF
15382 /* end confdefs.h. */
15384 /* Override any gcc2 internal prototype to avoid an error. */
15388 /* We use char because int might match the return type of a gcc2
15389 builtin and then its argument prototype would still apply. */
15390 char hes_getmailhost ();
15394 hes_getmailhost ();
15399 rm -f conftest.
$ac_objext conftest
$ac_exeext
15400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15401 (eval $ac_link) 2>&5
15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404 (exit $ac_status); } &&
15405 { ac_try
='test -s conftest$ac_exeext'
15406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15407 (eval $ac_try) 2>&5
15409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410 (exit $ac_status); }; }; then
15411 ac_cv_lib_hesiod_hes_getmailhost
=yes
15413 echo "$as_me: failed program was:" >&5
15414 sed 's/^/| /' conftest.
$ac_ext >&5
15416 ac_cv_lib_hesiod_hes_getmailhost
=no
15418 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15419 LIBS
=$ac_check_lib_save_LIBS
15421 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15422 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
15423 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
15425 cat >>confdefs.h
<<\_ACEOF
15426 #define HAVE_LIBHESIOD 1
15437 # These tell us which Kerberos-related libraries to use.
15438 if test "${with_kerberos+set}" = set; then
15440 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
15441 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
15442 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
15443 echo $ECHO_N "(cached) $ECHO_C" >&6
15445 ac_check_lib_save_LIBS
=$LIBS
15446 LIBS
="-lcom_err $LIBS"
15447 cat >conftest.
$ac_ext <<_ACEOF
15448 #line $LINENO "configure"
15451 cat confdefs.h
>>conftest.
$ac_ext
15452 cat >>conftest.
$ac_ext <<_ACEOF
15453 /* end confdefs.h. */
15455 /* Override any gcc2 internal prototype to avoid an error. */
15459 /* We use char because int might match the return type of a gcc2
15460 builtin and then its argument prototype would still apply. */
15470 rm -f conftest.
$ac_objext conftest
$ac_exeext
15471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15472 (eval $ac_link) 2>&5
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); } &&
15476 { ac_try
='test -s conftest$ac_exeext'
15477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15478 (eval $ac_try) 2>&5
15480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481 (exit $ac_status); }; }; then
15482 ac_cv_lib_com_err_com_err
=yes
15484 echo "$as_me: failed program was:" >&5
15485 sed 's/^/| /' conftest.
$ac_ext >&5
15487 ac_cv_lib_com_err_com_err
=no
15489 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15490 LIBS
=$ac_check_lib_save_LIBS
15492 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
15493 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
15494 if test $ac_cv_lib_com_err_com_err = yes; then
15495 cat >>confdefs.h
<<_ACEOF
15496 #define HAVE_LIBCOM_ERR 1
15499 LIBS
="-lcom_err $LIBS"
15504 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15505 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
15506 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
15507 echo $ECHO_N "(cached) $ECHO_C" >&6
15509 ac_check_lib_save_LIBS
=$LIBS
15510 LIBS
="-lk5crypto $LIBS"
15511 cat >conftest.
$ac_ext <<_ACEOF
15512 #line $LINENO "configure"
15515 cat confdefs.h
>>conftest.
$ac_ext
15516 cat >>conftest.
$ac_ext <<_ACEOF
15517 /* end confdefs.h. */
15519 /* Override any gcc2 internal prototype to avoid an error. */
15523 /* We use char because int might match the return type of a gcc2
15524 builtin and then its argument prototype would still apply. */
15525 char mit_des_cbc_encrypt ();
15529 mit_des_cbc_encrypt ();
15534 rm -f conftest.
$ac_objext conftest
$ac_exeext
15535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15536 (eval $ac_link) 2>&5
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); } &&
15540 { ac_try
='test -s conftest$ac_exeext'
15541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15542 (eval $ac_try) 2>&5
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); }; }; then
15546 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
15548 echo "$as_me: failed program was:" >&5
15549 sed 's/^/| /' conftest.
$ac_ext >&5
15551 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
15553 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15554 LIBS
=$ac_check_lib_save_LIBS
15556 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15557 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
15558 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
15559 cat >>confdefs.h
<<_ACEOF
15560 #define HAVE_LIBK5CRYPTO 1
15563 LIBS
="-lk5crypto $LIBS"
15568 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15569 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
15570 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
15571 echo $ECHO_N "(cached) $ECHO_C" >&6
15573 ac_check_lib_save_LIBS
=$LIBS
15574 LIBS
="-lcrypto $LIBS"
15575 cat >conftest.
$ac_ext <<_ACEOF
15576 #line $LINENO "configure"
15579 cat confdefs.h
>>conftest.
$ac_ext
15580 cat >>conftest.
$ac_ext <<_ACEOF
15581 /* end confdefs.h. */
15583 /* Override any gcc2 internal prototype to avoid an error. */
15587 /* We use char because int might match the return type of a gcc2
15588 builtin and then its argument prototype would still apply. */
15589 char mit_des_cbc_encrypt ();
15593 mit_des_cbc_encrypt ();
15598 rm -f conftest.
$ac_objext conftest
$ac_exeext
15599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15600 (eval $ac_link) 2>&5
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); } &&
15604 { ac_try
='test -s conftest$ac_exeext'
15605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606 (eval $ac_try) 2>&5
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); }; }; then
15610 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
15612 echo "$as_me: failed program was:" >&5
15613 sed 's/^/| /' conftest.
$ac_ext >&5
15615 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
15617 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15618 LIBS
=$ac_check_lib_save_LIBS
15620 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15621 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
15622 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
15623 cat >>confdefs.h
<<_ACEOF
15624 #define HAVE_LIBCRYPTO 1
15627 LIBS
="-lcrypto $LIBS"
15632 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
15633 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
15634 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
15635 echo $ECHO_N "(cached) $ECHO_C" >&6
15637 ac_check_lib_save_LIBS
=$LIBS
15638 LIBS
="-lkrb5 $LIBS"
15639 cat >conftest.
$ac_ext <<_ACEOF
15640 #line $LINENO "configure"
15643 cat confdefs.h
>>conftest.
$ac_ext
15644 cat >>conftest.
$ac_ext <<_ACEOF
15645 /* end confdefs.h. */
15647 /* Override any gcc2 internal prototype to avoid an error. */
15651 /* We use char because int might match the return type of a gcc2
15652 builtin and then its argument prototype would still apply. */
15653 char krb5_init_context ();
15657 krb5_init_context ();
15662 rm -f conftest.
$ac_objext conftest
$ac_exeext
15663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15664 (eval $ac_link) 2>&5
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); } &&
15668 { ac_try
='test -s conftest$ac_exeext'
15669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15670 (eval $ac_try) 2>&5
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); }; }; then
15674 ac_cv_lib_krb5_krb5_init_context
=yes
15676 echo "$as_me: failed program was:" >&5
15677 sed 's/^/| /' conftest.
$ac_ext >&5
15679 ac_cv_lib_krb5_krb5_init_context
=no
15681 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15682 LIBS
=$ac_check_lib_save_LIBS
15684 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15685 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
15686 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
15687 cat >>confdefs.h
<<_ACEOF
15688 #define HAVE_LIBKRB5 1
15691 LIBS
="-lkrb5 $LIBS"
15695 if test "${with_kerberos5+set}" != set; then
15697 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
15698 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
15699 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
15700 echo $ECHO_N "(cached) $ECHO_C" >&6
15702 ac_check_lib_save_LIBS
=$LIBS
15703 LIBS
="-ldes425 $LIBS"
15704 cat >conftest.
$ac_ext <<_ACEOF
15705 #line $LINENO "configure"
15708 cat confdefs.h
>>conftest.
$ac_ext
15709 cat >>conftest.
$ac_ext <<_ACEOF
15710 /* end confdefs.h. */
15712 /* Override any gcc2 internal prototype to avoid an error. */
15716 /* We use char because int might match the return type of a gcc2
15717 builtin and then its argument prototype would still apply. */
15718 char des_cbc_encrypt ();
15722 des_cbc_encrypt ();
15727 rm -f conftest.
$ac_objext conftest
$ac_exeext
15728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15729 (eval $ac_link) 2>&5
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); } &&
15733 { ac_try
='test -s conftest$ac_exeext'
15734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735 (eval $ac_try) 2>&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); }; }; then
15739 ac_cv_lib_des425_des_cbc_encrypt
=yes
15741 echo "$as_me: failed program was:" >&5
15742 sed 's/^/| /' conftest.
$ac_ext >&5
15744 ac_cv_lib_des425_des_cbc_encrypt
=no
15746 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15747 LIBS
=$ac_check_lib_save_LIBS
15749 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15750 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
15751 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
15752 cat >>confdefs.h
<<_ACEOF
15753 #define HAVE_LIBDES425 1
15756 LIBS
="-ldes425 $LIBS"
15760 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
15761 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
15762 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
15763 echo $ECHO_N "(cached) $ECHO_C" >&6
15765 ac_check_lib_save_LIBS
=$LIBS
15767 cat >conftest.
$ac_ext <<_ACEOF
15768 #line $LINENO "configure"
15771 cat confdefs.h
>>conftest.
$ac_ext
15772 cat >>conftest.
$ac_ext <<_ACEOF
15773 /* end confdefs.h. */
15775 /* Override any gcc2 internal prototype to avoid an error. */
15779 /* We use char because int might match the return type of a gcc2
15780 builtin and then its argument prototype would still apply. */
15781 char des_cbc_encrypt ();
15785 des_cbc_encrypt ();
15790 rm -f conftest.
$ac_objext conftest
$ac_exeext
15791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15792 (eval $ac_link) 2>&5
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); } &&
15796 { ac_try
='test -s conftest$ac_exeext'
15797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798 (eval $ac_try) 2>&5
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); }; }; then
15802 ac_cv_lib_des_des_cbc_encrypt
=yes
15804 echo "$as_me: failed program was:" >&5
15805 sed 's/^/| /' conftest.
$ac_ext >&5
15807 ac_cv_lib_des_des_cbc_encrypt
=no
15809 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15810 LIBS
=$ac_check_lib_save_LIBS
15812 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15813 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
15814 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
15815 cat >>confdefs.h
<<_ACEOF
15816 #define HAVE_LIBDES 1
15826 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
15827 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
15828 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
15829 echo $ECHO_N "(cached) $ECHO_C" >&6
15831 ac_check_lib_save_LIBS
=$LIBS
15832 LIBS
="-lkrb4 $LIBS"
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. */
15841 /* Override any gcc2 internal prototype to avoid an error. */
15845 /* We use char because int might match the return type of a gcc2
15846 builtin and then its argument prototype would still apply. */
15847 char krb_get_cred ();
15856 rm -f conftest.
$ac_objext conftest
$ac_exeext
15857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15858 (eval $ac_link) 2>&5
15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); } &&
15862 { ac_try
='test -s conftest$ac_exeext'
15863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15864 (eval $ac_try) 2>&5
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); }; }; then
15868 ac_cv_lib_krb4_krb_get_cred
=yes
15870 echo "$as_me: failed program was:" >&5
15871 sed 's/^/| /' conftest.
$ac_ext >&5
15873 ac_cv_lib_krb4_krb_get_cred
=no
15875 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15876 LIBS
=$ac_check_lib_save_LIBS
15878 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15879 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
15880 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
15881 cat >>confdefs.h
<<_ACEOF
15882 #define HAVE_LIBKRB4 1
15885 LIBS
="-lkrb4 $LIBS"
15889 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
15890 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
15891 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
15892 echo $ECHO_N "(cached) $ECHO_C" >&6
15894 ac_check_lib_save_LIBS
=$LIBS
15896 cat >conftest.
$ac_ext <<_ACEOF
15897 #line $LINENO "configure"
15900 cat confdefs.h
>>conftest.
$ac_ext
15901 cat >>conftest.
$ac_ext <<_ACEOF
15902 /* end confdefs.h. */
15904 /* Override any gcc2 internal prototype to avoid an error. */
15908 /* We use char because int might match the return type of a gcc2
15909 builtin and then its argument prototype would still apply. */
15910 char krb_get_cred ();
15919 rm -f conftest.
$ac_objext conftest
$ac_exeext
15920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15921 (eval $ac_link) 2>&5
15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); } &&
15925 { ac_try
='test -s conftest$ac_exeext'
15926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15927 (eval $ac_try) 2>&5
15929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 (exit $ac_status); }; }; then
15931 ac_cv_lib_krb_krb_get_cred
=yes
15933 echo "$as_me: failed program was:" >&5
15934 sed 's/^/| /' conftest.
$ac_ext >&5
15936 ac_cv_lib_krb_krb_get_cred
=no
15938 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15939 LIBS
=$ac_check_lib_save_LIBS
15941 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
15942 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
15943 if test $ac_cv_lib_krb_krb_get_cred = yes; then
15944 cat >>confdefs.h
<<_ACEOF
15945 #define HAVE_LIBKRB 1
15956 if test "${with_kerberos5+set}" = set; then
15958 for ac_header
in krb5.h
15960 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15962 echo "$as_me:$LINENO: checking for $ac_header" >&5
15963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15965 echo $ECHO_N "(cached) $ECHO_C" >&6
15967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15970 # Is the header compilable?
15971 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15972 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15973 cat >conftest.
$ac_ext <<_ACEOF
15974 #line $LINENO "configure"
15977 cat confdefs.h
>>conftest.
$ac_ext
15978 cat >>conftest.
$ac_ext <<_ACEOF
15979 /* end confdefs.h. */
15980 $ac_includes_default
15981 #include <$ac_header>
15983 rm -f conftest.
$ac_objext
15984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15985 (eval $ac_compile) 2>&5
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); } &&
15989 { ac_try
='test -s conftest.$ac_objext'
15990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991 (eval $ac_try) 2>&5
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; }; then
15995 ac_header_compiler
=yes
15997 echo "$as_me: failed program was:" >&5
15998 sed 's/^/| /' conftest.
$ac_ext >&5
16000 ac_header_compiler
=no
16002 rm -f conftest.
$ac_objext conftest.
$ac_ext
16003 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16004 echo "${ECHO_T}$ac_header_compiler" >&6
16006 # Is the header present?
16007 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16008 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16009 cat >conftest.
$ac_ext <<_ACEOF
16010 #line $LINENO "configure"
16013 cat confdefs.h
>>conftest.
$ac_ext
16014 cat >>conftest.
$ac_ext <<_ACEOF
16015 /* end confdefs.h. */
16016 #include <$ac_header>
16018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16019 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16021 grep -v '^ *+' conftest.er1
>conftest.err
16023 cat conftest.err
>&5
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); } >/dev
/null
; then
16026 if test -s conftest.err
; then
16027 ac_cpp_err
=$ac_c_preproc_warn_flag
16034 if test -z "$ac_cpp_err"; then
16035 ac_header_preproc
=yes
16037 echo "$as_me: failed program was:" >&5
16038 sed 's/^/| /' conftest.
$ac_ext >&5
16040 ac_header_preproc
=no
16042 rm -f conftest.err conftest.
$ac_ext
16043 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16044 echo "${ECHO_T}$ac_header_preproc" >&6
16046 # So? What about this header?
16047 case $ac_header_compiler:$ac_header_preproc in
16049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16055 ## ------------------------------------ ##
16056 ## Report this to bug-autoconf@gnu.org. ##
16057 ## ------------------------------------ ##
16060 sed "s/^/$as_me: WARNING: /" >&2
16063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16071 ## ------------------------------------ ##
16072 ## Report this to bug-autoconf@gnu.org. ##
16073 ## ------------------------------------ ##
16076 sed "s/^/$as_me: WARNING: /" >&2
16079 echo "$as_me:$LINENO: checking for $ac_header" >&5
16080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16082 echo $ECHO_N "(cached) $ECHO_C" >&6
16084 eval "$as_ac_Header=$ac_header_preproc"
16086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16091 cat >>confdefs.h
<<_ACEOF
16092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16101 for ac_header
in des.h
16103 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16105 echo "$as_me:$LINENO: checking for $ac_header" >&5
16106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16108 echo $ECHO_N "(cached) $ECHO_C" >&6
16110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16113 # Is the header compilable?
16114 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16115 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16116 cat >conftest.
$ac_ext <<_ACEOF
16117 #line $LINENO "configure"
16120 cat confdefs.h
>>conftest.
$ac_ext
16121 cat >>conftest.
$ac_ext <<_ACEOF
16122 /* end confdefs.h. */
16123 $ac_includes_default
16124 #include <$ac_header>
16126 rm -f conftest.
$ac_objext
16127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16128 (eval $ac_compile) 2>&5
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); } &&
16132 { ac_try
='test -s conftest.$ac_objext'
16133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16134 (eval $ac_try) 2>&5
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); }; }; then
16138 ac_header_compiler
=yes
16140 echo "$as_me: failed program was:" >&5
16141 sed 's/^/| /' conftest.
$ac_ext >&5
16143 ac_header_compiler
=no
16145 rm -f conftest.
$ac_objext conftest.
$ac_ext
16146 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16147 echo "${ECHO_T}$ac_header_compiler" >&6
16149 # Is the header present?
16150 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16151 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16152 cat >conftest.
$ac_ext <<_ACEOF
16153 #line $LINENO "configure"
16156 cat confdefs.h
>>conftest.
$ac_ext
16157 cat >>conftest.
$ac_ext <<_ACEOF
16158 /* end confdefs.h. */
16159 #include <$ac_header>
16161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16162 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16164 grep -v '^ *+' conftest.er1
>conftest.err
16166 cat conftest.err
>&5
16167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168 (exit $ac_status); } >/dev
/null
; then
16169 if test -s conftest.err
; then
16170 ac_cpp_err
=$ac_c_preproc_warn_flag
16177 if test -z "$ac_cpp_err"; then
16178 ac_header_preproc
=yes
16180 echo "$as_me: failed program was:" >&5
16181 sed 's/^/| /' conftest.
$ac_ext >&5
16183 ac_header_preproc
=no
16185 rm -f conftest.err conftest.
$ac_ext
16186 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16187 echo "${ECHO_T}$ac_header_preproc" >&6
16189 # So? What about this header?
16190 case $ac_header_compiler:$ac_header_preproc in
16192 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16193 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16198 ## ------------------------------------ ##
16199 ## Report this to bug-autoconf@gnu.org. ##
16200 ## ------------------------------------ ##
16203 sed "s/^/$as_me: WARNING: /" >&2
16206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16209 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16214 ## ------------------------------------ ##
16215 ## Report this to bug-autoconf@gnu.org. ##
16216 ## ------------------------------------ ##
16219 sed "s/^/$as_me: WARNING: /" >&2
16222 echo "$as_me:$LINENO: checking for $ac_header" >&5
16223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16225 echo $ECHO_N "(cached) $ECHO_C" >&6
16227 eval "$as_ac_Header=$ac_header_preproc"
16229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16234 cat >>confdefs.h
<<_ACEOF
16235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16240 for ac_header
in kerberosIV
/des.h
16242 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16244 echo "$as_me:$LINENO: checking for $ac_header" >&5
16245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16247 echo $ECHO_N "(cached) $ECHO_C" >&6
16249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16252 # Is the header compilable?
16253 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16255 cat >conftest.
$ac_ext <<_ACEOF
16256 #line $LINENO "configure"
16259 cat confdefs.h
>>conftest.
$ac_ext
16260 cat >>conftest.
$ac_ext <<_ACEOF
16261 /* end confdefs.h. */
16262 $ac_includes_default
16263 #include <$ac_header>
16265 rm -f conftest.
$ac_objext
16266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16267 (eval $ac_compile) 2>&5
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); } &&
16271 { ac_try
='test -s conftest.$ac_objext'
16272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273 (eval $ac_try) 2>&5
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; }; then
16277 ac_header_compiler
=yes
16279 echo "$as_me: failed program was:" >&5
16280 sed 's/^/| /' conftest.
$ac_ext >&5
16282 ac_header_compiler
=no
16284 rm -f conftest.
$ac_objext conftest.
$ac_ext
16285 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16286 echo "${ECHO_T}$ac_header_compiler" >&6
16288 # Is the header present?
16289 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16291 cat >conftest.
$ac_ext <<_ACEOF
16292 #line $LINENO "configure"
16295 cat confdefs.h
>>conftest.
$ac_ext
16296 cat >>conftest.
$ac_ext <<_ACEOF
16297 /* end confdefs.h. */
16298 #include <$ac_header>
16300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16301 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16303 grep -v '^ *+' conftest.er1
>conftest.err
16305 cat conftest.err
>&5
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); } >/dev
/null
; then
16308 if test -s conftest.err
; then
16309 ac_cpp_err
=$ac_c_preproc_warn_flag
16316 if test -z "$ac_cpp_err"; then
16317 ac_header_preproc
=yes
16319 echo "$as_me: failed program was:" >&5
16320 sed 's/^/| /' conftest.
$ac_ext >&5
16322 ac_header_preproc
=no
16324 rm -f conftest.err conftest.
$ac_ext
16325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16326 echo "${ECHO_T}$ac_header_preproc" >&6
16328 # So? What about this header?
16329 case $ac_header_compiler:$ac_header_preproc in
16331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16337 ## ------------------------------------ ##
16338 ## Report this to bug-autoconf@gnu.org. ##
16339 ## ------------------------------------ ##
16342 sed "s/^/$as_me: WARNING: /" >&2
16345 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16346 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16347 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16348 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16353 ## ------------------------------------ ##
16354 ## Report this to bug-autoconf@gnu.org. ##
16355 ## ------------------------------------ ##
16358 sed "s/^/$as_me: WARNING: /" >&2
16361 echo "$as_me:$LINENO: checking for $ac_header" >&5
16362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16364 echo $ECHO_N "(cached) $ECHO_C" >&6
16366 eval "$as_ac_Header=$ac_header_preproc"
16368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16373 cat >>confdefs.h
<<_ACEOF
16374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16379 for ac_header
in kerberos
/des.h
16381 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16383 echo "$as_me:$LINENO: checking for $ac_header" >&5
16384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16386 echo $ECHO_N "(cached) $ECHO_C" >&6
16388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16391 # Is the header compilable?
16392 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16393 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16394 cat >conftest.
$ac_ext <<_ACEOF
16395 #line $LINENO "configure"
16398 cat confdefs.h
>>conftest.
$ac_ext
16399 cat >>conftest.
$ac_ext <<_ACEOF
16400 /* end confdefs.h. */
16401 $ac_includes_default
16402 #include <$ac_header>
16404 rm -f conftest.
$ac_objext
16405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16406 (eval $ac_compile) 2>&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); } &&
16410 { ac_try
='test -s conftest.$ac_objext'
16411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16412 (eval $ac_try) 2>&5
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); }; }; then
16416 ac_header_compiler
=yes
16418 echo "$as_me: failed program was:" >&5
16419 sed 's/^/| /' conftest.
$ac_ext >&5
16421 ac_header_compiler
=no
16423 rm -f conftest.
$ac_objext conftest.
$ac_ext
16424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16425 echo "${ECHO_T}$ac_header_compiler" >&6
16427 # Is the header present?
16428 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16430 cat >conftest.
$ac_ext <<_ACEOF
16431 #line $LINENO "configure"
16434 cat confdefs.h
>>conftest.
$ac_ext
16435 cat >>conftest.
$ac_ext <<_ACEOF
16436 /* end confdefs.h. */
16437 #include <$ac_header>
16439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16440 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16442 grep -v '^ *+' conftest.er1
>conftest.err
16444 cat conftest.err
>&5
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); } >/dev
/null
; then
16447 if test -s conftest.err
; then
16448 ac_cpp_err
=$ac_c_preproc_warn_flag
16455 if test -z "$ac_cpp_err"; then
16456 ac_header_preproc
=yes
16458 echo "$as_me: failed program was:" >&5
16459 sed 's/^/| /' conftest.
$ac_ext >&5
16461 ac_header_preproc
=no
16463 rm -f conftest.err conftest.
$ac_ext
16464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16465 echo "${ECHO_T}$ac_header_preproc" >&6
16467 # So? What about this header?
16468 case $ac_header_compiler:$ac_header_preproc in
16470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16476 ## ------------------------------------ ##
16477 ## Report this to bug-autoconf@gnu.org. ##
16478 ## ------------------------------------ ##
16481 sed "s/^/$as_me: WARNING: /" >&2
16484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16489 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16492 ## ------------------------------------ ##
16493 ## Report this to bug-autoconf@gnu.org. ##
16494 ## ------------------------------------ ##
16497 sed "s/^/$as_me: WARNING: /" >&2
16500 echo "$as_me:$LINENO: checking for $ac_header" >&5
16501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16503 echo $ECHO_N "(cached) $ECHO_C" >&6
16505 eval "$as_ac_Header=$ac_header_preproc"
16507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16508 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16512 cat >>confdefs.h
<<_ACEOF
16513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16529 for ac_header
in krb.h
16531 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16532 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16533 echo "$as_me:$LINENO: checking for $ac_header" >&5
16534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16536 echo $ECHO_N "(cached) $ECHO_C" >&6
16538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16541 # Is the header compilable?
16542 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16543 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16544 cat >conftest.
$ac_ext <<_ACEOF
16545 #line $LINENO "configure"
16548 cat confdefs.h
>>conftest.
$ac_ext
16549 cat >>conftest.
$ac_ext <<_ACEOF
16550 /* end confdefs.h. */
16551 $ac_includes_default
16552 #include <$ac_header>
16554 rm -f conftest.
$ac_objext
16555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16556 (eval $ac_compile) 2>&5
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); } &&
16560 { ac_try
='test -s conftest.$ac_objext'
16561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562 (eval $ac_try) 2>&5
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; }; then
16566 ac_header_compiler
=yes
16568 echo "$as_me: failed program was:" >&5
16569 sed 's/^/| /' conftest.
$ac_ext >&5
16571 ac_header_compiler
=no
16573 rm -f conftest.
$ac_objext conftest.
$ac_ext
16574 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16575 echo "${ECHO_T}$ac_header_compiler" >&6
16577 # Is the header present?
16578 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16580 cat >conftest.
$ac_ext <<_ACEOF
16581 #line $LINENO "configure"
16584 cat confdefs.h
>>conftest.
$ac_ext
16585 cat >>conftest.
$ac_ext <<_ACEOF
16586 /* end confdefs.h. */
16587 #include <$ac_header>
16589 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16590 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16592 grep -v '^ *+' conftest.er1
>conftest.err
16594 cat conftest.err
>&5
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); } >/dev
/null
; then
16597 if test -s conftest.err
; then
16598 ac_cpp_err
=$ac_c_preproc_warn_flag
16605 if test -z "$ac_cpp_err"; then
16606 ac_header_preproc
=yes
16608 echo "$as_me: failed program was:" >&5
16609 sed 's/^/| /' conftest.
$ac_ext >&5
16611 ac_header_preproc
=no
16613 rm -f conftest.err conftest.
$ac_ext
16614 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16615 echo "${ECHO_T}$ac_header_preproc" >&6
16617 # So? What about this header?
16618 case $ac_header_compiler:$ac_header_preproc in
16620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16623 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16626 ## ------------------------------------ ##
16627 ## Report this to bug-autoconf@gnu.org. ##
16628 ## ------------------------------------ ##
16631 sed "s/^/$as_me: WARNING: /" >&2
16634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16635 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16637 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16639 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16642 ## ------------------------------------ ##
16643 ## Report this to bug-autoconf@gnu.org. ##
16644 ## ------------------------------------ ##
16647 sed "s/^/$as_me: WARNING: /" >&2
16650 echo "$as_me:$LINENO: checking for $ac_header" >&5
16651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16653 echo $ECHO_N "(cached) $ECHO_C" >&6
16655 eval "$as_ac_Header=$ac_header_preproc"
16657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16658 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16662 cat >>confdefs.h
<<_ACEOF
16663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16668 for ac_header
in kerberosIV
/krb.h
16670 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16672 echo "$as_me:$LINENO: checking for $ac_header" >&5
16673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16675 echo $ECHO_N "(cached) $ECHO_C" >&6
16677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16678 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16680 # Is the header compilable?
16681 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16682 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16683 cat >conftest.
$ac_ext <<_ACEOF
16684 #line $LINENO "configure"
16687 cat confdefs.h
>>conftest.
$ac_ext
16688 cat >>conftest.
$ac_ext <<_ACEOF
16689 /* end confdefs.h. */
16690 $ac_includes_default
16691 #include <$ac_header>
16693 rm -f conftest.
$ac_objext
16694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16695 (eval $ac_compile) 2>&5
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); } &&
16699 { ac_try
='test -s conftest.$ac_objext'
16700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16701 (eval $ac_try) 2>&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); }; }; then
16705 ac_header_compiler
=yes
16707 echo "$as_me: failed program was:" >&5
16708 sed 's/^/| /' conftest.
$ac_ext >&5
16710 ac_header_compiler
=no
16712 rm -f conftest.
$ac_objext conftest.
$ac_ext
16713 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16714 echo "${ECHO_T}$ac_header_compiler" >&6
16716 # Is the header present?
16717 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16719 cat >conftest.
$ac_ext <<_ACEOF
16720 #line $LINENO "configure"
16723 cat confdefs.h
>>conftest.
$ac_ext
16724 cat >>conftest.
$ac_ext <<_ACEOF
16725 /* end confdefs.h. */
16726 #include <$ac_header>
16728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16729 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16731 grep -v '^ *+' conftest.er1
>conftest.err
16733 cat conftest.err
>&5
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); } >/dev
/null
; then
16736 if test -s conftest.err
; then
16737 ac_cpp_err
=$ac_c_preproc_warn_flag
16744 if test -z "$ac_cpp_err"; then
16745 ac_header_preproc
=yes
16747 echo "$as_me: failed program was:" >&5
16748 sed 's/^/| /' conftest.
$ac_ext >&5
16750 ac_header_preproc
=no
16752 rm -f conftest.err conftest.
$ac_ext
16753 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16754 echo "${ECHO_T}$ac_header_preproc" >&6
16756 # So? What about this header?
16757 case $ac_header_compiler:$ac_header_preproc in
16759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16760 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16765 ## ------------------------------------ ##
16766 ## Report this to bug-autoconf@gnu.org. ##
16767 ## ------------------------------------ ##
16770 sed "s/^/$as_me: WARNING: /" >&2
16773 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16774 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16775 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16776 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16781 ## ------------------------------------ ##
16782 ## Report this to bug-autoconf@gnu.org. ##
16783 ## ------------------------------------ ##
16786 sed "s/^/$as_me: WARNING: /" >&2
16789 echo "$as_me:$LINENO: checking for $ac_header" >&5
16790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16792 echo $ECHO_N "(cached) $ECHO_C" >&6
16794 eval "$as_ac_Header=$ac_header_preproc"
16796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16801 cat >>confdefs.h
<<_ACEOF
16802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16807 for ac_header
in kerberos
/krb.h
16809 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16811 echo "$as_me:$LINENO: checking for $ac_header" >&5
16812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16814 echo $ECHO_N "(cached) $ECHO_C" >&6
16816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16819 # Is the header compilable?
16820 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16822 cat >conftest.
$ac_ext <<_ACEOF
16823 #line $LINENO "configure"
16826 cat confdefs.h
>>conftest.
$ac_ext
16827 cat >>conftest.
$ac_ext <<_ACEOF
16828 /* end confdefs.h. */
16829 $ac_includes_default
16830 #include <$ac_header>
16832 rm -f conftest.
$ac_objext
16833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16834 (eval $ac_compile) 2>&5
16836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); } &&
16838 { ac_try
='test -s conftest.$ac_objext'
16839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16840 (eval $ac_try) 2>&5
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); }; }; then
16844 ac_header_compiler
=yes
16846 echo "$as_me: failed program was:" >&5
16847 sed 's/^/| /' conftest.
$ac_ext >&5
16849 ac_header_compiler
=no
16851 rm -f conftest.
$ac_objext conftest.
$ac_ext
16852 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16853 echo "${ECHO_T}$ac_header_compiler" >&6
16855 # Is the header present?
16856 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16858 cat >conftest.
$ac_ext <<_ACEOF
16859 #line $LINENO "configure"
16862 cat confdefs.h
>>conftest.
$ac_ext
16863 cat >>conftest.
$ac_ext <<_ACEOF
16864 /* end confdefs.h. */
16865 #include <$ac_header>
16867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16868 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16870 grep -v '^ *+' conftest.er1
>conftest.err
16872 cat conftest.err
>&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); } >/dev
/null
; then
16875 if test -s conftest.err
; then
16876 ac_cpp_err
=$ac_c_preproc_warn_flag
16883 if test -z "$ac_cpp_err"; then
16884 ac_header_preproc
=yes
16886 echo "$as_me: failed program was:" >&5
16887 sed 's/^/| /' conftest.
$ac_ext >&5
16889 ac_header_preproc
=no
16891 rm -f conftest.err conftest.
$ac_ext
16892 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16893 echo "${ECHO_T}$ac_header_preproc" >&6
16895 # So? What about this header?
16896 case $ac_header_compiler:$ac_header_preproc in
16898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16901 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16904 ## ------------------------------------ ##
16905 ## Report this to bug-autoconf@gnu.org. ##
16906 ## ------------------------------------ ##
16909 sed "s/^/$as_me: WARNING: /" >&2
16912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16915 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16920 ## ------------------------------------ ##
16921 ## Report this to bug-autoconf@gnu.org. ##
16922 ## ------------------------------------ ##
16925 sed "s/^/$as_me: WARNING: /" >&2
16928 echo "$as_me:$LINENO: checking for $ac_header" >&5
16929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16931 echo $ECHO_N "(cached) $ECHO_C" >&6
16933 eval "$as_ac_Header=$ac_header_preproc"
16935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16940 cat >>confdefs.h
<<_ACEOF
16941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16958 for ac_header
in com_err.h
16960 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16962 echo "$as_me:$LINENO: checking for $ac_header" >&5
16963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16965 echo $ECHO_N "(cached) $ECHO_C" >&6
16967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16970 # Is the header compilable?
16971 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16972 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16973 cat >conftest.
$ac_ext <<_ACEOF
16974 #line $LINENO "configure"
16977 cat confdefs.h
>>conftest.
$ac_ext
16978 cat >>conftest.
$ac_ext <<_ACEOF
16979 /* end confdefs.h. */
16980 $ac_includes_default
16981 #include <$ac_header>
16983 rm -f conftest.
$ac_objext
16984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16985 (eval $ac_compile) 2>&5
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); } &&
16989 { ac_try
='test -s conftest.$ac_objext'
16990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16991 (eval $ac_try) 2>&5
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); }; }; then
16995 ac_header_compiler
=yes
16997 echo "$as_me: failed program was:" >&5
16998 sed 's/^/| /' conftest.
$ac_ext >&5
17000 ac_header_compiler
=no
17002 rm -f conftest.
$ac_objext conftest.
$ac_ext
17003 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17004 echo "${ECHO_T}$ac_header_compiler" >&6
17006 # Is the header present?
17007 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17008 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17009 cat >conftest.
$ac_ext <<_ACEOF
17010 #line $LINENO "configure"
17013 cat confdefs.h
>>conftest.
$ac_ext
17014 cat >>conftest.
$ac_ext <<_ACEOF
17015 /* end confdefs.h. */
17016 #include <$ac_header>
17018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17019 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17021 grep -v '^ *+' conftest.er1
>conftest.err
17023 cat conftest.err
>&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); } >/dev
/null
; then
17026 if test -s conftest.err
; then
17027 ac_cpp_err
=$ac_c_preproc_warn_flag
17034 if test -z "$ac_cpp_err"; then
17035 ac_header_preproc
=yes
17037 echo "$as_me: failed program was:" >&5
17038 sed 's/^/| /' conftest.
$ac_ext >&5
17040 ac_header_preproc
=no
17042 rm -f conftest.err conftest.
$ac_ext
17043 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17044 echo "${ECHO_T}$ac_header_preproc" >&6
17046 # So? What about this header?
17047 case $ac_header_compiler:$ac_header_preproc in
17049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17055 ## ------------------------------------ ##
17056 ## Report this to bug-autoconf@gnu.org. ##
17057 ## ------------------------------------ ##
17060 sed "s/^/$as_me: WARNING: /" >&2
17063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17071 ## ------------------------------------ ##
17072 ## Report this to bug-autoconf@gnu.org. ##
17073 ## ------------------------------------ ##
17076 sed "s/^/$as_me: WARNING: /" >&2
17079 echo "$as_me:$LINENO: checking for $ac_header" >&5
17080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17082 echo $ECHO_N "(cached) $ECHO_C" >&6
17084 eval "$as_ac_Header=$ac_header_preproc"
17086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17091 cat >>confdefs.h
<<_ACEOF
17092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17101 # Solaris requires -lintl if you want strerror (which calls dgettext)
17102 # to return localized messages.
17104 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
17105 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
17106 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
17107 echo $ECHO_N "(cached) $ECHO_C" >&6
17109 ac_check_lib_save_LIBS
=$LIBS
17110 LIBS
="-lintl $LIBS"
17111 cat >conftest.
$ac_ext <<_ACEOF
17112 #line $LINENO "configure"
17115 cat confdefs.h
>>conftest.
$ac_ext
17116 cat >>conftest.
$ac_ext <<_ACEOF
17117 /* end confdefs.h. */
17119 /* Override any gcc2 internal prototype to avoid an error. */
17123 /* We use char because int might match the return type of a gcc2
17124 builtin and then its argument prototype would still apply. */
17134 rm -f conftest.
$ac_objext conftest
$ac_exeext
17135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17136 (eval $ac_link) 2>&5
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); } &&
17140 { ac_try
='test -s conftest$ac_exeext'
17141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17142 (eval $ac_try) 2>&5
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); }; }; then
17146 ac_cv_lib_intl_dgettext
=yes
17148 echo "$as_me: failed program was:" >&5
17149 sed 's/^/| /' conftest.
$ac_ext >&5
17151 ac_cv_lib_intl_dgettext
=no
17153 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17154 LIBS
=$ac_check_lib_save_LIBS
17156 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
17157 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
17158 if test $ac_cv_lib_intl_dgettext = yes; then
17159 cat >>confdefs.h
<<_ACEOF
17160 #define HAVE_LIBINTL 1
17163 LIBS
="-lintl $LIBS"
17168 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
17169 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
17170 if test "${emacs_cv_localtime_cache+set}" = set; then
17171 echo $ECHO_N "(cached) $ECHO_C" >&6
17173 if test x
$ac_cv_func_tzset = xyes
; then
17174 if test "$cross_compiling" = yes; then
17175 # If we have tzset, assume the worst when cross-compiling.
17176 emacs_cv_localtime_cache
=yes
17178 cat >conftest.
$ac_ext <<_ACEOF
17179 #line $LINENO "configure"
17182 cat confdefs.h
>>conftest.
$ac_ext
17183 cat >>conftest.
$ac_ext <<_ACEOF
17184 /* end confdefs.h. */
17186 extern char **environ;
17190 for (to = from = environ; (*to = *from); from++)
17191 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
17194 char TZ_GMT0[] = "TZ=GMT0";
17195 char TZ_PST8[] = "TZ=PST8";
17198 time_t now = time ((time_t *) 0);
17199 int hour_GMT0, hour_unset;
17200 if (putenv (TZ_GMT0) != 0)
17202 hour_GMT0 = localtime (&now)->tm_hour;
17204 hour_unset = localtime (&now)->tm_hour;
17205 if (putenv (TZ_PST8) != 0)
17207 if (localtime (&now)->tm_hour == hour_GMT0)
17210 if (localtime (&now)->tm_hour != hour_unset)
17215 rm -f conftest
$ac_exeext
17216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17217 (eval $ac_link) 2>&5
17219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17222 (eval $ac_try) 2>&5
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); }; }; then
17226 emacs_cv_localtime_cache
=no
17228 echo "$as_me: program exited with status $ac_status" >&5
17229 echo "$as_me: failed program was:" >&5
17230 sed 's/^/| /' conftest.
$ac_ext >&5
17232 ( exit $ac_status )
17233 emacs_cv_localtime_cache
=yes
17235 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17238 # If we lack tzset, report that localtime does not cache TZ,
17239 # since we can't invalidate the cache if we don't have tzset.
17240 emacs_cv_localtime_cache
=no
17243 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
17244 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
17245 if test $emacs_cv_localtime_cache = yes; then
17247 cat >>confdefs.h
<<\_ACEOF
17248 #define LOCALTIME_CACHE 1
17253 if test "x$HAVE_TIMEVAL" = xyes
; then
17255 for ac_func
in gettimeofday
17257 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17258 echo "$as_me:$LINENO: checking for $ac_func" >&5
17259 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17260 if eval "test \"\${$as_ac_var+set}\" = set"; then
17261 echo $ECHO_N "(cached) $ECHO_C" >&6
17263 cat >conftest.
$ac_ext <<_ACEOF
17264 #line $LINENO "configure"
17267 cat confdefs.h
>>conftest.
$ac_ext
17268 cat >>conftest.
$ac_ext <<_ACEOF
17269 /* end confdefs.h. */
17270 /* System header to define __stub macros and hopefully few prototypes,
17271 which can conflict with char $ac_func (); below.
17272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17273 <limits.h> exists even on freestanding compilers. */
17275 # include <limits.h>
17277 # include <assert.h>
17279 /* Override any gcc2 internal prototype to avoid an error. */
17284 /* We use char because int might match the return type of a gcc2
17285 builtin and then its argument prototype would still apply. */
17287 /* The GNU C library defines this for functions which it implements
17288 to always fail with ENOSYS. Some functions are actually named
17289 something starting with __ and the normal name is an alias. */
17290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17293 char (*f) () = $ac_func;
17302 return f != $ac_func;
17307 rm -f conftest.
$ac_objext conftest
$ac_exeext
17308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17309 (eval $ac_link) 2>&5
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); } &&
17313 { ac_try
='test -s conftest$ac_exeext'
17314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17315 (eval $ac_try) 2>&5
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); }; }; then
17319 eval "$as_ac_var=yes"
17321 echo "$as_me: failed program was:" >&5
17322 sed 's/^/| /' conftest.
$ac_ext >&5
17324 eval "$as_ac_var=no"
17326 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17329 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17330 if test `eval echo '${'$as_ac_var'}'` = yes; then
17331 cat >>confdefs.h
<<_ACEOF
17332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17338 if test $ac_cv_func_gettimeofday = yes; then
17339 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
17340 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
17341 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
17342 echo $ECHO_N "(cached) $ECHO_C" >&6
17344 cat >conftest.
$ac_ext <<_ACEOF
17345 #line $LINENO "configure"
17348 cat confdefs.h
>>conftest.
$ac_ext
17349 cat >>conftest.
$ac_ext <<_ACEOF
17350 /* end confdefs.h. */
17352 #ifdef TIME_WITH_SYS_TIME
17353 #include <sys/time.h>
17356 #ifdef HAVE_SYS_TIME_H
17357 #include <sys/time.h>
17365 struct timeval time;
17366 gettimeofday (&time, 0);
17371 rm -f conftest.
$ac_objext
17372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17373 (eval $ac_compile) 2>&5
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); } &&
17377 { ac_try
='test -s conftest.$ac_objext'
17378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17379 (eval $ac_try) 2>&5
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); }; }; then
17383 emacs_cv_gettimeofday_two_arguments
=yes
17385 echo "$as_me: failed program was:" >&5
17386 sed 's/^/| /' conftest.
$ac_ext >&5
17388 emacs_cv_gettimeofday_two_arguments
=no
17390 rm -f conftest.
$ac_objext conftest.
$ac_ext
17392 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
17393 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
17394 if test $emacs_cv_gettimeofday_two_arguments = no
; then
17396 cat >>confdefs.h
<<\_ACEOF
17397 #define GETTIMEOFDAY_ONE_ARGUMENT 1
17404 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
17405 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
17406 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
17407 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
17408 echo $ECHO_N "(cached) $ECHO_C" >&6
17410 cat >conftest.
$ac_ext <<_ACEOF
17411 #line $LINENO "configure"
17414 cat confdefs.h
>>conftest.
$ac_ext
17415 cat >>conftest.
$ac_ext <<_ACEOF
17416 /* end confdefs.h. */
17417 #include <sys/types.h>
17418 #include <$ac_cv_struct_tm>
17424 static struct tm ac_aggr;
17425 if (ac_aggr.tm_zone)
17431 rm -f conftest.
$ac_objext
17432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17433 (eval $ac_compile) 2>&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); } &&
17437 { ac_try
='test -s conftest.$ac_objext'
17438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17439 (eval $ac_try) 2>&5
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); }; }; then
17443 ac_cv_member_struct_tm_tm_zone
=yes
17445 echo "$as_me: failed program was:" >&5
17446 sed 's/^/| /' conftest.
$ac_ext >&5
17448 cat >conftest.
$ac_ext <<_ACEOF
17449 #line $LINENO "configure"
17452 cat confdefs.h
>>conftest.
$ac_ext
17453 cat >>conftest.
$ac_ext <<_ACEOF
17454 /* end confdefs.h. */
17455 #include <sys/types.h>
17456 #include <$ac_cv_struct_tm>
17462 static struct tm ac_aggr;
17463 if (sizeof ac_aggr.tm_zone)
17469 rm -f conftest.
$ac_objext
17470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17471 (eval $ac_compile) 2>&5
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); } &&
17475 { ac_try
='test -s conftest.$ac_objext'
17476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17477 (eval $ac_try) 2>&5
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); }; }; then
17481 ac_cv_member_struct_tm_tm_zone
=yes
17483 echo "$as_me: failed program was:" >&5
17484 sed 's/^/| /' conftest.
$ac_ext >&5
17486 ac_cv_member_struct_tm_tm_zone
=no
17488 rm -f conftest.
$ac_objext conftest.
$ac_ext
17490 rm -f conftest.
$ac_objext conftest.
$ac_ext
17492 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
17493 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
17494 if test $ac_cv_member_struct_tm_tm_zone = yes; then
17496 cat >>confdefs.h
<<_ACEOF
17497 #define HAVE_STRUCT_TM_TM_ZONE 1
17503 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17505 cat >>confdefs.h
<<\_ACEOF
17506 #define HAVE_TM_ZONE 1
17510 echo "$as_me:$LINENO: checking for tzname" >&5
17511 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
17512 if test "${ac_cv_var_tzname+set}" = set; then
17513 echo $ECHO_N "(cached) $ECHO_C" >&6
17515 cat >conftest.
$ac_ext <<_ACEOF
17516 #line $LINENO "configure"
17519 cat confdefs.h
>>conftest.
$ac_ext
17520 cat >>conftest.
$ac_ext <<_ACEOF
17521 /* end confdefs.h. */
17523 #ifndef tzname /* For SGI. */
17524 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
17535 rm -f conftest.
$ac_objext conftest
$ac_exeext
17536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17537 (eval $ac_link) 2>&5
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); } &&
17541 { ac_try
='test -s conftest$ac_exeext'
17542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17543 (eval $ac_try) 2>&5
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); }; }; then
17547 ac_cv_var_tzname
=yes
17549 echo "$as_me: failed program was:" >&5
17550 sed 's/^/| /' conftest.
$ac_ext >&5
17552 ac_cv_var_tzname
=no
17554 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17556 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17557 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17558 if test $ac_cv_var_tzname = yes; then
17560 cat >>confdefs.h
<<\_ACEOF
17561 #define HAVE_TZNAME 1
17568 if test "$ac_cv_func_gettimeofday" = yes; then
17569 echo "$as_me:$LINENO: checking for struct timezone" >&5
17570 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
17571 if test "${emacs_cv_struct_timezone+set}" = set; then
17572 echo $ECHO_N "(cached) $ECHO_C" >&6
17574 cat >conftest.
$ac_ext <<_ACEOF
17575 #line $LINENO "configure"
17578 cat confdefs.h
>>conftest.
$ac_ext
17579 cat >>conftest.
$ac_ext <<_ACEOF
17580 /* end confdefs.h. */
17581 #include <sys/time.h>
17585 struct timezone tz;
17590 rm -f conftest.
$ac_objext
17591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17592 (eval $ac_compile) 2>&5
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); } &&
17596 { ac_try
='test -s conftest.$ac_objext'
17597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17598 (eval $ac_try) 2>&5
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); }; }; then
17602 if test "$cross_compiling" = yes; then
17603 emacs_cv_struct_timezone
=yes
17605 cat >conftest.
$ac_ext <<_ACEOF
17606 #line $LINENO "configure"
17609 cat confdefs.h
>>conftest.
$ac_ext
17610 cat >>conftest.
$ac_ext <<_ACEOF
17611 /* end confdefs.h. */
17613 #ifdef TIME_WITH_SYS_TIME
17614 #include <sys/time.h>
17617 #ifdef HAVE_SYS_TIME_H
17618 #include <sys/time.h>
17624 struct timeval time;
17625 struct timezone dummy;
17626 exit (gettimeofday (&time, &dummy));
17629 rm -f conftest
$ac_exeext
17630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17631 (eval $ac_link) 2>&5
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17636 (eval $ac_try) 2>&5
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); }; }; then
17640 emacs_cv_struct_timezone
=yes
17642 echo "$as_me: program exited with status $ac_status" >&5
17643 echo "$as_me: failed program was:" >&5
17644 sed 's/^/| /' conftest.
$ac_ext >&5
17646 ( exit $ac_status )
17647 emacs_cv_struct_timezone
=no
17649 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17652 echo "$as_me: failed program was:" >&5
17653 sed 's/^/| /' conftest.
$ac_ext >&5
17655 emacs_cv_struct_timezone
=no
17657 rm -f conftest.
$ac_objext conftest.
$ac_ext
17659 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
17660 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
17664 echo "$as_me:$LINENO: checking for socket" >&5
17665 echo $ECHO_N "checking for socket... $ECHO_C" >&6
17666 if test "${ac_cv_func_socket+set}" = set; then
17667 echo $ECHO_N "(cached) $ECHO_C" >&6
17669 cat >conftest.
$ac_ext <<_ACEOF
17670 #line $LINENO "configure"
17673 cat confdefs.h
>>conftest.
$ac_ext
17674 cat >>conftest.
$ac_ext <<_ACEOF
17675 /* end confdefs.h. */
17676 /* System header to define __stub macros and hopefully few prototypes,
17677 which can conflict with char socket (); below.
17678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17679 <limits.h> exists even on freestanding compilers. */
17681 # include <limits.h>
17683 # include <assert.h>
17685 /* Override any gcc2 internal prototype to avoid an error. */
17690 /* We use char because int might match the return type of a gcc2
17691 builtin and then its argument prototype would still apply. */
17693 /* The GNU C library defines this for functions which it implements
17694 to always fail with ENOSYS. Some functions are actually named
17695 something starting with __ and the normal name is an alias. */
17696 #if defined (__stub_socket) || defined (__stub___socket)
17699 char (*f) () = socket;
17708 return f != socket;
17713 rm -f conftest.
$ac_objext conftest
$ac_exeext
17714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17715 (eval $ac_link) 2>&5
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); } &&
17719 { ac_try
='test -s conftest$ac_exeext'
17720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17721 (eval $ac_try) 2>&5
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; }; then
17725 ac_cv_func_socket
=yes
17727 echo "$as_me: failed program was:" >&5
17728 sed 's/^/| /' conftest.
$ac_ext >&5
17730 ac_cv_func_socket
=no
17732 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17734 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17735 echo "${ECHO_T}$ac_cv_func_socket" >&6
17736 if test $ac_cv_func_socket = yes; then
17742 if test $ok_so_far = yes; then
17743 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17744 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17745 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17746 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17747 echo $ECHO_N "(cached) $ECHO_C" >&6
17749 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17750 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17752 # Is the header compilable?
17753 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
17754 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
17755 cat >conftest.
$ac_ext <<_ACEOF
17756 #line $LINENO "configure"
17759 cat confdefs.h
>>conftest.
$ac_ext
17760 cat >>conftest.
$ac_ext <<_ACEOF
17761 /* end confdefs.h. */
17762 $ac_includes_default
17763 #include <netinet/in.h>
17765 rm -f conftest.
$ac_objext
17766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17767 (eval $ac_compile) 2>&5
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); } &&
17771 { ac_try
='test -s conftest.$ac_objext'
17772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17773 (eval $ac_try) 2>&5
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; }; then
17777 ac_header_compiler
=yes
17779 echo "$as_me: failed program was:" >&5
17780 sed 's/^/| /' conftest.
$ac_ext >&5
17782 ac_header_compiler
=no
17784 rm -f conftest.
$ac_objext conftest.
$ac_ext
17785 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17786 echo "${ECHO_T}$ac_header_compiler" >&6
17788 # Is the header present?
17789 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
17790 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
17791 cat >conftest.
$ac_ext <<_ACEOF
17792 #line $LINENO "configure"
17795 cat confdefs.h
>>conftest.
$ac_ext
17796 cat >>conftest.
$ac_ext <<_ACEOF
17797 /* end confdefs.h. */
17798 #include <netinet/in.h>
17800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17801 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17803 grep -v '^ *+' conftest.er1
>conftest.err
17805 cat conftest.err
>&5
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); } >/dev
/null
; then
17808 if test -s conftest.err
; then
17809 ac_cpp_err
=$ac_c_preproc_warn_flag
17816 if test -z "$ac_cpp_err"; then
17817 ac_header_preproc
=yes
17819 echo "$as_me: failed program was:" >&5
17820 sed 's/^/| /' conftest.
$ac_ext >&5
17822 ac_header_preproc
=no
17824 rm -f conftest.err conftest.
$ac_ext
17825 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17826 echo "${ECHO_T}$ac_header_preproc" >&6
17828 # So? What about this header?
17829 case $ac_header_compiler:$ac_header_preproc in
17831 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
17832 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17833 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
17834 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
17837 ## ------------------------------------ ##
17838 ## Report this to bug-autoconf@gnu.org. ##
17839 ## ------------------------------------ ##
17842 sed "s/^/$as_me: WARNING: /" >&2
17845 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
17846 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
17847 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
17848 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
17849 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
17850 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
17853 ## ------------------------------------ ##
17854 ## Report this to bug-autoconf@gnu.org. ##
17855 ## ------------------------------------ ##
17858 sed "s/^/$as_me: WARNING: /" >&2
17861 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17862 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17863 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17864 echo $ECHO_N "(cached) $ECHO_C" >&6
17866 ac_cv_header_netinet_in_h
=$ac_header_preproc
17868 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17869 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17872 if test $ac_cv_header_netinet_in_h = yes; then
17880 if test $ok_so_far = yes; then
17881 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17882 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17883 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17884 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17885 echo $ECHO_N "(cached) $ECHO_C" >&6
17887 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17888 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17890 # Is the header compilable?
17891 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
17892 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
17893 cat >conftest.
$ac_ext <<_ACEOF
17894 #line $LINENO "configure"
17897 cat confdefs.h
>>conftest.
$ac_ext
17898 cat >>conftest.
$ac_ext <<_ACEOF
17899 /* end confdefs.h. */
17900 $ac_includes_default
17901 #include <arpa/inet.h>
17903 rm -f conftest.
$ac_objext
17904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17905 (eval $ac_compile) 2>&5
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); } &&
17909 { ac_try
='test -s conftest.$ac_objext'
17910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17911 (eval $ac_try) 2>&5
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); }; }; then
17915 ac_header_compiler
=yes
17917 echo "$as_me: failed program was:" >&5
17918 sed 's/^/| /' conftest.
$ac_ext >&5
17920 ac_header_compiler
=no
17922 rm -f conftest.
$ac_objext conftest.
$ac_ext
17923 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17924 echo "${ECHO_T}$ac_header_compiler" >&6
17926 # Is the header present?
17927 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
17928 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
17929 cat >conftest.
$ac_ext <<_ACEOF
17930 #line $LINENO "configure"
17933 cat confdefs.h
>>conftest.
$ac_ext
17934 cat >>conftest.
$ac_ext <<_ACEOF
17935 /* end confdefs.h. */
17936 #include <arpa/inet.h>
17938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17939 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17941 grep -v '^ *+' conftest.er1
>conftest.err
17943 cat conftest.err
>&5
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); } >/dev
/null
; then
17946 if test -s conftest.err
; then
17947 ac_cpp_err
=$ac_c_preproc_warn_flag
17954 if test -z "$ac_cpp_err"; then
17955 ac_header_preproc
=yes
17957 echo "$as_me: failed program was:" >&5
17958 sed 's/^/| /' conftest.
$ac_ext >&5
17960 ac_header_preproc
=no
17962 rm -f conftest.err conftest.
$ac_ext
17963 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17964 echo "${ECHO_T}$ac_header_preproc" >&6
17966 # So? What about this header?
17967 case $ac_header_compiler:$ac_header_preproc in
17969 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
17970 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17971 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
17972 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
17975 ## ------------------------------------ ##
17976 ## Report this to bug-autoconf@gnu.org. ##
17977 ## ------------------------------------ ##
17980 sed "s/^/$as_me: WARNING: /" >&2
17983 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
17984 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
17985 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
17986 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
17987 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
17988 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
17991 ## ------------------------------------ ##
17992 ## Report this to bug-autoconf@gnu.org. ##
17993 ## ------------------------------------ ##
17996 sed "s/^/$as_me: WARNING: /" >&2
17999 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
18000 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
18001 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
18002 echo $ECHO_N "(cached) $ECHO_C" >&6
18004 ac_cv_header_arpa_inet_h
=$ac_header_preproc
18006 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
18007 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
18010 if test $ac_cv_header_arpa_inet_h = yes; then
18018 if test $ok_so_far = yes; then
18020 cat >>confdefs.h
<<\_ACEOF
18021 #define HAVE_INET_SOCKETS 1
18028 for ac_header
in sys
/ioctl.h net
/if.h
18030 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18032 echo "$as_me:$LINENO: checking for $ac_header" >&5
18033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18035 echo $ECHO_N "(cached) $ECHO_C" >&6
18037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18040 # Is the header compilable?
18041 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18043 cat >conftest.
$ac_ext <<_ACEOF
18044 #line $LINENO "configure"
18047 cat confdefs.h
>>conftest.
$ac_ext
18048 cat >>conftest.
$ac_ext <<_ACEOF
18049 /* end confdefs.h. */
18050 $ac_includes_default
18051 #include <$ac_header>
18053 rm -f conftest.
$ac_objext
18054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18055 (eval $ac_compile) 2>&5
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); } &&
18059 { ac_try
='test -s conftest.$ac_objext'
18060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18061 (eval $ac_try) 2>&5
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); }; }; then
18065 ac_header_compiler
=yes
18067 echo "$as_me: failed program was:" >&5
18068 sed 's/^/| /' conftest.
$ac_ext >&5
18070 ac_header_compiler
=no
18072 rm -f conftest.
$ac_objext conftest.
$ac_ext
18073 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18074 echo "${ECHO_T}$ac_header_compiler" >&6
18076 # Is the header present?
18077 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18079 cat >conftest.
$ac_ext <<_ACEOF
18080 #line $LINENO "configure"
18083 cat confdefs.h
>>conftest.
$ac_ext
18084 cat >>conftest.
$ac_ext <<_ACEOF
18085 /* end confdefs.h. */
18086 #include <$ac_header>
18088 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18089 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18091 grep -v '^ *+' conftest.er1
>conftest.err
18093 cat conftest.err
>&5
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); } >/dev
/null
; then
18096 if test -s conftest.err
; then
18097 ac_cpp_err
=$ac_c_preproc_warn_flag
18104 if test -z "$ac_cpp_err"; then
18105 ac_header_preproc
=yes
18107 echo "$as_me: failed program was:" >&5
18108 sed 's/^/| /' conftest.
$ac_ext >&5
18110 ac_header_preproc
=no
18112 rm -f conftest.err conftest.
$ac_ext
18113 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18114 echo "${ECHO_T}$ac_header_preproc" >&6
18116 # So? What about this header?
18117 case $ac_header_compiler:$ac_header_preproc in
18119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18125 ## ------------------------------------ ##
18126 ## Report this to bug-autoconf@gnu.org. ##
18127 ## ------------------------------------ ##
18130 sed "s/^/$as_me: WARNING: /" >&2
18133 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18134 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18135 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18136 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18141 ## ------------------------------------ ##
18142 ## Report this to bug-autoconf@gnu.org. ##
18143 ## ------------------------------------ ##
18146 sed "s/^/$as_me: WARNING: /" >&2
18149 echo "$as_me:$LINENO: checking for $ac_header" >&5
18150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18152 echo $ECHO_N "(cached) $ECHO_C" >&6
18154 eval "$as_ac_Header=$ac_header_preproc"
18156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18157 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18160 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18161 cat >>confdefs.h
<<_ACEOF
18162 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18170 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
18172 cat >>confdefs.h
<<\_ACEOF
18173 #define HAVE_AIX_SMT_EXP 1
18178 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
18179 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
18180 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
18181 echo "$as_me:$LINENO: result: yes" >&5
18182 echo "${ECHO_T}yes" >&6
18184 cat >>confdefs.h
<<\_ACEOF
18185 #define HAVE_DEV_PTMX 1
18189 echo "$as_me:$LINENO: result: no" >&5
18190 echo "${ECHO_T}no" >&6
18193 echo "$as_me:$LINENO: checking for pid_t" >&5
18194 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
18195 if test "${ac_cv_type_pid_t+set}" = set; then
18196 echo $ECHO_N "(cached) $ECHO_C" >&6
18198 cat >conftest.
$ac_ext <<_ACEOF
18199 #line $LINENO "configure"
18202 cat confdefs.h
>>conftest.
$ac_ext
18203 cat >>conftest.
$ac_ext <<_ACEOF
18204 /* end confdefs.h. */
18205 $ac_includes_default
18211 if (sizeof (pid_t))
18217 rm -f conftest.
$ac_objext
18218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18219 (eval $ac_compile) 2>&5
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); } &&
18223 { ac_try
='test -s conftest.$ac_objext'
18224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18225 (eval $ac_try) 2>&5
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); }; }; then
18229 ac_cv_type_pid_t
=yes
18231 echo "$as_me: failed program was:" >&5
18232 sed 's/^/| /' conftest.
$ac_ext >&5
18234 ac_cv_type_pid_t
=no
18236 rm -f conftest.
$ac_objext conftest.
$ac_ext
18238 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
18239 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
18240 if test $ac_cv_type_pid_t = yes; then
18244 cat >>confdefs.h
<<_ACEOF
18252 for ac_header
in unistd.h vfork.h
18254 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18256 echo "$as_me:$LINENO: checking for $ac_header" >&5
18257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18259 echo $ECHO_N "(cached) $ECHO_C" >&6
18261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18264 # Is the header compilable?
18265 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18267 cat >conftest.
$ac_ext <<_ACEOF
18268 #line $LINENO "configure"
18271 cat confdefs.h
>>conftest.
$ac_ext
18272 cat >>conftest.
$ac_ext <<_ACEOF
18273 /* end confdefs.h. */
18274 $ac_includes_default
18275 #include <$ac_header>
18277 rm -f conftest.
$ac_objext
18278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18279 (eval $ac_compile) 2>&5
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); } &&
18283 { ac_try
='test -s conftest.$ac_objext'
18284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18285 (eval $ac_try) 2>&5
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); }; }; then
18289 ac_header_compiler
=yes
18291 echo "$as_me: failed program was:" >&5
18292 sed 's/^/| /' conftest.
$ac_ext >&5
18294 ac_header_compiler
=no
18296 rm -f conftest.
$ac_objext conftest.
$ac_ext
18297 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18298 echo "${ECHO_T}$ac_header_compiler" >&6
18300 # Is the header present?
18301 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18303 cat >conftest.
$ac_ext <<_ACEOF
18304 #line $LINENO "configure"
18307 cat confdefs.h
>>conftest.
$ac_ext
18308 cat >>conftest.
$ac_ext <<_ACEOF
18309 /* end confdefs.h. */
18310 #include <$ac_header>
18312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18313 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18315 grep -v '^ *+' conftest.er1
>conftest.err
18317 cat conftest.err
>&5
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); } >/dev
/null
; then
18320 if test -s conftest.err
; then
18321 ac_cpp_err
=$ac_c_preproc_warn_flag
18328 if test -z "$ac_cpp_err"; then
18329 ac_header_preproc
=yes
18331 echo "$as_me: failed program was:" >&5
18332 sed 's/^/| /' conftest.
$ac_ext >&5
18334 ac_header_preproc
=no
18336 rm -f conftest.err conftest.
$ac_ext
18337 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18338 echo "${ECHO_T}$ac_header_preproc" >&6
18340 # So? What about this header?
18341 case $ac_header_compiler:$ac_header_preproc in
18343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18344 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18349 ## ------------------------------------ ##
18350 ## Report this to bug-autoconf@gnu.org. ##
18351 ## ------------------------------------ ##
18354 sed "s/^/$as_me: WARNING: /" >&2
18357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18360 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18362 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18365 ## ------------------------------------ ##
18366 ## Report this to bug-autoconf@gnu.org. ##
18367 ## ------------------------------------ ##
18370 sed "s/^/$as_me: WARNING: /" >&2
18373 echo "$as_me:$LINENO: checking for $ac_header" >&5
18374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18376 echo $ECHO_N "(cached) $ECHO_C" >&6
18378 eval "$as_ac_Header=$ac_header_preproc"
18380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18385 cat >>confdefs.h
<<_ACEOF
18386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18395 for ac_func
in fork vfork
18397 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18398 echo "$as_me:$LINENO: checking for $ac_func" >&5
18399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18400 if eval "test \"\${$as_ac_var+set}\" = set"; then
18401 echo $ECHO_N "(cached) $ECHO_C" >&6
18403 cat >conftest.
$ac_ext <<_ACEOF
18404 #line $LINENO "configure"
18407 cat confdefs.h
>>conftest.
$ac_ext
18408 cat >>conftest.
$ac_ext <<_ACEOF
18409 /* end confdefs.h. */
18410 /* System header to define __stub macros and hopefully few prototypes,
18411 which can conflict with char $ac_func (); below.
18412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18413 <limits.h> exists even on freestanding compilers. */
18415 # include <limits.h>
18417 # include <assert.h>
18419 /* Override any gcc2 internal prototype to avoid an error. */
18424 /* We use char because int might match the return type of a gcc2
18425 builtin and then its argument prototype would still apply. */
18427 /* The GNU C library defines this for functions which it implements
18428 to always fail with ENOSYS. Some functions are actually named
18429 something starting with __ and the normal name is an alias. */
18430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18433 char (*f) () = $ac_func;
18442 return f != $ac_func;
18447 rm -f conftest.
$ac_objext conftest
$ac_exeext
18448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18449 (eval $ac_link) 2>&5
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); } &&
18453 { ac_try
='test -s conftest$ac_exeext'
18454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18455 (eval $ac_try) 2>&5
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); }; }; then
18459 eval "$as_ac_var=yes"
18461 echo "$as_me: failed program was:" >&5
18462 sed 's/^/| /' conftest.
$ac_ext >&5
18464 eval "$as_ac_var=no"
18466 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
18468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18469 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18470 if test `eval echo '${'$as_ac_var'}'` = yes; then
18471 cat >>confdefs.h
<<_ACEOF
18472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18478 if test "x$ac_cv_func_fork" = xyes
; then
18479 echo "$as_me:$LINENO: checking for working fork" >&5
18480 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
18481 if test "${ac_cv_func_fork_works+set}" = set; then
18482 echo $ECHO_N "(cached) $ECHO_C" >&6
18484 if test "$cross_compiling" = yes; then
18485 ac_cv_func_fork_works
=cross
18487 cat >conftest.
$ac_ext <<_ACEOF
18488 /* By Ruediger Kuhlmann. */
18489 #include <sys/types.h>
18491 # include <unistd.h>
18493 /* Some systems only have a dummy stub for fork() */
18501 rm -f conftest
$ac_exeext
18502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18503 (eval $ac_link) 2>&5
18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18508 (eval $ac_try) 2>&5
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); }; }; then
18512 ac_cv_func_fork_works
=yes
18514 echo "$as_me: program exited with status $ac_status" >&5
18515 echo "$as_me: failed program was:" >&5
18516 sed 's/^/| /' conftest.
$ac_ext >&5
18518 ( exit $ac_status )
18519 ac_cv_func_fork_works
=no
18521 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18524 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
18525 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
18528 ac_cv_func_fork_works
=$ac_cv_func_fork
18530 if test "x$ac_cv_func_fork_works" = xcross
; then
18532 *-*-amigaos* |
*-*-msdosdjgpp*)
18533 # Override, as these systems have only a dummy fork() stub
18534 ac_cv_func_fork_works
=no
18537 ac_cv_func_fork_works
=yes
18540 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18541 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18543 ac_cv_func_vfork_works
=$ac_cv_func_vfork
18544 if test "x$ac_cv_func_vfork" = xyes
; then
18545 echo "$as_me:$LINENO: checking for working vfork" >&5
18546 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
18547 if test "${ac_cv_func_vfork_works+set}" = set; then
18548 echo $ECHO_N "(cached) $ECHO_C" >&6
18550 if test "$cross_compiling" = yes; then
18551 ac_cv_func_vfork_works
=cross
18553 cat >conftest.
$ac_ext <<_ACEOF
18554 #line $LINENO "configure"
18557 cat confdefs.h
>>conftest.
$ac_ext
18558 cat >>conftest.
$ac_ext <<_ACEOF
18559 /* end confdefs.h. */
18560 /* Thanks to Paul Eggert for this test. */
18562 #include <stdlib.h>
18563 #include <sys/types.h>
18564 #include <sys/stat.h>
18565 #include <sys/wait.h>
18567 # include <unistd.h>
18570 # include <vfork.h>
18572 /* On some sparc systems, changes by the child to local and incoming
18573 argument registers are propagated back to the parent. The compiler
18574 is told about this with #include <vfork.h>, but some compilers
18575 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18576 static variable whose address is put into a register that is
18577 clobbered by the vfork. */
18580 sparc_address_test (int arg)
18582 sparc_address_test (arg) int arg;
18585 static pid_t child;
18603 pid_t parent = getpid ();
18606 sparc_address_test (0);
18611 /* Here is another test for sparc vfork register problems. This
18612 test uses lots of local variables, at least as many local
18613 variables as main has allocated so far including compiler
18614 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18615 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18616 reuse the register of parent for one of the local variables,
18617 since it will think that parent can't possibly be used any more
18618 in this routine. Assigning to the local variable will thus
18619 munge parent in the parent process. */
18621 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18622 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18623 /* Convince the compiler that p..p7 are live; otherwise, it might
18624 use the same hardware register for all 8 local variables. */
18625 if (p != p1 || p != p2 || p != p3 || p != p4
18626 || p != p5 || p != p6 || p != p7)
18629 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18630 from child file descriptors. If the child closes a descriptor
18631 before it execs or exits, this munges the parent's descriptor
18632 as well. Test for this by closing stdout in the child. */
18633 _exit(close(fileno(stdout)) != 0);
18638 while (wait(&status) != child)
18641 /* Was there some problem with vforking? */
18644 /* Did the child fail? (This shouldn't happen.) */
18647 /* Did the vfork/compiler bug occur? */
18648 || parent != getpid()
18650 /* Did the file descriptor bug occur? */
18651 || fstat(fileno(stdout), &st) != 0
18656 rm -f conftest
$ac_exeext
18657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18658 (eval $ac_link) 2>&5
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18663 (eval $ac_try) 2>&5
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); }; }; then
18667 ac_cv_func_vfork_works
=yes
18669 echo "$as_me: program exited with status $ac_status" >&5
18670 echo "$as_me: failed program was:" >&5
18671 sed 's/^/| /' conftest.
$ac_ext >&5
18673 ( exit $ac_status )
18674 ac_cv_func_vfork_works
=no
18676 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18679 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
18680 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
18683 if test "x$ac_cv_func_fork_works" = xcross
; then
18684 ac_cv_func_vfork_works
=ac_cv_func_vfork
18685 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18686 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18689 if test "x$ac_cv_func_vfork_works" = xyes
; then
18691 cat >>confdefs.h
<<\_ACEOF
18692 #define HAVE_WORKING_VFORK 1
18697 cat >>confdefs.h
<<\_ACEOF
18702 if test "x$ac_cv_func_fork_works" = xyes
; then
18704 cat >>confdefs.h
<<\_ACEOF
18705 #define HAVE_WORKING_FORK 1
18711 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
18712 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
18713 if test "${emacs_cv_langinfo_codeset+set}" = set; then
18714 echo $ECHO_N "(cached) $ECHO_C" >&6
18716 cat >conftest.
$ac_ext <<_ACEOF
18717 #line $LINENO "configure"
18720 cat confdefs.h
>>conftest.
$ac_ext
18721 cat >>conftest.
$ac_ext <<_ACEOF
18722 /* end confdefs.h. */
18723 #include <langinfo.h>
18727 char* cs = nl_langinfo(CODESET);
18732 rm -f conftest.
$ac_objext conftest
$ac_exeext
18733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18734 (eval $ac_link) 2>&5
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); } &&
18738 { ac_try
='test -s conftest$ac_exeext'
18739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18740 (eval $ac_try) 2>&5
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); }; }; then
18744 emacs_cv_langinfo_codeset
=yes
18746 echo "$as_me: failed program was:" >&5
18747 sed 's/^/| /' conftest.
$ac_ext >&5
18749 emacs_cv_langinfo_codeset
=no
18751 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
18754 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
18755 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
18756 if test $emacs_cv_langinfo_codeset = yes; then
18758 cat >>confdefs.h
<<\_ACEOF
18759 #define HAVE_LANGINFO_CODESET 1
18764 echo "$as_me:$LINENO: checking for size_t" >&5
18765 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18766 if test "${ac_cv_type_size_t+set}" = set; then
18767 echo $ECHO_N "(cached) $ECHO_C" >&6
18769 cat >conftest.
$ac_ext <<_ACEOF
18770 #line $LINENO "configure"
18773 cat confdefs.h
>>conftest.
$ac_ext
18774 cat >>conftest.
$ac_ext <<_ACEOF
18775 /* end confdefs.h. */
18776 $ac_includes_default
18782 if (sizeof (size_t))
18788 rm -f conftest.
$ac_objext
18789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18790 (eval $ac_compile) 2>&5
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); } &&
18794 { ac_try
='test -s conftest.$ac_objext'
18795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18796 (eval $ac_try) 2>&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); }; }; then
18800 ac_cv_type_size_t
=yes
18802 echo "$as_me: failed program was:" >&5
18803 sed 's/^/| /' conftest.
$ac_ext >&5
18805 ac_cv_type_size_t
=no
18807 rm -f conftest.
$ac_objext conftest.
$ac_ext
18809 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18810 echo "${ECHO_T}$ac_cv_type_size_t" >&6
18811 if test $ac_cv_type_size_t = yes; then
18813 cat >>confdefs.h
<<_ACEOF
18814 #define HAVE_SIZE_T 1
18821 echo "$as_me:$LINENO: checking for mbstate_t" >&5
18822 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
18823 if test "${ac_cv_type_mbstate_t+set}" = set; then
18824 echo $ECHO_N "(cached) $ECHO_C" >&6
18826 cat >conftest.
$ac_ext <<_ACEOF
18827 #line $LINENO "configure"
18830 cat confdefs.h
>>conftest.
$ac_ext
18831 cat >>conftest.
$ac_ext <<_ACEOF
18832 /* end confdefs.h. */
18833 $ac_includes_default
18834 # include <wchar.h>
18838 mbstate_t x; return sizeof x;
18843 rm -f conftest.
$ac_objext
18844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18845 (eval $ac_compile) 2>&5
18847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); } &&
18849 { ac_try
='test -s conftest.$ac_objext'
18850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18851 (eval $ac_try) 2>&5
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); }; }; then
18855 ac_cv_type_mbstate_t
=yes
18857 echo "$as_me: failed program was:" >&5
18858 sed 's/^/| /' conftest.
$ac_ext >&5
18860 ac_cv_type_mbstate_t
=no
18862 rm -f conftest.
$ac_objext conftest.
$ac_ext
18864 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
18865 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
18866 if test $ac_cv_type_mbstate_t = yes; then
18868 cat >>confdefs.h
<<\_ACEOF
18869 #define HAVE_MBSTATE_T 1
18874 cat >>confdefs.h
<<\_ACEOF
18875 #define mbstate_t int
18880 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
18881 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
18882 if test "${emacs_cv_c_restrict+set}" = set; then
18883 echo $ECHO_N "(cached) $ECHO_C" >&6
18885 cat >conftest.
$ac_ext <<_ACEOF
18886 #line $LINENO "configure"
18889 cat confdefs.h
>>conftest.
$ac_ext
18890 cat >>conftest.
$ac_ext <<_ACEOF
18891 /* end confdefs.h. */
18892 void fred (int *restrict x);
18901 rm -f conftest.
$ac_objext
18902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18903 (eval $ac_compile) 2>&5
18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); } &&
18907 { ac_try
='test -s conftest.$ac_objext'
18908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18909 (eval $ac_try) 2>&5
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); }; }; then
18913 emacs_cv_c_restrict
=yes
18915 echo "$as_me: failed program was:" >&5
18916 sed 's/^/| /' conftest.
$ac_ext >&5
18918 cat >conftest.
$ac_ext <<_ACEOF
18919 #line $LINENO "configure"
18922 cat confdefs.h
>>conftest.
$ac_ext
18923 cat >>conftest.
$ac_ext <<_ACEOF
18924 /* end confdefs.h. */
18925 void fred (int *__restrict x);
18934 rm -f conftest.
$ac_objext
18935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18936 (eval $ac_compile) 2>&5
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); } &&
18940 { ac_try
='test -s conftest.$ac_objext'
18941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18942 (eval $ac_try) 2>&5
18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); }; }; then
18946 emacs_cv_c_restrict
=__restrict
18948 echo "$as_me: failed program was:" >&5
18949 sed 's/^/| /' conftest.
$ac_ext >&5
18951 emacs_cv_c_restrict
=no
18953 rm -f conftest.
$ac_objext conftest.
$ac_ext
18955 rm -f conftest.
$ac_objext conftest.
$ac_ext
18957 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
18958 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
18959 case "$emacs_cv_c_restrict" in
18960 yes) emacs_restrict
=restrict
;;
18961 no
) emacs_restrict
="";;
18962 *) emacs_restrict
="$emacs_cv_c_restrict";;
18964 if test "$emacs_restrict" != __restrict
; then
18966 cat >>confdefs.h
<<_ACEOF
18967 #define __restrict $emacs_restrict
18972 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
18973 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
18974 if test "${emacs_cv_c_restrict_arr+set}" = set; then
18975 echo $ECHO_N "(cached) $ECHO_C" >&6
18977 cat >conftest.
$ac_ext <<_ACEOF
18978 #line $LINENO "configure"
18981 cat confdefs.h
>>conftest.
$ac_ext
18982 cat >>conftest.
$ac_ext <<_ACEOF
18983 /* end confdefs.h. */
18984 void fred (int x[__restrict]);
18993 rm -f conftest.
$ac_objext
18994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18995 (eval $ac_compile) 2>&5
18997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); } &&
18999 { ac_try
='test -s conftest.$ac_objext'
19000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19001 (eval $ac_try) 2>&5
19003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); }; }; then
19005 emacs_cv_c_restrict_arr
=yes
19007 echo "$as_me: failed program was:" >&5
19008 sed 's/^/| /' conftest.
$ac_ext >&5
19010 emacs_cv_c_restrict_arr
=no
19012 rm -f conftest.
$ac_objext conftest.
$ac_ext
19014 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
19015 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
19016 if test "$emacs_cv_c_restrict_arr" = yes; then
19018 cat >>confdefs.h
<<\_ACEOF
19019 #define __restrict_arr __restrict
19026 # Set up the CFLAGS for real compilation, so we can substitute it.
19027 CFLAGS
="$REAL_CFLAGS"
19028 CPPFLAGS
="$REAL_CPPFLAGS"
19030 #### Find out which version of Emacs this is.
19031 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
19032 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
19033 if test x
"${version}" = x
; then
19034 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
19035 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
19036 { (exit 1); exit 1; }; }
19039 ### Specify what sort of things we'll be editing into Makefile and config.h.
19040 ### Use configuration here uncanonicalized to avoid exceeding size limits.
19076 cat >>confdefs.h
<<_ACEOF
19077 #define EMACS_CONFIGURATION "${canonical}"
19081 cat >>confdefs.h
<<_ACEOF
19082 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
19086 cat >>confdefs.h
<<_ACEOF
19087 #define config_machfile "${machfile}"
19091 cat >>confdefs.h
<<_ACEOF
19092 #define config_opsysfile "${opsysfile}"
19096 cat >>confdefs.h
<<_ACEOF
19097 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
19101 cat >>confdefs.h
<<_ACEOF
19102 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
19106 cat >>confdefs.h
<<_ACEOF
19107 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
19111 cat >>confdefs.h
<<_ACEOF
19112 #define UNEXEC_SRC ${UNEXEC_SRC}
19116 if test "${HAVE_X_WINDOWS}" = "yes" ; then
19118 cat >>confdefs.h
<<\_ACEOF
19119 #define HAVE_X_WINDOWS 1
19123 if test "${USE_X_TOOLKIT}" != "none" ; then
19125 cat >>confdefs.h
<<\_ACEOF
19126 #define USE_X_TOOLKIT 1
19130 if test "${HAVE_X11}" = "yes" ; then
19132 cat >>confdefs.h
<<\_ACEOF
19137 if test "${HAVE_XFREE386}" = "yes" ; then
19139 cat >>confdefs.h
<<\_ACEOF
19140 #define HAVE_XFREE386 1
19144 if test "${HAVE_MENUS}" = "yes" ; then
19146 cat >>confdefs.h
<<\_ACEOF
19147 #define HAVE_MENUS 1
19151 if test "${GNU_MALLOC}" = "yes" ; then
19153 cat >>confdefs.h
<<\_ACEOF
19154 #define GNU_MALLOC 1
19158 if test "${REL_ALLOC}" = "yes" ; then
19160 cat >>confdefs.h
<<\_ACEOF
19161 #define REL_ALLOC 1
19170 #### Report on what we decided to do.
19171 #### Report GTK as a toolkit, even if it doesn't use Xt.
19172 #### It makes printing result more understandable as using GTK sets
19173 #### toolkit_scroll_bars to yes by default.
19174 if test "${HAVE_GTK}" = "yes"; then
19179 Configured for \`${canonical}'.
19181 Where should the build process find the source code? ${srcdir}
19182 What operating system and machine description files should Emacs use?
19183 \`${opsysfile}' and \`${machfile}'
19184 What compiler should emacs be built with? ${CC} ${CFLAGS}
19185 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
19186 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
19187 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
19188 What window system should Emacs use? ${window_system}
19189 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
19191 if test -n "${x_includes}"; then
19192 echo " Where do we find X Windows header files? ${x_includes}"
19194 echo " Where do we find X Windows header files? Standard dirs"
19196 if test -n "${x_libraries}"; then
19197 echo " Where do we find X Windows libraries? ${x_libraries}"
19199 echo " Where do we find X Windows libraries? Standard dirs"
19202 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
19203 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
19204 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
19205 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
19206 echo " Does Emacs use -lungif? ${HAVE_GIF}"
19207 echo " Does Emacs use -lpng? ${HAVE_PNG}"
19208 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
19211 # Remove any trailing slashes in these variables.
19212 test "${prefix}" != NONE
&&
19213 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
19214 test "${exec_prefix}" != NONE
&&
19215 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
19217 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
19218 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
19219 ## from Makefile.c can correctly provide the arg `-traditional' to the
19222 cat >conftest.
$ac_ext <<_ACEOF
19223 #line $LINENO "configure"
19226 cat confdefs.h
>>conftest.
$ac_ext
19227 cat >>conftest.
$ac_ext <<_ACEOF
19228 /* end confdefs.h. */
19231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19232 $EGREP "yes..yes" >/dev
/null
2>&1; then
19233 CPP_NEED_TRADITIONAL
=no
19235 CPP_NEED_TRADITIONAL
=yes
19240 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"
19241 ac_config_commands
="$ac_config_commands default"
19242 cat >confcache
<<\_ACEOF
19243 # This file is a shell script that caches the results of configure
19244 # tests run on this system so they can be shared between configure
19245 # scripts and configure runs, see configure's option --config-cache.
19246 # It is not useful on other systems. If it contains results you don't
19247 # want to keep, you may remove or edit it.
19249 # config.status only pays attention to the cache file if you give it
19250 # the --recheck option to rerun configure.
19252 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19253 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19254 # following values.
19258 # The following way of writing the cache mishandles newlines in values,
19259 # but we know of no workaround that is simple, portable, and efficient.
19260 # So, don't put newlines in cache variables' values.
19261 # Ultrix sh set writes to stderr and can't be redirected directly,
19262 # and sets the high bit in the cache file unless we assign to the vars.
19265 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19267 # `set' does not quote correctly, so add quotes (double-quote
19268 # substitution turns \\\\ into \\, and sed turns \\ into \).
19271 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19274 # `set' quotes correctly as required by POSIX, so do not add quotes.
19276 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19283 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19285 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19287 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
19288 if test -w $cache_file; then
19289 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19290 cat confcache
>$cache_file
19292 echo "not updating unwritable cache $cache_file"
19297 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19298 # Let make expand exec_prefix.
19299 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19301 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19302 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19303 # trailing colons and then remove the whole line if VPATH becomes empty
19304 # (actually we leave an empty line to preserve line numbers).
19305 if test "x$srcdir" = x.
; then
19306 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
19307 s/:*\$(srcdir):*/:/;
19308 s/:*\${srcdir}:*/:/;
19310 s/^\([^=]*=[ ]*\):*/\1/;
19316 DEFS
=-DHAVE_CONFIG_H
19320 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19321 # 1. Remove the extension, and $U if already installed.
19322 ac_i
=`echo "$ac_i" |
19323 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19325 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
19326 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
19328 LIBOBJS
=$ac_libobjs
19330 LTLIBOBJS
=$ac_ltlibobjs
19334 : ${CONFIG_STATUS=./config.status}
19335 ac_clean_files_save
=$ac_clean_files
19336 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19337 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19338 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19339 cat >$CONFIG_STATUS <<_ACEOF
19341 # Generated by $as_me.
19342 # Run this file to recreate the current configuration.
19343 # Compiler output produced by configure, useful for debugging
19344 # configure, is in config.log if it exists.
19347 ac_cs_recheck=false
19349 SHELL=\${CONFIG_SHELL-$SHELL}
19352 cat >>$CONFIG_STATUS <<\_ACEOF
19353 ## --------------------- ##
19354 ## M4sh Initialization. ##
19355 ## --------------------- ##
19357 # Be Bourne compatible
19358 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19361 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19362 # is contrary to our usage. Disable this feature.
19363 alias -g '${1+"$@"}'='"$@"'
19364 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
19368 # Support unset when possible.
19369 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
19376 # Work around bugs in pre-3.0 UWIN ksh.
19377 $as_unset ENV MAIL MAILPATH
19384 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19385 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19386 LC_TELEPHONE LC_TIME
19388 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19389 eval $as_var=C
; export $as_var
19395 # Required to use basename.
19396 if expr a
: '\(a\)' >/dev
/null
2>&1; then
19402 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
19403 as_basename
=basename
19409 # Name of the executable.
19410 as_me
=`$as_basename "$0" ||
19411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19412 X"$0" : 'X\(//\)$' \| \
19413 X"$0" : 'X\(/\)$' \| \
19414 . : '\(.\)' 2>/dev/null ||
19416 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19417 /^X\/\(\/\/\)$/{ s//\1/; q; }
19418 /^X\/\(\/\).*/{ s//\1/; q; }
19422 # PATH needs CR, and LINENO needs CR and PATH.
19423 # Avoid depending upon Character Ranges.
19424 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19425 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19426 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19427 as_cr_digits
='0123456789'
19428 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19430 # The user is always right.
19431 if test "${PATH_SEPARATOR+set}" != set; then
19432 echo "#! /bin/sh" >conf$$.sh
19433 echo "exit 0" >>conf$$.sh
19435 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
19444 as_lineno_1
=$LINENO
19445 as_lineno_2
=$LINENO
19446 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
19447 test "x$as_lineno_1" != "x$as_lineno_2" &&
19448 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
19449 # Find who we are. Look in the path if we contain no path at all
19452 *[\\/]* ) as_myself
=$0 ;;
19453 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19454 for as_dir
in $PATH
19457 test -z "$as_dir" && as_dir
=.
19458 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
19463 # We did not find ourselves, most probably we were run as `sh COMMAND'
19464 # in which case we are not to be found in the path.
19465 if test "x$as_myself" = x
; then
19468 if test ! -f "$as_myself"; then
19469 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19470 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19471 { (exit 1); exit 1; }; }
19473 case $CONFIG_SHELL in
19475 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19476 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
19479 test -z "$as_dir" && as_dir
=.
19480 for as_base
in sh bash ksh sh5
; do
19483 if ("$as_dir/$as_base" -c '
19484 as_lineno_1=$LINENO
19485 as_lineno_2=$LINENO
19486 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19487 test "x$as_lineno_1" != "x$as_lineno_2" &&
19488 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
19489 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
19490 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
19491 CONFIG_SHELL
=$as_dir/$as_base
19492 export CONFIG_SHELL
19493 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19501 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19502 # uniformly replaced by the line number. The first 'sed' inserts a
19503 # line-number line before each line; the second 'sed' does the real
19504 # work. The second script uses 'N' to pair each line-number line
19505 # with the numbered line, and appends trailing '-' during
19506 # substitution so that $LINENO is not a special case at line end.
19507 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19508 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19509 sed '=' <$as_myself |
19514 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19517 s,^['$as_cr_digits']*\n,,
19518 ' >$as_me.lineno
&&
19519 chmod +x
$as_me.lineno ||
19520 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19521 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19522 { (exit 1); exit 1; }; }
19524 # Don't try to exec as it changes $[0], causing all sort of problems
19525 # (the dirname of $[0] is not the place where we might find the
19526 # original and so on. Autoconf is especially sensible to this).
19528 # Exit status is that of the last command.
19533 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19534 *c
*,-n*) ECHO_N
= ECHO_C
='
19536 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
19537 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
19540 if expr a
: '\(a\)' >/dev
/null
2>&1; then
19546 rm -f conf$$ conf$$.exe conf$$.
file
19548 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19549 # We could just check for DJGPP; but this test a) works b) is more generic
19550 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19551 if test -f conf$$.exe
; then
19552 # Don't use ln at all; we don't have any links
19557 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19562 rm -f conf$$ conf$$.exe conf$$.
file
19564 if mkdir
-p .
2>/dev
/null
; then
19570 as_executable_p
="test -f"
19572 # Sed expression to map a string onto a valid CPP name.
19573 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19575 # Sed expression to map a string onto a valid variable name.
19576 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19580 # We need space, tab and new line, in precisely that order.
19590 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19591 # report actual input values of CONFIG_FILES etc. instead of their
19592 # values after options handling. Logging --version etc. is OK.
19596 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19597 ## Running $as_me. ##
19602 This file was extended by $as_me, which was
19603 generated by GNU Autoconf 2.57. Invocation command line was
19605 CONFIG_FILES = $CONFIG_FILES
19606 CONFIG_HEADERS = $CONFIG_HEADERS
19607 CONFIG_LINKS = $CONFIG_LINKS
19608 CONFIG_COMMANDS = $CONFIG_COMMANDS
19612 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19616 # Files that config.status was made for.
19617 if test -n "$ac_config_files"; then
19618 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19621 if test -n "$ac_config_headers"; then
19622 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19625 if test -n "$ac_config_links"; then
19626 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19629 if test -n "$ac_config_commands"; then
19630 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19633 cat >>$CONFIG_STATUS <<\_ACEOF
19636 \`$as_me' instantiates files from templates according to the
19637 current configuration.
19639 Usage: $0 [OPTIONS] [FILE]...
19641 -h, --help print this help, then exit
19642 -V, --version print version number, then exit
19643 -q, --quiet do not print progress messages
19644 -d, --debug don't remove temporary files
19645 --recheck update $as_me by reconfiguring in the same conditions
19646 --file=FILE[:TEMPLATE]
19647 instantiate the configuration file FILE
19648 --header=FILE[:TEMPLATE]
19649 instantiate the configuration header FILE
19651 Configuration files:
19654 Configuration headers:
19657 Configuration commands:
19660 Report bugs to <bug-autoconf@gnu.org>."
19663 cat >>$CONFIG_STATUS <<_ACEOF
19666 configured by $0, generated by GNU Autoconf 2.57,
19667 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19669 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19670 Free Software Foundation, Inc.
19671 This config.status script is free software; the Free Software Foundation
19672 gives unlimited permission to copy, distribute and modify it."
19677 cat >>$CONFIG_STATUS <<\_ACEOF
19678 # If no file are specified by the user, then we need to provide default
19679 # value. By we need to know if files were specified by the user.
19685 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
19686 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
19694 *) # This is not an option, so the user has probably given explicit
19697 ac_need_defaults
=false
;;
19701 # Handling of the options.
19703 cat >>$CONFIG_STATUS <<\_ACEOF
19704 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19706 --version |
--vers* |
-V )
19707 echo "$ac_cs_version"; exit 0 ;;
19709 # Conflict between --help and --header
19710 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19711 Try \`$0 --help' for more information." >&5
19712 echo "$as_me: error: ambiguous option: $1
19713 Try \`$0 --help' for more information." >&2;}
19714 { (exit 1); exit 1; }; };;
19715 --help |
--hel |
-h )
19716 echo "$ac_cs_usage"; exit 0 ;;
19717 --debug |
--d* |
-d )
19719 --file |
--fil |
--fi |
--f )
19721 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
19722 ac_need_defaults
=false
;;
19723 --header |
--heade |
--head |
--hea )
19725 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
19726 ac_need_defaults
=false
;;
19727 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19728 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19731 # This is an error.
19732 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19733 Try \`$0 --help' for more information." >&5
19734 echo "$as_me: error: unrecognized option: $1
19735 Try \`$0 --help' for more information." >&2;}
19736 { (exit 1); exit 1; }; } ;;
19738 *) ac_config_targets
="$ac_config_targets $1" ;;
19744 ac_configure_extra_args
=
19746 if $ac_cs_silent; then
19748 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19752 cat >>$CONFIG_STATUS <<_ACEOF
19753 if \$ac_cs_recheck; then
19754 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19755 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19760 cat >>$CONFIG_STATUS <<_ACEOF
19762 # INIT-COMMANDS section.
19765 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
19771 cat >>$CONFIG_STATUS <<\_ACEOF
19772 for ac_config_target
in $ac_config_targets
19774 case "$ac_config_target" in
19775 # Handling of arguments.
19776 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19777 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
19778 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
19779 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
19780 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
19781 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
19782 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
19783 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
19784 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
19785 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
19786 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
19787 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
19788 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19789 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19790 { (exit 1); exit 1; }; };;
19794 # If the user did not use the arguments to specify the items to instantiate,
19795 # then the envvar interface is used. Set only those that are not.
19796 # We use the long form for the default assignment because of an extremely
19797 # bizarre bug on SunOS 4.1.3.
19798 if $ac_need_defaults; then
19799 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19800 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
19801 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
19804 # Have a temporary directory for convenience. Make it in the build tree
19805 # simply because there is no reason to put it here, and in addition,
19806 # creating and moving files from /tmp can sometimes cause problems.
19807 # Create a temporary directory, and hook for its removal unless debugging.
19810 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19811 trap '{ (exit 1); exit 1; }' 1 2 13 15
19814 # Create a (secure) tmp directory for tmp files.
19817 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19818 test -n "$tmp" && test -d "$tmp"
19821 tmp
=.
/confstat$$
-$RANDOM
19822 (umask 077 && mkdir
$tmp)
19825 echo "$me: cannot create a temporary directory in ." >&2
19826 { (exit 1); exit 1; }
19831 cat >>$CONFIG_STATUS <<_ACEOF
19834 # CONFIG_FILES section.
19837 # No need to generate the scripts if there are no CONFIG_FILES.
19838 # This happens for instance when ./config.status config.h
19839 if test -n "\$CONFIG_FILES"; then
19840 # Protect against being on the right side of a sed subst in config.status.
19841 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19842 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19843 s,@SHELL@,$SHELL,;t t
19844 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19845 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19846 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19847 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19848 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19849 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19850 s,@exec_prefix@,$exec_prefix,;t t
19851 s,@prefix@,$prefix,;t t
19852 s,@program_transform_name@,$program_transform_name,;t t
19853 s,@bindir@,$bindir,;t t
19854 s,@sbindir@,$sbindir,;t t
19855 s,@libexecdir@,$libexecdir,;t t
19856 s,@datadir@,$datadir,;t t
19857 s,@sysconfdir@,$sysconfdir,;t t
19858 s,@sharedstatedir@,$sharedstatedir,;t t
19859 s,@localstatedir@,$localstatedir,;t t
19860 s,@libdir@,$libdir,;t t
19861 s,@includedir@,$includedir,;t t
19862 s,@oldincludedir@,$oldincludedir,;t t
19863 s,@infodir@,$infodir,;t t
19864 s,@mandir@,$mandir,;t t
19865 s,@build_alias@,$build_alias,;t t
19866 s,@host_alias@,$host_alias,;t t
19867 s,@target_alias@,$target_alias,;t t
19868 s,@DEFS@,$DEFS,;t t
19869 s,@ECHO_C@,$ECHO_C,;t t
19870 s,@ECHO_N@,$ECHO_N,;t t
19871 s,@ECHO_T@,$ECHO_T,;t t
19872 s,@LIBS@,$LIBS,;t t
19873 s,@MAINT@,$MAINT,;t t
19874 s,@build@,$build,;t t
19875 s,@build_cpu@,$build_cpu,;t t
19876 s,@build_vendor@,$build_vendor,;t t
19877 s,@build_os@,$build_os,;t t
19878 s,@host@,$host,;t t
19879 s,@host_cpu@,$host_cpu,;t t
19880 s,@host_vendor@,$host_vendor,;t t
19881 s,@host_os@,$host_os,;t t
19883 s,@CFLAGS@,$CFLAGS,;t t
19884 s,@LDFLAGS@,$LDFLAGS,;t t
19885 s,@CPPFLAGS@,$CPPFLAGS,;t t
19886 s,@ac_ct_CC@,$ac_ct_CC,;t t
19887 s,@EXEEXT@,$EXEEXT,;t t
19888 s,@OBJEXT@,$OBJEXT,;t t
19889 s,@LN_S@,$LN_S,;t t
19891 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19892 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19893 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19894 s,@RANLIB@,$RANLIB,;t t
19895 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19896 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
19897 s,@EGREP@,$EGREP,;t t
19898 s,@LIBSOUND@,$LIBSOUND,;t t
19899 s,@SET_MAKE@,$SET_MAKE,;t t
19900 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19901 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
19902 s,@GTK_LIBS@,$GTK_LIBS,;t t
19903 s,@ALLOCA@,$ALLOCA,;t t
19904 s,@liblockfile@,$liblockfile,;t t
19905 s,@LIBOBJS@,$LIBOBJS,;t t
19906 s,@NEED_SETGID@,$NEED_SETGID,;t t
19907 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
19908 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
19909 s,@version@,$version,;t t
19910 s,@configuration@,$configuration,;t t
19911 s,@canonical@,$canonical,;t t
19912 s,@srcdir@,$srcdir,;t t
19913 s,@lispdir@,$lispdir,;t t
19914 s,@locallisppath@,$locallisppath,;t t
19915 s,@lisppath@,$lisppath,;t t
19916 s,@x_default_search_path@,$x_default_search_path,;t t
19917 s,@etcdir@,$etcdir,;t t
19918 s,@archlibdir@,$archlibdir,;t t
19919 s,@docdir@,$docdir,;t t
19920 s,@bitmapdir@,$bitmapdir,;t t
19921 s,@gamedir@,$gamedir,;t t
19922 s,@gameuser@,$gameuser,;t t
19923 s,@c_switch_system@,$c_switch_system,;t t
19924 s,@c_switch_machine@,$c_switch_machine,;t t
19925 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
19926 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
19927 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
19928 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
19929 s,@machfile@,$machfile,;t t
19930 s,@opsysfile@,$opsysfile,;t t
19931 s,@carbon_appdir@,$carbon_appdir,;t t
19932 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19937 cat >>$CONFIG_STATUS <<\_ACEOF
19938 # Split the substitutions into bite-sized pieces for seds with
19939 # small command number limits, like on Digital OSF/1 and HP-UX.
19940 ac_max_sed_lines
=48
19941 ac_sed_frag
=1 # Number of current file.
19942 ac_beg
=1 # First line for current file.
19943 ac_end
=$ac_max_sed_lines # Line after last line for current file.
19946 while $ac_more_lines; do
19947 if test $ac_beg -gt 1; then
19948 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
19950 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
19952 if test ! -s $tmp/subs.frag
; then
19953 ac_more_lines
=false
19955 # The purpose of the label and of the branching condition is to
19956 # speed up the sed processing (if there are no `@' at all, there
19957 # is no need to browse any of the substitutions).
19958 # These are the two extra sed commands mentioned above.
19960 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
19961 if test -z "$ac_sed_cmds"; then
19962 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
19964 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19966 ac_sed_frag
=`expr $ac_sed_frag + 1`
19968 ac_end
=`expr $ac_end + $ac_max_sed_lines`
19971 if test -z "$ac_sed_cmds"; then
19974 fi # test -n "$CONFIG_FILES"
19977 cat >>$CONFIG_STATUS <<\_ACEOF
19978 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
19979 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19981 - |
*:- |
*:-:* ) # input from stdin
19983 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19984 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19985 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19986 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19987 * ) ac_file_in
=$ac_file.
in ;;
19990 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19991 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
19992 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19993 X"$ac_file" : 'X\(//\)[^/]' \| \
19994 X"$ac_file" : 'X\(//\)$' \| \
19995 X"$ac_file" : 'X\(/\)' \| \
19996 . : '\(.\)' 2>/dev/null ||
19998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19999 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20000 /^X\(\/\/\)$/{ s//\1/; q; }
20001 /^X\(\/\).*/{ s//\1/; q; }
20003 { if $as_mkdir_p; then
20008 while test ! -d "$as_dir"; do
20009 as_dirs
="$as_dir $as_dirs"
20010 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20011 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20012 X"$as_dir" : 'X\(//\)[^/]' \| \
20013 X"$as_dir" : 'X\(//\)$' \| \
20014 X"$as_dir" : 'X\(/\)' \| \
20015 . : '\(.\)' 2>/dev/null ||
20017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20018 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20019 /^X\(\/\/\)$/{ s//\1/; q; }
20020 /^X\(\/\).*/{ s//\1/; q; }
20023 test ! -n "$as_dirs" || mkdir
$as_dirs
20024 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20025 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20026 { (exit 1); exit 1; }; }; }
20030 if test "$ac_dir" != .
; then
20031 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20032 # A "../" for each directory in $ac_dir_suffix.
20033 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20035 ac_dir_suffix
= ac_top_builddir
=
20039 .
) # No --srcdir option. We are building in place.
20041 if test -z "$ac_top_builddir"; then
20044 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
20046 [\\/]* | ?
:[\\/]* ) # Absolute path.
20047 ac_srcdir
=$srcdir$ac_dir_suffix;
20048 ac_top_srcdir
=$srcdir ;;
20049 *) # Relative path.
20050 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
20051 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
20053 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20055 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
20056 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20057 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20058 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20062 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20063 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
20066 if test x
"$ac_file" != x-
; then
20067 { echo "$as_me:$LINENO: creating $ac_file" >&5
20068 echo "$as_me: creating $ac_file" >&6;}
20071 # Let's still pretend it is `configure' which instantiates (i.e., don't
20072 # use $as_me), people would be surprised to read:
20073 # /* config.h. Generated by config.status. */
20074 if test x
"$ac_file" = x-
; then
20077 configure_input
="$ac_file. "
20079 configure_input
=$configure_input"Generated from `echo $ac_file_in |
20080 sed 's,.*/,,'` by configure."
20082 # First look for the input files in the build tree, otherwise in the
20084 ac_file_inputs
=`IFS=:
20085 for f in $ac_file_in; do
20087 -) echo $tmp/stdin ;;
20089 # Absolute (can't be DOS-style, as IFS=:)
20090 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20091 echo "$as_me: error: cannot find input file: $f" >&2;}
20092 { (exit 1); exit 1; }; }
20095 if test -f "$f"; then
20098 elif test -f "$srcdir/$f"; then
20103 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20104 echo "$as_me: error: cannot find input file: $f" >&2;}
20105 { (exit 1); exit 1; }; }
20108 done` ||
{ (exit 1); exit 1; }
20110 cat >>$CONFIG_STATUS <<_ACEOF
20114 cat >>$CONFIG_STATUS <<\_ACEOF
20116 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20117 s
,@configure_input@
,$configure_input,;t t
20118 s
,@srcdir@
,$ac_srcdir,;t t
20119 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
20120 s
,@top_srcdir@
,$ac_top_srcdir,;t t
20121 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
20122 s
,@builddir@
,$ac_builddir,;t t
20123 s
,@abs_builddir@
,$ac_abs_builddir,;t t
20124 s
,@top_builddir@
,$ac_top_builddir,;t t
20125 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
20126 s
,@INSTALL@
,$ac_INSTALL,;t t
20127 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20129 if test x"$ac_file" != x-; then
20130 mv $tmp/out $ac_file
20138 cat >>$CONFIG_STATUS <<\_ACEOF
20141 # CONFIG_HEADER section.
20144 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
20145 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20147 # ac_d sets the value in "#define NAME VALUE" lines.
20148 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20149 ac_dB
='[ ].*$,\1#\2'
20152 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20153 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20154 ac_uB
='$,\1#\2define\3'
20158 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
20159 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20161 - |
*:- |
*:-:* ) # input from stdin
20163 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20164 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20165 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20166 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20167 * ) ac_file_in
=$ac_file.
in ;;
20170 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
20171 echo "$as_me: creating $ac_file" >&6;}
20173 # First look for the input files in the build tree, otherwise in the
20175 ac_file_inputs
=`IFS=:
20176 for f in $ac_file_in; do
20178 -) echo $tmp/stdin ;;
20180 # Absolute (can't be DOS-style, as IFS=:)
20181 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20182 echo "$as_me: error: cannot find input file: $f" >&2;}
20183 { (exit 1); exit 1; }; }
20186 if test -f "$f"; then
20189 elif test -f "$srcdir/$f"; then
20194 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20195 echo "$as_me: error: cannot find input file: $f" >&2;}
20196 { (exit 1); exit 1; }; }
20199 done` ||
{ (exit 1); exit 1; }
20200 # Remove the trailing spaces.
20201 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20205 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20206 # `conftest.undefs', that substitutes the proper values into
20207 # config.h.in to produce config.h. The first handles `#define'
20208 # templates, and the second `#undef' templates.
20209 # And first: Protect against being on the right side of a sed subst in
20210 # config.status. Protect against being in an unquoted here document
20211 # in config.status.
20212 rm -f conftest.defines conftest.undefs
20213 # Using a here document instead of a string reduces the quoting nightmare.
20214 # Putting comments in sed scripts is not portable.
20216 # `end' is used to avoid that the second main sed command (meant for
20217 # 0-ary CPP macros) applies to n-ary macro definitions.
20218 # See the Autoconf documentation for `clear'.
20219 cat >confdef2sed.
sed <<\_ACEOF
20224 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20226 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20229 # If some macros were called several times there might be several times
20230 # the same #defines, which is useless. Nevertheless, we may not want to
20231 # sort them, since we want the *last* AC-DEFINE to be honored.
20232 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20233 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20234 rm -f confdef2sed.sed
20236 # This sed command replaces #undef with comments. This is necessary, for
20237 # example, in the case of _POSIX_SOURCE, which is predefined and required
20238 # on some systems where configure will not decide to define it.
20239 cat >>conftest.undefs <<\_ACEOF
20240 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20243 # Break up conftest.defines because some shells have a limit on the size
20244 # of here documents, and old seds have small limits too (100 cmds).
20245 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20246 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20247 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20248 echo ' :' >>$CONFIG_STATUS
20249 rm -f conftest.tail
20250 while grep . conftest.defines >/dev/null
20252 # Write a limited-size here document to $tmp/defines.sed.
20253 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20254 # Speed up: don't consider the non `#define' lines.
20255 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20256 # Work around the forget-to-reset-the-flag bug.
20257 echo 't clr' >>$CONFIG_STATUS
20258 echo ': clr' >>$CONFIG_STATUS
20259 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
20261 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20263 mv $tmp/out $tmp/in
20265 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
20266 rm -f conftest.defines
20267 mv conftest.
tail conftest.defines
20269 rm -f conftest.defines
20270 echo ' fi # grep' >>$CONFIG_STATUS
20271 echo >>$CONFIG_STATUS
20273 # Break up conftest.undefs because some shells have a limit on the size
20274 # of here documents, and old seds have small limits too (100 cmds).
20275 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20276 rm -f conftest.
tail
20277 while grep . conftest.undefs
>/dev
/null
20279 # Write a limited-size here document to $tmp/undefs.sed.
20280 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20281 # Speed up: don't consider the non
`#undef'
20282 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20283 # Work around the forget-to-reset-the-flag bug.
20284 echo 't clr' >>$CONFIG_STATUS
20285 echo ': clr' >>$CONFIG_STATUS
20286 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20288 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20290 mv $tmp/out $tmp/in
20292 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20293 rm -f conftest.undefs
20294 mv conftest.tail conftest.undefs
20296 rm -f conftest.undefs
20298 cat >>$CONFIG_STATUS <<\_ACEOF
20299 # Let's still pretend it is `configure
' which instantiates (i.e., don't
20300 # use $as_me), people would be surprised to read:
20301 # /* config.h. Generated by config.status. */
20302 if test x
"$ac_file" = x-
; then
20303 echo "/* Generated by configure. */" >$tmp/config.h
20305 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20307 cat $tmp/in >>$tmp/config.h
20309 if test x
"$ac_file" != x-
; then
20310 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
20311 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20312 echo "$as_me: $ac_file is unchanged" >&6;}
20314 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
20315 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20316 X"$ac_file" : 'X\(//\)[^/]' \| \
20317 X"$ac_file" : 'X\(//\)$' \| \
20318 X"$ac_file" : 'X\(/\)' \| \
20319 . : '\(.\)' 2>/dev/null ||
20321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20322 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20323 /^X\(\/\/\)$/{ s//\1/; q; }
20324 /^X\(\/\).*/{ s//\1/; q; }
20326 { if $as_mkdir_p; then
20331 while test ! -d "$as_dir"; do
20332 as_dirs
="$as_dir $as_dirs"
20333 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20335 X"$as_dir" : 'X\(//\)[^/]' \| \
20336 X"$as_dir" : 'X\(//\)$' \| \
20337 X"$as_dir" : 'X\(/\)' \| \
20338 . : '\(.\)' 2>/dev/null ||
20340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20341 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20342 /^X\(\/\/\)$/{ s//\1/; q; }
20343 /^X\(\/\).*/{ s//\1/; q; }
20346 test ! -n "$as_dirs" || mkdir
$as_dirs
20347 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20348 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20349 { (exit 1); exit 1; }; }; }
20352 mv $tmp/config.h
$ac_file
20356 rm -f $tmp/config.h
20360 cat >>$CONFIG_STATUS <<\_ACEOF
20363 # CONFIG_COMMANDS section.
20365 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
20366 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
20367 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20368 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
20369 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20370 X"$ac_dest" : 'X\(//\)[^/]' \| \
20371 X"$ac_dest" : 'X\(//\)$' \| \
20372 X"$ac_dest" : 'X\(/\)' \| \
20373 . : '\(.\)' 2>/dev/null ||
20375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20376 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20377 /^X\(\/\/\)$/{ s//\1/; q; }
20378 /^X\(\/\).*/{ s//\1/; q; }
20382 if test "$ac_dir" != .
; then
20383 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20384 # A "../" for each directory in $ac_dir_suffix.
20385 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20387 ac_dir_suffix
= ac_top_builddir
=
20391 .
) # No --srcdir option. We are building in place.
20393 if test -z "$ac_top_builddir"; then
20396 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
20398 [\\/]* | ?
:[\\/]* ) # Absolute path.
20399 ac_srcdir
=$srcdir$ac_dir_suffix;
20400 ac_top_srcdir
=$srcdir ;;
20401 *) # Relative path.
20402 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
20403 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
20405 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20407 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
20408 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20409 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20410 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20413 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20414 echo "$as_me: executing $ac_dest commands" >&6;}
20418 ### Make the necessary directories, if they don't exist.
20419 for dir
in etc lisp
; do
20420 test -d ${dir} || mkdir
${dir}
20423 # Build src/Makefile from ${srcdir}/src/Makefile.c
20424 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
20425 # This must be done after src/config.h is built, since we rely on that file.
20427 # Now get this: Some word that is part of the ${srcdir} directory name
20428 # or the ${configuration} value might, just might, happen to be an
20429 # identifier like `sun4' or `i386' or something, and be predefined by
20430 # the C preprocessor to some helpful value like 1, or maybe the empty
20431 # string. Needless to say consequent macro substitutions are less
20432 # than conducive to the makefile finding the correct directory.
20433 undefs
="`echo $top_srcdir $configuration $canonical |
20434 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
20435 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
20438 echo creating src
/epaths.h
20439 ${MAKE-make} epaths-force
20441 # As of 2000-11-19, newest development versions of GNU cpp preprocess
20442 # `..' to `. .' unless invoked with -traditional
20444 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
20445 CPPFLAGS
="$CPPFLAGS -traditional"
20448 echo creating lib-src
/Makefile
20450 rm -f junk.c junk1.c junk2.c
20451 sed -e '/start of cpp stuff/q' \
20452 < Makefile.c
> junk1.c
20453 sed -e '1,/start of cpp stuff/d'\
20454 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
20455 < Makefile.c
> junk.c
20456 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
20457 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
20458 cat junk1.c junk2.c
> Makefile.new
20459 rm -f junk.c junk1.c junk2.c
20460 chmod 444 Makefile.new
20461 mv -f Makefile.new Makefile
20464 echo creating src
/Makefile
20466 rm -f junk.c junk1.c junk2.c
20467 sed -e '/start of cpp stuff/q' \
20468 < Makefile.c
> junk1.c
20469 sed -e '1,/start of cpp stuff/d'\
20470 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
20471 < Makefile.c
> junk.c
20472 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
20473 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
20474 cat junk1.c junk2.c
> Makefile.new
20475 rm -f junk.c junk1.c junk2.c
20476 chmod 444 Makefile.new
20477 mv -f Makefile.new Makefile
20480 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
20481 echo creating src
/.gdbinit
20482 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
20485 # This is how we know whether to re-run configure in certain cases.
20486 touch src
/config.stamp
20493 cat >>$CONFIG_STATUS <<\_ACEOF
20495 { (exit 0); exit 0; }
20497 chmod +x
$CONFIG_STATUS
20498 ac_clean_files
=$ac_clean_files_save
20501 # configure is writing to config.log, and then calls config.status.
20502 # config.status does its own redirection, appending to config.log.
20503 # Unfortunately, on DOS this fails, as config.log is still kept open
20504 # by configure, so config.status won't be able to write to it; its
20505 # output is simply discarded. So we exec the FD to /dev/null,
20506 # effectively closing config.log, so it can be properly (re)opened and
20507 # appended to by config.status. When coming back to configure, we
20508 # need to make the FD available again.
20509 if test "$no_create" != yes; then
20511 ac_config_status_args
=
20512 test "$silent" = yes &&
20513 ac_config_status_args
="$ac_config_status_args --quiet"
20515 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20517 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20518 # would make configure fail if this is the last instruction.
20519 $ac_cs_success ||
{ (exit 1); exit 1; }