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 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 --disable-largefile omit support
for large files
861 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
862 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
863 --without-gcc don
't use GCC to compile Emacs if GCC is found
864 --without-pop don't support POP
mail retrieval with movemail
865 --with-kerberos support Kerberos-authenticated POP
866 --with-kerberos5 support Kerberos version
5 authenticated POP
867 --with-hesiod support Hesiod to get the POP server
host
868 --without-sound don
't compile with sound support
869 --with-x-toolkit=KIT use an X toolkit
870 (KIT = yes/lucid/athena/motif/gtk/no)
871 --with-xpm use -lXpm for displaying XPM images
872 --with-jpeg use -ljpeg for displaying JPEG images
873 --with-tiff use -ltiff for displaying TIFF images
874 --with-gif use -lungif for displaying GIF images
875 --with-png use -lpng for displaying PNG images
876 --with-gtk use GTK (same as --with-x-toolkit=gtk)
877 --with-pkg-config-prog Path to pkg-config to use for finding GTK
878 --without-toolkit-scroll-bars
879 don't use Motif or Xaw3d scroll bars
880 --without-xim don
't use X11 XIM
881 --without-carbon don't use Carbon GUI on Mac OS X
882 --with-x use the X Window System
884 Some influential environment variables
:
885 CC C compiler
command
886 CFLAGS C compiler flags
887 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
888 nonstandard directory
<lib dir
>
889 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
890 headers
in a nonstandard directory
<include dir
>
893 Use these variables to override the choices made by
`configure' or to help
894 it to find libraries and programs with nonstandard names/locations.
899 if test "$ac_init_help" = "recursive"; then
900 # If there are subdirs, report their specific --help.
902 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903 test -d $ac_dir || continue
906 if test "$ac_dir" != .; then
907 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
908 # A "../" for each directory in $ac_dir_suffix.
909 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
911 ac_dir_suffix= ac_top_builddir=
915 .) # No --srcdir option. We are building in place.
917 if test -z "$ac_top_builddir"; then
920 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
922 [\\/]* | ?:[\\/]* ) # Absolute path.
923 ac_srcdir=$srcdir$ac_dir_suffix;
924 ac_top_srcdir=$srcdir ;;
926 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927 ac_top_srcdir=$ac_top_builddir$srcdir ;;
929 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
931 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
932 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}.
&& pwd`
933 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
934 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
937 # Check for guested configure; otherwise get Cygnus style configure.
938 if test -f $ac_srcdir/configure.gnu; then
940 $SHELL $ac_srcdir/configure.gnu --help=recursive
941 elif test -f $ac_srcdir/configure; then
943 $SHELL $ac_srcdir/configure --help=recursive
944 elif test -f $ac_srcdir/configure.ac ||
945 test -f $ac_srcdir/configure.in; then
949 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
955 test -n "$ac_init_help" && exit 0
956 if $ac_init_version; then
959 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
960 Free Software Foundation, Inc.
961 This configure script is free software; the Free Software Foundation
962 gives unlimited permission to copy, distribute and modify it.
968 This file contains any messages produced by compilers while
969 running configure, to aid debugging if configure makes a mistake.
971 It was created by $as_me, which was
972 generated by GNU Autoconf 2.57. Invocation command line was
983 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
984 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
985 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
986 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
987 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
989 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
990 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
992 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
993 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
994 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
995 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
996 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
997 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
998 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1006 test -z "$as_dir" && as_dir=.
1007 echo "PATH: $as_dir"
1022 # Keep a trace of the command line.
1023 # Strip out --no-create and --no-recursion so they do not pile up.
1024 # Strip out --silent because we don't want to record it for future runs.
1025 # Also quote any args containing shell meta-characters.
1026 # Make two passes to allow for proper duplicate-argument suppression.
1031 ac_must_keep_next=false
1037 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1039 | -silent | --silent | --silen | --sile | --sil)
1041 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1042 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1045 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1047 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1048 if test $ac_must_keep_next = true; then
1049 ac_must_keep_next=false # Got value, back to normal.
1052 *=* | --config-cache | -C | -disable-* | --disable-* \
1053 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1054 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1055 | -with-* | --with-* | -without-* | --without-* | --x)
1056 case "$ac_configure_args0 " in
1057 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1060 -* ) ac_must_keep_next=true ;;
1063 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1064 # Get rid of the leading space.
1070 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1071 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1073 # When interrupted or exit'd, cleanup temporary files, and complete
1074 # config.log. We remove comments because anyway the quotes in there
1075 # would cause problems or look ugly.
1076 # WARNING: Be sure not to use single quotes in there, as some shells,
1077 # such as our DU 5.0 friend, will then `close
' the trap.
1078 trap 'exit_status
=$?
1079 # Save into config.log some information that might help in debugging.
1084 ## ---------------- ##
1085 ## Cache variables. ##
1086 ## ---------------- ##
1089 # The following way of writing the cache mishandles newlines in values,
1092 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1095 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1100 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1107 ## ----------------- ##
1108 ## Output variables. ##
1109 ## ----------------- ##
1112 for ac_var
in $ac_subst_vars
1114 eval ac_val
=$
`echo $ac_var`
1115 echo "$ac_var='"'"'$ac_val'"'"'"
1119 if test -n "$ac_subst_files"; then
1126 for ac_var
in $ac_subst_files
1128 eval ac_val
=$
`echo $ac_var`
1129 echo "$ac_var='"'"'$ac_val'"'"'"
1134 if test -s confdefs.h
; then
1141 sed "/^$/d" confdefs.h |
sort
1144 test "$ac_signal" != 0 &&
1145 echo "$as_me: caught signal $ac_signal"
1146 echo "$as_me: exit $exit_status"
1148 rm -f core core.
* *.core
&&
1149 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1152 for ac_signal in 1 2 13 15; do
1153 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1157 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1158 rm -rf conftest* confdefs.h
1159 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1162 # Predefined preprocessor variables.
1164 cat >>confdefs.h <<_ACEOF
1165 #define PACKAGE_NAME "$PACKAGE_NAME"
1169 cat >>confdefs.h <<_ACEOF
1170 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_STRING "$PACKAGE_STRING"
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1189 # Let the site file select an alternate cache file if it wants to.
1190 # Prefer explicitly selected file to automatically selected ones.
1191 if test -z "$CONFIG_SITE"; then
1192 if test "x$prefix" != xNONE; then
1193 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1195 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1198 for ac_site_file in $CONFIG_SITE; do
1199 if test -r "$ac_site_file"; then
1200 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1201 echo "$as_me: loading site script $ac_site_file" >&6;}
1202 sed 's
/^
/|
/' "$ac_site_file" >&5
1207 if test -r "$cache_file"; then
1208 # Some versions of bash will fail to source /dev/null (special
1209 # files actually), so we avoid doing that.
1210 if test -f "$cache_file"; then
1211 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1212 echo "$as_me: loading cache $cache_file" >&6;}
1214 [\\/]* | ?:[\\/]* ) . $cache_file;;
1215 *) . ./$cache_file;;
1219 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1220 echo "$as_me: creating cache $cache_file" >&6;}
1224 # Check that the precious variables saved in the cache have kept the same
1226 ac_cache_corrupted=false
1227 for ac_var in `(set) 2>&1 |
1228 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1229 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1230 eval ac_new_set=\$ac_env_${ac_var}_set
1231 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1232 eval ac_new_val="\$ac_env_${ac_var}_value"
1233 case $ac_old_set,$ac_new_set in
1235 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1236 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1237 ac_cache_corrupted=: ;;
1239 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1240 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1241 ac_cache_corrupted=: ;;
1244 if test "x$ac_old_val" != "x$ac_new_val"; then
1245 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1246 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1247 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1248 echo "$as_me: former value: $ac_old_val" >&2;}
1249 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1250 echo "$as_me: current value: $ac_new_val" >&2;}
1251 ac_cache_corrupted=:
1254 # Pass precious variables to config.status.
1255 if test "$ac_new_set" = set; then
1257 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1258 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1259 *) ac_arg=$ac_var=$ac_new_val ;;
1261 case " $ac_configure_args " in
1262 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1263 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1267 if $ac_cache_corrupted; then
1268 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1269 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1270 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1271 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1272 { (exit 1); exit 1; }; }
1276 ac_cpp='$CPP $CPPFLAGS'
1277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1278 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1299 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1302 test "$program_prefix" != NONE &&
1303 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1304 # Use a double $ so make ignores it.
1305 test "$program_suffix" != NONE &&
1306 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1307 # Double any \ or $. echo might interpret backslashes.
1308 # By default was `s,x,x', remove it
if useless.
1309 cat <<\_ACEOF
>conftest.
sed
1310 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1312 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1316 lispdir
='${datadir}/emacs/${version}/lisp'
1317 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1318 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1319 lisppath
='${locallisppath}:${lispdir}'
1320 etcdir
='${datadir}/emacs/${version}/etc'
1321 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1322 docdir
='${datadir}/emacs/${version}/etc'
1323 gamedir
='${localstatedir}/games/emacs'
1328 # Check whether --with-gcc or --without-gcc was given.
1329 if test "${with_gcc+set}" = set; then
1334 # Check whether --with-pop or --without-pop was given.
1335 if test "${with_pop+set}" = set; then
1337 if test "$withval" = yes; then
1338 cat >>confdefs.h
<<\_ACEOF
1339 #define MAIL_USE_POP 1
1345 cat >>confdefs.h
<<\_ACEOF
1346 #define MAIL_USE_POP 1
1352 # Check whether --with-kerberos or --without-kerberos was given.
1353 if test "${with_kerberos+set}" = set; then
1354 withval
="$with_kerberos"
1355 cat >>confdefs.h
<<\_ACEOF
1362 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1363 if test "${with_kerberos5+set}" = set; then
1364 withval
="$with_kerberos5"
1365 if test "${with_kerberos5+set}" = set; then
1366 if test "${with_kerberos+set}" != set; then
1368 cat >>confdefs.h
<<\_ACEOF
1375 cat >>confdefs.h
<<\_ACEOF
1381 # Check whether --with-hesiod or --without-hesiod was given.
1382 if test "${with_hesiod+set}" = set; then
1383 withval
="$with_hesiod"
1385 cat >>confdefs.h
<<\_ACEOF
1392 # Check whether --with-sound or --without-sound was given.
1393 if test "${with_sound+set}" = set; then
1394 withval
="$with_sound"
1399 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1400 if test "${with_x_toolkit+set}" = set; then
1401 withval
="$with_x_toolkit"
1402 case "${withval}" in
1403 y | ye |
yes ) val
=athena
;;
1405 l | lu | luc | luci | lucid
) val
=lucid
;;
1406 a |
at | ath | athe | athen | athena
) val
=athena
;;
1407 m | mo | mot | moti | motif
) val
=motif
;;
1408 g | gt | gtk
) val
=gtk
;;
1410 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1411 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1412 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1413 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1414 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1415 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1416 { (exit 1); exit 1; }; }
1423 # Check whether --with-xpm or --without-xpm was given.
1424 if test "${with_xpm+set}" = set; then
1429 # Check whether --with-jpeg or --without-jpeg was given.
1430 if test "${with_jpeg+set}" = set; then
1431 withval
="$with_jpeg"
1435 # Check whether --with-tiff or --without-tiff was given.
1436 if test "${with_tiff+set}" = set; then
1437 withval
="$with_tiff"
1441 # Check whether --with-gif or --without-gif was given.
1442 if test "${with_gif+set}" = set; then
1447 # Check whether --with-png or --without-png was given.
1448 if test "${with_png+set}" = set; then
1453 # Check whether --with-gtk or --without-gtk was given.
1454 if test "${with_gtk+set}" = set; then
1459 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1460 if test "${with_pkg_config_prog+set}" = set; then
1461 withval
="$with_pkg_config_prog"
1465 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1466 if test "${with_toolkit_scroll_bars+set}" = set; then
1467 withval
="$with_toolkit_scroll_bars"
1471 # Check whether --with-xim or --without-xim was given.
1472 if test "${with_xim+set}" = set; then
1477 # Check whether --with-carbon or --without-carbon was given.
1478 if test "${with_carbon+set}" = set; then
1479 withval
="$with_carbon"
1482 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1483 if test "${enable_carbon_app+set}" = set; then
1484 enableval
="$enable_carbon_app"
1485 carbon_appdir_x
=${enableval}
1488 #### Make srcdir absolute, if it isn't already. It's important to
1489 #### avoid running the path through pwd unnecessarily, since pwd can
1490 #### give you automounter prefixes, which can go away. We do all this
1491 #### so Emacs can find its files when run uninstalled.
1492 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1497 ## We may be able to use the $PWD environment variable to make this
1498 ## absolute. But sometimes PWD is inaccurate.
1499 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1500 ## but that tested only for a well-formed and valid PWD,
1501 ## it did not object when PWD was well-formed and valid but just wrong.
1502 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1506 srcdir
="`(cd ${srcdir}; pwd)`"
1509 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1512 #### Check if the source directory already has a configured system in it.
1513 if test `pwd` != `(cd ${srcdir} && pwd)` \
1514 && test -f "${srcdir}/src/config.h" ; then
1515 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1516 as a build directory right now; it has been configured in its own
1517 right. To configure in another directory as well, you MUST
1518 use GNU make. If you do not have GNU make, then you must
1519 now do \`make distclean' in ${srcdir},
1520 and then run $0 again." >&5
1521 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1522 as a build directory right now; it has been configured in its own
1523 right. To configure in another directory as well, you MUST
1524 use GNU make. If you do not have GNU make, then you must
1525 now do \`make distclean' in ${srcdir},
1526 and then run $0 again." >&2;}
1528 extrasub
='/^VPATH[ ]*=/c\
1529 vpath %.c $(srcdir)\
1530 vpath %.h $(srcdir)\
1531 vpath %.y $(srcdir)\
1532 vpath %.l $(srcdir)\
1533 vpath %.s $(srcdir)\
1534 vpath %.in $(srcdir)\
1535 vpath %.texi $(srcdir)'
1538 #### Given the configuration name, set machfile and opsysfile to the
1539 #### names of the m/*.h and s/*.h files we should use.
1541 ### Canonicalize the configuration name.
1544 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1545 if test -f $ac_dir/install-sh
; then
1547 ac_install_sh
="$ac_aux_dir/install-sh -c"
1549 elif test -f $ac_dir/install.sh
; then
1551 ac_install_sh
="$ac_aux_dir/install.sh -c"
1553 elif test -f $ac_dir/shtool
; then
1555 ac_install_sh
="$ac_aux_dir/shtool install -c"
1559 if test -z "$ac_aux_dir"; then
1560 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1561 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1562 { (exit 1); exit 1; }; }
1564 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1565 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1566 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1568 # Make sure we can run config.sub.
1569 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1570 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1571 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1572 { (exit 1); exit 1; }; }
1574 echo "$as_me:$LINENO: checking build system type" >&5
1575 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1576 if test "${ac_cv_build+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1579 ac_cv_build_alias
=$build_alias
1580 test -z "$ac_cv_build_alias" &&
1581 ac_cv_build_alias
=`$ac_config_guess`
1582 test -z "$ac_cv_build_alias" &&
1583 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1584 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1585 { (exit 1); exit 1; }; }
1586 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1587 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1588 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1589 { (exit 1); exit 1; }; }
1592 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1593 echo "${ECHO_T}$ac_cv_build" >&6
1595 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1596 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1597 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1600 echo "$as_me:$LINENO: checking host system type" >&5
1601 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1602 if test "${ac_cv_host+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1605 ac_cv_host_alias
=$host_alias
1606 test -z "$ac_cv_host_alias" &&
1607 ac_cv_host_alias
=$ac_cv_build_alias
1608 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1609 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1610 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1611 { (exit 1); exit 1; }; }
1614 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1615 echo "${ECHO_T}$ac_cv_host" >&6
1617 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1618 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1619 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1623 configuration
=${host_alias-$host}
1627 ### If you add support for a new configuration, add code to this
1628 ### switch statement to recognize your configuration name and select
1629 ### the appropriate operating system and machine description files.
1631 ### You would hope that you could choose an m/*.h file pretty much
1632 ### based on the machine portion of the configuration name, and an s-
1633 ### file based on the operating system portion. However, it turns out
1634 ### that each m/*.h file is pretty manufacturer-specific - for
1635 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1636 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1637 ### machines. So we basically have to have a special case for each
1638 ### configuration name.
1640 ### As far as handling version numbers on operating systems is
1641 ### concerned, make sure things will fail in a fixable way. If
1642 ### /etc/MACHINES doesn't say anything about version numbers, be
1643 ### prepared to handle anything reasonably. If version numbers
1644 ### matter, be sure /etc/MACHINES says something about it.
1646 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1647 ### "System V Release 4"; he writes, "The old convention encouraged
1648 ### confusion between `system' and `release' levels'."
1650 machine
='' opsys
='' unported
=no
1651 case "${canonical}" in
1656 case "${canonical}" in
1657 alpha
*-*-freebsd*) machine
=alpha
;;
1658 i
[3456]86-*-freebsd*) machine
=intel386
;;
1665 case "${canonical}" in
1666 alpha
*-*-netbsd*) machine
=alpha
;;
1667 i
[3456]86-*-netbsd*) machine
=intel386
;;
1669 # This is somewhat bogus.
1670 machine
=hp9000s300
;;
1671 powerpc-apple-netbsd
*) machine
=macppc
;;
1672 mips-
*-netbsd*) machine
=pmax
;;
1673 mipsel-
*-netbsd*) machine
=pmax
;;
1674 mipseb-
*-netbsd*) machine
=pmax
;;
1675 ns32k-
*-netbsd*) machine
=ns32000
;;
1676 powerpc-
*-netbsd*) machine
=macppc
;;
1677 sparc
*-*-netbsd*) machine
=sparc
;;
1678 vax-
*-netbsd*) machine
=vax
;;
1679 arm-
*-netbsd*) machine
=arm
;;
1686 case "${canonical}" in
1687 alpha
*-*-openbsd*) machine
=alpha
;;
1688 i386-
*-openbsd*) machine
=intel386
;;
1689 m68k-
*-openbsd*) machine
=hp9000s300
;;
1690 mipsel-
*-openbsd*) machine
=pmax
;;
1691 ns32k-
*-openbsd*) machine
=ns32000
;;
1692 sparc-
*-openbsd*) machine
=sparc
;;
1693 vax-
*-openbsd*) machine
=vax
;;
1698 arm-acorn-riscix1.1
* )
1699 machine
=acorn opsys
=riscix1-1
1701 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1702 ## This name is riscix12 instead of riscix1.2
1703 ## to avoid a file name conflict on MSDOS.
1704 machine
=acorn opsys
=riscix12
1710 case "${canonical}" in
1711 i
[345]86-*-bsdi*) machine
=intel386
;;
1712 sparc-
*-bsdi*) machine
=sparc
;;
1713 powerpc-
*-bsdi*) machine
=macppc
;;
1715 case "${canonical}" in
1716 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1717 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1718 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1719 *-*-bsdi3* ) opsys
=bsdos3
;;
1720 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1725 ## Strictly speaking, we need the version of the alliant operating
1726 ## system to choose the right machine file, but currently the
1727 ## configuration name doesn't tell us enough to choose the right
1728 ## one; we need to give alliants their own operating system name to
1729 ## do this right. When someone cares, they can help us.
1731 machine
=alliant4 opsys
=bsd4-2
1734 machine
=alliant-2800 opsys
=bsd4-3
1737 ## Alpha (DEC) machines.
1739 machine
=alpha opsys
=osf1
1740 # This is needed to find X11R6.1 libraries for certain tests.
1741 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1742 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1743 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1744 # due to non-traditional preprocessing with the current compiler
1745 # defaults. OSF 4 can also have that compiler version, and there
1746 # seems always to have been a usable /usr/bin/cpp.
1747 NON_GNU_CPP
=/usr
/bin
/cpp
1748 case "${canonical}" in
1749 alpha
*-dec-osf[5-9]*)
1754 alpha
*-*-linux-gnu* )
1755 machine
=alpha opsys
=gnu-linux
1759 machine
=arm opsys
=gnu-linux
1764 machine
=macppc opsys
=gnu-linux
1769 machine
=altos opsys
=usg5-2
1774 machine
=amdahl opsys
=usg5-2-2
1777 ## Apollo, Domain/OS
1779 machine
=apollo opsys
=bsd4-3
1782 ## AT&T 3b2, 3b5, 3b15, 3b20
1784 machine
=att3b opsys
=usg5-2-2
1787 ## AT&T 3b1 - The Mighty Unix PC!
1789 machine
=7300 opsys
=usg5-2-2
1794 machine
=ibmrs6000 opsys
=aix3-2
1799 machine
=dpx2 opsys
=usg5-3
1804 machine
=sps7 opsys
=usg5-2
1807 ## CCI 5/32, 6/32 -- see "Tahoe".
1810 ## I don't know what configuration name to use for this; config.sub
1811 ## doesn't seem to know anything about it. Hey, Celerity users, get
1812 ## in touch with us!
1813 celerity-celerity-bsd
* )
1814 machine
=celerity opsys
=bsd4-2
1818 ## What operating systems does this chip run that Emacs has been
1822 ## We'll use the catch-all code at the bottom to guess the
1823 ## operating system.
1827 mips-compaq-nonstopux
* )
1828 machine
=nonstopux opsys
=nonstopux
1832 *-convex-bsd* |
*-convex-convexos* )
1833 machine
=convex opsys
=bsd4-3
1834 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1835 NON_GNU_CPP
="cc -E -P"
1839 i
[3456]86-cubix-sysv* )
1840 machine
=intel386 opsys
=usg5-3
1844 cydra
*-cydrome-sysv* )
1845 machine
=cydra5 opsys
=usg5-3
1848 ## Data General AViiON Machines
1849 ## DG changed naming conventions with the release of 5.4.4.10, they
1850 ## dropped the initial 5.4 but left the intervening R. Because of the
1851 ## R this shouldn't conflict with older versions of the OS (which I
1852 ## think were named like dgux4.*). In addition, DG new AViiONs series
1853 ## uses either Motorola M88k or Intel Pentium CPUs.
1854 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1855 machine
=aviion opsys
=dgux4
1857 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1858 ## This name is dgux5-4-3 instead of dgux5-4r3
1859 ## to avoid a file name conflict on MSDOS.
1860 machine
=aviion opsys
=dgux5-4-3
1862 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1863 machine
=aviion opsys
=dgux5-4r2
1866 machine
=aviion opsys
=dgux
1869 ## Data General AViiON Intel (x86) Machines
1870 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1871 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1872 i
[345]86-dg-dguxR4* )
1873 machine
=aviion-intel opsys
=dgux4
1877 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1878 machine
=pmax opsys
=bsd4-2
1880 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1881 machine
=pmax opsys
=bsd4-3
1884 machine
=pmax opsys
=ultrix4-3
1887 machine
=pmax opsys
=osf1
1889 mips-dec-mach_bsd4.3
* )
1890 machine
=pmax opsys
=mach-bsd4-3
1893 ## Motorola Delta machines
1894 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1895 machine
=delta opsys
=usg5-3
1896 if test -z "`type gnucc | grep 'not found'`"
1898 if test -s /etc
/167config
1899 then CC
="gnucc -m68040"
1900 else CC
="gnucc -m68881"
1903 if test -z "`type gcc | grep 'not found'`"
1909 m88k-motorola-sysv4
* )
1910 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1911 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1912 # I hope there are not other 4.0 versions for this machine
1913 # which really need usg5-4 instead.
1914 machine
=delta88k opsys
=usg5-4-2
1916 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1917 machine
=delta88k opsys
=usg5-3
1922 machine
=dual opsys
=usg5-2
1924 m68
*-dual-uniplus* )
1925 machine
=dual opsys
=unipl5-2
1930 machine
=elxsi opsys
=usg5-2
1935 machine
=ns16000 opsys
=umax
1938 ## The GEC 63 - apparently, this port isn't really finished yet.
1939 # I'm sure we finished off the last of the machines, though. -- fx
1941 ## Gould Power Node and NP1
1943 machine
=gould opsys
=bsd4-2
1946 machine
=gould opsys
=bsd4-3
1949 machine
=gould-np1 opsys
=bsd4-3
1952 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1953 ## as far as Emacs is concerned).
1955 # Build needs to be different on 7.0 and later releases
1956 case "`uname -r`" in
1957 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1958 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1960 NON_GNU_CPP
="/lib/cpp"
1962 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1964 machine
=nh3000 opsys
=cxux
1966 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1967 powerpc-harris-powerunix
)
1968 machine
=nh6000 opsys
=powerunix
1969 NON_GNU_CPP
="cc -Xo -E -P"
1971 ## SR2001/SR2201 running HI-UX/MPP
1972 hppa1.1
-hitachi-hiuxmpp* )
1973 machine
=sr2k opsys
=hiuxmpp
1975 hppa1.1
-hitachi-hiuxwe2* )
1976 machine
=sr2k opsys
=hiuxwe2
1979 xps
*-honeywell-sysv* )
1980 machine
=xps100 opsys
=usg5-2
1983 ## HP 9000 series 200 or 300
1985 machine
=hp9000s300 opsys
=bsd4-3
1987 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1989 case "`uname -r`" in
1990 ## Someone's system reports A.B8.05 for this.
1991 ## I wonder what other possibilities there are.
1992 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1993 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1994 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
1995 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
1996 *) machine
=hp9000s300 opsys
=hpux
;;
2000 ## HP 9000 series 700 and 800, running HP/UX
2002 machine
=hp800 opsys
=hpux
2005 machine
=hp800 opsys
=hpux8
2007 hppa
*-hp-hpux9shr* )
2008 machine
=hp800 opsys
=hpux9shr
2011 machine
=hp800 opsys
=hpux9
2013 hppa
*-hp-hpux10.2
* )
2014 machine
=hp800 opsys
=hpux10-20
2017 machine
=hp800 opsys
=hpux10
2019 hppa
*-hp-hpux1[1-9]* )
2020 machine
=hp800 opsys
=hpux11
2023 hppa
*-*-linux-gnu* )
2024 machine
=hp800 opsys
=gnu-linux
2027 ## HP 9000 series 700 and 800, running HP/UX
2029 ## Cross-compilation? Nah!
2030 case "`uname -r`" in
2031 ## Someone's system reports A.B8.05 for this.
2032 ## I wonder what other possibilities there are.
2033 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2034 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2035 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2036 *) machine
=hp800 opsys
=hpux10
;;
2040 machine
=hp800 opsys
=nextstep
2045 machine
=orion opsys
=bsd4-2
2047 clipper-orion-bsd
* )
2048 machine
=orion105 opsys
=bsd4-2
2052 i
[3456]86-ibm-aix1.1
* )
2053 machine
=ibmps2-aix opsys
=usg5-2-2
2055 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2056 machine
=ibmps2-aix opsys
=usg5-3
2059 machine
=ibm370aix opsys
=usg5-3
2062 machine
=ibms390 opsys
=gnu-linux
2064 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2065 machine
=ibmrs6000 opsys
=aix3-1
2067 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2068 machine
=ibmrs6000 opsys
=aix3-2-5
2070 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2071 machine
=ibmrs6000 opsys
=aix4-1
2073 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2074 machine
=ibmrs6000 opsys
=aix4-2
2076 rs6000-ibm-aix5.1
* | powerpc-ibm-aix5.1
* )
2077 machine
=ibmrs6000 opsys
=aix4-2
2079 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2080 machine
=ibmrs6000 opsys
=aix4
2082 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2083 machine
=ibmrs6000 opsys
=aix4-1
2085 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2086 machine
=ibmrs6000 opsys
=aix3-2
2089 machine
=ibmrt opsys
=bsd4-3
2092 machine
=ibmrt opsys
=bsd4-2
2095 machine
=ibmrt opsys
=bsd4-3
2098 machine
=ibmrt opsys
=bsd4-2
2101 machine
=ibmrt opsys
=bsd4-3
2104 machine
=ibmrt opsys
=bsd4-3
2107 machine
=ibmrt-aix opsys
=usg5-2-2
2110 ## Integrated Solutions `Optimum V'
2112 machine
=isi-ov opsys
=bsd4-2
2115 machine
=isi-ov opsys
=bsd4-3
2118 ## Intel 386 machines where we do care about the manufacturer
2119 i
[3456]86-intsys-sysv* )
2120 machine
=is386 opsys
=usg5-2-2
2124 i
[3456]86-prime-sysv* )
2125 machine
=i386 opsys
=usg5-3
2128 ## Sequent Symmetry running Dynix
2129 i
[3456]86-sequent-bsd* )
2130 machine
=symmetry opsys
=bsd4-3
2133 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2134 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2135 machine
=sequent-ptx opsys
=ptx4
2136 NON_GNU_CPP
=/lib
/cpp
2139 ## Sequent Symmetry running DYNIX/ptx
2140 ## Use the old cpp rather than the newer ANSI one.
2141 i
[3456]86-sequent-ptx* )
2142 machine
=sequent-ptx opsys
=ptx
2143 NON_GNU_CPP
="/lib/cpp"
2146 ## ncr machine running svr4.3.
2147 i
[3456]86-ncr-sysv4.3
)
2148 machine
=ncr386 opsys
=usg5-4-3
2151 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2152 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2153 i
[3456]86-ncr-sysv* )
2154 machine
=ncr386 opsys
=usg5-4-2
2157 ## Intel Paragon OSF/1
2159 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2164 machine
=i860 opsys
=usg5-4
2165 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2166 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2169 ## Macintosh PowerPC
2170 powerpc
*-*-linux-gnu* )
2171 machine
=macppc opsys
=gnu-linux
2174 ## Masscomp machines
2175 m68
*-masscomp-rtu* )
2176 machine
=masscomp opsys
=rtu
2179 ## Megatest machines
2180 m68
*-megatest-bsd* )
2181 machine
=mega68 opsys
=bsd4-2
2184 ## Workstations sold by MIPS
2185 ## This is not necessarily all workstations using the MIPS processor -
2186 ## Irises are produced by SGI, and DECstations by DEC.
2188 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2189 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2190 ## it gives for choosing between the alternatives seems to be "Use
2191 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2192 ## the BSD world." I'll assume that these are instructions for
2193 ## handling two odd situations, and that every other situation
2194 ## should use mips.h and usg5-2-2, they being listed first.
2197 ## Fall through to the general code at the bottom to decide on the OS.
2199 mips-mips-riscos4
* )
2200 machine
=mips4 opsys
=bsd4-3
2201 NON_GNU_CC
="cc -systype bsd43"
2202 NON_GNU_CPP
="cc -systype bsd43 -E"
2204 mips-mips-riscos5
* )
2205 machine
=mips4 opsys
=riscos5
2206 NON_GNU_CC
="cc -systype bsd43"
2207 NON_GNU_CPP
="cc -systype bsd43 -E"
2210 machine
=mips opsys
=bsd4-3
2213 machine
=mips opsys
=usg5-2-2
2217 m68
*-next-* | m68k-
*-nextstep* )
2218 machine
=m68k opsys
=nextstep
2221 ## The complete machine from National Semiconductor
2223 machine
=ns32000 opsys
=usg5-2
2227 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2228 machine
=tower32 opsys
=usg5-2-2
2230 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2231 machine
=tower32v3 opsys
=usg5-3
2236 machine
=ews4800 opsys
=ux4800
2239 ## Nixdorf Targon 31
2240 m68
*-nixdorf-sysv* )
2241 machine
=targon31 opsys
=usg5-2-2
2246 machine
=nu opsys
=usg5-2
2251 machine
=plexus opsys
=usg5-2
2255 ## I don't really have any idea what sort of processor the Pyramid has,
2256 ## so I'm assuming it is its own architecture.
2257 pyramid-pyramid-bsd
* )
2258 machine
=pyramid opsys
=bsd4-2
2262 ns32k-sequent-bsd4.2
* )
2263 machine
=sequent opsys
=bsd4-2
2265 ns32k-sequent-bsd4.3
* )
2266 machine
=sequent opsys
=bsd4-3
2270 mips-siemens-sysv
* | mips-sni-sysv
*)
2271 machine
=mips-siemens opsys
=usg5-4
2272 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2273 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2276 ## Silicon Graphics machines
2277 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2279 machine
=irist opsys
=iris3-5
2281 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2282 machine
=irist opsys
=iris3-6
2286 machine
=iris4d opsys
=irix3-3
2289 machine
=iris4d opsys
=irix4-0
2292 machine
=iris4d opsys
=irix6-5
2293 # Without defining _LANGUAGE_C, things get masked out in the headers
2294 # so that, for instance, grepping for `free' in stdlib.h fails and
2295 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2296 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2297 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2300 machine
=iris4d opsys
=irix6-0
2301 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2302 # but presumably it does no harm.
2303 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2304 # -32 probably isn't necessary in later v.6s -- anyone know which?
2305 NON_GCC_TEST_OPTIONS
=-32
2307 mips-sgi-irix5.
[01]* )
2308 machine
=iris4d opsys
=irix5-0
2310 mips-sgi-irix5
* | mips-sgi-irix
* )
2311 machine
=iris4d opsys
=irix5-2
2316 machine
=news opsys
=bsd4-2
2319 machine
=news opsys
=bsd4-3
2321 m68
*-sony-newsos3* | m68
*-sony-news3*)
2322 machine
=news opsys
=bsd4-3
2324 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2325 machine
=news-risc opsys
=bsd4-3
2327 mips-sony-newsos6
* )
2328 machine
=news-r6 opsys
=newsos6
2331 machine
=news-risc opsys
=newsos5
2336 machine
=stride opsys
=usg5-2
2340 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2341 machine
=sparc opsys
=gnu-linux
2344 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2345 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2346 | rs6000-
*-solaris2*)
2347 case "${canonical}" in
2348 m68
*-sunos1* ) machine
=sun1
;;
2349 m68
*-sunos2* ) machine
=sun2
;;
2350 m68
* ) machine
=sun3
;;
2351 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2352 i
[3456]86-*-* ) machine
=intel386
;;
2353 powerpcle
* ) machine
=powerpcle
;;
2354 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2355 sparc
* ) machine
=sparc
;;
2358 case "${canonical}" in
2359 ## The Sun386 didn't get past 4.0.
2360 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2361 *-sunos4.0
* ) opsys
=sunos4-0
;;
2362 *-sunos4.1.
[3-9]*noshare
)
2363 ## This name is sunos413 instead of sunos4-1-3
2364 ## to avoid a file name conflict on MSDOS.
2366 NON_GNU_CPP
=/usr
/lib
/cpp
2367 NON_GCC_TEST_OPTIONS
=-Bstatic
2368 GCC_TEST_OPTIONS
=-static
2370 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2372 NON_GNU_CPP
=/usr
/lib
/cpp
2374 *-sunos4* |
*-sunos )
2376 NON_GCC_TEST_OPTIONS
=-Bstatic
2377 GCC_TEST_OPTIONS
=-static
2379 *-sunos5.3
* |
*-solaris2.3
* )
2381 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2383 *-sunos5.4
* |
*-solaris2.4
* )
2385 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2388 *-sunos5.5
* |
*-solaris2.5
* )
2390 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2393 *-sunos5.6
* |
*-solaris2.6
* )
2395 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2398 *-sunos5* |
*-solaris* )
2400 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2404 ## Watch out for a compiler that we know will not work.
2405 case "${canonical}" in
2406 *-solaris* |
*-sunos5* )
2407 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2408 ## /usr/ucb/cc doesn't work;
2409 ## we should find some other compiler that does work.
2417 machine
=sparc opsys
=nextstep
2421 m68
*-tadpole-sysv* )
2422 machine
=tad68k opsys
=usg5-3
2426 tahoe-tahoe-bsd4.2
* )
2427 machine
=tahoe opsys
=bsd4-2
2429 tahoe-tahoe-bsd4.3
* )
2430 machine
=tahoe opsys
=bsd4-3
2433 ## Tandem Integrity S2
2435 machine
=tandem-s2 opsys
=usg5-3
2439 m88k-tektronix-sysv3
* )
2440 machine
=tekxd88 opsys
=usg5-3
2443 ## Tektronix 16000 box (6130?)
2444 ns16k-tektronix-bsd
* )
2445 machine
=ns16000 opsys
=bsd4-2
2448 ## src/m/tek4300.h hints that this is a m68k machine.
2449 m68
*-tektronix-bsd* )
2450 machine
=tek4300 opsys
=bsd4-3
2454 ## We seem to have lost the machine-description file titan.h!
2456 machine
=titan opsys
=usg5-3
2459 ## Ustation E30 (SS5E)
2460 m68
*-unisys-uniplus* )
2461 machine
=ustation opsystem
=unipl5-2
2467 case "${canonical}" in
2468 *-bsd4.1
* ) opsys
=bsd4-1
;;
2469 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2470 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2471 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2472 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2473 *-vms* ) opsys
=vms
;;
2479 ns16k-whitechapel-
* )
2481 ## We don't know what sort of OS runs on these; we'll let the
2482 ## operating system guessing code below try.
2487 machine
=wicat opsys
=usg5-2
2492 machine
=ia64 opsys
=gnu-linux
2495 ## Intel 386 machines where we don't care about the manufacturer
2498 case "${canonical}" in
2499 *-cygwin ) opsys
=cygwin
;;
2500 *-lynxos* ) opsys
=lynxos
;;
2501 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2502 *-isc2.2
* ) opsys
=isc2-2
;;
2503 *-isc4.0
* ) opsys
=isc4-0
;;
2504 *-isc4.
* ) opsys
=isc4-1
2505 GCC_TEST_OPTIONS
=-posix
2506 NON_GCC_TEST_OPTIONS
=-Xp
2508 *-isc* ) opsys
=isc3-0
;;
2509 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2510 *-esix* ) opsys
=esix
;;
2511 *-xenix* ) opsys
=xenix
;;
2512 *-linux-gnu* ) opsys
=gnu-linux
;;
2513 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2514 *-sco3.2v5
* ) opsys
=sco5
2515 NON_GNU_CPP
=/lib
/cpp
2516 # Prevent -belf from being passed to $CPP.
2517 # /lib/cpp does not accept it.
2518 OVERRIDE_CPPFLAGS
=" "
2520 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2521 *-386bsd* ) opsys
=386bsd
;;
2522 *-nextstep* ) opsys
=nextstep
;;
2523 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2527 ## m68k Linux-based GNU system
2529 machine
=m68k opsys
=gnu-linux
2532 ## Mips Linux-based GNU system
2533 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2534 machine
=mips opsys
=gnu-linux
2538 sparc-fujitsu-sysv4
* )
2539 machine
=sparc opsys
=uxpds
2540 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2545 f301-fujitsu-uxpv4.1
)
2546 machine
=f301 opsys
=uxpv
2549 ## Darwin / Mac OS X
2550 powerpc-apple-darwin
* )
2551 machine
=powermac opsys
=darwin
2552 # Define CPP as follows to make autoconf work correctly.
2553 CPP
="cc -E -traditional-cpp"
2556 ## AMD x86-64 Linux-based GNU system
2557 x86_64-
*-linux-gnu* )
2558 machine
=amdx86-64 opsys
=gnu-linux
2566 ### If the code above didn't choose an operating system, just choose
2567 ### an operating system based on the configuration name. You really
2568 ### only want to use this when you have no idea what the right
2569 ### operating system is; if you know what operating systems a machine
2570 ### runs, it's cleaner to make it explicit in the case statement
2572 if test x
"${opsys}" = x
; then
2573 case "${canonical}" in
2574 *-gnu* ) opsys
=gnu
;;
2575 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2576 *-bsd4.2
) opsys
=bsd4-2
;;
2577 *-bsd4.3
) opsys
=bsd4-3
;;
2578 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2579 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2580 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2581 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2582 *-sysv4.2uw
* ) opsys
=unixware
;;
2583 *-sysv4.1
* |
*-sysvr4.1
* )
2584 NON_GNU_CPP
=/usr
/lib
/cpp
2586 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2587 if [ x
$NON_GNU_CPP = x
]; then
2588 if [ -f /usr
/ccs
/lib
/cpp
]; then
2589 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2591 NON_GNU_CPP
=/lib
/cpp
2595 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2604 if test $unported = yes; then
2605 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2606 Check \`etc/MACHINES' for recognized configuration names." >&5
2607 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2608 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2609 { (exit 1); exit 1; }; }
2612 machfile
="m/${machine}.h"
2613 opsysfile
="s/${opsys}.h"
2616 #### Choose a compiler.
2617 test -n "$CC" && cc_specified
=yes
2619 # Save the value of CFLAGS that the user specified.
2620 SPECIFIED_CFLAGS
="$CFLAGS"
2623 "yes" ) CC
="gcc" GCC
=yes ;;
2624 "no" ) : ${CC=cc} ;;
2628 ac_cpp
='$CPP $CPPFLAGS'
2629 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2630 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2631 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2632 if test -n "$ac_tool_prefix"; then
2633 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2634 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2635 echo "$as_me:$LINENO: checking for $ac_word" >&5
2636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2637 if test "${ac_cv_prog_CC+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 if test -n "$CC"; then
2641 ac_cv_prog_CC
="$CC" # Let the user override the test.
2643 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2647 test -z "$as_dir" && as_dir
=.
2648 for ac_exec_ext
in '' $ac_executable_extensions; do
2649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2650 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 if test -n "$CC"; then
2661 echo "$as_me:$LINENO: result: $CC" >&5
2662 echo "${ECHO_T}$CC" >&6
2664 echo "$as_me:$LINENO: result: no" >&5
2665 echo "${ECHO_T}no" >&6
2669 if test -z "$ac_cv_prog_CC"; then
2671 # Extract the first word of "gcc", so it can be a program name with args.
2672 set dummy gcc
; ac_word
=$2
2673 echo "$as_me:$LINENO: checking for $ac_word" >&5
2674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2675 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 if test -n "$ac_ct_CC"; then
2679 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2681 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2685 test -z "$as_dir" && as_dir
=.
2686 for ac_exec_ext
in '' $ac_executable_extensions; do
2687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2688 ac_cv_prog_ac_ct_CC
="gcc"
2689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2698 if test -n "$ac_ct_CC"; then
2699 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2700 echo "${ECHO_T}$ac_ct_CC" >&6
2702 echo "$as_me:$LINENO: result: no" >&5
2703 echo "${ECHO_T}no" >&6
2711 if test -z "$CC"; then
2712 if test -n "$ac_tool_prefix"; then
2713 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2714 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2715 echo "$as_me:$LINENO: checking for $ac_word" >&5
2716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2717 if test "${ac_cv_prog_CC+set}" = set; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2720 if test -n "$CC"; then
2721 ac_cv_prog_CC
="$CC" # Let the user override the test.
2723 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2727 test -z "$as_dir" && as_dir
=.
2728 for ac_exec_ext
in '' $ac_executable_extensions; do
2729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2730 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2740 if test -n "$CC"; then
2741 echo "$as_me:$LINENO: result: $CC" >&5
2742 echo "${ECHO_T}$CC" >&6
2744 echo "$as_me:$LINENO: result: no" >&5
2745 echo "${ECHO_T}no" >&6
2749 if test -z "$ac_cv_prog_CC"; then
2751 # Extract the first word of "cc", so it can be a program name with args.
2752 set dummy cc
; ac_word
=$2
2753 echo "$as_me:$LINENO: checking for $ac_word" >&5
2754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2755 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 if test -n "$ac_ct_CC"; then
2759 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2761 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2765 test -z "$as_dir" && as_dir
=.
2766 for ac_exec_ext
in '' $ac_executable_extensions; do
2767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2768 ac_cv_prog_ac_ct_CC
="cc"
2769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2777 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2778 if test -n "$ac_ct_CC"; then
2779 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2780 echo "${ECHO_T}$ac_ct_CC" >&6
2782 echo "$as_me:$LINENO: result: no" >&5
2783 echo "${ECHO_T}no" >&6
2792 if test -z "$CC"; then
2793 # Extract the first word of "cc", so it can be a program name with args.
2794 set dummy cc
; ac_word
=$2
2795 echo "$as_me:$LINENO: checking for $ac_word" >&5
2796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2797 if test "${ac_cv_prog_CC+set}" = set; then
2798 echo $ECHO_N "(cached) $ECHO_C" >&6
2800 if test -n "$CC"; then
2801 ac_cv_prog_CC
="$CC" # Let the user override the test.
2804 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2808 test -z "$as_dir" && as_dir
=.
2809 for ac_exec_ext
in '' $ac_executable_extensions; do
2810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2811 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2812 ac_prog_rejected
=yes
2816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 if test $ac_prog_rejected = yes; then
2823 # We found a bogon in the path, so make sure we never use it.
2824 set dummy
$ac_cv_prog_CC
2826 if test $# != 0; then
2827 # We chose a different compiler from the bogus one.
2828 # However, it has the same basename, so the bogon will be chosen
2829 # first if we set CC to just the basename; use the full file name.
2831 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2837 if test -n "$CC"; then
2838 echo "$as_me:$LINENO: result: $CC" >&5
2839 echo "${ECHO_T}$CC" >&6
2841 echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6
2846 if test -z "$CC"; then
2847 if test -n "$ac_tool_prefix"; then
2850 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2851 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2852 echo "$as_me:$LINENO: checking for $ac_word" >&5
2853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2854 if test "${ac_cv_prog_CC+set}" = set; then
2855 echo $ECHO_N "(cached) $ECHO_C" >&6
2857 if test -n "$CC"; then
2858 ac_cv_prog_CC
="$CC" # Let the user override the test.
2860 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2864 test -z "$as_dir" && as_dir
=.
2865 for ac_exec_ext
in '' $ac_executable_extensions; do
2866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2867 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2877 if test -n "$CC"; then
2878 echo "$as_me:$LINENO: result: $CC" >&5
2879 echo "${ECHO_T}$CC" >&6
2881 echo "$as_me:$LINENO: result: no" >&5
2882 echo "${ECHO_T}no" >&6
2885 test -n "$CC" && break
2888 if test -z "$CC"; then
2892 # Extract the first word of "$ac_prog", so it can be a program name with args.
2893 set dummy
$ac_prog; ac_word
=$2
2894 echo "$as_me:$LINENO: checking for $ac_word" >&5
2895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2896 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2897 echo $ECHO_N "(cached) $ECHO_C" >&6
2899 if test -n "$ac_ct_CC"; then
2900 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2906 test -z "$as_dir" && as_dir
=.
2907 for ac_exec_ext
in '' $ac_executable_extensions; do
2908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2909 ac_cv_prog_ac_ct_CC
="$ac_prog"
2910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2918 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2919 if test -n "$ac_ct_CC"; then
2920 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2921 echo "${ECHO_T}$ac_ct_CC" >&6
2923 echo "$as_me:$LINENO: result: no" >&5
2924 echo "${ECHO_T}no" >&6
2927 test -n "$ac_ct_CC" && break
2936 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2937 See \`config.log' for more details." >&5
2938 echo "$as_me: error: no acceptable C compiler found in \$PATH
2939 See \`config.log' for more details." >&2;}
2940 { (exit 1); exit 1; }; }
2942 # Provide some information about the compiler.
2943 echo "$as_me:$LINENO:" \
2944 "checking for C compiler version" >&5
2945 ac_compiler
=`set X $ac_compile; echo $2`
2946 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2947 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }
2951 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2952 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }
2956 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2957 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }
2962 cat >conftest.
$ac_ext <<_ACEOF
2963 #line $LINENO "configure"
2966 cat confdefs.h
>>conftest.
$ac_ext
2967 cat >>conftest.
$ac_ext <<_ACEOF
2968 /* end confdefs.h. */
2978 ac_clean_files_save
=$ac_clean_files
2979 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2980 # Try to create an executable without -o first, disregard a.out.
2981 # It will help us diagnose broken compilers, and finding out an intuition
2983 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2984 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2985 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2986 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2987 (eval $ac_link_default) 2>&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; then
2991 # Find the output, starting from the most likely. This scheme is
2992 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2995 # Be careful to initialize this variable, since it used to be cached.
2996 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2998 # b.out is created by i960 compilers.
2999 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3001 test -f "$ac_file" ||
continue
3003 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3006 # This is the source file.
3009 # We found the default executable, but exeext='' is most
3013 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3014 # FIXME: I believe we export ac_cv_exeext for Libtool,
3015 # but it would be cool to find out if it's true. Does anybody
3016 # maintain Libtool? --akim.
3024 echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.
$ac_ext >&5
3027 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3028 See \`config.log' for more details." >&5
3029 echo "$as_me: error: C compiler cannot create executables
3030 See \`config.log' for more details." >&2;}
3031 { (exit 77); exit 77; }; }
3034 ac_exeext
=$ac_cv_exeext
3035 echo "$as_me:$LINENO: result: $ac_file" >&5
3036 echo "${ECHO_T}$ac_file" >&6
3038 # Check the compiler produces executables we can run. If not, either
3039 # the compiler is broken, or we cross compile.
3040 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3041 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3042 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3043 # If not cross compiling, check that we can run a simple program.
3044 if test "$cross_compiling" != yes; then
3045 if { ac_try
='./$ac_file'
3046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; }; then
3053 if test "$cross_compiling" = maybe
; then
3056 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3057 If you meant to cross compile, use \`--host'.
3058 See \`config.log' for more details." >&5
3059 echo "$as_me: error: cannot run C compiled programs.
3060 If you meant to cross compile, use \`--host'.
3061 See \`config.log' for more details." >&2;}
3062 { (exit 1); exit 1; }; }
3066 echo "$as_me:$LINENO: result: yes" >&5
3067 echo "${ECHO_T}yes" >&6
3069 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3070 ac_clean_files
=$ac_clean_files_save
3071 # Check the compiler produces executables we can run. If not, either
3072 # the compiler is broken, or we cross compile.
3073 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3074 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3075 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3076 echo "${ECHO_T}$cross_compiling" >&6
3078 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3079 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3081 (eval $ac_link) 2>&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); }; then
3085 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3086 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3087 # work properly (i.e., refer to `conftest.exe'), while it won't with
3089 for ac_file
in conftest.exe conftest conftest.
*; do
3090 test -f "$ac_file" ||
continue
3092 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3093 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3100 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3101 See \`config.log' for more details." >&5
3102 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3103 See \`config.log' for more details." >&2;}
3104 { (exit 1); exit 1; }; }
3107 rm -f conftest
$ac_cv_exeext
3108 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3109 echo "${ECHO_T}$ac_cv_exeext" >&6
3111 rm -f conftest.
$ac_ext
3112 EXEEXT
=$ac_cv_exeext
3114 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3115 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3116 if test "${ac_cv_objext+set}" = set; then
3117 echo $ECHO_N "(cached) $ECHO_C" >&6
3119 cat >conftest.
$ac_ext <<_ACEOF
3120 #line $LINENO "configure"
3123 cat confdefs.h
>>conftest.
$ac_ext
3124 cat >>conftest.
$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3135 rm -f conftest.o conftest.obj
3136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3137 (eval $ac_compile) 2>&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; then
3141 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3143 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3144 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.
$ac_ext >&5
3152 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3153 See \`config.log' for more details." >&5
3154 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3155 See \`config.log' for more details." >&2;}
3156 { (exit 1); exit 1; }; }
3159 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3161 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3162 echo "${ECHO_T}$ac_cv_objext" >&6
3163 OBJEXT
=$ac_cv_objext
3165 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3166 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3167 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3168 echo $ECHO_N "(cached) $ECHO_C" >&6
3170 cat >conftest.
$ac_ext <<_ACEOF
3171 #line $LINENO "configure"
3174 cat confdefs.h
>>conftest.
$ac_ext
3175 cat >>conftest.
$ac_ext <<_ACEOF
3176 /* end confdefs.h. */
3189 rm -f conftest.
$ac_objext
3190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3191 (eval $ac_compile) 2>&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } &&
3195 { ac_try
='test -s conftest.$ac_objext'
3196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; }; then
3203 echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.
$ac_ext >&5
3208 rm -f conftest.
$ac_objext conftest.
$ac_ext
3209 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3212 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3213 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3214 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3215 ac_test_CFLAGS
=${CFLAGS+set}
3216 ac_save_CFLAGS
=$CFLAGS
3218 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3219 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3220 if test "${ac_cv_prog_cc_g+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 cat >conftest.
$ac_ext <<_ACEOF
3224 #line $LINENO "configure"
3227 cat confdefs.h
>>conftest.
$ac_ext
3228 cat >>conftest.
$ac_ext <<_ACEOF
3229 /* end confdefs.h. */
3239 rm -f conftest.
$ac_objext
3240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3241 (eval $ac_compile) 2>&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); } &&
3245 { ac_try
='test -s conftest.$ac_objext'
3246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }; }; then
3253 echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.
$ac_ext >&5
3258 rm -f conftest.
$ac_objext conftest.
$ac_ext
3260 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3261 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3262 if test "$ac_test_CFLAGS" = set; then
3263 CFLAGS
=$ac_save_CFLAGS
3264 elif test $ac_cv_prog_cc_g = yes; then
3265 if test "$GCC" = yes; then
3271 if test "$GCC" = yes; then
3277 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3278 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3279 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 ac_cv_prog_cc_stdc
=no
3284 cat >conftest.
$ac_ext <<_ACEOF
3285 #line $LINENO "configure"
3288 cat confdefs.h
>>conftest.
$ac_ext
3289 cat >>conftest.
$ac_ext <<_ACEOF
3290 /* end confdefs.h. */
3293 #include <sys/types.h>
3294 #include <sys/stat.h>
3295 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3296 struct buf { int x; };
3297 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3298 static char *e (p, i)
3304 static char *f (char * (*g) (char **, int), char **p, ...)
3309 s = g (p, va_arg (v,int));
3313 int test (int i, double x);
3314 struct s1 {int (*f) (int a);};
3315 struct s2 {int (*f) (double a);};
3316 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3322 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3327 # Don't try gcc -ansi; that turns off useful extensions and
3328 # breaks some systems' header files.
3329 # AIX -qlanglvl=ansi
3330 # Ultrix and OSF/1 -std1
3331 # HP-UX 10.20 and later -Ae
3332 # HP-UX older versions -Aa -D_HPUX_SOURCE
3333 # SVR4 -Xc -D__EXTENSIONS__
3334 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3336 CC
="$ac_save_CC $ac_arg"
3337 rm -f conftest.
$ac_objext
3338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3339 (eval $ac_compile) 2>&5
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); } &&
3343 { ac_try
='test -s conftest.$ac_objext'
3344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; }; then
3349 ac_cv_prog_cc_stdc
=$ac_arg
3352 echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.
$ac_ext >&5
3356 rm -f conftest.
$ac_objext
3358 rm -f conftest.
$ac_ext conftest.
$ac_objext
3363 case "x$ac_cv_prog_cc_stdc" in
3365 echo "$as_me:$LINENO: result: none needed" >&5
3366 echo "${ECHO_T}none needed" >&6 ;;
3368 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3369 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3370 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3373 # Some people use a C++ compiler to compile C. Since we use `exit',
3374 # in C++ we need to declare it. In case someone uses the same compiler
3375 # for both compiling C and C++ we need to have the C++ compiler decide
3376 # the declaration of exit, since it's the most demanding environment.
3377 cat >conftest.
$ac_ext <<_ACEOF
3382 rm -f conftest.
$ac_objext
3383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3384 (eval $ac_compile) 2>&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } &&
3388 { ac_try
='test -s conftest.$ac_objext'
3389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; }; then
3394 for ac_declaration
in \
3396 '#include <stdlib.h>' \
3397 'extern "C" void std::exit (int) throw (); using std::exit;' \
3398 'extern "C" void std::exit (int); using std::exit;' \
3399 'extern "C" void exit (int) throw ();' \
3400 'extern "C" void exit (int);' \
3403 cat >conftest.
$ac_ext <<_ACEOF
3404 #line $LINENO "configure"
3407 cat confdefs.h
>>conftest.
$ac_ext
3408 cat >>conftest.
$ac_ext <<_ACEOF
3409 /* end confdefs.h. */
3420 rm -f conftest.
$ac_objext
3421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3422 (eval $ac_compile) 2>&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); } &&
3426 { ac_try
='test -s conftest.$ac_objext'
3427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }; }; then
3434 echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.
$ac_ext >&5
3439 rm -f conftest.
$ac_objext conftest.
$ac_ext
3440 cat >conftest.
$ac_ext <<_ACEOF
3441 #line $LINENO "configure"
3444 cat confdefs.h
>>conftest.
$ac_ext
3445 cat >>conftest.
$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3456 rm -f conftest.
$ac_objext
3457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3458 (eval $ac_compile) 2>&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } &&
3462 { ac_try
='test -s conftest.$ac_objext'
3463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); }; }; then
3470 echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.
$ac_ext >&5
3474 rm -f conftest.
$ac_objext conftest.
$ac_ext
3477 if test -n "$ac_declaration"; then
3478 echo '#ifdef __cplusplus' >>confdefs.h
3479 echo $ac_declaration >>confdefs.h
3480 echo '#endif' >>confdefs.h
3484 echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.
$ac_ext >&5
3488 rm -f conftest.
$ac_objext conftest.
$ac_ext
3490 ac_cpp
='$CPP $CPPFLAGS'
3491 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3496 # On Suns, sometimes $CPP names a directory.
3497 if test -n "$CPP" && test -d "$CPP"; then
3501 #### Some systems specify a CPP to use unless we are using GCC.
3502 #### Now that we know whether we are using GCC, we can decide whether
3503 #### to use that one.
3504 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3509 #### Some systems specify a CC to use unless we are using GCC.
3510 #### Now that we know whether we are using GCC, we can decide whether
3511 #### to use that one.
3512 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3513 test x
$cc_specified != xyes
3518 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3520 CC
="$CC $GCC_TEST_OPTIONS"
3523 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3525 CC
="$CC $NON_GCC_TEST_OPTIONS"
3528 #### Some other nice autoconf tests.
3530 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3531 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3533 if test "$LN_S" = "ln -s"; then
3534 echo "$as_me:$LINENO: result: yes" >&5
3535 echo "${ECHO_T}yes" >&6
3537 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3538 echo "${ECHO_T}no, using $LN_S" >&6
3542 ac_cpp
='$CPP $CPPFLAGS'
3543 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3544 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3545 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3546 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3547 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3548 # On Suns, sometimes $CPP names a directory.
3549 if test -n "$CPP" && test -d "$CPP"; then
3552 if test -z "$CPP"; then
3553 if test "${ac_cv_prog_CPP+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 # Double quotes because CPP needs to be expanded
3557 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3560 for ac_c_preproc_warn_flag
in '' yes
3562 # Use a header file that comes with gcc, so configuring glibc
3563 # with a fresh cross-compiler works.
3564 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3565 # <limits.h> exists even on freestanding compilers.
3566 # On the NeXT, cc -E runs the code through the compiler's parser,
3567 # not just through cpp. "Syntax error" is here to catch this case.
3568 cat >conftest.
$ac_ext <<_ACEOF
3569 #line $LINENO "configure"
3572 cat confdefs.h
>>conftest.
$ac_ext
3573 cat >>conftest.
$ac_ext <<_ACEOF
3574 /* end confdefs.h. */
3576 # include <limits.h>
3578 # include <assert.h>
3582 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3583 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3585 grep -v '^ *+' conftest.er1
>conftest.err
3587 cat conftest.err
>&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } >/dev
/null
; then
3590 if test -s conftest.err
; then
3591 ac_cpp_err
=$ac_c_preproc_warn_flag
3598 if test -z "$ac_cpp_err"; then
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.
$ac_ext >&5
3604 # Broken: fails on valid input.
3607 rm -f conftest.err conftest.
$ac_ext
3609 # OK, works on sane cases. Now check whether non-existent headers
3610 # can be detected and how.
3611 cat >conftest.
$ac_ext <<_ACEOF
3612 #line $LINENO "configure"
3615 cat confdefs.h
>>conftest.
$ac_ext
3616 cat >>conftest.
$ac_ext <<_ACEOF
3617 /* end confdefs.h. */
3618 #include <ac_nonexistent.h>
3620 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3621 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3623 grep -v '^ *+' conftest.er1
>conftest.err
3625 cat conftest.err
>&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); } >/dev
/null
; then
3628 if test -s conftest.err
; then
3629 ac_cpp_err
=$ac_c_preproc_warn_flag
3636 if test -z "$ac_cpp_err"; then
3637 # Broken: success on invalid input.
3640 echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.
$ac_ext >&5
3643 # Passes both tests.
3647 rm -f conftest.err conftest.
$ac_ext
3650 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3651 rm -f conftest.err conftest.
$ac_ext
3652 if $ac_preproc_ok; then
3664 echo "$as_me:$LINENO: result: $CPP" >&5
3665 echo "${ECHO_T}$CPP" >&6
3667 for ac_c_preproc_warn_flag
in '' yes
3669 # Use a header file that comes with gcc, so configuring glibc
3670 # with a fresh cross-compiler works.
3671 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3672 # <limits.h> exists even on freestanding compilers.
3673 # On the NeXT, cc -E runs the code through the compiler's parser,
3674 # not just through cpp. "Syntax error" is here to catch this case.
3675 cat >conftest.
$ac_ext <<_ACEOF
3676 #line $LINENO "configure"
3679 cat confdefs.h
>>conftest.
$ac_ext
3680 cat >>conftest.
$ac_ext <<_ACEOF
3681 /* end confdefs.h. */
3683 # include <limits.h>
3685 # include <assert.h>
3689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3690 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3692 grep -v '^ *+' conftest.er1
>conftest.err
3694 cat conftest.err
>&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); } >/dev
/null
; then
3697 if test -s conftest.err
; then
3698 ac_cpp_err
=$ac_c_preproc_warn_flag
3705 if test -z "$ac_cpp_err"; then
3708 echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.
$ac_ext >&5
3711 # Broken: fails on valid input.
3714 rm -f conftest.err conftest.
$ac_ext
3716 # OK, works on sane cases. Now check whether non-existent headers
3717 # can be detected and how.
3718 cat >conftest.
$ac_ext <<_ACEOF
3719 #line $LINENO "configure"
3722 cat confdefs.h
>>conftest.
$ac_ext
3723 cat >>conftest.
$ac_ext <<_ACEOF
3724 /* end confdefs.h. */
3725 #include <ac_nonexistent.h>
3727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3728 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3730 grep -v '^ *+' conftest.er1
>conftest.err
3732 cat conftest.err
>&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); } >/dev
/null
; then
3735 if test -s conftest.err
; then
3736 ac_cpp_err
=$ac_c_preproc_warn_flag
3743 if test -z "$ac_cpp_err"; then
3744 # Broken: success on invalid input.
3747 echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.
$ac_ext >&5
3750 # Passes both tests.
3754 rm -f conftest.err conftest.
$ac_ext
3757 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3758 rm -f conftest.err conftest.
$ac_ext
3759 if $ac_preproc_ok; then
3762 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3763 See \`config.log' for more details." >&5
3764 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3765 See \`config.log' for more details." >&2;}
3766 { (exit 1); exit 1; }; }
3770 ac_cpp
='$CPP $CPPFLAGS'
3771 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3772 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3773 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3775 # Find a good install program. We prefer a C program (faster),
3776 # so one script is as good as another. But avoid the broken or
3777 # incompatible versions:
3778 # SysV /etc/install, /usr/sbin/install
3779 # SunOS /usr/etc/install
3780 # IRIX /sbin/install
3782 # AmigaOS /C/install, which installs bootblocks on floppy discs
3783 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3784 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3785 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3786 # ./install, which can be erroneously created by make from ./install.sh.
3787 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3788 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3789 if test -z "$INSTALL"; then
3790 if test "${ac_cv_path_install+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3793 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3797 test -z "$as_dir" && as_dir
=.
3798 # Account for people who put trailing slashes in PATH elements.
3800 .
/ | .
// |
/cC
/* | \
3801 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3804 # OSF1 and SCO ODT 3.0 have their own names for install.
3805 # Don't use installbsd from OSF since it installs stuff as root
3807 for ac_prog
in ginstall scoinst
install; do
3808 for ac_exec_ext
in '' $ac_executable_extensions; do
3809 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3810 if test $ac_prog = install &&
3811 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3812 # AIX install. It has an incompatible calling convention.
3814 elif test $ac_prog = install &&
3815 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3816 # program-specific install script used by HP pwplus--don't use.
3819 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3831 if test "${ac_cv_path_install+set}" = set; then
3832 INSTALL
=$ac_cv_path_install
3834 # As a last resort, use the slow shell script. We don't cache a
3835 # path for INSTALL within a source directory, because that will
3836 # break other packages using the cache if that directory is
3837 # removed, or if the path is relative.
3838 INSTALL
=$ac_install_sh
3841 echo "$as_me:$LINENO: result: $INSTALL" >&5
3842 echo "${ECHO_T}$INSTALL" >&6
3844 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3845 # It thinks the first close brace ends the variable substitution.
3846 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3848 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3850 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3852 if test "x$RANLIB" = x
; then
3853 if test -n "$ac_tool_prefix"; then
3854 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3855 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3856 echo "$as_me:$LINENO: checking for $ac_word" >&5
3857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3858 if test "${ac_cv_prog_RANLIB+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
3861 if test -n "$RANLIB"; then
3862 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3864 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3868 test -z "$as_dir" && as_dir
=.
3869 for ac_exec_ext
in '' $ac_executable_extensions; do
3870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3871 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3880 RANLIB
=$ac_cv_prog_RANLIB
3881 if test -n "$RANLIB"; then
3882 echo "$as_me:$LINENO: result: $RANLIB" >&5
3883 echo "${ECHO_T}$RANLIB" >&6
3885 echo "$as_me:$LINENO: result: no" >&5
3886 echo "${ECHO_T}no" >&6
3890 if test -z "$ac_cv_prog_RANLIB"; then
3891 ac_ct_RANLIB
=$RANLIB
3892 # Extract the first word of "ranlib", so it can be a program name with args.
3893 set dummy ranlib
; ac_word
=$2
3894 echo "$as_me:$LINENO: checking for $ac_word" >&5
3895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3896 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3899 if test -n "$ac_ct_RANLIB"; then
3900 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3906 test -z "$as_dir" && as_dir
=.
3907 for ac_exec_ext
in '' $ac_executable_extensions; do
3908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3909 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3916 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3919 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3920 if test -n "$ac_ct_RANLIB"; then
3921 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3922 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3924 echo "$as_me:$LINENO: result: no" >&5
3925 echo "${ECHO_T}no" >&6
3928 RANLIB
=$ac_ct_RANLIB
3930 RANLIB
="$ac_cv_prog_RANLIB"
3934 # Extract the first word of "install-info", so it can be a program name with args.
3935 set dummy install-info
; ac_word
=$2
3936 echo "$as_me:$LINENO: checking for $ac_word" >&5
3937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3938 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3939 echo $ECHO_N "(cached) $ECHO_C" >&6
3941 case $INSTALL_INFO in
3943 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
3946 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3950 test -z "$as_dir" && as_dir
=.
3951 for ac_exec_ext
in '' $ac_executable_extensions; do
3952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3953 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
3954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3963 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
3965 if test -n "$INSTALL_INFO"; then
3966 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3967 echo "${ECHO_T}$INSTALL_INFO" >&6
3969 echo "$as_me:$LINENO: result: no" >&5
3970 echo "${ECHO_T}no" >&6
3973 # Extract the first word of "install-info", so it can be a program name with args.
3974 set dummy install-info
; ac_word
=$2
3975 echo "$as_me:$LINENO: checking for $ac_word" >&5
3976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3977 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3980 case $INSTALL_INFO in
3982 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
3985 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3986 for as_dir
in /usr
/sbin
3989 test -z "$as_dir" && as_dir
=.
3990 for ac_exec_ext
in '' $ac_executable_extensions; do
3991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3992 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
3993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4004 if test -n "$INSTALL_INFO"; then
4005 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4006 echo "${ECHO_T}$INSTALL_INFO" >&6
4008 echo "$as_me:$LINENO: result: no" >&5
4009 echo "${ECHO_T}no" >&6
4012 # Extract the first word of "install-info", so it can be a program name with args.
4013 set dummy install-info
; ac_word
=$2
4014 echo "$as_me:$LINENO: checking for $ac_word" >&5
4015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4016 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4019 case $INSTALL_INFO in
4021 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4024 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4028 test -z "$as_dir" && as_dir
=.
4029 for ac_exec_ext
in '' $ac_executable_extensions; do
4030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4031 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4038 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4042 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4044 if test -n "$INSTALL_INFO"; then
4045 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4046 echo "${ECHO_T}$INSTALL_INFO" >&6
4048 echo "$as_me:$LINENO: result: no" >&5
4049 echo "${ECHO_T}no" >&6
4054 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4056 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4059 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4061 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4066 echo "$as_me:$LINENO: checking for egrep" >&5
4067 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4068 if test "${ac_cv_prog_egrep+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4072 then ac_cv_prog_egrep
='grep -E'
4073 else ac_cv_prog_egrep
='egrep'
4076 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4077 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4078 EGREP
=$ac_cv_prog_egrep
4082 echo "$as_me:$LINENO: checking for AIX" >&5
4083 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4084 cat >conftest.
$ac_ext <<_ACEOF
4085 #line $LINENO "configure"
4088 cat confdefs.h
>>conftest.
$ac_ext
4089 cat >>conftest.
$ac_ext <<_ACEOF
4090 /* end confdefs.h. */
4096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4097 $EGREP "yes" >/dev
/null
2>&1; then
4098 echo "$as_me:$LINENO: result: yes" >&5
4099 echo "${ECHO_T}yes" >&6
4100 cat >>confdefs.h
<<\_ACEOF
4101 #define _ALL_SOURCE 1
4105 echo "$as_me:$LINENO: result: no" >&5
4106 echo "${ECHO_T}no" >&6
4112 #### Extract some information from the operating system and machine files.
4114 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4115 - which libraries the lib-src programs will want, and
4116 - whether the GNU malloc routines are usable..." >&5
4117 echo "$as_me: checking the machine- and system-dependent files to find out
4118 - which libraries the lib-src programs will want, and
4119 - whether the GNU malloc routines are usable..." >&6;}
4121 ### First figure out CFLAGS (which we use for running the compiler here)
4122 ### and REAL_CFLAGS (which we use for real compilation).
4123 ### The two are the same except on a few systems, where they are made
4124 ### different to work around various lossages. For example,
4125 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4126 ### as implying static linking.
4128 ### If the CFLAGS env var is specified, we use that value
4129 ### instead of the default.
4131 ### It's not important that this name contain the PID; you can't run
4132 ### two configures in the same directory and have anything work
4134 tempcname
="conftest.c"
4137 #include "'${srcdir}'/src/'${opsysfile}'"
4138 #include "'${srcdir}'/src/'${machfile}'"
4139 #ifndef LIBS_MACHINE
4140 #define LIBS_MACHINE
4145 #ifndef C_SWITCH_SYSTEM
4146 #define C_SWITCH_SYSTEM
4148 #ifndef C_SWITCH_MACHINE
4149 #define C_SWITCH_MACHINE
4151 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4152 configure___ c_switch_system=C_SWITCH_SYSTEM
4153 configure___ c_switch_machine=C_SWITCH_MACHINE
4156 #define LIB_X11_LIB -lX11
4159 #ifndef LIBX11_MACHINE
4160 #define LIBX11_MACHINE
4163 #ifndef LIBX11_SYSTEM
4164 #define LIBX11_SYSTEM
4166 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4169 configure___ unexec=UNEXEC
4171 configure___ unexec=unexec.o
4174 #ifdef SYSTEM_MALLOC
4175 configure___ system_malloc=yes
4177 configure___ system_malloc=no
4180 #ifdef USE_MMAP_FOR_BUFFERS
4181 configure___ use_mmap_for_buffers=yes
4183 configure___ use_mmap_for_buffers=no
4186 #ifndef C_DEBUG_SWITCH
4187 #define C_DEBUG_SWITCH -g
4190 #ifndef C_OPTIMIZE_SWITCH
4192 #define C_OPTIMIZE_SWITCH -O2
4194 #define C_OPTIMIZE_SWITCH -O
4198 #ifndef LD_SWITCH_MACHINE
4199 #define LD_SWITCH_MACHINE
4202 #ifndef LD_SWITCH_SYSTEM
4203 #define LD_SWITCH_SYSTEM
4206 #ifndef LD_SWITCH_X_SITE_AUX
4207 #define LD_SWITCH_X_SITE_AUX
4210 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4211 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4213 #ifdef THIS_IS_CONFIGURE
4215 /* Get the CFLAGS for tests in configure. */
4217 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4219 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4222 #else /* not THIS_IS_CONFIGURE */
4224 /* Get the CFLAGS for real compilation. */
4226 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4228 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4231 #endif /* not THIS_IS_CONFIGURE */
4234 # The value of CPP is a quoted variable reference, so we need to do this
4235 # to get its actual value...
4236 CPP
=`eval "echo $CPP"`
4237 eval `${CPP} -Isrc ${tempcname} \
4238 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4239 if test "x$SPECIFIED_CFLAGS" = x
; then
4240 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4241 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4243 REAL_CFLAGS
="$CFLAGS"
4247 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4249 ### Make sure subsequent tests use flags consistent with the build flags.
4251 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4252 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4254 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4260 cat >>confdefs.h
<<\_ACEOF
4261 #define _GNU_SOURCE 1
4266 # Check whether --enable-largefile or --disable-largefile was given.
4267 if test "${enable_largefile+set}" = set; then
4268 enableval
="$enable_largefile"
4271 if test "$enable_largefile" != no
; then
4273 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4274 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4275 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4276 echo $ECHO_N "(cached) $ECHO_C" >&6
4278 ac_cv_sys_largefile_CC
=no
4279 if test "$GCC" != yes; then
4282 # IRIX 6.2 and later do not support large files by default,
4283 # so use the C compiler's -n32 option if that helps.
4284 cat >conftest.
$ac_ext <<_ACEOF
4285 #line $LINENO "configure"
4288 cat confdefs.h
>>conftest.
$ac_ext
4289 cat >>conftest.
$ac_ext <<_ACEOF
4290 /* end confdefs.h. */
4291 #include <sys/types.h>
4292 /* Check that off_t can represent 2**63 - 1 correctly.
4293 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4294 since some C++ compilers masquerading as C compilers
4295 incorrectly reject 9223372036854775807. */
4296 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4297 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4298 && LARGE_OFF_T % 2147483647 == 1)
4308 rm -f conftest.
$ac_objext
4309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4310 (eval $ac_compile) 2>&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } &&
4314 { ac_try
='test -s conftest.$ac_objext'
4315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); }; }; then
4322 echo "$as_me: failed program was:" >&5
4323 sed 's/^/| /' conftest.
$ac_ext >&5
4326 rm -f conftest.
$ac_objext
4328 rm -f conftest.
$ac_objext
4329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4330 (eval $ac_compile) 2>&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); } &&
4334 { ac_try
='test -s conftest.$ac_objext'
4335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); }; }; then
4340 ac_cv_sys_largefile_CC
=' -n32'; break
4342 echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.
$ac_ext >&5
4346 rm -f conftest.
$ac_objext
4350 rm -f conftest.
$ac_ext
4353 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4354 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4355 if test "$ac_cv_sys_largefile_CC" != no
; then
4356 CC
=$CC$ac_cv_sys_largefile_CC
4359 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4360 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4361 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4362 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 ac_cv_sys_file_offset_bits
=no
4366 cat >conftest.
$ac_ext <<_ACEOF
4367 #line $LINENO "configure"
4370 cat confdefs.h
>>conftest.
$ac_ext
4371 cat >>conftest.
$ac_ext <<_ACEOF
4372 /* end confdefs.h. */
4373 #include <sys/types.h>
4374 /* Check that off_t can represent 2**63 - 1 correctly.
4375 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4376 since some C++ compilers masquerading as C compilers
4377 incorrectly reject 9223372036854775807. */
4378 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4379 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4380 && LARGE_OFF_T % 2147483647 == 1)
4390 rm -f conftest.
$ac_objext
4391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4392 (eval $ac_compile) 2>&5
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); } &&
4396 { ac_try
='test -s conftest.$ac_objext'
4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; }; then
4404 echo "$as_me: failed program was:" >&5
4405 sed 's/^/| /' conftest.
$ac_ext >&5
4408 rm -f conftest.
$ac_objext conftest.
$ac_ext
4409 cat >conftest.
$ac_ext <<_ACEOF
4410 #line $LINENO "configure"
4413 cat confdefs.h
>>conftest.
$ac_ext
4414 cat >>conftest.
$ac_ext <<_ACEOF
4415 /* end confdefs.h. */
4416 #define _FILE_OFFSET_BITS 64
4417 #include <sys/types.h>
4418 /* Check that off_t can represent 2**63 - 1 correctly.
4419 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4420 since some C++ compilers masquerading as C compilers
4421 incorrectly reject 9223372036854775807. */
4422 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4423 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4424 && LARGE_OFF_T % 2147483647 == 1)
4434 rm -f conftest.
$ac_objext
4435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4436 (eval $ac_compile) 2>&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); } &&
4440 { ac_try
='test -s conftest.$ac_objext'
4441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; }; then
4446 ac_cv_sys_file_offset_bits
=64; break
4448 echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.
$ac_ext >&5
4452 rm -f conftest.
$ac_objext conftest.
$ac_ext
4456 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4457 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4458 if test "$ac_cv_sys_file_offset_bits" != no
; then
4460 cat >>confdefs.h
<<_ACEOF
4461 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4466 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4467 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4468 if test "${ac_cv_sys_large_files+set}" = set; then
4469 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 ac_cv_sys_large_files
=no
4473 cat >conftest.
$ac_ext <<_ACEOF
4474 #line $LINENO "configure"
4477 cat confdefs.h
>>conftest.
$ac_ext
4478 cat >>conftest.
$ac_ext <<_ACEOF
4479 /* end confdefs.h. */
4480 #include <sys/types.h>
4481 /* Check that off_t can represent 2**63 - 1 correctly.
4482 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4483 since some C++ compilers masquerading as C compilers
4484 incorrectly reject 9223372036854775807. */
4485 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4486 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4487 && LARGE_OFF_T % 2147483647 == 1)
4497 rm -f conftest.
$ac_objext
4498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4499 (eval $ac_compile) 2>&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); } &&
4503 { ac_try
='test -s conftest.$ac_objext'
4504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); }; }; then
4511 echo "$as_me: failed program was:" >&5
4512 sed 's/^/| /' conftest.
$ac_ext >&5
4515 rm -f conftest.
$ac_objext conftest.
$ac_ext
4516 cat >conftest.
$ac_ext <<_ACEOF
4517 #line $LINENO "configure"
4520 cat confdefs.h
>>conftest.
$ac_ext
4521 cat >>conftest.
$ac_ext <<_ACEOF
4522 /* end confdefs.h. */
4523 #define _LARGE_FILES 1
4524 #include <sys/types.h>
4525 /* Check that off_t can represent 2**63 - 1 correctly.
4526 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4527 since some C++ compilers masquerading as C compilers
4528 incorrectly reject 9223372036854775807. */
4529 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4530 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4531 && LARGE_OFF_T % 2147483647 == 1)
4541 rm -f conftest.
$ac_objext
4542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4543 (eval $ac_compile) 2>&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } &&
4547 { ac_try
='test -s conftest.$ac_objext'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; }; then
4553 ac_cv_sys_large_files
=1; break
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.
$ac_ext >&5
4559 rm -f conftest.
$ac_objext conftest.
$ac_ext
4563 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4564 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4565 if test "$ac_cv_sys_large_files" != no
; then
4567 cat >>confdefs.h
<<_ACEOF
4568 #define _LARGE_FILES $ac_cv_sys_large_files
4576 if test "${with_sound}" != "no"; then
4577 # Sound support for GNU/Linux and the free BSDs.
4578 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4579 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4580 if test "${ac_cv_header_stdc+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 cat >conftest.
$ac_ext <<_ACEOF
4584 #line $LINENO "configure"
4587 cat confdefs.h
>>conftest.
$ac_ext
4588 cat >>conftest.
$ac_ext <<_ACEOF
4589 /* end confdefs.h. */
4603 rm -f conftest.
$ac_objext
4604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4605 (eval $ac_compile) 2>&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } &&
4609 { ac_try
='test -s conftest.$ac_objext'
4610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }; }; then
4615 ac_cv_header_stdc
=yes
4617 echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.
$ac_ext >&5
4620 ac_cv_header_stdc
=no
4622 rm -f conftest.
$ac_objext conftest.
$ac_ext
4624 if test $ac_cv_header_stdc = yes; then
4625 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4626 cat >conftest.
$ac_ext <<_ACEOF
4627 #line $LINENO "configure"
4630 cat confdefs.h
>>conftest.
$ac_ext
4631 cat >>conftest.
$ac_ext <<_ACEOF
4632 /* end confdefs.h. */
4636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4637 $EGREP "memchr" >/dev
/null
2>&1; then
4640 ac_cv_header_stdc
=no
4646 if test $ac_cv_header_stdc = yes; then
4647 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4648 cat >conftest.
$ac_ext <<_ACEOF
4649 #line $LINENO "configure"
4652 cat confdefs.h
>>conftest.
$ac_ext
4653 cat >>conftest.
$ac_ext <<_ACEOF
4654 /* end confdefs.h. */
4658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4659 $EGREP "free" >/dev
/null
2>&1; then
4662 ac_cv_header_stdc
=no
4668 if test $ac_cv_header_stdc = yes; then
4669 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4670 if test "$cross_compiling" = yes; then
4673 cat >conftest.
$ac_ext <<_ACEOF
4674 #line $LINENO "configure"
4677 cat confdefs.h
>>conftest.
$ac_ext
4678 cat >>conftest.
$ac_ext <<_ACEOF
4679 /* end confdefs.h. */
4681 #if ((' ' & 0x0FF) == 0x020)
4682 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4683 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4685 # define ISLOWER(c) \
4686 (('a' <= (c) && (c) <= 'i') \
4687 || ('j' <= (c) && (c) <= 'r') \
4688 || ('s' <= (c) && (c) <= 'z'))
4689 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4692 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4697 for (i = 0; i < 256; i++)
4698 if (XOR (islower (i), ISLOWER (i))
4699 || toupper (i) != TOUPPER (i))
4704 rm -f conftest
$ac_exeext
4705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4706 (eval $ac_link) 2>&5
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); }; }; then
4717 echo "$as_me: program exited with status $ac_status" >&5
4718 echo "$as_me: failed program was:" >&5
4719 sed 's/^/| /' conftest.
$ac_ext >&5
4722 ac_cv_header_stdc
=no
4724 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4728 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4729 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4730 if test $ac_cv_header_stdc = yes; then
4732 cat >>confdefs.h
<<\_ACEOF
4733 #define STDC_HEADERS 1
4738 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4748 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4749 inttypes.h stdint.h unistd.h
4751 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4752 echo "$as_me:$LINENO: checking for $ac_header" >&5
4753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4755 echo $ECHO_N "(cached) $ECHO_C" >&6
4757 cat >conftest.
$ac_ext <<_ACEOF
4758 #line $LINENO "configure"
4761 cat confdefs.h
>>conftest.
$ac_ext
4762 cat >>conftest.
$ac_ext <<_ACEOF
4763 /* end confdefs.h. */
4764 $ac_includes_default
4766 #include <$ac_header>
4768 rm -f conftest.
$ac_objext
4769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4770 (eval $ac_compile) 2>&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } &&
4774 { ac_try
='test -s conftest.$ac_objext'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; }; then
4780 eval "$as_ac_Header=yes"
4782 echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.
$ac_ext >&5
4785 eval "$as_ac_Header=no"
4787 rm -f conftest.
$ac_objext conftest.
$ac_ext
4789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4791 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4792 cat >>confdefs.h
<<_ACEOF
4793 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4804 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
4806 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4808 echo "$as_me:$LINENO: checking for $ac_header" >&5
4809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4816 # Is the header compilable?
4817 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4819 cat >conftest.
$ac_ext <<_ACEOF
4820 #line $LINENO "configure"
4823 cat confdefs.h
>>conftest.
$ac_ext
4824 cat >>conftest.
$ac_ext <<_ACEOF
4825 /* end confdefs.h. */
4826 $ac_includes_default
4827 #include <$ac_header>
4829 rm -f conftest.
$ac_objext
4830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4831 (eval $ac_compile) 2>&5
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); } &&
4835 { ac_try
='test -s conftest.$ac_objext'
4836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); }; }; then
4841 ac_header_compiler
=yes
4843 echo "$as_me: failed program was:" >&5
4844 sed 's/^/| /' conftest.
$ac_ext >&5
4846 ac_header_compiler
=no
4848 rm -f conftest.
$ac_objext conftest.
$ac_ext
4849 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4850 echo "${ECHO_T}$ac_header_compiler" >&6
4852 # Is the header present?
4853 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4854 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4855 cat >conftest.
$ac_ext <<_ACEOF
4856 #line $LINENO "configure"
4859 cat confdefs.h
>>conftest.
$ac_ext
4860 cat >>conftest.
$ac_ext <<_ACEOF
4861 /* end confdefs.h. */
4862 #include <$ac_header>
4864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4865 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4867 grep -v '^ *+' conftest.er1
>conftest.err
4869 cat conftest.err
>&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); } >/dev
/null
; then
4872 if test -s conftest.err
; then
4873 ac_cpp_err
=$ac_c_preproc_warn_flag
4880 if test -z "$ac_cpp_err"; then
4881 ac_header_preproc
=yes
4883 echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.
$ac_ext >&5
4886 ac_header_preproc
=no
4888 rm -f conftest.err conftest.
$ac_ext
4889 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4890 echo "${ECHO_T}$ac_header_preproc" >&6
4892 # So? What about this header?
4893 case $ac_header_compiler:$ac_header_preproc in
4895 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4896 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4901 ## ------------------------------------ ##
4902 ## Report this to bug-autoconf@gnu.org. ##
4903 ## ------------------------------------ ##
4906 sed "s/^/$as_me: WARNING: /" >&2
4909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4912 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4917 ## ------------------------------------ ##
4918 ## Report this to bug-autoconf@gnu.org. ##
4919 ## ------------------------------------ ##
4922 sed "s/^/$as_me: WARNING: /" >&2
4925 echo "$as_me:$LINENO: checking for $ac_header" >&5
4926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4928 echo $ECHO_N "(cached) $ECHO_C" >&6
4930 eval "$as_ac_Header=$ac_header_preproc"
4932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4937 cat >>confdefs.h
<<_ACEOF
4938 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4945 # Emulation library used on NetBSD.
4946 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4947 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4948 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4951 ac_check_lib_save_LIBS
=$LIBS
4952 LIBS
="-lossaudio $LIBS"
4953 cat >conftest.
$ac_ext <<_ACEOF
4954 #line $LINENO "configure"
4957 cat confdefs.h
>>conftest.
$ac_ext
4958 cat >>conftest.
$ac_ext <<_ACEOF
4959 /* end confdefs.h. */
4961 /* Override any gcc2 internal prototype to avoid an error. */
4965 /* We use char because int might match the return type of a gcc2
4966 builtin and then its argument prototype would still apply. */
4976 rm -f conftest.
$ac_objext conftest
$ac_exeext
4977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4978 (eval $ac_link) 2>&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); } &&
4982 { ac_try
='test -s conftest$ac_exeext'
4983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); }; }; then
4988 ac_cv_lib_ossaudio__oss_ioctl
=yes
4990 echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.
$ac_ext >&5
4993 ac_cv_lib_ossaudio__oss_ioctl
=no
4995 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4996 LIBS
=$ac_check_lib_save_LIBS
4998 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4999 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5000 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5031 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5032 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5033 termcap.h stdio_ext.h fcntl.h term.h
strings.h coff.h pty.h sys
/mman.h \
5034 sys
/param.h sys
/vlimit.h sys
/resource.h
5036 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5038 echo "$as_me:$LINENO: checking for $ac_header" >&5
5039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5044 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5046 # Is the header compilable?
5047 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5049 cat >conftest.
$ac_ext <<_ACEOF
5050 #line $LINENO "configure"
5053 cat confdefs.h
>>conftest.
$ac_ext
5054 cat >>conftest.
$ac_ext <<_ACEOF
5055 /* end confdefs.h. */
5056 $ac_includes_default
5057 #include <$ac_header>
5059 rm -f conftest.
$ac_objext
5060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5061 (eval $ac_compile) 2>&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); } &&
5065 { ac_try
='test -s conftest.$ac_objext'
5066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); }; }; then
5071 ac_header_compiler
=yes
5073 echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.
$ac_ext >&5
5076 ac_header_compiler
=no
5078 rm -f conftest.
$ac_objext conftest.
$ac_ext
5079 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5080 echo "${ECHO_T}$ac_header_compiler" >&6
5082 # Is the header present?
5083 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5084 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5085 cat >conftest.
$ac_ext <<_ACEOF
5086 #line $LINENO "configure"
5089 cat confdefs.h
>>conftest.
$ac_ext
5090 cat >>conftest.
$ac_ext <<_ACEOF
5091 /* end confdefs.h. */
5092 #include <$ac_header>
5094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5095 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5097 grep -v '^ *+' conftest.er1
>conftest.err
5099 cat conftest.err
>&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } >/dev
/null
; then
5102 if test -s conftest.err
; then
5103 ac_cpp_err
=$ac_c_preproc_warn_flag
5110 if test -z "$ac_cpp_err"; then
5111 ac_header_preproc
=yes
5113 echo "$as_me: failed program was:" >&5
5114 sed 's/^/| /' conftest.
$ac_ext >&5
5116 ac_header_preproc
=no
5118 rm -f conftest.err conftest.
$ac_ext
5119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5120 echo "${ECHO_T}$ac_header_preproc" >&6
5122 # So? What about this header?
5123 case $ac_header_compiler:$ac_header_preproc in
5125 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5128 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5131 ## ------------------------------------ ##
5132 ## Report this to bug-autoconf@gnu.org. ##
5133 ## ------------------------------------ ##
5136 sed "s/^/$as_me: WARNING: /" >&2
5139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5142 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5147 ## ------------------------------------ ##
5148 ## Report this to bug-autoconf@gnu.org. ##
5149 ## ------------------------------------ ##
5152 sed "s/^/$as_me: WARNING: /" >&2
5155 echo "$as_me:$LINENO: checking for $ac_header" >&5
5156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5160 eval "$as_ac_Header=$ac_header_preproc"
5162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5167 cat >>confdefs.h
<<_ACEOF
5168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5176 for ac_header
in term.h
5178 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5179 echo "$as_me:$LINENO: checking for $ac_header" >&5
5180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5184 cat >conftest.
$ac_ext <<_ACEOF
5185 #line $LINENO "configure"
5188 cat confdefs.h
>>conftest.
$ac_ext
5189 cat >>conftest.
$ac_ext <<_ACEOF
5190 /* end confdefs.h. */
5191 #include <$ac_header>
5193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5194 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5196 grep -v '^ *+' conftest.er1
>conftest.err
5198 cat conftest.err
>&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); } >/dev
/null
; then
5201 if test -s conftest.err
; then
5202 ac_cpp_err
=$ac_c_preproc_warn_flag
5209 if test -z "$ac_cpp_err"; then
5210 eval "$as_ac_Header=yes"
5212 echo "$as_me: failed program was:" >&5
5213 sed 's/^/| /' conftest.
$ac_ext >&5
5215 eval "$as_ac_Header=no"
5217 rm -f conftest.err conftest.
$ac_ext
5219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5222 cat >>confdefs.h
<<_ACEOF
5223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5230 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5231 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5232 if test "${ac_cv_header_stdc+set}" = set; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5235 cat >conftest.
$ac_ext <<_ACEOF
5236 #line $LINENO "configure"
5239 cat confdefs.h
>>conftest.
$ac_ext
5240 cat >>conftest.
$ac_ext <<_ACEOF
5241 /* end confdefs.h. */
5255 rm -f conftest.
$ac_objext
5256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5257 (eval $ac_compile) 2>&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } &&
5261 { ac_try
='test -s conftest.$ac_objext'
5262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); }; }; then
5267 ac_cv_header_stdc
=yes
5269 echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.
$ac_ext >&5
5272 ac_cv_header_stdc
=no
5274 rm -f conftest.
$ac_objext conftest.
$ac_ext
5276 if test $ac_cv_header_stdc = yes; then
5277 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5278 cat >conftest.
$ac_ext <<_ACEOF
5279 #line $LINENO "configure"
5282 cat confdefs.h
>>conftest.
$ac_ext
5283 cat >>conftest.
$ac_ext <<_ACEOF
5284 /* end confdefs.h. */
5288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5289 $EGREP "memchr" >/dev
/null
2>&1; then
5292 ac_cv_header_stdc
=no
5298 if test $ac_cv_header_stdc = yes; then
5299 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5300 cat >conftest.
$ac_ext <<_ACEOF
5301 #line $LINENO "configure"
5304 cat confdefs.h
>>conftest.
$ac_ext
5305 cat >>conftest.
$ac_ext <<_ACEOF
5306 /* end confdefs.h. */
5310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5311 $EGREP "free" >/dev
/null
2>&1; then
5314 ac_cv_header_stdc
=no
5320 if test $ac_cv_header_stdc = yes; then
5321 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5322 if test "$cross_compiling" = yes; then
5325 cat >conftest.
$ac_ext <<_ACEOF
5326 #line $LINENO "configure"
5329 cat confdefs.h
>>conftest.
$ac_ext
5330 cat >>conftest.
$ac_ext <<_ACEOF
5331 /* end confdefs.h. */
5333 #if ((' ' & 0x0FF) == 0x020)
5334 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5335 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5337 # define ISLOWER(c) \
5338 (('a' <= (c) && (c) <= 'i') \
5339 || ('j' <= (c) && (c) <= 'r') \
5340 || ('s' <= (c) && (c) <= 'z'))
5341 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5344 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5349 for (i = 0; i < 256; i++)
5350 if (XOR (islower (i), ISLOWER (i))
5351 || toupper (i) != TOUPPER (i))
5356 rm -f conftest
$ac_exeext
5357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5358 (eval $ac_link) 2>&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); }; }; then
5369 echo "$as_me: program exited with status $ac_status" >&5
5370 echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.
$ac_ext >&5
5374 ac_cv_header_stdc
=no
5376 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5380 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5381 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5382 if test $ac_cv_header_stdc = yes; then
5384 cat >>confdefs.h
<<\_ACEOF
5385 #define STDC_HEADERS 1
5390 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5391 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5392 if test "${ac_cv_header_time+set}" = set; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
5395 cat >conftest.
$ac_ext <<_ACEOF
5396 #line $LINENO "configure"
5399 cat confdefs.h
>>conftest.
$ac_ext
5400 cat >>conftest.
$ac_ext <<_ACEOF
5401 /* end confdefs.h. */
5402 #include <sys/types.h>
5403 #include <sys/time.h>
5409 if ((struct tm *) 0)
5415 rm -f conftest.
$ac_objext
5416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5417 (eval $ac_compile) 2>&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); } &&
5421 { ac_try
='test -s conftest.$ac_objext'
5422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); }; }; then
5427 ac_cv_header_time
=yes
5429 echo "$as_me: failed program was:" >&5
5430 sed 's/^/| /' conftest.
$ac_ext >&5
5432 ac_cv_header_time
=no
5434 rm -f conftest.
$ac_objext conftest.
$ac_ext
5436 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5437 echo "${ECHO_T}$ac_cv_header_time" >&6
5438 if test $ac_cv_header_time = yes; then
5440 cat >>confdefs.h
<<\_ACEOF
5441 #define TIME_WITH_SYS_TIME 1
5446 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5447 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5448 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5451 cat >conftest.
$ac_ext <<_ACEOF
5452 #line $LINENO "configure"
5455 cat confdefs.h
>>conftest.
$ac_ext
5456 cat >>conftest.
$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5458 $ac_includes_default
5463 char *p = (char *) sys_siglist;
5470 rm -f conftest.
$ac_objext
5471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5472 (eval $ac_compile) 2>&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); } &&
5476 { ac_try
='test -s conftest.$ac_objext'
5477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); }; }; then
5482 ac_cv_have_decl_sys_siglist
=yes
5484 echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.
$ac_ext >&5
5487 ac_cv_have_decl_sys_siglist
=no
5489 rm -f conftest.
$ac_objext conftest.
$ac_ext
5491 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5492 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5493 if test $ac_cv_have_decl_sys_siglist = yes; then
5495 cat >>confdefs.h
<<_ACEOF
5496 #define HAVE_DECL_SYS_SIGLIST 1
5501 cat >>confdefs.h
<<_ACEOF
5502 #define HAVE_DECL_SYS_SIGLIST 0
5509 if test $ac_cv_have_decl_sys_siglist != yes; then
5510 # For Tru64, at least:
5511 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5512 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5513 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5516 cat >conftest.
$ac_ext <<_ACEOF
5517 #line $LINENO "configure"
5520 cat confdefs.h
>>conftest.
$ac_ext
5521 cat >>conftest.
$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5523 $ac_includes_default
5527 #ifndef __sys_siglist
5528 char *p = (char *) __sys_siglist;
5535 rm -f conftest.
$ac_objext
5536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5537 (eval $ac_compile) 2>&5
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); } &&
5541 { ac_try
='test -s conftest.$ac_objext'
5542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }; }; then
5547 ac_cv_have_decl___sys_siglist
=yes
5549 echo "$as_me: failed program was:" >&5
5550 sed 's/^/| /' conftest.
$ac_ext >&5
5552 ac_cv_have_decl___sys_siglist
=no
5554 rm -f conftest.
$ac_objext conftest.
$ac_ext
5556 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5557 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5558 if test $ac_cv_have_decl___sys_siglist = yes; then
5560 cat >>confdefs.h
<<_ACEOF
5561 #define HAVE_DECL___SYS_SIGLIST 1
5566 cat >>confdefs.h
<<_ACEOF
5567 #define HAVE_DECL___SYS_SIGLIST 0
5574 if test $ac_cv_have_decl___sys_siglist = yes; then
5576 cat >>confdefs.h
<<\_ACEOF
5577 #define sys_siglist __sys_siglist
5582 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5583 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5584 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5587 cat >conftest.
$ac_ext <<_ACEOF
5588 #line $LINENO "configure"
5591 cat confdefs.h
>>conftest.
$ac_ext
5592 cat >>conftest.
$ac_ext <<_ACEOF
5593 /* end confdefs.h. */
5594 #include <sys/types.h>
5595 #include <sys/wait.h>
5597 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5600 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5608 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5613 rm -f conftest.
$ac_objext
5614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5615 (eval $ac_compile) 2>&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); } &&
5619 { ac_try
='test -s conftest.$ac_objext'
5620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); }; }; then
5625 ac_cv_header_sys_wait_h
=yes
5627 echo "$as_me: failed program was:" >&5
5628 sed 's/^/| /' conftest.
$ac_ext >&5
5630 ac_cv_header_sys_wait_h
=no
5632 rm -f conftest.
$ac_objext conftest.
$ac_ext
5634 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5635 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5636 if test $ac_cv_header_sys_wait_h = yes; then
5638 cat >>confdefs.h
<<\_ACEOF
5639 #define HAVE_SYS_WAIT_H 1
5645 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5646 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5647 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5648 echo $ECHO_N "(cached) $ECHO_C" >&6
5650 cat >conftest.
$ac_ext <<_ACEOF
5651 #line $LINENO "configure"
5654 cat confdefs.h
>>conftest.
$ac_ext
5655 cat >>conftest.
$ac_ext <<_ACEOF
5656 /* end confdefs.h. */
5657 #ifdef TIME_WITH_SYS_TIME
5658 #include <sys/time.h>
5661 #ifdef HAVE_SYS_TIME_H
5662 #include <sys/time.h>
5673 static struct utimbuf x; x.actime = x.modtime;
5678 rm -f conftest.
$ac_objext
5679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5680 (eval $ac_compile) 2>&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); } &&
5684 { ac_try
='test -s conftest.$ac_objext'
5685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); }; }; then
5690 emacs_cv_struct_utimbuf
=yes
5692 echo "$as_me: failed program was:" >&5
5693 sed 's/^/| /' conftest.
$ac_ext >&5
5695 emacs_cv_struct_utimbuf
=no
5697 rm -f conftest.
$ac_objext conftest.
$ac_ext
5699 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5700 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5701 if test $emacs_cv_struct_utimbuf = yes; then
5703 cat >>confdefs.h
<<\_ACEOF
5704 #define HAVE_STRUCT_UTIMBUF 1
5709 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5710 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5711 if test "${ac_cv_type_signal+set}" = set; then
5712 echo $ECHO_N "(cached) $ECHO_C" >&6
5714 cat >conftest.
$ac_ext <<_ACEOF
5715 #line $LINENO "configure"
5718 cat confdefs.h
>>conftest.
$ac_ext
5719 cat >>conftest.
$ac_ext <<_ACEOF
5720 /* end confdefs.h. */
5721 #include <sys/types.h>
5727 extern "C" void (*signal (int, void (*)(int)))(int);
5729 void (*signal ()) ();
5740 rm -f conftest.
$ac_objext
5741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5742 (eval $ac_compile) 2>&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); } &&
5746 { ac_try
='test -s conftest.$ac_objext'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; }; then
5752 ac_cv_type_signal
=void
5754 echo "$as_me: failed program was:" >&5
5755 sed 's/^/| /' conftest.
$ac_ext >&5
5757 ac_cv_type_signal
=int
5759 rm -f conftest.
$ac_objext conftest.
$ac_ext
5761 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5762 echo "${ECHO_T}$ac_cv_type_signal" >&6
5764 cat >>confdefs.h
<<_ACEOF
5765 #define RETSIGTYPE $ac_cv_type_signal
5770 echo "$as_me:$LINENO: checking for speed_t" >&5
5771 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5772 if test "${emacs_cv_speed_t+set}" = set; then
5773 echo $ECHO_N "(cached) $ECHO_C" >&6
5775 cat >conftest.
$ac_ext <<_ACEOF
5776 #line $LINENO "configure"
5779 cat confdefs.h
>>conftest.
$ac_ext
5780 cat >>conftest.
$ac_ext <<_ACEOF
5781 /* end confdefs.h. */
5782 #include <termios.h>
5791 rm -f conftest.
$ac_objext
5792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5793 (eval $ac_compile) 2>&5
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); } &&
5797 { ac_try
='test -s conftest.$ac_objext'
5798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); }; }; then
5803 emacs_cv_speed_t
=yes
5805 echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.
$ac_ext >&5
5810 rm -f conftest.
$ac_objext conftest.
$ac_ext
5812 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5813 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5814 if test $emacs_cv_speed_t = yes; then
5816 cat >>confdefs.h
<<\_ACEOF
5817 #define HAVE_SPEED_T 1
5822 echo "$as_me:$LINENO: checking for struct timeval" >&5
5823 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5824 if test "${emacs_cv_struct_timeval+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 cat >conftest.
$ac_ext <<_ACEOF
5828 #line $LINENO "configure"
5831 cat confdefs.h
>>conftest.
$ac_ext
5832 cat >>conftest.
$ac_ext <<_ACEOF
5833 /* end confdefs.h. */
5834 #ifdef TIME_WITH_SYS_TIME
5835 #include <sys/time.h>
5838 #ifdef HAVE_SYS_TIME_H
5839 #include <sys/time.h>
5847 static struct timeval x; x.tv_sec = x.tv_usec;
5852 rm -f conftest.
$ac_objext
5853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5854 (eval $ac_compile) 2>&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); } &&
5858 { ac_try
='test -s conftest.$ac_objext'
5859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); }; }; then
5864 emacs_cv_struct_timeval
=yes
5866 echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.
$ac_ext >&5
5869 emacs_cv_struct_timeval
=no
5871 rm -f conftest.
$ac_objext conftest.
$ac_ext
5873 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5874 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5875 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
5876 if test $emacs_cv_struct_timeval = yes; then
5878 cat >>confdefs.h
<<\_ACEOF
5879 #define HAVE_TIMEVAL 1
5884 echo "$as_me:$LINENO: checking for struct exception" >&5
5885 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5886 if test "${emacs_cv_struct_exception+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 cat >conftest.
$ac_ext <<_ACEOF
5890 #line $LINENO "configure"
5893 cat confdefs.h
>>conftest.
$ac_ext
5894 cat >>conftest.
$ac_ext <<_ACEOF
5895 /* end confdefs.h. */
5900 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5905 rm -f conftest.
$ac_objext
5906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5907 (eval $ac_compile) 2>&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); } &&
5911 { ac_try
='test -s conftest.$ac_objext'
5912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }; }; then
5917 emacs_cv_struct_exception
=yes
5919 echo "$as_me: failed program was:" >&5
5920 sed 's/^/| /' conftest.
$ac_ext >&5
5922 emacs_cv_struct_exception
=no
5924 rm -f conftest.
$ac_objext conftest.
$ac_ext
5926 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5927 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5928 HAVE_EXCEPTION
=$emacs_cv_struct_exception
5929 if test $emacs_cv_struct_exception != yes; then
5931 cat >>confdefs.h
<<\_ACEOF
5932 #define NO_MATHERR 1
5937 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5938 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5939 if test "${ac_cv_struct_tm+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5942 cat >conftest.
$ac_ext <<_ACEOF
5943 #line $LINENO "configure"
5946 cat confdefs.h
>>conftest.
$ac_ext
5947 cat >>conftest.
$ac_ext <<_ACEOF
5948 /* end confdefs.h. */
5949 #include <sys/types.h>
5955 struct tm *tp; tp->tm_sec;
5960 rm -f conftest.
$ac_objext
5961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5962 (eval $ac_compile) 2>&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } &&
5966 { ac_try
='test -s conftest.$ac_objext'
5967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }; }; then
5972 ac_cv_struct_tm
=time.h
5974 echo "$as_me: failed program was:" >&5
5975 sed 's/^/| /' conftest.
$ac_ext >&5
5977 ac_cv_struct_tm
=sys
/time.h
5979 rm -f conftest.
$ac_objext conftest.
$ac_ext
5981 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5982 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5983 if test $ac_cv_struct_tm = sys
/time.h
; then
5985 cat >>confdefs.h
<<\_ACEOF
5986 #define TM_IN_SYS_TIME 1
5991 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5992 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5993 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5996 cat >conftest.
$ac_ext <<_ACEOF
5997 #line $LINENO "configure"
6000 cat confdefs.h
>>conftest.
$ac_ext
6001 cat >>conftest.
$ac_ext <<_ACEOF
6002 /* end confdefs.h. */
6003 #include <sys/types.h>
6004 #include <$ac_cv_struct_tm>
6010 static struct tm ac_aggr;
6011 if (ac_aggr.tm_zone)
6017 rm -f conftest.
$ac_objext
6018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6019 (eval $ac_compile) 2>&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } &&
6023 { ac_try
='test -s conftest.$ac_objext'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; }; then
6029 ac_cv_member_struct_tm_tm_zone
=yes
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.
$ac_ext >&5
6034 cat >conftest.
$ac_ext <<_ACEOF
6035 #line $LINENO "configure"
6038 cat confdefs.h
>>conftest.
$ac_ext
6039 cat >>conftest.
$ac_ext <<_ACEOF
6040 /* end confdefs.h. */
6041 #include <sys/types.h>
6042 #include <$ac_cv_struct_tm>
6048 static struct tm ac_aggr;
6049 if (sizeof ac_aggr.tm_zone)
6055 rm -f conftest.
$ac_objext
6056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6057 (eval $ac_compile) 2>&5
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); } &&
6061 { ac_try
='test -s conftest.$ac_objext'
6062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); }; }; then
6067 ac_cv_member_struct_tm_tm_zone
=yes
6069 echo "$as_me: failed program was:" >&5
6070 sed 's/^/| /' conftest.
$ac_ext >&5
6072 ac_cv_member_struct_tm_tm_zone
=no
6074 rm -f conftest.
$ac_objext conftest.
$ac_ext
6076 rm -f conftest.
$ac_objext conftest.
$ac_ext
6078 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6079 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6080 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6082 cat >>confdefs.h
<<_ACEOF
6083 #define HAVE_STRUCT_TM_TM_ZONE 1
6089 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6091 cat >>confdefs.h
<<\_ACEOF
6092 #define HAVE_TM_ZONE 1
6096 echo "$as_me:$LINENO: checking for tzname" >&5
6097 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6098 if test "${ac_cv_var_tzname+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 cat >conftest.
$ac_ext <<_ACEOF
6102 #line $LINENO "configure"
6105 cat confdefs.h
>>conftest.
$ac_ext
6106 cat >>conftest.
$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6109 #ifndef tzname /* For SGI. */
6110 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6121 rm -f conftest.
$ac_objext conftest
$ac_exeext
6122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6123 (eval $ac_link) 2>&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); } &&
6127 { ac_try
='test -s conftest$ac_exeext'
6128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; }; then
6133 ac_cv_var_tzname
=yes
6135 echo "$as_me: failed program was:" >&5
6136 sed 's/^/| /' conftest.
$ac_ext >&5
6140 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6142 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6143 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6144 if test $ac_cv_var_tzname = yes; then
6146 cat >>confdefs.h
<<\_ACEOF
6147 #define HAVE_TZNAME 1
6153 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6154 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6155 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
6158 cat >conftest.
$ac_ext <<_ACEOF
6159 #line $LINENO "configure"
6162 cat confdefs.h
>>conftest.
$ac_ext
6163 cat >>conftest.
$ac_ext <<_ACEOF
6164 /* end confdefs.h. */
6170 static struct tm ac_aggr;
6171 if (ac_aggr.tm_gmtoff)
6177 rm -f conftest.
$ac_objext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6179 (eval $ac_compile) 2>&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); } &&
6183 { ac_try
='test -s conftest.$ac_objext'
6184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); }; }; then
6189 ac_cv_member_struct_tm_tm_gmtoff
=yes
6191 echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.
$ac_ext >&5
6194 cat >conftest.
$ac_ext <<_ACEOF
6195 #line $LINENO "configure"
6198 cat confdefs.h
>>conftest.
$ac_ext
6199 cat >>conftest.
$ac_ext <<_ACEOF
6200 /* end confdefs.h. */
6206 static struct tm ac_aggr;
6207 if (sizeof ac_aggr.tm_gmtoff)
6213 rm -f conftest.
$ac_objext
6214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6215 (eval $ac_compile) 2>&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } &&
6219 { ac_try
='test -s conftest.$ac_objext'
6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; }; then
6225 ac_cv_member_struct_tm_tm_gmtoff
=yes
6227 echo "$as_me: failed program was:" >&5
6228 sed 's/^/| /' conftest.
$ac_ext >&5
6230 ac_cv_member_struct_tm_tm_gmtoff
=no
6232 rm -f conftest.
$ac_objext conftest.
$ac_ext
6234 rm -f conftest.
$ac_objext conftest.
$ac_ext
6236 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6237 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6238 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6240 cat >>confdefs.h
<<\_ACEOF
6241 #define HAVE_TM_GMTOFF 1
6248 echo "$as_me:$LINENO: checking for function prototypes" >&5
6249 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6250 if test "$ac_cv_prog_cc_stdc" != no
; then
6251 echo "$as_me:$LINENO: result: yes" >&5
6252 echo "${ECHO_T}yes" >&6
6254 cat >>confdefs.h
<<\_ACEOF
6255 #define PROTOTYPES 1
6259 cat >>confdefs.h
<<\_ACEOF
6260 #define __PROTOTYPES 1
6264 echo "$as_me:$LINENO: result: no" >&5
6265 echo "${ECHO_T}no" >&6
6268 echo "$as_me:$LINENO: checking for working volatile" >&5
6269 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6270 if test "${ac_cv_c_volatile+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6273 cat >conftest.
$ac_ext <<_ACEOF
6274 #line $LINENO "configure"
6277 cat confdefs.h
>>conftest.
$ac_ext
6278 cat >>conftest.
$ac_ext <<_ACEOF
6279 /* end confdefs.h. */
6291 rm -f conftest.
$ac_objext
6292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6293 (eval $ac_compile) 2>&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); } &&
6297 { ac_try
='test -s conftest.$ac_objext'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; }; then
6303 ac_cv_c_volatile
=yes
6305 echo "$as_me: failed program was:" >&5
6306 sed 's/^/| /' conftest.
$ac_ext >&5
6310 rm -f conftest.
$ac_objext conftest.
$ac_ext
6312 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6313 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6314 if test $ac_cv_c_volatile = no
; then
6316 cat >>confdefs.h
<<\_ACEOF
6322 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6323 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6324 if test "${ac_cv_c_const+set}" = set; then
6325 echo $ECHO_N "(cached) $ECHO_C" >&6
6327 cat >conftest.
$ac_ext <<_ACEOF
6328 #line $LINENO "configure"
6331 cat confdefs.h
>>conftest.
$ac_ext
6332 cat >>conftest.
$ac_ext <<_ACEOF
6333 /* end confdefs.h. */
6338 /* FIXME: Include the comments suggested by Paul. */
6340 /* Ultrix mips cc rejects this. */
6341 typedef int charset[2];
6343 /* SunOS 4.1.1 cc rejects this. */
6344 char const *const *ccp;
6346 /* NEC SVR4.0.2 mips cc rejects this. */
6347 struct point {int x, y;};
6348 static struct point const zero = {0,0};
6349 /* AIX XL C 1.02.0.0 rejects this.
6350 It does not let you subtract one const X* pointer from another in
6351 an arm of an if-expression whose if-part is not a constant
6353 const char *g = "string";
6354 ccp = &g + (g ? g-g : 0);
6355 /* HPUX 7.0 cc rejects these. */
6358 ccp = (char const *const *) p;
6359 { /* SCO 3.2v4 cc rejects this. */
6361 char const *s = 0 ? (char *) 0 : (char const *) 0;
6365 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6367 const int *foo = &x[0];
6370 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6371 typedef const int *iptr;
6375 { /* AIX XL C 1.02.0.0 rejects this saying
6376 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6377 struct s { int j; const int *ap[3]; };
6378 struct s *b; b->j = 5;
6380 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6389 rm -f conftest.
$ac_objext
6390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6391 (eval $ac_compile) 2>&5
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); } &&
6395 { ac_try
='test -s conftest.$ac_objext'
6396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); }; }; then
6403 echo "$as_me: failed program was:" >&5
6404 sed 's/^/| /' conftest.
$ac_ext >&5
6408 rm -f conftest.
$ac_objext conftest.
$ac_ext
6410 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6411 echo "${ECHO_T}$ac_cv_c_const" >&6
6412 if test $ac_cv_c_const = no
; then
6414 cat >>confdefs.h
<<\_ACEOF
6420 echo "$as_me:$LINENO: checking for void * support" >&5
6421 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
6422 if test "${emacs_cv_void_star+set}" = set; then
6423 echo $ECHO_N "(cached) $ECHO_C" >&6
6425 cat >conftest.
$ac_ext <<_ACEOF
6426 #line $LINENO "configure"
6429 cat confdefs.h
>>conftest.
$ac_ext
6430 cat >>conftest.
$ac_ext <<_ACEOF
6431 /* end confdefs.h. */
6441 rm -f conftest.
$ac_objext
6442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6443 (eval $ac_compile) 2>&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); } &&
6447 { ac_try
='test -s conftest.$ac_objext'
6448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); }; }; then
6453 emacs_cv_void_star
=yes
6455 echo "$as_me: failed program was:" >&5
6456 sed 's/^/| /' conftest.
$ac_ext >&5
6458 emacs_cv_void_star
=no
6460 rm -f conftest.
$ac_objext conftest.
$ac_ext
6462 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6463 echo "${ECHO_T}$emacs_cv_void_star" >&6
6464 if test $emacs_cv_void_star = yes; then
6465 cat >>confdefs.h
<<\_ACEOF
6466 #define POINTER_TYPE void
6470 cat >>confdefs.h
<<\_ACEOF
6471 #define POINTER_TYPE char
6478 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6479 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6480 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
6481 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6484 cat >conftest.
make <<\_ACEOF
6486 @
echo 'ac_maketemp="$(MAKE)"'
6488 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6489 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6490 if test -n "$ac_maketemp"; then
6491 eval ac_cv_prog_make_
${ac_make}_set
=yes
6493 eval ac_cv_prog_make_
${ac_make}_set
=no
6497 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6498 echo "$as_me:$LINENO: result: yes" >&5
6499 echo "${ECHO_T}yes" >&6
6502 echo "$as_me:$LINENO: result: no" >&5
6503 echo "${ECHO_T}no" >&6
6504 SET_MAKE
="MAKE=${MAKE-make}"
6508 echo "$as_me:$LINENO: checking for long file names" >&5
6509 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
6510 if test "${ac_cv_sys_long_file_names+set}" = set; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6513 ac_cv_sys_long_file_names
=yes
6514 # Test for long file names in all the places we know might matter:
6515 # . the current directory, where building will happen
6516 # $prefix/lib where we will be installing things
6517 # $exec_prefix/lib likewise
6518 # eval it to expand exec_prefix.
6519 # $TMPDIR if set, where it might want to write temporary files
6520 # if $TMPDIR is not set:
6521 # /tmp where it might want to write temporary files
6524 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6527 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
6529 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6530 test -d $ac_dir ||
continue
6531 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
6532 ac_xdir
=$ac_dir/cf$$
6533 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
6534 ac_tf1
=$ac_xdir/conftest9012345
6535 ac_tf2
=$ac_xdir/conftest9012346
6536 (echo 1 >$ac_tf1) 2>/dev
/null
6537 (echo 2 >$ac_tf2) 2>/dev
/null
6538 ac_val
=`cat $ac_tf1 2>/dev/null`
6539 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
6540 ac_cv_sys_long_file_names
=no
6541 rm -rf $ac_xdir 2>/dev
/null
6544 rm -rf $ac_xdir 2>/dev
/null
6547 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6548 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6549 if test $ac_cv_sys_long_file_names = yes; then
6551 cat >>confdefs.h
<<\_ACEOF
6552 #define HAVE_LONG_FILE_NAMES 1
6558 #### Choose a window system.
6560 echo "$as_me:$LINENO: checking for X" >&5
6561 echo $ECHO_N "checking for X... $ECHO_C" >&6
6564 # Check whether --with-x or --without-x was given.
6565 if test "${with_x+set}" = set; then
6569 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6570 if test "x$with_x" = xno
; then
6571 # The user explicitly disabled X.
6574 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
6575 # Both variables are already set.
6578 if test "${ac_cv_have_x+set}" = set; then
6579 echo $ECHO_N "(cached) $ECHO_C" >&6
6581 # One or both of the vars are not set, and there is no cached value.
6582 ac_x_includes
=no ac_x_libraries
=no
6584 if mkdir conftest.dir
; then
6586 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6587 cat >Imakefile
<<'_ACEOF'
6589 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6591 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6592 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6593 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6594 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6595 for ac_extension
in a so sl
; do
6596 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
6597 test -f $ac_im_libdir/libX11.
$ac_extension; then
6598 ac_im_usrlibdir
=$ac_im_libdir; break
6601 # Screen out bogus values from the imake configuration. They are
6602 # bogus both because they are the default anyway, and because
6603 # using them would break gcc on systems where it needs fixed includes.
6604 case $ac_im_incroot in
6606 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6608 case $ac_im_usrlibdir in
6610 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6617 # Standard set of common directories for X headers.
6618 # Check X11 before X11Rn because it is often a symlink to the current release.
6630 /usr/local/X11/include
6631 /usr/local/X11R6/include
6632 /usr/local/X11R5/include
6633 /usr/local/X11R4/include
6635 /usr/local/include/X11
6636 /usr/local/include/X11R6
6637 /usr/local/include/X11R5
6638 /usr/local/include/X11R4
6642 /usr/XFree86/include/X11
6646 /usr/unsupported/include
6648 /usr/local/x11r5/include
6649 /usr/lpp/Xamples/include
6651 /usr/openwin/include
6652 /usr/openwin/share/include'
6654 if test "$ac_x_includes" = no
; then
6655 # Guess where to find include files, by looking for Intrinsic.h.
6656 # First, try using that file with no special directory specified.
6657 cat >conftest.
$ac_ext <<_ACEOF
6658 #line $LINENO "configure"
6661 cat confdefs.h
>>conftest.
$ac_ext
6662 cat >>conftest.
$ac_ext <<_ACEOF
6663 /* end confdefs.h. */
6664 #include <X11/Intrinsic.h>
6666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6667 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6669 grep -v '^ *+' conftest.er1
>conftest.err
6671 cat conftest.err
>&5
6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); } >/dev
/null
; then
6674 if test -s conftest.err
; then
6675 ac_cpp_err
=$ac_c_preproc_warn_flag
6682 if test -z "$ac_cpp_err"; then
6683 # We can compile using X headers with no special include directory.
6686 echo "$as_me: failed program was:" >&5
6687 sed 's/^/| /' conftest.
$ac_ext >&5
6689 for ac_dir
in $ac_x_header_dirs; do
6690 if test -r "$ac_dir/X11/Intrinsic.h"; then
6691 ac_x_includes
=$ac_dir
6696 rm -f conftest.err conftest.
$ac_ext
6697 fi # $ac_x_includes = no
6699 if test "$ac_x_libraries" = no
; then
6700 # Check for the libraries.
6701 # See if we find them without any special options.
6702 # Don't add to $LIBS permanently.
6705 cat >conftest.
$ac_ext <<_ACEOF
6706 #line $LINENO "configure"
6709 cat confdefs.h
>>conftest.
$ac_ext
6710 cat >>conftest.
$ac_ext <<_ACEOF
6711 /* end confdefs.h. */
6712 #include <X11/Intrinsic.h>
6721 rm -f conftest.
$ac_objext conftest
$ac_exeext
6722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6723 (eval $ac_link) 2>&5
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); } &&
6727 { ac_try
='test -s conftest$ac_exeext'
6728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); }; }; then
6734 # We can link X programs with no special library path.
6737 echo "$as_me: failed program was:" >&5
6738 sed 's/^/| /' conftest.
$ac_ext >&5
6741 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6743 # Don't even attempt the hair of trying to link an X program!
6744 for ac_extension
in a so sl
; do
6745 if test -r $ac_dir/libXt.
$ac_extension; then
6746 ac_x_libraries
=$ac_dir
6752 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6753 fi # $ac_x_libraries = no
6755 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
6756 # Didn't find X anywhere. Cache the known absence of X.
6757 ac_cv_have_x
="have_x=no"
6759 # Record where we found X for the cache.
6760 ac_cv_have_x
="have_x=yes \
6761 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6766 eval "$ac_cv_have_x"
6769 if test "$have_x" != yes; then
6770 echo "$as_me:$LINENO: result: $have_x" >&5
6771 echo "${ECHO_T}$have_x" >&6
6774 # If each of the values was on the command line, it overrides each guess.
6775 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6776 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6777 # Update the cache value to reflect the command line values.
6778 ac_cv_have_x
="have_x=yes \
6779 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6780 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6781 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6784 if test "$no_x" = yes; then
6790 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
6791 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6792 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6793 x_default_search_path
=""
6794 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6796 ${x_library}/X11/%L/%T/%N%C%S:\
6797 ${x_library}/X11/%l/%T/%N%C%S:\
6798 ${x_library}/X11/%T/%N%C%S:\
6799 ${x_library}/X11/%L/%T/%N%S:\
6800 ${x_library}/X11/%l/%T/%N%S:\
6801 ${x_library}/X11/%T/%N%S"
6802 if test x
"${x_default_search_path}" = x
; then
6803 x_default_search_path
=${x_search_path}
6805 x_default_search_path
="${x_search_path}:${x_default_search_path}"
6809 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
6810 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6813 if test x
"${x_includes}" = x
; then
6814 bitmapdir
=/usr
/include
/X11
/bitmaps
6816 # accumulate include directories that have X11 bitmap subdirectories
6818 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6819 if test -d "${bmd}/X11/bitmaps"; then
6820 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
6822 if test -d "${bmd}/bitmaps"; then
6823 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
6826 if test ${bmd_acc} != "dummyval"; then
6827 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6831 case "${window_system}" in
6835 case "${with_x_toolkit}" in
6836 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
6837 motif
) USE_X_TOOLKIT
=MOTIF
;;
6839 USE_X_TOOLKIT
=none
;;
6840 no
) USE_X_TOOLKIT
=none
;;
6841 * ) USE_X_TOOLKIT
=maybe
;;
6851 ### If we're using X11, we should use the X menu package.
6854 yes ) HAVE_MENUS
=yes ;;
6857 if test "${opsys}" = "hpux9"; then
6858 case "${x_libraries}" in
6860 opsysfile
="s/hpux9-x11r4.h"
6865 if test "${opsys}" = "hpux9shr"; then
6866 case "${x_libraries}" in
6868 opsysfile
="s/hpux9shxr4.h"
6873 ### Compute the unexec source name from the object name.
6874 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
6876 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6877 # Assume not, until told otherwise.
6880 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6881 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6882 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6885 cat >conftest.
$ac_ext <<_ACEOF
6886 #line $LINENO "configure"
6889 cat confdefs.h
>>conftest.
$ac_ext
6890 cat >>conftest.
$ac_ext <<_ACEOF
6891 /* end confdefs.h. */
6892 /* System header to define __stub macros and hopefully few prototypes,
6893 which can conflict with char malloc_get_state (); below.
6894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6895 <limits.h> exists even on freestanding compilers. */
6897 # include <limits.h>
6899 # include <assert.h>
6901 /* Override any gcc2 internal prototype to avoid an error. */
6906 /* We use char because int might match the return type of a gcc2
6907 builtin and then its argument prototype would still apply. */
6908 char malloc_get_state ();
6909 /* The GNU C library defines this for functions which it implements
6910 to always fail with ENOSYS. Some functions are actually named
6911 something starting with __ and the normal name is an alias. */
6912 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6915 char (*f) () = malloc_get_state;
6924 return f != malloc_get_state;
6929 rm -f conftest.
$ac_objext conftest
$ac_exeext
6930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6931 (eval $ac_link) 2>&5
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); } &&
6935 { ac_try
='test -s conftest$ac_exeext'
6936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); }; }; then
6941 ac_cv_func_malloc_get_state
=yes
6943 echo "$as_me: failed program was:" >&5
6944 sed 's/^/| /' conftest.
$ac_ext >&5
6946 ac_cv_func_malloc_get_state
=no
6948 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6950 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6951 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6952 if test $ac_cv_func_malloc_get_state = yes; then
6958 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6959 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6960 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6963 cat >conftest.
$ac_ext <<_ACEOF
6964 #line $LINENO "configure"
6967 cat confdefs.h
>>conftest.
$ac_ext
6968 cat >>conftest.
$ac_ext <<_ACEOF
6969 /* end confdefs.h. */
6970 /* System header to define __stub macros and hopefully few prototypes,
6971 which can conflict with char malloc_set_state (); below.
6972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6973 <limits.h> exists even on freestanding compilers. */
6975 # include <limits.h>
6977 # include <assert.h>
6979 /* Override any gcc2 internal prototype to avoid an error. */
6984 /* We use char because int might match the return type of a gcc2
6985 builtin and then its argument prototype would still apply. */
6986 char malloc_set_state ();
6987 /* The GNU C library defines this for functions which it implements
6988 to always fail with ENOSYS. Some functions are actually named
6989 something starting with __ and the normal name is an alias. */
6990 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
6993 char (*f) () = malloc_set_state;
7002 return f != malloc_set_state;
7007 rm -f conftest.
$ac_objext conftest
$ac_exeext
7008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7009 (eval $ac_link) 2>&5
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); } &&
7013 { ac_try
='test -s conftest$ac_exeext'
7014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); }; }; then
7019 ac_cv_func_malloc_set_state
=yes
7021 echo "$as_me: failed program was:" >&5
7022 sed 's/^/| /' conftest.
$ac_ext >&5
7024 ac_cv_func_malloc_set_state
=no
7026 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7028 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
7029 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
7030 if test $ac_cv_func_malloc_set_state = yes; then
7036 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7037 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
7038 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
7041 cat >conftest.
$ac_ext <<_ACEOF
7042 #line $LINENO "configure"
7045 cat confdefs.h
>>conftest.
$ac_ext
7046 cat >>conftest.
$ac_ext <<_ACEOF
7047 /* end confdefs.h. */
7048 extern void (* __after_morecore_hook)();
7052 __after_morecore_hook = 0
7057 rm -f conftest.
$ac_objext conftest
$ac_exeext
7058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7059 (eval $ac_link) 2>&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } &&
7063 { ac_try
='test -s conftest$ac_exeext'
7064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); }; }; then
7069 emacs_cv_var___after_morecore_hook
=yes
7071 echo "$as_me: failed program was:" >&5
7072 sed 's/^/| /' conftest.
$ac_ext >&5
7074 emacs_cv_var___after_morecore_hook
=no
7076 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7078 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7079 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
7080 if test $emacs_cv_var___after_morecore_hook = no
; then
7083 if test "${system_malloc}" = "yes"; then
7086 (The GNU allocators don't work with this system configuration.)"
7088 if test "$doug_lea_malloc" = "yes" ; then
7089 if test "$GNU_MALLOC" = yes ; then
7091 (Using Doug Lea's new malloc from the GNU C Library.)"
7094 cat >>confdefs.h
<<\_ACEOF
7095 #define DOUG_LEA_MALLOC 1
7100 if test x
"${REL_ALLOC}" = x
; then
7101 REL_ALLOC
=${GNU_MALLOC}
7107 for ac_header
in stdlib.h unistd.h
7109 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7111 echo "$as_me:$LINENO: checking for $ac_header" >&5
7112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7114 echo $ECHO_N "(cached) $ECHO_C" >&6
7116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7119 # Is the header compilable?
7120 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7122 cat >conftest.
$ac_ext <<_ACEOF
7123 #line $LINENO "configure"
7126 cat confdefs.h
>>conftest.
$ac_ext
7127 cat >>conftest.
$ac_ext <<_ACEOF
7128 /* end confdefs.h. */
7129 $ac_includes_default
7130 #include <$ac_header>
7132 rm -f conftest.
$ac_objext
7133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7134 (eval $ac_compile) 2>&5
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); } &&
7138 { ac_try
='test -s conftest.$ac_objext'
7139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); }; }; then
7144 ac_header_compiler
=yes
7146 echo "$as_me: failed program was:" >&5
7147 sed 's/^/| /' conftest.
$ac_ext >&5
7149 ac_header_compiler
=no
7151 rm -f conftest.
$ac_objext conftest.
$ac_ext
7152 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7153 echo "${ECHO_T}$ac_header_compiler" >&6
7155 # Is the header present?
7156 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7157 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7158 cat >conftest.
$ac_ext <<_ACEOF
7159 #line $LINENO "configure"
7162 cat confdefs.h
>>conftest.
$ac_ext
7163 cat >>conftest.
$ac_ext <<_ACEOF
7164 /* end confdefs.h. */
7165 #include <$ac_header>
7167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7168 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7170 grep -v '^ *+' conftest.er1
>conftest.err
7172 cat conftest.err
>&5
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); } >/dev
/null
; then
7175 if test -s conftest.err
; then
7176 ac_cpp_err
=$ac_c_preproc_warn_flag
7183 if test -z "$ac_cpp_err"; then
7184 ac_header_preproc
=yes
7186 echo "$as_me: failed program was:" >&5
7187 sed 's/^/| /' conftest.
$ac_ext >&5
7189 ac_header_preproc
=no
7191 rm -f conftest.err conftest.
$ac_ext
7192 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7193 echo "${ECHO_T}$ac_header_preproc" >&6
7195 # So? What about this header?
7196 case $ac_header_compiler:$ac_header_preproc in
7198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7204 ## ------------------------------------ ##
7205 ## Report this to bug-autoconf@gnu.org. ##
7206 ## ------------------------------------ ##
7209 sed "s/^/$as_me: WARNING: /" >&2
7212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7215 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7220 ## ------------------------------------ ##
7221 ## Report this to bug-autoconf@gnu.org. ##
7222 ## ------------------------------------ ##
7225 sed "s/^/$as_me: WARNING: /" >&2
7228 echo "$as_me:$LINENO: checking for $ac_header" >&5
7229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7233 eval "$as_ac_Header=$ac_header_preproc"
7235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7240 cat >>confdefs.h
<<_ACEOF
7241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7249 for ac_func
in getpagesize
7251 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7252 echo "$as_me:$LINENO: checking for $ac_func" >&5
7253 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7254 if eval "test \"\${$as_ac_var+set}\" = set"; then
7255 echo $ECHO_N "(cached) $ECHO_C" >&6
7257 cat >conftest.
$ac_ext <<_ACEOF
7258 #line $LINENO "configure"
7261 cat confdefs.h
>>conftest.
$ac_ext
7262 cat >>conftest.
$ac_ext <<_ACEOF
7263 /* end confdefs.h. */
7264 /* System header to define __stub macros and hopefully few prototypes,
7265 which can conflict with char $ac_func (); below.
7266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7267 <limits.h> exists even on freestanding compilers. */
7269 # include <limits.h>
7271 # include <assert.h>
7273 /* Override any gcc2 internal prototype to avoid an error. */
7278 /* We use char because int might match the return type of a gcc2
7279 builtin and then its argument prototype would still apply. */
7281 /* The GNU C library defines this for functions which it implements
7282 to always fail with ENOSYS. Some functions are actually named
7283 something starting with __ and the normal name is an alias. */
7284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7287 char (*f) () = $ac_func;
7296 return f != $ac_func;
7301 rm -f conftest.
$ac_objext conftest
$ac_exeext
7302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7303 (eval $ac_link) 2>&5
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); } &&
7307 { ac_try
='test -s conftest$ac_exeext'
7308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); }; }; then
7313 eval "$as_ac_var=yes"
7315 echo "$as_me: failed program was:" >&5
7316 sed 's/^/| /' conftest.
$ac_ext >&5
7318 eval "$as_ac_var=no"
7320 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7323 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7324 if test `eval echo '${'$as_ac_var'}'` = yes; then
7325 cat >>confdefs.h
<<_ACEOF
7326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7332 echo "$as_me:$LINENO: checking for working mmap" >&5
7333 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7334 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
7337 if test "$cross_compiling" = yes; then
7338 ac_cv_func_mmap_fixed_mapped
=no
7340 cat >conftest.
$ac_ext <<_ACEOF
7341 #line $LINENO "configure"
7344 cat confdefs.h
>>conftest.
$ac_ext
7345 cat >>conftest.
$ac_ext <<_ACEOF
7346 /* end confdefs.h. */
7347 $ac_includes_default
7348 /* malloc might have been renamed as rpl_malloc. */
7351 /* Thanks to Mike Haertel and Jim Avera for this test.
7352 Here is a matrix of mmap possibilities:
7353 mmap private not fixed
7354 mmap private fixed at somewhere currently unmapped
7355 mmap private fixed at somewhere already mapped
7356 mmap shared not fixed
7357 mmap shared fixed at somewhere currently unmapped
7358 mmap shared fixed at somewhere already mapped
7359 For private mappings, we should verify that changes cannot be read()
7360 back from the file, nor mmap's back from the file at a different
7361 address. (There have been systems where private was not correctly
7362 implemented like the infamous i386 svr4.0, and systems where the
7363 VM page cache was not coherent with the file system buffer cache
7364 like early versions of FreeBSD and possibly contemporary NetBSD.)
7365 For shared mappings, we should conversely verify that changes get
7366 propagated back to all the places they're supposed to be.
7368 Grep wants private fixed already mapped.
7369 The main things grep needs to know about mmap are:
7370 * does it exist and is it safe to write into the mmap'd area
7371 * how to use it (BSD variants) */
7374 #include <sys/mman.h>
7376 #if !STDC_HEADERS && !HAVE_STDLIB_H
7380 /* This mess was copied from the GNU getpagesize.h. */
7381 #if !HAVE_GETPAGESIZE
7382 /* Assume that all systems that can run configure have sys/param.h. */
7383 # if !HAVE_SYS_PARAM_H
7384 # define HAVE_SYS_PARAM_H 1
7387 # ifdef _SC_PAGESIZE
7388 # define getpagesize() sysconf(_SC_PAGESIZE)
7389 # else /* no _SC_PAGESIZE */
7390 # if HAVE_SYS_PARAM_H
7391 # include <sys/param.h>
7392 # ifdef EXEC_PAGESIZE
7393 # define getpagesize() EXEC_PAGESIZE
7394 # else /* no EXEC_PAGESIZE */
7396 # define getpagesize() NBPG * CLSIZE
7399 # endif /* no CLSIZE */
7400 # else /* no NBPG */
7402 # define getpagesize() NBPC
7403 # else /* no NBPC */
7405 # define getpagesize() PAGESIZE
7406 # endif /* PAGESIZE */
7407 # endif /* no NBPC */
7408 # endif /* no NBPG */
7409 # endif /* no EXEC_PAGESIZE */
7410 # else /* no HAVE_SYS_PARAM_H */
7411 # define getpagesize() 8192 /* punt totally */
7412 # endif /* no HAVE_SYS_PARAM_H */
7413 # endif /* no _SC_PAGESIZE */
7415 #endif /* no HAVE_GETPAGESIZE */
7420 char *data, *data2, *data3;
7424 pagesize = getpagesize ();
7426 /* First, make a file with some known garbage in it. */
7427 data = (char *) malloc (pagesize);
7430 for (i = 0; i < pagesize; ++i)
7431 *(data + i) = rand ();
7433 fd = creat ("conftest.mmap", 0600);
7436 if (write (fd, data, pagesize) != pagesize)
7440 /* Next, try to mmap the file at a fixed address which already has
7441 something else allocated at it. If we can, also make sure that
7442 we see the same garbage. */
7443 fd = open ("conftest.mmap", O_RDWR);
7446 data2 = (char *) malloc (2 * pagesize);
7449 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7450 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7451 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7453 for (i = 0; i < pagesize; ++i)
7454 if (*(data + i) != *(data2 + i))
7457 /* Finally, make sure that changes to the mapped area do not
7458 percolate back to the file as seen by read(). (This is a bug on
7459 some variants of i386 svr4.0.) */
7460 for (i = 0; i < pagesize; ++i)
7461 *(data2 + i) = *(data2 + i) + 1;
7462 data3 = (char *) malloc (pagesize);
7465 if (read (fd, data3, pagesize) != pagesize)
7467 for (i = 0; i < pagesize; ++i)
7468 if (*(data + i) != *(data3 + i))
7474 rm -f conftest
$ac_exeext
7475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7476 (eval $ac_link) 2>&5
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); }; }; then
7485 ac_cv_func_mmap_fixed_mapped
=yes
7487 echo "$as_me: program exited with status $ac_status" >&5
7488 echo "$as_me: failed program was:" >&5
7489 sed 's/^/| /' conftest.
$ac_ext >&5
7492 ac_cv_func_mmap_fixed_mapped
=no
7494 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7497 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7498 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7499 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7501 cat >>confdefs.h
<<\_ACEOF
7508 if test $use_mmap_for_buffers = yes; then
7512 LIBS
="$libsrc_libs $LIBS"
7515 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7516 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7517 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7520 ac_check_lib_save_LIBS
=$LIBS
7522 cat >conftest.
$ac_ext <<_ACEOF
7523 #line $LINENO "configure"
7526 cat confdefs.h
>>conftest.
$ac_ext
7527 cat >>conftest.
$ac_ext <<_ACEOF
7528 /* end confdefs.h. */
7530 /* Override any gcc2 internal prototype to avoid an error. */
7534 /* We use char because int might match the return type of a gcc2
7535 builtin and then its argument prototype would still apply. */
7545 rm -f conftest.
$ac_objext conftest
$ac_exeext
7546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7547 (eval $ac_link) 2>&5
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); } &&
7551 { ac_try
='test -s conftest$ac_exeext'
7552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); }; }; then
7557 ac_cv_lib_dnet_dnet_ntoa
=yes
7559 echo "$as_me: failed program was:" >&5
7560 sed 's/^/| /' conftest.
$ac_ext >&5
7562 ac_cv_lib_dnet_dnet_ntoa
=no
7564 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7565 LIBS
=$ac_check_lib_save_LIBS
7567 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7568 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7569 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7570 cat >>confdefs.h
<<_ACEOF
7571 #define HAVE_LIBDNET 1
7579 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7580 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
7581 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7584 ac_check_lib_save_LIBS
=$LIBS
7586 cat >conftest.
$ac_ext <<_ACEOF
7587 #line $LINENO "configure"
7590 cat confdefs.h
>>conftest.
$ac_ext
7591 cat >>conftest.
$ac_ext <<_ACEOF
7592 /* end confdefs.h. */
7603 rm -f conftest.
$ac_objext conftest
$ac_exeext
7604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7605 (eval $ac_link) 2>&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } &&
7609 { ac_try
='test -s conftest$ac_exeext'
7610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); }; }; then
7615 ac_cv_lib_Xbsd_main
=yes
7617 echo "$as_me: failed program was:" >&5
7618 sed 's/^/| /' conftest.
$ac_ext >&5
7620 ac_cv_lib_Xbsd_main
=no
7622 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7623 LIBS
=$ac_check_lib_save_LIBS
7625 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7626 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7627 if test $ac_cv_lib_Xbsd_main = yes; then
7628 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
7633 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7634 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7635 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7638 ac_check_lib_save_LIBS
=$LIBS
7639 LIBS
="-lpthreads $LIBS"
7640 cat >conftest.
$ac_ext <<_ACEOF
7641 #line $LINENO "configure"
7644 cat confdefs.h
>>conftest.
$ac_ext
7645 cat >>conftest.
$ac_ext <<_ACEOF
7646 /* end confdefs.h. */
7648 /* Override any gcc2 internal prototype to avoid an error. */
7652 /* We use char because int might match the return type of a gcc2
7653 builtin and then its argument prototype would still apply. */
7663 rm -f conftest.
$ac_objext conftest
$ac_exeext
7664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7665 (eval $ac_link) 2>&5
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); } &&
7669 { ac_try
='test -s conftest$ac_exeext'
7670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); }; }; then
7675 ac_cv_lib_pthreads_cma_open
=yes
7677 echo "$as_me: failed program was:" >&5
7678 sed 's/^/| /' conftest.
$ac_ext >&5
7680 ac_cv_lib_pthreads_cma_open
=no
7682 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7683 LIBS
=$ac_check_lib_save_LIBS
7685 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7686 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7687 if test $ac_cv_lib_pthreads_cma_open = yes; then
7688 cat >>confdefs.h
<<_ACEOF
7689 #define HAVE_LIBPTHREADS 1
7692 LIBS
="-lpthreads $LIBS"
7697 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7698 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7699 if test -d /usr
/X386
/include
; then
7701 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7705 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7706 echo "${ECHO_T}$HAVE_XFREE386" >&6
7708 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7709 # used for the tests that follow. We set them back to REAL_CFLAGS and
7710 # REAL_CPPFLAGS later on.
7712 REAL_CPPFLAGS
="$CPPFLAGS"
7714 if test "${HAVE_X11}" = "yes"; then
7715 DEFS
="$C_SWITCH_X_SITE $DEFS"
7716 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
7718 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
7719 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
7721 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7722 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7723 # but it's more convenient here to set LD_RUN_PATH
7724 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7725 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
7726 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7730 if test "${opsys}" = "gnu-linux"; then
7731 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7732 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7733 cat >conftest.
$ac_ext <<_ACEOF
7734 #line $LINENO "configure"
7737 cat confdefs.h
>>conftest.
$ac_ext
7738 cat >>conftest.
$ac_ext <<_ACEOF
7739 /* end confdefs.h. */
7744 XOpenDisplay ("foo");
7749 rm -f conftest.
$ac_objext conftest
$ac_exeext
7750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7751 (eval $ac_link) 2>&5
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); } &&
7755 { ac_try
='test -s conftest$ac_exeext'
7756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); }; }; then
7761 xlinux_first_failure
=no
7763 echo "$as_me: failed program was:" >&5
7764 sed 's/^/| /' conftest.
$ac_ext >&5
7766 xlinux_first_failure
=yes
7768 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7769 if test "${xlinux_first_failure}" = "yes"; then
7770 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
7771 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
7772 OLD_CPPFLAGS
="$CPPFLAGS"
7774 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
7775 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
7776 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
7777 LIBS
="$LIBS -b i486-linuxaout"
7778 cat >conftest.
$ac_ext <<_ACEOF
7779 #line $LINENO "configure"
7782 cat confdefs.h
>>conftest.
$ac_ext
7783 cat >>conftest.
$ac_ext <<_ACEOF
7784 /* end confdefs.h. */
7789 XOpenDisplay ("foo");
7794 rm -f conftest.
$ac_objext conftest
$ac_exeext
7795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7796 (eval $ac_link) 2>&5
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); } &&
7800 { ac_try
='test -s conftest$ac_exeext'
7801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); }; }; then
7806 xlinux_second_failure
=no
7808 echo "$as_me: failed program was:" >&5
7809 sed 's/^/| /' conftest.
$ac_ext >&5
7811 xlinux_second_failure
=yes
7813 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7814 if test "${xlinux_second_failure}" = "yes"; then
7815 # If we get the same failure with -b, there is no use adding -b.
7816 # So take it out. This plays safe.
7817 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
7818 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
7819 CPPFLAGS
="$OLD_CPPFLAGS"
7821 echo "$as_me:$LINENO: result: no" >&5
7822 echo "${ECHO_T}no" >&6
7824 echo "$as_me:$LINENO: result: yes" >&5
7825 echo "${ECHO_T}yes" >&6
7828 echo "$as_me:$LINENO: result: no" >&5
7829 echo "${ECHO_T}no" >&6
7833 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7834 # header files included from there.
7835 echo "$as_me:$LINENO: checking for Xkb" >&5
7836 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7837 cat >conftest.
$ac_ext <<_ACEOF
7838 #line $LINENO "configure"
7841 cat confdefs.h
>>conftest.
$ac_ext
7842 cat >>conftest.
$ac_ext <<_ACEOF
7843 /* end confdefs.h. */
7844 #include <X11/Xlib.h>
7845 #include <X11/XKBlib.h>
7849 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7854 rm -f conftest.
$ac_objext conftest
$ac_exeext
7855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7856 (eval $ac_link) 2>&5
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); } &&
7860 { ac_try
='test -s conftest$ac_exeext'
7861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); }; }; then
7868 echo "$as_me: failed program was:" >&5
7869 sed 's/^/| /' conftest.
$ac_ext >&5
7873 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7874 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7875 echo "${ECHO_T}$emacs_xkb" >&6
7876 if test $emacs_xkb = yes; then
7878 cat >>confdefs.h
<<\_ACEOF
7879 #define HAVE_XKBGETKEYBOARD 1
7888 for ac_func
in XrmSetDatabase XScreenResourceString \
7889 XScreenNumberOfScreen XSetWMProtocols
7891 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7892 echo "$as_me:$LINENO: checking for $ac_func" >&5
7893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7894 if eval "test \"\${$as_ac_var+set}\" = set"; then
7895 echo $ECHO_N "(cached) $ECHO_C" >&6
7897 cat >conftest.
$ac_ext <<_ACEOF
7898 #line $LINENO "configure"
7901 cat confdefs.h
>>conftest.
$ac_ext
7902 cat >>conftest.
$ac_ext <<_ACEOF
7903 /* end confdefs.h. */
7904 /* System header to define __stub macros and hopefully few prototypes,
7905 which can conflict with char $ac_func (); below.
7906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7907 <limits.h> exists even on freestanding compilers. */
7909 # include <limits.h>
7911 # include <assert.h>
7913 /* Override any gcc2 internal prototype to avoid an error. */
7918 /* We use char because int might match the return type of a gcc2
7919 builtin and then its argument prototype would still apply. */
7921 /* The GNU C library defines this for functions which it implements
7922 to always fail with ENOSYS. Some functions are actually named
7923 something starting with __ and the normal name is an alias. */
7924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7927 char (*f) () = $ac_func;
7936 return f != $ac_func;
7941 rm -f conftest.
$ac_objext conftest
$ac_exeext
7942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7943 (eval $ac_link) 2>&5
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); } &&
7947 { ac_try
='test -s conftest$ac_exeext'
7948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); }; }; then
7953 eval "$as_ac_var=yes"
7955 echo "$as_me: failed program was:" >&5
7956 sed 's/^/| /' conftest.
$ac_ext >&5
7958 eval "$as_ac_var=no"
7960 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7963 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7964 if test `eval echo '${'$as_ac_var'}'` = yes; then
7965 cat >>confdefs.h
<<_ACEOF
7966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7974 if test "${window_system}" = "x11"; then
7975 echo "$as_me:$LINENO: checking X11 version 6" >&5
7976 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
7977 if test "${emacs_cv_x11_version_6+set}" = set; then
7978 echo $ECHO_N "(cached) $ECHO_C" >&6
7980 cat >conftest.
$ac_ext <<_ACEOF
7981 #line $LINENO "configure"
7984 cat confdefs.h
>>conftest.
$ac_ext
7985 cat >>conftest.
$ac_ext <<_ACEOF
7986 /* end confdefs.h. */
7987 #include <X11/Xlib.h>
7991 #if XlibSpecificationRelease < 6
7999 rm -f conftest.
$ac_objext conftest
$ac_exeext
8000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8001 (eval $ac_link) 2>&5
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); } &&
8005 { ac_try
='test -s conftest$ac_exeext'
8006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); }; }; then
8011 emacs_cv_x11_version_6
=yes
8013 echo "$as_me: failed program was:" >&5
8014 sed 's/^/| /' conftest.
$ac_ext >&5
8016 emacs_cv_x11_version_6
=no
8018 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8021 if test $emacs_cv_x11_version_6 = yes; then
8022 echo "$as_me:$LINENO: result: 6 or newer" >&5
8023 echo "${ECHO_T}6 or newer" >&6
8025 cat >>confdefs.h
<<\_ACEOF
8026 #define HAVE_X11R6 1
8030 echo "$as_me:$LINENO: result: before 6" >&5
8031 echo "${ECHO_T}before 6" >&6
8035 if test "${window_system}" = "x11"; then
8036 echo "$as_me:$LINENO: checking X11 version 5" >&5
8037 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
8038 if test "${emacs_cv_x11_version_5+set}" = set; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
8041 cat >conftest.
$ac_ext <<_ACEOF
8042 #line $LINENO "configure"
8045 cat confdefs.h
>>conftest.
$ac_ext
8046 cat >>conftest.
$ac_ext <<_ACEOF
8047 /* end confdefs.h. */
8048 #include <X11/Xlib.h>
8052 #if XlibSpecificationRelease < 5
8060 rm -f conftest.
$ac_objext conftest
$ac_exeext
8061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8062 (eval $ac_link) 2>&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); } &&
8066 { ac_try
='test -s conftest$ac_exeext'
8067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; }; then
8072 emacs_cv_x11_version_5
=yes
8074 echo "$as_me: failed program was:" >&5
8075 sed 's/^/| /' conftest.
$ac_ext >&5
8077 emacs_cv_x11_version_5
=no
8079 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8082 if test $emacs_cv_x11_version_5 = yes; then
8083 echo "$as_me:$LINENO: result: 5 or newer" >&5
8084 echo "${ECHO_T}5 or newer" >&6
8087 cat >>confdefs.h
<<\_ACEOF
8088 #define HAVE_X11R5 1
8093 echo "$as_me:$LINENO: result: before 5" >&5
8094 echo "${ECHO_T}before 5" >&6
8101 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
8102 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
8103 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
8104 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
8105 { (exit 1); exit 1; }; };
8109 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8111 if test "X${with_pkg_config_prog}" != X
; then
8112 PKG_CONFIG
="${with_pkg_config_prog}"
8117 if test -z "$PKG_CONFIG"; then
8118 # Extract the first word of "pkg-config", so it can be a program name with args.
8119 set dummy pkg-config
; ac_word
=$2
8120 echo "$as_me:$LINENO: checking for $ac_word" >&5
8121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8122 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8123 echo $ECHO_N "(cached) $ECHO_C" >&6
8127 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8134 test -z "$as_dir" && as_dir
=.
8135 for ac_exec_ext
in '' $ac_executable_extensions; do
8136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8137 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8144 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8148 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8150 if test -n "$PKG_CONFIG"; then
8151 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8152 echo "${ECHO_T}$PKG_CONFIG" >&6
8154 echo "$as_me:$LINENO: result: no" >&5
8155 echo "${ECHO_T}no" >&6
8160 if test "$PKG_CONFIG" = "no" ; then
8161 echo "*** The pkg-config script could not be found. Make sure it is"
8162 echo "*** in your path, or give the full path to pkg-config with"
8163 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
8164 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8166 PKG_CONFIG_MIN_VERSION
=0.9.0
8167 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8168 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
8169 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
8171 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
8172 echo "$as_me:$LINENO: result: yes" >&5
8173 echo "${ECHO_T}yes" >&6
8176 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
8177 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
8178 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
8179 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
8180 echo "${ECHO_T}$GTK_CFLAGS" >&6
8182 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
8183 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
8184 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
8185 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
8186 echo "${ECHO_T}$GTK_LIBS" >&6
8190 ## If we have a custom action on failure, don't print errors, but
8191 ## do set a variable so people can do so.
8192 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8193 echo $GTK_PKG_ERRORS
8199 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8200 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8204 if test $succeeded = yes; then
8207 { { 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
8208 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;}
8209 { (exit 1); exit 1; }; }
8214 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
8217 cat >>confdefs.h
<<\_ACEOF
8223 with_toolkit_scroll_bars
=yes
8226 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
8227 if test x
"${HAVE_X11R5}" = xyes
; then
8228 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
8229 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
8230 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
8233 cat >conftest.
$ac_ext <<_ACEOF
8234 #line $LINENO "configure"
8237 cat confdefs.h
>>conftest.
$ac_ext
8238 cat >>conftest.
$ac_ext <<_ACEOF
8239 /* end confdefs.h. */
8241 #include <X11/Intrinsic.h>
8242 #include <X11/Xaw/Simple.h>
8251 rm -f conftest.
$ac_objext conftest
$ac_exeext
8252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8253 (eval $ac_link) 2>&5
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); } &&
8257 { ac_try
='test -s conftest$ac_exeext'
8258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); }; }; then
8263 emacs_cv_x11_version_5_with_xaw
=yes
8265 echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.
$ac_ext >&5
8268 emacs_cv_x11_version_5_with_xaw
=no
8270 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8273 if test $emacs_cv_x11_version_5_with_xaw = yes; then
8274 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
8275 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
8278 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
8279 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
8287 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
8289 if test "${USE_X_TOOLKIT}" != "none"; then
8290 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8291 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
8292 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
8295 cat >conftest.
$ac_ext <<_ACEOF
8296 #line $LINENO "configure"
8299 cat confdefs.h
>>conftest.
$ac_ext
8300 cat >>conftest.
$ac_ext <<_ACEOF
8301 /* end confdefs.h. */
8302 #include <X11/Intrinsic.h>
8306 #if XtSpecificationRelease < 6
8314 rm -f conftest.
$ac_objext conftest
$ac_exeext
8315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8316 (eval $ac_link) 2>&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); } &&
8320 { ac_try
='test -s conftest$ac_exeext'
8321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); }; }; then
8326 emacs_cv_x11_toolkit_version_6
=yes
8328 echo "$as_me: failed program was:" >&5
8329 sed 's/^/| /' conftest.
$ac_ext >&5
8331 emacs_cv_x11_toolkit_version_6
=no
8333 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8336 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
8337 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8338 echo "$as_me:$LINENO: result: 6 or newer" >&5
8339 echo "${ECHO_T}6 or newer" >&6
8341 cat >>confdefs.h
<<\_ACEOF
8342 #define HAVE_X11XTR6 1
8346 echo "$as_me:$LINENO: result: before 6" >&5
8347 echo "${ECHO_T}before 6" >&6
8351 if test x
$HAVE_X11XTR6 = xyes
; then
8352 LIBS
="-lXt -lSM -lICE $LIBS"
8357 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
8358 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
8359 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
8360 echo $ECHO_N "(cached) $ECHO_C" >&6
8362 ac_check_lib_save_LIBS
=$LIBS
8364 cat >conftest.
$ac_ext <<_ACEOF
8365 #line $LINENO "configure"
8368 cat confdefs.h
>>conftest.
$ac_ext
8369 cat >>conftest.
$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8372 /* Override any gcc2 internal prototype to avoid an error. */
8376 /* We use char because int might match the return type of a gcc2
8377 builtin and then its argument prototype would still apply. */
8378 char XmuConvertStandardSelection ();
8382 XmuConvertStandardSelection ();
8387 rm -f conftest.
$ac_objext conftest
$ac_exeext
8388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8389 (eval $ac_link) 2>&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); } &&
8393 { ac_try
='test -s conftest$ac_exeext'
8394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); }; }; then
8399 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
8401 echo "$as_me: failed program was:" >&5
8402 sed 's/^/| /' conftest.
$ac_ext >&5
8404 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
8406 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8407 LIBS
=$ac_check_lib_save_LIBS
8409 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8410 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
8411 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
8412 cat >>confdefs.h
<<_ACEOF
8413 #define HAVE_LIBXMU 1
8420 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
8423 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8424 if test "${HAVE_X11}" = "yes"; then
8425 if test "${USE_X_TOOLKIT}" != "none"; then
8427 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8428 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8429 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8430 echo $ECHO_N "(cached) $ECHO_C" >&6
8432 ac_check_lib_save_LIBS
=$LIBS
8434 cat >conftest.
$ac_ext <<_ACEOF
8435 #line $LINENO "configure"
8438 cat confdefs.h
>>conftest.
$ac_ext
8439 cat >>conftest.
$ac_ext <<_ACEOF
8440 /* end confdefs.h. */
8442 /* Override any gcc2 internal prototype to avoid an error. */
8446 /* We use char because int might match the return type of a gcc2
8447 builtin and then its argument prototype would still apply. */
8448 char XShapeQueryExtension ();
8452 XShapeQueryExtension ();
8457 rm -f conftest.
$ac_objext conftest
$ac_exeext
8458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8459 (eval $ac_link) 2>&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } &&
8463 { ac_try
='test -s conftest$ac_exeext'
8464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); }; }; then
8469 ac_cv_lib_Xext_XShapeQueryExtension
=yes
8471 echo "$as_me: failed program was:" >&5
8472 sed 's/^/| /' conftest.
$ac_ext >&5
8474 ac_cv_lib_Xext_XShapeQueryExtension
=no
8476 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8477 LIBS
=$ac_check_lib_save_LIBS
8479 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8480 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8481 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8482 cat >>confdefs.h
<<_ACEOF
8483 #define HAVE_LIBXEXT 1
8493 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8494 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
8495 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
8496 if test "${emacs_cv_lesstif+set}" = set; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
8499 # We put this in CFLAGS temporarily to precede other -I options
8500 # that might be in CFLAGS temporarily.
8501 # We put this in CPPFLAGS where it precedes the other -I options.
8502 OLD_CPPFLAGS
=$CPPFLAGS
8504 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8505 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8506 cat >conftest.
$ac_ext <<_ACEOF
8507 #line $LINENO "configure"
8510 cat confdefs.h
>>conftest.
$ac_ext
8511 cat >>conftest.
$ac_ext <<_ACEOF
8512 /* end confdefs.h. */
8513 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8522 rm -f conftest.
$ac_objext
8523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8524 (eval $ac_compile) 2>&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); } &&
8528 { ac_try
='test -s conftest.$ac_objext'
8529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); }; }; then
8534 emacs_cv_lesstif
=yes
8536 echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.
$ac_ext >&5
8541 rm -f conftest.
$ac_objext conftest.
$ac_ext
8543 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
8544 echo "${ECHO_T}$emacs_cv_lesstif" >&6
8545 if test $emacs_cv_lesstif = yes; then
8546 # Make sure this -I option remains in CPPFLAGS after it is set
8547 # back to REAL_CPPFLAGS.
8548 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8549 # have those other -I options anyway. Ultimately, having this
8550 # directory ultimately in CPPFLAGS will be enough.
8551 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8552 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
8555 CPPFLAGS
=$OLD_CPPFLAGS
8557 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
8558 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
8559 if test "${emacs_cv_motif_version_2_1+set}" = set; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
8562 cat >conftest.
$ac_ext <<_ACEOF
8563 #line $LINENO "configure"
8566 cat confdefs.h
>>conftest.
$ac_ext
8567 cat >>conftest.
$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8573 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8576 Motif version prior to 2.1.
8582 rm -f conftest.
$ac_objext
8583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8584 (eval $ac_compile) 2>&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); } &&
8588 { ac_try
='test -s conftest.$ac_objext'
8589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; }; then
8594 emacs_cv_motif_version_2_1
=yes
8596 echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.
$ac_ext >&5
8599 emacs_cv_motif_version_2_1
=no
8601 rm -f conftest.
$ac_objext conftest.
$ac_ext
8603 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
8604 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
8605 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
8606 if test $emacs_cv_motif_version_2_1 = yes; then
8609 cat >>confdefs.h
<<\_ACEOF
8610 #define HAVE_MOTIF_2_1 1
8613 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
8614 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
8615 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
8616 echo $ECHO_N "(cached) $ECHO_C" >&6
8618 ac_check_lib_save_LIBS
=$LIBS
8620 cat >conftest.
$ac_ext <<_ACEOF
8621 #line $LINENO "configure"
8624 cat confdefs.h
>>conftest.
$ac_ext
8625 cat >>conftest.
$ac_ext <<_ACEOF
8626 /* end confdefs.h. */
8628 /* Override any gcc2 internal prototype to avoid an error. */
8632 /* We use char because int might match the return type of a gcc2
8633 builtin and then its argument prototype would still apply. */
8634 char XpCreateContext ();
8643 rm -f conftest.
$ac_objext conftest
$ac_exeext
8644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8645 (eval $ac_link) 2>&5
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); } &&
8649 { ac_try
='test -s conftest$ac_exeext'
8650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); }; }; then
8655 ac_cv_lib_Xp_XpCreateContext
=yes
8657 echo "$as_me: failed program was:" >&5
8658 sed 's/^/| /' conftest.
$ac_ext >&5
8660 ac_cv_lib_Xp_XpCreateContext
=no
8662 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8663 LIBS
=$ac_check_lib_save_LIBS
8665 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8666 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
8667 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
8671 if test ${HAVE_LIBXP} = yes; then
8673 cat >>confdefs.h
<<\_ACEOF
8674 #define HAVE_LIBXP 1
8681 ### Is -lXaw3d available?
8683 if test "${HAVE_X11}" = "yes"; then
8684 if test "${USE_X_TOOLKIT}" != "none"; then
8685 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
8686 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
8687 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8688 echo $ECHO_N "(cached) $ECHO_C" >&6
8690 cat >conftest.
$ac_ext <<_ACEOF
8691 #line $LINENO "configure"
8694 cat confdefs.h
>>conftest.
$ac_ext
8695 cat >>conftest.
$ac_ext <<_ACEOF
8696 /* end confdefs.h. */
8697 #include <X11/Xaw3d/Scrollbar.h>
8699 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8700 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8702 grep -v '^ *+' conftest.er1
>conftest.err
8704 cat conftest.err
>&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } >/dev
/null
; then
8707 if test -s conftest.err
; then
8708 ac_cpp_err
=$ac_c_preproc_warn_flag
8715 if test -z "$ac_cpp_err"; then
8716 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
8718 echo "$as_me: failed program was:" >&5
8719 sed 's/^/| /' conftest.
$ac_ext >&5
8721 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
8723 rm -f conftest.err conftest.
$ac_ext
8725 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8726 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8727 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8728 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8729 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8730 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8731 echo $ECHO_N "(cached) $ECHO_C" >&6
8733 ac_check_lib_save_LIBS
=$LIBS
8734 LIBS
="-lXaw3d $LIBS"
8735 cat >conftest.
$ac_ext <<_ACEOF
8736 #line $LINENO "configure"
8739 cat confdefs.h
>>conftest.
$ac_ext
8740 cat >>conftest.
$ac_ext <<_ACEOF
8741 /* end confdefs.h. */
8743 /* Override any gcc2 internal prototype to avoid an error. */
8747 /* We use char because int might match the return type of a gcc2
8748 builtin and then its argument prototype would still apply. */
8749 char XawScrollbarSetThumb ();
8753 XawScrollbarSetThumb ();
8758 rm -f conftest.
$ac_objext conftest
$ac_exeext
8759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8760 (eval $ac_link) 2>&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); } &&
8764 { ac_try
='test -s conftest$ac_exeext'
8765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); }; }; then
8770 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
8772 echo "$as_me: failed program was:" >&5
8773 sed 's/^/| /' conftest.
$ac_ext >&5
8775 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
8777 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8778 LIBS
=$ac_check_lib_save_LIBS
8780 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8781 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8782 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8789 if test "${HAVE_XAW3D}" = "yes"; then
8791 cat >>confdefs.h
<<\_ACEOF
8792 #define HAVE_XAW3D 1
8801 USE_TOOLKIT_SCROLL_BARS
=no
8802 if test "${with_toolkit_scroll_bars}" != "no"; then
8803 if test "${USE_X_TOOLKIT}" != "none"; then
8804 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8805 cat >>confdefs.h
<<\_ACEOF
8806 #define USE_TOOLKIT_SCROLL_BARS 1
8810 USE_TOOLKIT_SCROLL_BARS
=yes
8811 elif test "${HAVE_XAW3D}" = "yes"; then
8812 cat >>confdefs.h
<<\_ACEOF
8813 #define USE_TOOLKIT_SCROLL_BARS 1
8816 USE_TOOLKIT_SCROLL_BARS
=yes
8818 elif test "${HAVE_GTK}" = "yes"; then
8819 cat >>confdefs.h
<<\_ACEOF
8820 #define USE_TOOLKIT_SCROLL_BARS 1
8823 USE_TOOLKIT_SCROLL_BARS
=yes
8828 if test "${with_xim}" != "no"; then
8830 cat >>confdefs.h
<<\_ACEOF
8836 ### Use -lXpm if available, unless `--with-xpm=no'.
8838 if test "${HAVE_X11}" = "yes"; then
8839 if test "${with_xpm}" != "no"; then
8840 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8841 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8842 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8843 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8844 echo $ECHO_N "(cached) $ECHO_C" >&6
8846 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8847 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8849 # Is the header compilable?
8850 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
8851 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
8852 cat >conftest.
$ac_ext <<_ACEOF
8853 #line $LINENO "configure"
8856 cat confdefs.h
>>conftest.
$ac_ext
8857 cat >>conftest.
$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8859 $ac_includes_default
8860 #include <X11/xpm.h>
8862 rm -f conftest.
$ac_objext
8863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8864 (eval $ac_compile) 2>&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); } &&
8868 { ac_try
='test -s conftest.$ac_objext'
8869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); }; }; then
8874 ac_header_compiler
=yes
8876 echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.
$ac_ext >&5
8879 ac_header_compiler
=no
8881 rm -f conftest.
$ac_objext conftest.
$ac_ext
8882 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8883 echo "${ECHO_T}$ac_header_compiler" >&6
8885 # Is the header present?
8886 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
8887 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
8888 cat >conftest.
$ac_ext <<_ACEOF
8889 #line $LINENO "configure"
8892 cat confdefs.h
>>conftest.
$ac_ext
8893 cat >>conftest.
$ac_ext <<_ACEOF
8894 /* end confdefs.h. */
8895 #include <X11/xpm.h>
8897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8898 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8900 grep -v '^ *+' conftest.er1
>conftest.err
8902 cat conftest.err
>&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); } >/dev
/null
; then
8905 if test -s conftest.err
; then
8906 ac_cpp_err
=$ac_c_preproc_warn_flag
8913 if test -z "$ac_cpp_err"; then
8914 ac_header_preproc
=yes
8916 echo "$as_me: failed program was:" >&5
8917 sed 's/^/| /' conftest.
$ac_ext >&5
8919 ac_header_preproc
=no
8921 rm -f conftest.err conftest.
$ac_ext
8922 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8923 echo "${ECHO_T}$ac_header_preproc" >&6
8925 # So? What about this header?
8926 case $ac_header_compiler:$ac_header_preproc in
8928 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8929 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8930 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8931 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
8934 ## ------------------------------------ ##
8935 ## Report this to bug-autoconf@gnu.org. ##
8936 ## ------------------------------------ ##
8939 sed "s/^/$as_me: WARNING: /" >&2
8942 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
8943 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
8944 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
8945 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
8946 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8947 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
8950 ## ------------------------------------ ##
8951 ## Report this to bug-autoconf@gnu.org. ##
8952 ## ------------------------------------ ##
8955 sed "s/^/$as_me: WARNING: /" >&2
8958 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8959 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8960 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8961 echo $ECHO_N "(cached) $ECHO_C" >&6
8963 ac_cv_header_X11_xpm_h
=$ac_header_preproc
8965 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8966 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8969 if test $ac_cv_header_X11_xpm_h = yes; then
8970 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
8971 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
8972 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
8973 echo $ECHO_N "(cached) $ECHO_C" >&6
8975 ac_check_lib_save_LIBS
=$LIBS
8976 LIBS
="-lXpm -lX11 $LIBS"
8977 cat >conftest.
$ac_ext <<_ACEOF
8978 #line $LINENO "configure"
8981 cat confdefs.h
>>conftest.
$ac_ext
8982 cat >>conftest.
$ac_ext <<_ACEOF
8983 /* end confdefs.h. */
8985 /* Override any gcc2 internal prototype to avoid an error. */
8989 /* We use char because int might match the return type of a gcc2
8990 builtin and then its argument prototype would still apply. */
8991 char XpmReadFileToPixmap ();
8995 XpmReadFileToPixmap ();
9000 rm -f conftest.
$ac_objext conftest
$ac_exeext
9001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9002 (eval $ac_link) 2>&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); } &&
9006 { ac_try
='test -s conftest$ac_exeext'
9007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); }; }; then
9012 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
9014 echo "$as_me: failed program was:" >&5
9015 sed 's/^/| /' conftest.
$ac_ext >&5
9017 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
9019 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9020 LIBS
=$ac_check_lib_save_LIBS
9022 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9023 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
9024 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9031 if test "${HAVE_XPM}" = "yes"; then
9032 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9033 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
9034 cat >conftest.
$ac_ext <<_ACEOF
9035 #line $LINENO "configure"
9038 cat confdefs.h
>>conftest.
$ac_ext
9039 cat >>conftest.
$ac_ext <<_ACEOF
9040 /* end confdefs.h. */
9041 #include "X11/xpm.h"
9042 #ifndef XpmReturnAllocPixels
9043 no_return_alloc_pixels
9047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9048 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
9056 if test "${HAVE_XPM}" = "yes"; then
9057 echo "$as_me:$LINENO: result: yes" >&5
9058 echo "${ECHO_T}yes" >&6
9060 echo "$as_me:$LINENO: result: no" >&5
9061 echo "${ECHO_T}no" >&6
9066 if test "${HAVE_XPM}" = "yes"; then
9068 cat >>confdefs.h
<<\_ACEOF
9075 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9077 if test "${HAVE_X11}" = "yes"; then
9078 if test "${with_jpeg}" != "no"; then
9079 if test "${ac_cv_header_jerror_h+set}" = set; then
9080 echo "$as_me:$LINENO: checking for jerror.h" >&5
9081 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9082 if test "${ac_cv_header_jerror_h+set}" = set; then
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
9085 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9086 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9088 # Is the header compilable?
9089 echo "$as_me:$LINENO: checking jerror.h usability" >&5
9090 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
9091 cat >conftest.
$ac_ext <<_ACEOF
9092 #line $LINENO "configure"
9095 cat confdefs.h
>>conftest.
$ac_ext
9096 cat >>conftest.
$ac_ext <<_ACEOF
9097 /* end confdefs.h. */
9098 $ac_includes_default
9101 rm -f conftest.
$ac_objext
9102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9103 (eval $ac_compile) 2>&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); } &&
9107 { ac_try
='test -s conftest.$ac_objext'
9108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); }; }; then
9113 ac_header_compiler
=yes
9115 echo "$as_me: failed program was:" >&5
9116 sed 's/^/| /' conftest.
$ac_ext >&5
9118 ac_header_compiler
=no
9120 rm -f conftest.
$ac_objext conftest.
$ac_ext
9121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9122 echo "${ECHO_T}$ac_header_compiler" >&6
9124 # Is the header present?
9125 echo "$as_me:$LINENO: checking jerror.h presence" >&5
9126 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
9127 cat >conftest.
$ac_ext <<_ACEOF
9128 #line $LINENO "configure"
9131 cat confdefs.h
>>conftest.
$ac_ext
9132 cat >>conftest.
$ac_ext <<_ACEOF
9133 /* end confdefs.h. */
9136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9137 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9139 grep -v '^ *+' conftest.er1
>conftest.err
9141 cat conftest.err
>&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); } >/dev
/null
; then
9144 if test -s conftest.err
; then
9145 ac_cpp_err
=$ac_c_preproc_warn_flag
9152 if test -z "$ac_cpp_err"; then
9153 ac_header_preproc
=yes
9155 echo "$as_me: failed program was:" >&5
9156 sed 's/^/| /' conftest.
$ac_ext >&5
9158 ac_header_preproc
=no
9160 rm -f conftest.err conftest.
$ac_ext
9161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9162 echo "${ECHO_T}$ac_header_preproc" >&6
9164 # So? What about this header?
9165 case $ac_header_compiler:$ac_header_preproc in
9167 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
9168 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9169 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9170 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9173 ## ------------------------------------ ##
9174 ## Report this to bug-autoconf@gnu.org. ##
9175 ## ------------------------------------ ##
9178 sed "s/^/$as_me: WARNING: /" >&2
9181 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
9182 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
9183 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
9184 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
9185 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9186 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9189 ## ------------------------------------ ##
9190 ## Report this to bug-autoconf@gnu.org. ##
9191 ## ------------------------------------ ##
9194 sed "s/^/$as_me: WARNING: /" >&2
9197 echo "$as_me:$LINENO: checking for jerror.h" >&5
9198 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9199 if test "${ac_cv_header_jerror_h+set}" = set; then
9200 echo $ECHO_N "(cached) $ECHO_C" >&6
9202 ac_cv_header_jerror_h
=$ac_header_preproc
9204 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9205 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9208 if test $ac_cv_header_jerror_h = yes; then
9209 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9210 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
9211 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9212 echo $ECHO_N "(cached) $ECHO_C" >&6
9214 ac_check_lib_save_LIBS
=$LIBS
9216 cat >conftest.
$ac_ext <<_ACEOF
9217 #line $LINENO "configure"
9220 cat confdefs.h
>>conftest.
$ac_ext
9221 cat >>conftest.
$ac_ext <<_ACEOF
9222 /* end confdefs.h. */
9224 /* Override any gcc2 internal prototype to avoid an error. */
9228 /* We use char because int might match the return type of a gcc2
9229 builtin and then its argument prototype would still apply. */
9230 char jpeg_destroy_compress ();
9234 jpeg_destroy_compress ();
9239 rm -f conftest.
$ac_objext conftest
$ac_exeext
9240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9241 (eval $ac_link) 2>&5
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); } &&
9245 { ac_try
='test -s conftest$ac_exeext'
9246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); }; }; then
9251 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
9253 echo "$as_me: failed program was:" >&5
9254 sed 's/^/| /' conftest.
$ac_ext >&5
9256 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
9258 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9259 LIBS
=$ac_check_lib_save_LIBS
9261 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9262 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
9263 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
9273 if test "${HAVE_JPEG}" = "yes"; then
9274 cat >>confdefs.h
<<\_ACEOF
9278 cat >conftest.
$ac_ext <<_ACEOF
9279 #line $LINENO "configure"
9282 cat confdefs.h
>>conftest.
$ac_ext
9283 cat >>conftest.
$ac_ext <<_ACEOF
9284 /* end confdefs.h. */
9285 #include <jpeglib.h>
9286 version=JPEG_LIB_VERSION
9289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9290 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
9291 cat >>confdefs.h
<<\_ACEOF
9296 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
9297 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9305 ### Use -lpng if available, unless `--with-png=no'.
9307 if test "${HAVE_X11}" = "yes"; then
9308 if test "${with_png}" != "no"; then
9309 if test "${ac_cv_header_png_h+set}" = set; then
9310 echo "$as_me:$LINENO: checking for png.h" >&5
9311 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9312 if test "${ac_cv_header_png_h+set}" = set; then
9313 echo $ECHO_N "(cached) $ECHO_C" >&6
9315 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9316 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9318 # Is the header compilable?
9319 echo "$as_me:$LINENO: checking png.h usability" >&5
9320 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
9321 cat >conftest.
$ac_ext <<_ACEOF
9322 #line $LINENO "configure"
9325 cat confdefs.h
>>conftest.
$ac_ext
9326 cat >>conftest.
$ac_ext <<_ACEOF
9327 /* end confdefs.h. */
9328 $ac_includes_default
9331 rm -f conftest.
$ac_objext
9332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9333 (eval $ac_compile) 2>&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); } &&
9337 { ac_try
='test -s conftest.$ac_objext'
9338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); }; }; then
9343 ac_header_compiler
=yes
9345 echo "$as_me: failed program was:" >&5
9346 sed 's/^/| /' conftest.
$ac_ext >&5
9348 ac_header_compiler
=no
9350 rm -f conftest.
$ac_objext conftest.
$ac_ext
9351 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9352 echo "${ECHO_T}$ac_header_compiler" >&6
9354 # Is the header present?
9355 echo "$as_me:$LINENO: checking png.h presence" >&5
9356 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
9357 cat >conftest.
$ac_ext <<_ACEOF
9358 #line $LINENO "configure"
9361 cat confdefs.h
>>conftest.
$ac_ext
9362 cat >>conftest.
$ac_ext <<_ACEOF
9363 /* end confdefs.h. */
9366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9367 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9369 grep -v '^ *+' conftest.er1
>conftest.err
9371 cat conftest.err
>&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } >/dev
/null
; then
9374 if test -s conftest.err
; then
9375 ac_cpp_err
=$ac_c_preproc_warn_flag
9382 if test -z "$ac_cpp_err"; then
9383 ac_header_preproc
=yes
9385 echo "$as_me: failed program was:" >&5
9386 sed 's/^/| /' conftest.
$ac_ext >&5
9388 ac_header_preproc
=no
9390 rm -f conftest.err conftest.
$ac_ext
9391 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9392 echo "${ECHO_T}$ac_header_preproc" >&6
9394 # So? What about this header?
9395 case $ac_header_compiler:$ac_header_preproc in
9397 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
9398 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9399 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9400 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9403 ## ------------------------------------ ##
9404 ## Report this to bug-autoconf@gnu.org. ##
9405 ## ------------------------------------ ##
9408 sed "s/^/$as_me: WARNING: /" >&2
9411 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
9412 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
9413 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
9414 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
9415 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9416 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9419 ## ------------------------------------ ##
9420 ## Report this to bug-autoconf@gnu.org. ##
9421 ## ------------------------------------ ##
9424 sed "s/^/$as_me: WARNING: /" >&2
9427 echo "$as_me:$LINENO: checking for png.h" >&5
9428 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9429 if test "${ac_cv_header_png_h+set}" = set; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
9432 ac_cv_header_png_h
=$ac_header_preproc
9434 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9435 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9438 if test $ac_cv_header_png_h = yes; then
9439 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
9440 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
9441 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
9442 echo $ECHO_N "(cached) $ECHO_C" >&6
9444 ac_check_lib_save_LIBS
=$LIBS
9445 LIBS
="-lpng -lz -lm $LIBS"
9446 cat >conftest.
$ac_ext <<_ACEOF
9447 #line $LINENO "configure"
9450 cat confdefs.h
>>conftest.
$ac_ext
9451 cat >>conftest.
$ac_ext <<_ACEOF
9452 /* end confdefs.h. */
9454 /* Override any gcc2 internal prototype to avoid an error. */
9458 /* We use char because int might match the return type of a gcc2
9459 builtin and then its argument prototype would still apply. */
9460 char png_get_channels ();
9464 png_get_channels ();
9469 rm -f conftest.
$ac_objext conftest
$ac_exeext
9470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9471 (eval $ac_link) 2>&5
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); } &&
9475 { ac_try
='test -s conftest$ac_exeext'
9476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); }; }; then
9481 ac_cv_lib_png_png_get_channels
=yes
9483 echo "$as_me: failed program was:" >&5
9484 sed 's/^/| /' conftest.
$ac_ext >&5
9486 ac_cv_lib_png_png_get_channels
=no
9488 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9489 LIBS
=$ac_check_lib_save_LIBS
9491 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
9492 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
9493 if test $ac_cv_lib_png_png_get_channels = yes; then
9502 if test "${HAVE_PNG}" = "yes"; then
9504 cat >>confdefs.h
<<\_ACEOF
9511 ### Use -ltiff if available, unless `--with-tiff=no'.
9513 if test "${HAVE_X11}" = "yes"; then
9514 if test "${with_tiff}" != "no"; then
9515 if test "${ac_cv_header_tiffio_h+set}" = set; then
9516 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9517 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9518 if test "${ac_cv_header_tiffio_h+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9521 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9522 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9524 # Is the header compilable?
9525 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
9526 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
9527 cat >conftest.
$ac_ext <<_ACEOF
9528 #line $LINENO "configure"
9531 cat confdefs.h
>>conftest.
$ac_ext
9532 cat >>conftest.
$ac_ext <<_ACEOF
9533 /* end confdefs.h. */
9534 $ac_includes_default
9537 rm -f conftest.
$ac_objext
9538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9539 (eval $ac_compile) 2>&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } &&
9543 { ac_try
='test -s conftest.$ac_objext'
9544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); }; }; then
9549 ac_header_compiler
=yes
9551 echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.
$ac_ext >&5
9554 ac_header_compiler
=no
9556 rm -f conftest.
$ac_objext conftest.
$ac_ext
9557 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9558 echo "${ECHO_T}$ac_header_compiler" >&6
9560 # Is the header present?
9561 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
9562 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
9563 cat >conftest.
$ac_ext <<_ACEOF
9564 #line $LINENO "configure"
9567 cat confdefs.h
>>conftest.
$ac_ext
9568 cat >>conftest.
$ac_ext <<_ACEOF
9569 /* end confdefs.h. */
9572 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9573 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9575 grep -v '^ *+' conftest.er1
>conftest.err
9577 cat conftest.err
>&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); } >/dev
/null
; then
9580 if test -s conftest.err
; then
9581 ac_cpp_err
=$ac_c_preproc_warn_flag
9588 if test -z "$ac_cpp_err"; then
9589 ac_header_preproc
=yes
9591 echo "$as_me: failed program was:" >&5
9592 sed 's/^/| /' conftest.
$ac_ext >&5
9594 ac_header_preproc
=no
9596 rm -f conftest.err conftest.
$ac_ext
9597 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9598 echo "${ECHO_T}$ac_header_preproc" >&6
9600 # So? What about this header?
9601 case $ac_header_compiler:$ac_header_preproc in
9603 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9604 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9605 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9606 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9609 ## ------------------------------------ ##
9610 ## Report this to bug-autoconf@gnu.org. ##
9611 ## ------------------------------------ ##
9614 sed "s/^/$as_me: WARNING: /" >&2
9617 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
9618 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
9619 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
9620 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
9621 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9622 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9625 ## ------------------------------------ ##
9626 ## Report this to bug-autoconf@gnu.org. ##
9627 ## ------------------------------------ ##
9630 sed "s/^/$as_me: WARNING: /" >&2
9633 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9634 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9635 if test "${ac_cv_header_tiffio_h+set}" = set; then
9636 echo $ECHO_N "(cached) $ECHO_C" >&6
9638 ac_cv_header_tiffio_h
=$ac_header_preproc
9640 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9641 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9644 if test $ac_cv_header_tiffio_h = yes; then
9646 # At least one tiff package requires the jpeg library.
9647 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
9648 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
9649 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
9650 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
9651 echo $ECHO_N "(cached) $ECHO_C" >&6
9653 ac_check_lib_save_LIBS
=$LIBS
9654 LIBS
="-ltiff $tifflibs $LIBS"
9655 cat >conftest.
$ac_ext <<_ACEOF
9656 #line $LINENO "configure"
9659 cat confdefs.h
>>conftest.
$ac_ext
9660 cat >>conftest.
$ac_ext <<_ACEOF
9661 /* end confdefs.h. */
9663 /* Override any gcc2 internal prototype to avoid an error. */
9667 /* We use char because int might match the return type of a gcc2
9668 builtin and then its argument prototype would still apply. */
9669 char TIFFGetVersion ();
9678 rm -f conftest.
$ac_objext conftest
$ac_exeext
9679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9680 (eval $ac_link) 2>&5
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); } &&
9684 { ac_try
='test -s conftest$ac_exeext'
9685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); }; }; then
9690 ac_cv_lib_tiff_TIFFGetVersion
=yes
9692 echo "$as_me: failed program was:" >&5
9693 sed 's/^/| /' conftest.
$ac_ext >&5
9695 ac_cv_lib_tiff_TIFFGetVersion
=no
9697 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9698 LIBS
=$ac_check_lib_save_LIBS
9700 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9701 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
9702 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
9711 if test "${HAVE_TIFF}" = "yes"; then
9713 cat >>confdefs.h
<<\_ACEOF
9720 ### Use -lgif if available, unless `--with-gif=no'.
9722 if test "${HAVE_X11}" = "yes"; then
9723 if test "${with_gif}" != "no"; then
9724 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9725 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9726 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9727 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9728 echo $ECHO_N "(cached) $ECHO_C" >&6
9730 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9731 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9733 # Is the header compilable?
9734 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
9735 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
9736 cat >conftest.
$ac_ext <<_ACEOF
9737 #line $LINENO "configure"
9740 cat confdefs.h
>>conftest.
$ac_ext
9741 cat >>conftest.
$ac_ext <<_ACEOF
9742 /* end confdefs.h. */
9743 $ac_includes_default
9744 #include <gif_lib.h>
9746 rm -f conftest.
$ac_objext
9747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9748 (eval $ac_compile) 2>&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); } &&
9752 { ac_try
='test -s conftest.$ac_objext'
9753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); }; }; then
9758 ac_header_compiler
=yes
9760 echo "$as_me: failed program was:" >&5
9761 sed 's/^/| /' conftest.
$ac_ext >&5
9763 ac_header_compiler
=no
9765 rm -f conftest.
$ac_objext conftest.
$ac_ext
9766 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9767 echo "${ECHO_T}$ac_header_compiler" >&6
9769 # Is the header present?
9770 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
9771 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
9772 cat >conftest.
$ac_ext <<_ACEOF
9773 #line $LINENO "configure"
9776 cat confdefs.h
>>conftest.
$ac_ext
9777 cat >>conftest.
$ac_ext <<_ACEOF
9778 /* end confdefs.h. */
9779 #include <gif_lib.h>
9781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9782 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9784 grep -v '^ *+' conftest.er1
>conftest.err
9786 cat conftest.err
>&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); } >/dev
/null
; then
9789 if test -s conftest.err
; then
9790 ac_cpp_err
=$ac_c_preproc_warn_flag
9797 if test -z "$ac_cpp_err"; then
9798 ac_header_preproc
=yes
9800 echo "$as_me: failed program was:" >&5
9801 sed 's/^/| /' conftest.
$ac_ext >&5
9803 ac_header_preproc
=no
9805 rm -f conftest.err conftest.
$ac_ext
9806 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9807 echo "${ECHO_T}$ac_header_preproc" >&6
9809 # So? What about this header?
9810 case $ac_header_compiler:$ac_header_preproc in
9812 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9813 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9814 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9815 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9818 ## ------------------------------------ ##
9819 ## Report this to bug-autoconf@gnu.org. ##
9820 ## ------------------------------------ ##
9823 sed "s/^/$as_me: WARNING: /" >&2
9826 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
9827 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
9828 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
9829 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
9830 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9831 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9834 ## ------------------------------------ ##
9835 ## Report this to bug-autoconf@gnu.org. ##
9836 ## ------------------------------------ ##
9839 sed "s/^/$as_me: WARNING: /" >&2
9842 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9843 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9844 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9845 echo $ECHO_N "(cached) $ECHO_C" >&6
9847 ac_cv_header_gif_lib_h
=$ac_header_preproc
9849 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9850 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9853 if test $ac_cv_header_gif_lib_h = yes; then
9854 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9855 # Earlier versions can crash Emacs.
9856 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
9857 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
9858 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9861 ac_check_lib_save_LIBS
=$LIBS
9862 LIBS
="-lungif $LIBS"
9863 cat >conftest.
$ac_ext <<_ACEOF
9864 #line $LINENO "configure"
9867 cat confdefs.h
>>conftest.
$ac_ext
9868 cat >>conftest.
$ac_ext <<_ACEOF
9869 /* end confdefs.h. */
9871 /* Override any gcc2 internal prototype to avoid an error. */
9875 /* We use char because int might match the return type of a gcc2
9876 builtin and then its argument prototype would still apply. */
9877 char EGifPutExtensionLast ();
9881 EGifPutExtensionLast ();
9886 rm -f conftest.
$ac_objext conftest
$ac_exeext
9887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9888 (eval $ac_link) 2>&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); } &&
9892 { ac_try
='test -s conftest$ac_exeext'
9893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; }; then
9898 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
9900 echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.
$ac_ext >&5
9903 ac_cv_lib_ungif_EGifPutExtensionLast
=no
9905 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9906 LIBS
=$ac_check_lib_save_LIBS
9908 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
9909 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
9910 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
9919 if test "${HAVE_GIF}" = "yes"; then
9921 cat >>confdefs.h
<<\_ACEOF
9928 ### Use Mac OS X Carbon API to implement GUI.
9930 if test "${with_carbon}" != "no"; then
9931 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9932 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9933 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9934 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9935 echo $ECHO_N "(cached) $ECHO_C" >&6
9937 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9938 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
9940 # Is the header compilable?
9941 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9942 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
9943 cat >conftest.
$ac_ext <<_ACEOF
9944 #line $LINENO "configure"
9947 cat confdefs.h
>>conftest.
$ac_ext
9948 cat >>conftest.
$ac_ext <<_ACEOF
9949 /* end confdefs.h. */
9950 $ac_includes_default
9951 #include <Carbon/Carbon.h>
9953 rm -f conftest.
$ac_objext
9954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9955 (eval $ac_compile) 2>&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); } &&
9959 { ac_try
='test -s conftest.$ac_objext'
9960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; }; then
9965 ac_header_compiler
=yes
9967 echo "$as_me: failed program was:" >&5
9968 sed 's/^/| /' conftest.
$ac_ext >&5
9970 ac_header_compiler
=no
9972 rm -f conftest.
$ac_objext conftest.
$ac_ext
9973 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9974 echo "${ECHO_T}$ac_header_compiler" >&6
9976 # Is the header present?
9977 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9978 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
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. */
9986 #include <Carbon/Carbon.h>
9988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9989 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9991 grep -v '^ *+' conftest.er1
>conftest.err
9993 cat conftest.err
>&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } >/dev
/null
; then
9996 if test -s conftest.err
; then
9997 ac_cpp_err
=$ac_c_preproc_warn_flag
10004 if test -z "$ac_cpp_err"; then
10005 ac_header_preproc
=yes
10007 echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.
$ac_ext >&5
10010 ac_header_preproc
=no
10012 rm -f conftest.err conftest.
$ac_ext
10013 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10014 echo "${ECHO_T}$ac_header_preproc" >&6
10016 # So? What about this header?
10017 case $ac_header_compiler:$ac_header_preproc in
10019 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
10020 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10021 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10022 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10025 ## ------------------------------------ ##
10026 ## Report this to bug-autoconf@gnu.org. ##
10027 ## ------------------------------------ ##
10030 sed "s/^/$as_me: WARNING: /" >&2
10033 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
10034 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
10035 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
10036 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
10037 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10038 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10041 ## ------------------------------------ ##
10042 ## Report this to bug-autoconf@gnu.org. ##
10043 ## ------------------------------------ ##
10046 sed "s/^/$as_me: WARNING: /" >&2
10049 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10050 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10051 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10052 echo $ECHO_N "(cached) $ECHO_C" >&6
10054 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
10056 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10057 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10060 if test $ac_cv_header_Carbon_Carbon_h = yes; then
10067 if test "${HAVE_CARBON}" = "yes"; then
10069 cat >>confdefs.h
<<\_ACEOF
10070 #define HAVE_CARBON 1
10074 ## Specify the install directory
10076 if test "${carbon_appdir_x}" != ""; then
10077 case ${carbon_appdir_x} in
10078 y | ye |
yes) carbon_appdir
=/Applications
;;
10079 * ) carbon_appdir
=${carbon_appdir_x} ;;
10082 # We also have mouse menus.
10086 ### Use session management (-lSM -lICE) if available
10088 if test "${HAVE_X11}" = "yes"; then
10089 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10090 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10091 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10092 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10093 echo $ECHO_N "(cached) $ECHO_C" >&6
10095 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10096 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10098 # Is the header compilable?
10099 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
10100 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
10101 cat >conftest.
$ac_ext <<_ACEOF
10102 #line $LINENO "configure"
10105 cat confdefs.h
>>conftest.
$ac_ext
10106 cat >>conftest.
$ac_ext <<_ACEOF
10107 /* end confdefs.h. */
10108 $ac_includes_default
10109 #include <X11/SM/SMlib.h>
10111 rm -f conftest.
$ac_objext
10112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10113 (eval $ac_compile) 2>&5
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); } &&
10117 { ac_try
='test -s conftest.$ac_objext'
10118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119 (eval $ac_try) 2>&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); }; }; then
10123 ac_header_compiler
=yes
10125 echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.
$ac_ext >&5
10128 ac_header_compiler
=no
10130 rm -f conftest.
$ac_objext conftest.
$ac_ext
10131 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10132 echo "${ECHO_T}$ac_header_compiler" >&6
10134 # Is the header present?
10135 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
10136 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
10137 cat >conftest.
$ac_ext <<_ACEOF
10138 #line $LINENO "configure"
10141 cat confdefs.h
>>conftest.
$ac_ext
10142 cat >>conftest.
$ac_ext <<_ACEOF
10143 /* end confdefs.h. */
10144 #include <X11/SM/SMlib.h>
10146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10147 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10149 grep -v '^ *+' conftest.er1
>conftest.err
10151 cat conftest.err
>&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); } >/dev
/null
; then
10154 if test -s conftest.err
; then
10155 ac_cpp_err
=$ac_c_preproc_warn_flag
10162 if test -z "$ac_cpp_err"; then
10163 ac_header_preproc
=yes
10165 echo "$as_me: failed program was:" >&5
10166 sed 's/^/| /' conftest.
$ac_ext >&5
10168 ac_header_preproc
=no
10170 rm -f conftest.err conftest.
$ac_ext
10171 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10172 echo "${ECHO_T}$ac_header_preproc" >&6
10174 # So? What about this header?
10175 case $ac_header_compiler:$ac_header_preproc in
10177 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10178 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10179 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10180 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10183 ## ------------------------------------ ##
10184 ## Report this to bug-autoconf@gnu.org. ##
10185 ## ------------------------------------ ##
10188 sed "s/^/$as_me: WARNING: /" >&2
10191 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
10192 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
10193 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
10194 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
10195 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10196 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10199 ## ------------------------------------ ##
10200 ## Report this to bug-autoconf@gnu.org. ##
10201 ## ------------------------------------ ##
10204 sed "s/^/$as_me: WARNING: /" >&2
10207 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10208 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10209 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10210 echo $ECHO_N "(cached) $ECHO_C" >&6
10212 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
10214 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10215 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10218 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
10219 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10220 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
10221 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
10224 ac_check_lib_save_LIBS
=$LIBS
10226 cat >conftest.
$ac_ext <<_ACEOF
10227 #line $LINENO "configure"
10230 cat confdefs.h
>>conftest.
$ac_ext
10231 cat >>conftest.
$ac_ext <<_ACEOF
10232 /* end confdefs.h. */
10234 /* Override any gcc2 internal prototype to avoid an error. */
10238 /* We use char because int might match the return type of a gcc2
10239 builtin and then its argument prototype would still apply. */
10240 char SmcOpenConnection ();
10244 SmcOpenConnection ();
10249 rm -f conftest.
$ac_objext conftest
$ac_exeext
10250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10251 (eval $ac_link) 2>&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } &&
10255 { ac_try
='test -s conftest$ac_exeext'
10256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257 (eval $ac_try) 2>&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; }; then
10261 ac_cv_lib_SM_SmcOpenConnection
=yes
10263 echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.
$ac_ext >&5
10266 ac_cv_lib_SM_SmcOpenConnection
=no
10268 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10269 LIBS
=$ac_check_lib_save_LIBS
10271 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10272 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
10273 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
10283 if test "${HAVE_X_SM}" = "yes"; then
10285 cat >>confdefs.h
<<\_ACEOF
10286 #define HAVE_X_SM 1
10291 *) LIBS
="-lSM -lICE $LIBS" ;;
10296 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10297 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
10298 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
10299 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
10300 echo $ECHO_N "(cached) $ECHO_C" >&6
10302 cat >conftest.
$ac_ext <<_ACEOF
10303 #line $LINENO "configure"
10306 cat confdefs.h
>>conftest.
$ac_ext
10307 cat >>conftest.
$ac_ext <<_ACEOF
10308 /* end confdefs.h. */
10318 rm -f conftest.
$ac_objext conftest
$ac_exeext
10319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10320 (eval $ac_link) 2>&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); } &&
10324 { ac_try
='test -s conftest$ac_exeext'
10325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10326 (eval $ac_try) 2>&5
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 (exit $ac_status); }; }; then
10330 emacs_cv_netdb_declares_h_errno
=yes
10332 echo "$as_me: failed program was:" >&5
10333 sed 's/^/| /' conftest.
$ac_ext >&5
10335 emacs_cv_netdb_declares_h_errno
=no
10337 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10339 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
10340 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
10341 if test $emacs_cv_netdb_declares_h_errno = yes; then
10343 cat >>confdefs.h
<<\_ACEOF
10344 #define HAVE_H_ERRNO 1
10349 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10350 # for constant arguments. Useless!
10351 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10352 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10353 if test "${ac_cv_working_alloca_h+set}" = set; then
10354 echo $ECHO_N "(cached) $ECHO_C" >&6
10356 cat >conftest.
$ac_ext <<_ACEOF
10357 #line $LINENO "configure"
10360 cat confdefs.h
>>conftest.
$ac_ext
10361 cat >>conftest.
$ac_ext <<_ACEOF
10362 /* end confdefs.h. */
10363 #include <alloca.h>
10367 char *p = (char *) alloca (2 * sizeof (int));
10372 rm -f conftest.
$ac_objext conftest
$ac_exeext
10373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10374 (eval $ac_link) 2>&5
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); } &&
10378 { ac_try
='test -s conftest$ac_exeext'
10379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10380 (eval $ac_try) 2>&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); }; }; then
10384 ac_cv_working_alloca_h
=yes
10386 echo "$as_me: failed program was:" >&5
10387 sed 's/^/| /' conftest.
$ac_ext >&5
10389 ac_cv_working_alloca_h
=no
10391 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10393 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10394 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10395 if test $ac_cv_working_alloca_h = yes; then
10397 cat >>confdefs.h
<<\_ACEOF
10398 #define HAVE_ALLOCA_H 1
10403 echo "$as_me:$LINENO: checking for alloca" >&5
10404 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10405 if test "${ac_cv_func_alloca_works+set}" = set; then
10406 echo $ECHO_N "(cached) $ECHO_C" >&6
10408 cat >conftest.
$ac_ext <<_ACEOF
10409 #line $LINENO "configure"
10412 cat confdefs.h
>>conftest.
$ac_ext
10413 cat >>conftest.
$ac_ext <<_ACEOF
10414 /* end confdefs.h. */
10416 # define alloca __builtin_alloca
10419 # include <malloc.h>
10420 # define alloca _alloca
10423 # include <alloca.h>
10428 # ifndef alloca /* predefined by HP cc +Olibcalls */
10439 char *p = (char *) alloca (1);
10444 rm -f conftest.
$ac_objext conftest
$ac_exeext
10445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10446 (eval $ac_link) 2>&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); } &&
10450 { ac_try
='test -s conftest$ac_exeext'
10451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10452 (eval $ac_try) 2>&5
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); }; }; then
10456 ac_cv_func_alloca_works
=yes
10458 echo "$as_me: failed program was:" >&5
10459 sed 's/^/| /' conftest.
$ac_ext >&5
10461 ac_cv_func_alloca_works
=no
10463 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10465 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10466 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10468 if test $ac_cv_func_alloca_works = yes; then
10470 cat >>confdefs.h
<<\_ACEOF
10471 #define HAVE_ALLOCA 1
10475 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10476 # that cause trouble. Some versions do not even contain alloca or
10477 # contain a buggy version. If you still want to use their alloca,
10478 # use ar to extract alloca.o from them instead of compiling alloca.c.
10480 ALLOCA
=alloca.
$ac_objext
10482 cat >>confdefs.h
<<\_ACEOF
10487 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10488 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10489 if test "${ac_cv_os_cray+set}" = set; then
10490 echo $ECHO_N "(cached) $ECHO_C" >&6
10492 cat >conftest.
$ac_ext <<_ACEOF
10493 #line $LINENO "configure"
10496 cat confdefs.h
>>conftest.
$ac_ext
10497 cat >>conftest.
$ac_ext <<_ACEOF
10498 /* end confdefs.h. */
10499 #if defined(CRAY) && ! defined(CRAY2)
10506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10507 $EGREP "webecray" >/dev
/null
2>&1; then
10515 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10516 echo "${ECHO_T}$ac_cv_os_cray" >&6
10517 if test $ac_cv_os_cray = yes; then
10518 for ac_func
in _getb67 GETB67 getb67
; do
10519 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10520 echo "$as_me:$LINENO: checking for $ac_func" >&5
10521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10522 if eval "test \"\${$as_ac_var+set}\" = set"; then
10523 echo $ECHO_N "(cached) $ECHO_C" >&6
10525 cat >conftest.
$ac_ext <<_ACEOF
10526 #line $LINENO "configure"
10529 cat confdefs.h
>>conftest.
$ac_ext
10530 cat >>conftest.
$ac_ext <<_ACEOF
10531 /* end confdefs.h. */
10532 /* System header to define __stub macros and hopefully few prototypes,
10533 which can conflict with char $ac_func (); below.
10534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10535 <limits.h> exists even on freestanding compilers. */
10537 # include <limits.h>
10539 # include <assert.h>
10541 /* Override any gcc2 internal prototype to avoid an error. */
10546 /* We use char because int might match the return type of a gcc2
10547 builtin and then its argument prototype would still apply. */
10549 /* The GNU C library defines this for functions which it implements
10550 to always fail with ENOSYS. Some functions are actually named
10551 something starting with __ and the normal name is an alias. */
10552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10555 char (*f) () = $ac_func;
10564 return f != $ac_func;
10569 rm -f conftest.
$ac_objext conftest
$ac_exeext
10570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10571 (eval $ac_link) 2>&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); } &&
10575 { ac_try
='test -s conftest$ac_exeext'
10576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577 (eval $ac_try) 2>&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); }; }; then
10581 eval "$as_ac_var=yes"
10583 echo "$as_me: failed program was:" >&5
10584 sed 's/^/| /' conftest.
$ac_ext >&5
10586 eval "$as_ac_var=no"
10588 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10591 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10592 if test `eval echo '${'$as_ac_var'}'` = yes; then
10594 cat >>confdefs.h
<<_ACEOF
10595 #define CRAY_STACKSEG_END $ac_func
10604 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10605 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10606 if test "${ac_cv_c_stack_direction+set}" = set; then
10607 echo $ECHO_N "(cached) $ECHO_C" >&6
10609 if test "$cross_compiling" = yes; then
10610 ac_cv_c_stack_direction
=0
10612 cat >conftest.
$ac_ext <<_ACEOF
10613 #line $LINENO "configure"
10616 cat confdefs.h
>>conftest.
$ac_ext
10617 cat >>conftest.
$ac_ext <<_ACEOF
10618 /* end confdefs.h. */
10620 find_stack_direction ()
10622 static char *addr = 0;
10627 return find_stack_direction ();
10630 return (&dummy > addr) ? 1 : -1;
10636 exit (find_stack_direction () < 0);
10639 rm -f conftest
$ac_exeext
10640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10641 (eval $ac_link) 2>&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646 (eval $ac_try) 2>&5
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }; }; then
10650 ac_cv_c_stack_direction
=1
10652 echo "$as_me: program exited with status $ac_status" >&5
10653 echo "$as_me: failed program was:" >&5
10654 sed 's/^/| /' conftest.
$ac_ext >&5
10656 ( exit $ac_status )
10657 ac_cv_c_stack_direction
=-1
10659 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10662 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10663 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10665 cat >>confdefs.h
<<_ACEOF
10666 #define STACK_DIRECTION $ac_cv_c_stack_direction
10673 # fmod, logb, and frexp are found in -lm on most systems.
10674 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10676 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10677 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
10678 if test "${ac_cv_lib_m_sqrt+set}" = set; then
10679 echo $ECHO_N "(cached) $ECHO_C" >&6
10681 ac_check_lib_save_LIBS
=$LIBS
10683 cat >conftest.
$ac_ext <<_ACEOF
10684 #line $LINENO "configure"
10687 cat confdefs.h
>>conftest.
$ac_ext
10688 cat >>conftest.
$ac_ext <<_ACEOF
10689 /* end confdefs.h. */
10691 /* Override any gcc2 internal prototype to avoid an error. */
10695 /* We use char because int might match the return type of a gcc2
10696 builtin and then its argument prototype would still apply. */
10706 rm -f conftest.
$ac_objext conftest
$ac_exeext
10707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10708 (eval $ac_link) 2>&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); } &&
10712 { ac_try
='test -s conftest$ac_exeext'
10713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10714 (eval $ac_try) 2>&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); }; }; then
10718 ac_cv_lib_m_sqrt
=yes
10720 echo "$as_me: failed program was:" >&5
10721 sed 's/^/| /' conftest.
$ac_ext >&5
10723 ac_cv_lib_m_sqrt
=no
10725 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10726 LIBS
=$ac_check_lib_save_LIBS
10728 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10729 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
10730 if test $ac_cv_lib_m_sqrt = yes; then
10731 cat >>confdefs.h
<<_ACEOF
10732 #define HAVE_LIBM 1
10740 # Check for mail-locking functions in a "mail" library
10742 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10743 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
10744 if test "${ac_cv_lib_mail_maillock+set}" = set; then
10745 echo $ECHO_N "(cached) $ECHO_C" >&6
10747 ac_check_lib_save_LIBS
=$LIBS
10748 LIBS
="-lmail $LIBS"
10749 cat >conftest.
$ac_ext <<_ACEOF
10750 #line $LINENO "configure"
10753 cat confdefs.h
>>conftest.
$ac_ext
10754 cat >>conftest.
$ac_ext <<_ACEOF
10755 /* end confdefs.h. */
10757 /* Override any gcc2 internal prototype to avoid an error. */
10761 /* We use char because int might match the return type of a gcc2
10762 builtin and then its argument prototype would still apply. */
10772 rm -f conftest.
$ac_objext conftest
$ac_exeext
10773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10774 (eval $ac_link) 2>&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); } &&
10778 { ac_try
='test -s conftest$ac_exeext'
10779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10780 (eval $ac_try) 2>&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); }; }; then
10784 ac_cv_lib_mail_maillock
=yes
10786 echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.
$ac_ext >&5
10789 ac_cv_lib_mail_maillock
=no
10791 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10792 LIBS
=$ac_check_lib_save_LIBS
10794 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
10795 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
10796 if test $ac_cv_lib_mail_maillock = yes; then
10797 cat >>confdefs.h
<<_ACEOF
10798 #define HAVE_LIBMAIL 1
10801 LIBS
="-lmail $LIBS"
10806 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
10807 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
10808 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
10809 echo $ECHO_N "(cached) $ECHO_C" >&6
10811 ac_check_lib_save_LIBS
=$LIBS
10812 LIBS
="-llockfile $LIBS"
10813 cat >conftest.
$ac_ext <<_ACEOF
10814 #line $LINENO "configure"
10817 cat confdefs.h
>>conftest.
$ac_ext
10818 cat >>conftest.
$ac_ext <<_ACEOF
10819 /* end confdefs.h. */
10821 /* Override any gcc2 internal prototype to avoid an error. */
10825 /* We use char because int might match the return type of a gcc2
10826 builtin and then its argument prototype would still apply. */
10836 rm -f conftest.
$ac_objext conftest
$ac_exeext
10837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10838 (eval $ac_link) 2>&5
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); } &&
10842 { ac_try
='test -s conftest$ac_exeext'
10843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10844 (eval $ac_try) 2>&5
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); }; }; then
10848 ac_cv_lib_lockfile_maillock
=yes
10850 echo "$as_me: failed program was:" >&5
10851 sed 's/^/| /' conftest.
$ac_ext >&5
10853 ac_cv_lib_lockfile_maillock
=no
10855 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10856 LIBS
=$ac_check_lib_save_LIBS
10858 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
10859 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
10860 if test $ac_cv_lib_lockfile_maillock = yes; then
10861 cat >>confdefs.h
<<_ACEOF
10862 #define HAVE_LIBLOCKFILE 1
10865 LIBS
="-llockfile $LIBS"
10869 # If we have the shared liblockfile, assume we must use it for mail
10870 # locking (e.g. Debian). If we couldn't link against liblockfile
10871 # (no liblockfile.a installed), ensure that we don't need to.
10872 if test "$ac_cv_lib_lockfile_maillock" = no
; then
10873 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10874 set dummy liblockfile.so
; ac_word
=$2
10875 echo "$as_me:$LINENO: checking for $ac_word" >&5
10876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10877 if test "${ac_cv_prog_liblockfile+set}" = set; then
10878 echo $ECHO_N "(cached) $ECHO_C" >&6
10880 if test -n "$liblockfile"; then
10881 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
10883 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10884 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10885 for as_dir
in $as_dummy
10888 test -z "$as_dir" && as_dir
=.
10889 for ac_exec_ext
in '' $ac_executable_extensions; do
10890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10891 ac_cv_prog_liblockfile
="yes"
10892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10898 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
10901 liblockfile
=$ac_cv_prog_liblockfile
10902 if test -n "$liblockfile"; then
10903 echo "$as_me:$LINENO: result: $liblockfile" >&5
10904 echo "${ECHO_T}$liblockfile" >&6
10906 echo "$as_me:$LINENO: result: no" >&5
10907 echo "${ECHO_T}no" >&6
10910 if test $ac_cv_prog_liblockfile = yes; then
10911 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
10912 This probably means that movemail could lose mail.
10913 There may be a \`development' package to install containing liblockfile." >&5
10914 echo "$as_me: error: Shared liblockfile found but can't link against it.
10915 This probably means that movemail could lose mail.
10916 There may be a \`development' package to install containing liblockfile." >&2;}
10917 { (exit 1); exit 1; }; }
10919 cat >>confdefs.h
<<\_ACEOF
10920 #define LIBMAIL -llockfile
10927 for ac_func
in touchlock
10929 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10930 echo "$as_me:$LINENO: checking for $ac_func" >&5
10931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10932 if eval "test \"\${$as_ac_var+set}\" = set"; then
10933 echo $ECHO_N "(cached) $ECHO_C" >&6
10935 cat >conftest.
$ac_ext <<_ACEOF
10936 #line $LINENO "configure"
10939 cat confdefs.h
>>conftest.
$ac_ext
10940 cat >>conftest.
$ac_ext <<_ACEOF
10941 /* end confdefs.h. */
10942 /* System header to define __stub macros and hopefully few prototypes,
10943 which can conflict with char $ac_func (); below.
10944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10945 <limits.h> exists even on freestanding compilers. */
10947 # include <limits.h>
10949 # include <assert.h>
10951 /* Override any gcc2 internal prototype to avoid an error. */
10956 /* We use char because int might match the return type of a gcc2
10957 builtin and then its argument prototype would still apply. */
10959 /* The GNU C library defines this for functions which it implements
10960 to always fail with ENOSYS. Some functions are actually named
10961 something starting with __ and the normal name is an alias. */
10962 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10965 char (*f) () = $ac_func;
10974 return f != $ac_func;
10979 rm -f conftest.
$ac_objext conftest
$ac_exeext
10980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10981 (eval $ac_link) 2>&5
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); } &&
10985 { ac_try
='test -s conftest$ac_exeext'
10986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10987 (eval $ac_try) 2>&5
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); }; }; then
10991 eval "$as_ac_var=yes"
10993 echo "$as_me: failed program was:" >&5
10994 sed 's/^/| /' conftest.
$ac_ext >&5
10996 eval "$as_ac_var=no"
10998 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11001 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11002 if test `eval echo '${'$as_ac_var'}'` = yes; then
11003 cat >>confdefs.h
<<_ACEOF
11004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11011 for ac_header
in maillock.h
11013 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11015 echo "$as_me:$LINENO: checking for $ac_header" >&5
11016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11018 echo $ECHO_N "(cached) $ECHO_C" >&6
11020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11023 # Is the header compilable?
11024 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11025 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11026 cat >conftest.
$ac_ext <<_ACEOF
11027 #line $LINENO "configure"
11030 cat confdefs.h
>>conftest.
$ac_ext
11031 cat >>conftest.
$ac_ext <<_ACEOF
11032 /* end confdefs.h. */
11033 $ac_includes_default
11034 #include <$ac_header>
11036 rm -f conftest.
$ac_objext
11037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11038 (eval $ac_compile) 2>&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } &&
11042 { ac_try
='test -s conftest.$ac_objext'
11043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11044 (eval $ac_try) 2>&5
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; }; then
11048 ac_header_compiler
=yes
11050 echo "$as_me: failed program was:" >&5
11051 sed 's/^/| /' conftest.
$ac_ext >&5
11053 ac_header_compiler
=no
11055 rm -f conftest.
$ac_objext conftest.
$ac_ext
11056 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11057 echo "${ECHO_T}$ac_header_compiler" >&6
11059 # Is the header present?
11060 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11062 cat >conftest.
$ac_ext <<_ACEOF
11063 #line $LINENO "configure"
11066 cat confdefs.h
>>conftest.
$ac_ext
11067 cat >>conftest.
$ac_ext <<_ACEOF
11068 /* end confdefs.h. */
11069 #include <$ac_header>
11071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11072 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11074 grep -v '^ *+' conftest.er1
>conftest.err
11076 cat conftest.err
>&5
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); } >/dev
/null
; then
11079 if test -s conftest.err
; then
11080 ac_cpp_err
=$ac_c_preproc_warn_flag
11087 if test -z "$ac_cpp_err"; then
11088 ac_header_preproc
=yes
11090 echo "$as_me: failed program was:" >&5
11091 sed 's/^/| /' conftest.
$ac_ext >&5
11093 ac_header_preproc
=no
11095 rm -f conftest.err conftest.
$ac_ext
11096 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11097 echo "${ECHO_T}$ac_header_preproc" >&6
11099 # So? What about this header?
11100 case $ac_header_compiler:$ac_header_preproc in
11102 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11103 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11105 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11108 ## ------------------------------------ ##
11109 ## Report this to bug-autoconf@gnu.org. ##
11110 ## ------------------------------------ ##
11113 sed "s/^/$as_me: WARNING: /" >&2
11116 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11117 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11118 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11119 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11121 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11124 ## ------------------------------------ ##
11125 ## Report this to bug-autoconf@gnu.org. ##
11126 ## ------------------------------------ ##
11129 sed "s/^/$as_me: WARNING: /" >&2
11132 echo "$as_me:$LINENO: checking for $ac_header" >&5
11133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11135 echo $ECHO_N "(cached) $ECHO_C" >&6
11137 eval "$as_ac_Header=$ac_header_preproc"
11139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11140 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11144 cat >>confdefs.h
<<_ACEOF
11145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11215 for ac_func
in gethostname getdomainname dup2 \
11216 rename closedir mkdir
rmdir sysinfo \
11217 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
11218 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
11219 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
11220 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11221 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11222 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
11223 memset memcmp memmove
11225 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11226 echo "$as_me:$LINENO: checking for $ac_func" >&5
11227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11228 if eval "test \"\${$as_ac_var+set}\" = set"; then
11229 echo $ECHO_N "(cached) $ECHO_C" >&6
11231 cat >conftest.
$ac_ext <<_ACEOF
11232 #line $LINENO "configure"
11235 cat confdefs.h
>>conftest.
$ac_ext
11236 cat >>conftest.
$ac_ext <<_ACEOF
11237 /* end confdefs.h. */
11238 /* System header to define __stub macros and hopefully few prototypes,
11239 which can conflict with char $ac_func (); below.
11240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11241 <limits.h> exists even on freestanding compilers. */
11243 # include <limits.h>
11245 # include <assert.h>
11247 /* Override any gcc2 internal prototype to avoid an error. */
11252 /* We use char because int might match the return type of a gcc2
11253 builtin and then its argument prototype would still apply. */
11255 /* The GNU C library defines this for functions which it implements
11256 to always fail with ENOSYS. Some functions are actually named
11257 something starting with __ and the normal name is an alias. */
11258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11261 char (*f) () = $ac_func;
11270 return f != $ac_func;
11275 rm -f conftest.
$ac_objext conftest
$ac_exeext
11276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11277 (eval $ac_link) 2>&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } &&
11281 { ac_try
='test -s conftest$ac_exeext'
11282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11283 (eval $ac_try) 2>&5
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); }; }; then
11287 eval "$as_ac_var=yes"
11289 echo "$as_me: failed program was:" >&5
11290 sed 's/^/| /' conftest.
$ac_ext >&5
11292 eval "$as_ac_var=no"
11294 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11297 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11298 if test `eval echo '${'$as_ac_var'}'` = yes; then
11299 cat >>confdefs.h
<<_ACEOF
11300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11308 for ac_header
in sys
/un.h
11310 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11312 echo "$as_me:$LINENO: checking for $ac_header" >&5
11313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11315 echo $ECHO_N "(cached) $ECHO_C" >&6
11317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11318 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11320 # Is the header compilable?
11321 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11322 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11323 cat >conftest.
$ac_ext <<_ACEOF
11324 #line $LINENO "configure"
11327 cat confdefs.h
>>conftest.
$ac_ext
11328 cat >>conftest.
$ac_ext <<_ACEOF
11329 /* end confdefs.h. */
11330 $ac_includes_default
11331 #include <$ac_header>
11333 rm -f conftest.
$ac_objext
11334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11335 (eval $ac_compile) 2>&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } &&
11339 { ac_try
='test -s conftest.$ac_objext'
11340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11341 (eval $ac_try) 2>&5
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); }; }; then
11345 ac_header_compiler
=yes
11347 echo "$as_me: failed program was:" >&5
11348 sed 's/^/| /' conftest.
$ac_ext >&5
11350 ac_header_compiler
=no
11352 rm -f conftest.
$ac_objext conftest.
$ac_ext
11353 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11354 echo "${ECHO_T}$ac_header_compiler" >&6
11356 # Is the header present?
11357 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11358 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11359 cat >conftest.
$ac_ext <<_ACEOF
11360 #line $LINENO "configure"
11363 cat confdefs.h
>>conftest.
$ac_ext
11364 cat >>conftest.
$ac_ext <<_ACEOF
11365 /* end confdefs.h. */
11366 #include <$ac_header>
11368 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11369 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11371 grep -v '^ *+' conftest.er1
>conftest.err
11373 cat conftest.err
>&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } >/dev
/null
; then
11376 if test -s conftest.err
; then
11377 ac_cpp_err
=$ac_c_preproc_warn_flag
11384 if test -z "$ac_cpp_err"; then
11385 ac_header_preproc
=yes
11387 echo "$as_me: failed program was:" >&5
11388 sed 's/^/| /' conftest.
$ac_ext >&5
11390 ac_header_preproc
=no
11392 rm -f conftest.err conftest.
$ac_ext
11393 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11394 echo "${ECHO_T}$ac_header_preproc" >&6
11396 # So? What about this header?
11397 case $ac_header_compiler:$ac_header_preproc in
11399 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11400 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11405 ## ------------------------------------ ##
11406 ## Report this to bug-autoconf@gnu.org. ##
11407 ## ------------------------------------ ##
11410 sed "s/^/$as_me: WARNING: /" >&2
11413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11414 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11416 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11421 ## ------------------------------------ ##
11422 ## Report this to bug-autoconf@gnu.org. ##
11423 ## ------------------------------------ ##
11426 sed "s/^/$as_me: WARNING: /" >&2
11429 echo "$as_me:$LINENO: checking for $ac_header" >&5
11430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11432 echo $ECHO_N "(cached) $ECHO_C" >&6
11434 eval "$as_ac_Header=$ac_header_preproc"
11436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11441 cat >>confdefs.h
<<_ACEOF
11442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11452 for ac_header
in sys
/time.h unistd.h
11454 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11456 echo "$as_me:$LINENO: checking for $ac_header" >&5
11457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
11461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11464 # Is the header compilable?
11465 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11467 cat >conftest.
$ac_ext <<_ACEOF
11468 #line $LINENO "configure"
11471 cat confdefs.h
>>conftest.
$ac_ext
11472 cat >>conftest.
$ac_ext <<_ACEOF
11473 /* end confdefs.h. */
11474 $ac_includes_default
11475 #include <$ac_header>
11477 rm -f conftest.
$ac_objext
11478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11479 (eval $ac_compile) 2>&5
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); } &&
11483 { ac_try
='test -s conftest.$ac_objext'
11484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11485 (eval $ac_try) 2>&5
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); }; }; then
11489 ac_header_compiler
=yes
11491 echo "$as_me: failed program was:" >&5
11492 sed 's/^/| /' conftest.
$ac_ext >&5
11494 ac_header_compiler
=no
11496 rm -f conftest.
$ac_objext conftest.
$ac_ext
11497 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11498 echo "${ECHO_T}$ac_header_compiler" >&6
11500 # Is the header present?
11501 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11502 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11503 cat >conftest.
$ac_ext <<_ACEOF
11504 #line $LINENO "configure"
11507 cat confdefs.h
>>conftest.
$ac_ext
11508 cat >>conftest.
$ac_ext <<_ACEOF
11509 /* end confdefs.h. */
11510 #include <$ac_header>
11512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11513 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11515 grep -v '^ *+' conftest.er1
>conftest.err
11517 cat conftest.err
>&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } >/dev
/null
; then
11520 if test -s conftest.err
; then
11521 ac_cpp_err
=$ac_c_preproc_warn_flag
11528 if test -z "$ac_cpp_err"; then
11529 ac_header_preproc
=yes
11531 echo "$as_me: failed program was:" >&5
11532 sed 's/^/| /' conftest.
$ac_ext >&5
11534 ac_header_preproc
=no
11536 rm -f conftest.err conftest.
$ac_ext
11537 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11538 echo "${ECHO_T}$ac_header_preproc" >&6
11540 # So? What about this header?
11541 case $ac_header_compiler:$ac_header_preproc in
11543 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11544 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11549 ## ------------------------------------ ##
11550 ## Report this to bug-autoconf@gnu.org. ##
11551 ## ------------------------------------ ##
11554 sed "s/^/$as_me: WARNING: /" >&2
11557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11558 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11560 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11562 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11565 ## ------------------------------------ ##
11566 ## Report this to bug-autoconf@gnu.org. ##
11567 ## ------------------------------------ ##
11570 sed "s/^/$as_me: WARNING: /" >&2
11573 echo "$as_me:$LINENO: checking for $ac_header" >&5
11574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11576 echo $ECHO_N "(cached) $ECHO_C" >&6
11578 eval "$as_ac_Header=$ac_header_preproc"
11580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11581 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11585 cat >>confdefs.h
<<_ACEOF
11586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11594 for ac_func
in alarm
11596 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11597 echo "$as_me:$LINENO: checking for $ac_func" >&5
11598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11599 if eval "test \"\${$as_ac_var+set}\" = set"; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11602 cat >conftest.
$ac_ext <<_ACEOF
11603 #line $LINENO "configure"
11606 cat confdefs.h
>>conftest.
$ac_ext
11607 cat >>conftest.
$ac_ext <<_ACEOF
11608 /* end confdefs.h. */
11609 /* System header to define __stub macros and hopefully few prototypes,
11610 which can conflict with char $ac_func (); below.
11611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11612 <limits.h> exists even on freestanding compilers. */
11614 # include <limits.h>
11616 # include <assert.h>
11618 /* Override any gcc2 internal prototype to avoid an error. */
11623 /* We use char because int might match the return type of a gcc2
11624 builtin and then its argument prototype would still apply. */
11626 /* The GNU C library defines this for functions which it implements
11627 to always fail with ENOSYS. Some functions are actually named
11628 something starting with __ and the normal name is an alias. */
11629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11632 char (*f) () = $ac_func;
11641 return f != $ac_func;
11646 rm -f conftest.
$ac_objext conftest
$ac_exeext
11647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11648 (eval $ac_link) 2>&5
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); } &&
11652 { ac_try
='test -s conftest$ac_exeext'
11653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11654 (eval $ac_try) 2>&5
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); }; }; then
11658 eval "$as_ac_var=yes"
11660 echo "$as_me: failed program was:" >&5
11661 sed 's/^/| /' conftest.
$ac_ext >&5
11663 eval "$as_ac_var=no"
11665 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11668 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11669 if test `eval echo '${'$as_ac_var'}'` = yes; then
11670 cat >>confdefs.h
<<_ACEOF
11671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11677 echo "$as_me:$LINENO: checking for working mktime" >&5
11678 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
11679 if test "${ac_cv_func_working_mktime+set}" = set; then
11680 echo $ECHO_N "(cached) $ECHO_C" >&6
11682 if test "$cross_compiling" = yes; then
11683 ac_cv_func_working_mktime
=no
11685 cat >conftest.
$ac_ext <<_ACEOF
11686 #line $LINENO "configure"
11689 cat confdefs.h
>>conftest.
$ac_ext
11690 cat >>conftest.
$ac_ext <<_ACEOF
11691 /* end confdefs.h. */
11692 /* Test program from Paul Eggert and Tony Leneis. */
11693 #if TIME_WITH_SYS_TIME
11694 # include <sys/time.h>
11697 # if HAVE_SYS_TIME_H
11698 # include <sys/time.h>
11705 # include <unistd.h>
11709 # define alarm(X) /* empty */
11712 /* Work around redefinition to rpl_putenv by other config tests. */
11715 static time_t time_t_max;
11717 /* Values we'll use to set the TZ environment variable. */
11718 static const char *const tz_strings[] = {
11719 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11720 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11722 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11724 /* Fail if mktime fails to convert a date in the spring-forward gap.
11725 Based on a problem report from Andreas Jaeger. */
11727 spring_forward_gap ()
11729 /* glibc (up to about 1998-10-07) failed this test. */
11732 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11733 instead of "TZ=America/Vancouver" in order to detect the bug even
11734 on systems that don't support the Olson extension, or don't have the
11735 full zoneinfo tables installed. */
11736 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11745 if (mktime (&tm) == (time_t)-1)
11754 if ((lt = localtime (&now)) && mktime (lt) != now)
11756 now = time_t_max - now;
11757 if ((lt = localtime (&now)) && mktime (lt) != now)
11764 /* Based on code from Ariel Faigon. */
11774 if (tm.tm_mon != 2 || tm.tm_mday != 31)
11784 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11785 now = mktime (&tm);
11786 if (now != (time_t) -1)
11788 struct tm *lt = localtime (&now);
11790 && lt->tm_year == tm.tm_year
11791 && lt->tm_mon == tm.tm_mon
11792 && lt->tm_mday == tm.tm_mday
11793 && lt->tm_hour == tm.tm_hour
11794 && lt->tm_min == tm.tm_min
11795 && lt->tm_sec == tm.tm_sec
11796 && lt->tm_yday == tm.tm_yday
11797 && lt->tm_wday == tm.tm_wday
11798 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11799 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11810 /* This test makes some buggy mktime implementations loop.
11811 Give up after 60 seconds; a mktime slower than that
11812 isn't worth using anyway. */
11815 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11818 delta = time_t_max / 997; /* a suitable prime number */
11819 for (i = 0; i < N_STRINGS; i++)
11822 putenv (tz_strings[i]);
11824 for (t = 0; t <= time_t_max - delta; t += delta)
11826 mktime_test ((time_t) 60 * 60);
11827 mktime_test ((time_t) 60 * 60 * 24);
11829 for (j = 1; 0 < j; j *= 2)
11831 bigtime_test (j - 1);
11834 spring_forward_gap ();
11838 rm -f conftest
$ac_exeext
11839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11840 (eval $ac_link) 2>&5
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11845 (eval $ac_try) 2>&5
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); }; }; then
11849 ac_cv_func_working_mktime
=yes
11851 echo "$as_me: program exited with status $ac_status" >&5
11852 echo "$as_me: failed program was:" >&5
11853 sed 's/^/| /' conftest.
$ac_ext >&5
11855 ( exit $ac_status )
11856 ac_cv_func_working_mktime
=no
11858 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11861 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11862 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
11863 if test $ac_cv_func_working_mktime = no
; then
11864 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
11867 if test "$ac_cv_func_working_mktime" = no
; then
11869 cat >>confdefs.h
<<\_ACEOF
11870 #define BROKEN_MKTIME 1
11875 ac_have_func
=no
# yes means we've found a way to get the load average.
11877 # Make sure getloadavg.c is where it belongs, at configure-time.
11878 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11879 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
11880 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
11881 { (exit 1); exit 1; }; }
11885 # Check for getloadavg, but be sure not to touch the cache variable.
11886 (echo "$as_me:$LINENO: checking for getloadavg" >&5
11887 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
11888 if test "${ac_cv_func_getloadavg+set}" = set; then
11889 echo $ECHO_N "(cached) $ECHO_C" >&6
11891 cat >conftest.
$ac_ext <<_ACEOF
11892 #line $LINENO "configure"
11895 cat confdefs.h
>>conftest.
$ac_ext
11896 cat >>conftest.
$ac_ext <<_ACEOF
11897 /* end confdefs.h. */
11898 /* System header to define __stub macros and hopefully few prototypes,
11899 which can conflict with char getloadavg (); below.
11900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11901 <limits.h> exists even on freestanding compilers. */
11903 # include <limits.h>
11905 # include <assert.h>
11907 /* Override any gcc2 internal prototype to avoid an error. */
11912 /* We use char because int might match the return type of a gcc2
11913 builtin and then its argument prototype would still apply. */
11914 char getloadavg ();
11915 /* The GNU C library defines this for functions which it implements
11916 to always fail with ENOSYS. Some functions are actually named
11917 something starting with __ and the normal name is an alias. */
11918 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
11921 char (*f) () = getloadavg;
11930 return f != getloadavg;
11935 rm -f conftest.
$ac_objext conftest
$ac_exeext
11936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11937 (eval $ac_link) 2>&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } &&
11941 { ac_try
='test -s conftest$ac_exeext'
11942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11943 (eval $ac_try) 2>&5
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; }; then
11947 ac_cv_func_getloadavg
=yes
11949 echo "$as_me: failed program was:" >&5
11950 sed 's/^/| /' conftest.
$ac_ext >&5
11952 ac_cv_func_getloadavg
=no
11954 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11956 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
11957 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
11958 if test $ac_cv_func_getloadavg = yes; then
11963 ) && ac_have_func
=yes
11965 # On HPUX9, an unprivileged user can get load averages through this function.
11967 for ac_func
in pstat_getdynamic
11969 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11970 echo "$as_me:$LINENO: checking for $ac_func" >&5
11971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11972 if eval "test \"\${$as_ac_var+set}\" = set"; then
11973 echo $ECHO_N "(cached) $ECHO_C" >&6
11975 cat >conftest.
$ac_ext <<_ACEOF
11976 #line $LINENO "configure"
11979 cat confdefs.h
>>conftest.
$ac_ext
11980 cat >>conftest.
$ac_ext <<_ACEOF
11981 /* end confdefs.h. */
11982 /* System header to define __stub macros and hopefully few prototypes,
11983 which can conflict with char $ac_func (); below.
11984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11985 <limits.h> exists even on freestanding compilers. */
11987 # include <limits.h>
11989 # include <assert.h>
11991 /* Override any gcc2 internal prototype to avoid an error. */
11996 /* We use char because int might match the return type of a gcc2
11997 builtin and then its argument prototype would still apply. */
11999 /* The GNU C library defines this for functions which it implements
12000 to always fail with ENOSYS. Some functions are actually named
12001 something starting with __ and the normal name is an alias. */
12002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12005 char (*f) () = $ac_func;
12014 return f != $ac_func;
12019 rm -f conftest.
$ac_objext conftest
$ac_exeext
12020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12021 (eval $ac_link) 2>&5
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); } &&
12025 { ac_try
='test -s conftest$ac_exeext'
12026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12027 (eval $ac_try) 2>&5
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); }; }; then
12031 eval "$as_ac_var=yes"
12033 echo "$as_me: failed program was:" >&5
12034 sed 's/^/| /' conftest.
$ac_ext >&5
12036 eval "$as_ac_var=no"
12038 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12041 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12042 if test `eval echo '${'$as_ac_var'}'` = yes; then
12043 cat >>confdefs.h
<<_ACEOF
12044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12051 # Solaris has libkstat which does not require root.
12053 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
12054 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
12055 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12058 ac_check_lib_save_LIBS
=$LIBS
12059 LIBS
="-lkstat $LIBS"
12060 cat >conftest.
$ac_ext <<_ACEOF
12061 #line $LINENO "configure"
12064 cat confdefs.h
>>conftest.
$ac_ext
12065 cat >>conftest.
$ac_ext <<_ACEOF
12066 /* end confdefs.h. */
12068 /* Override any gcc2 internal prototype to avoid an error. */
12072 /* We use char because int might match the return type of a gcc2
12073 builtin and then its argument prototype would still apply. */
12074 char kstat_open ();
12083 rm -f conftest.
$ac_objext conftest
$ac_exeext
12084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12085 (eval $ac_link) 2>&5
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); } &&
12089 { ac_try
='test -s conftest$ac_exeext'
12090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091 (eval $ac_try) 2>&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; }; then
12095 ac_cv_lib_kstat_kstat_open
=yes
12097 echo "$as_me: failed program was:" >&5
12098 sed 's/^/| /' conftest.
$ac_ext >&5
12100 ac_cv_lib_kstat_kstat_open
=no
12102 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12103 LIBS
=$ac_check_lib_save_LIBS
12105 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
12106 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
12107 if test $ac_cv_lib_kstat_kstat_open = yes; then
12108 cat >>confdefs.h
<<_ACEOF
12109 #define HAVE_LIBKSTAT 1
12112 LIBS
="-lkstat $LIBS"
12116 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
12118 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12119 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12120 # to get the right answer into the cache.
12121 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12122 if test $ac_have_func = no
; then
12123 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
12124 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
12125 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
12126 echo $ECHO_N "(cached) $ECHO_C" >&6
12128 ac_check_lib_save_LIBS
=$LIBS
12130 cat >conftest.
$ac_ext <<_ACEOF
12131 #line $LINENO "configure"
12134 cat confdefs.h
>>conftest.
$ac_ext
12135 cat >>conftest.
$ac_ext <<_ACEOF
12136 /* end confdefs.h. */
12138 /* Override any gcc2 internal prototype to avoid an error. */
12142 /* We use char because int might match the return type of a gcc2
12143 builtin and then its argument prototype would still apply. */
12153 rm -f conftest.
$ac_objext conftest
$ac_exeext
12154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12155 (eval $ac_link) 2>&5
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); } &&
12159 { ac_try
='test -s conftest$ac_exeext'
12160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161 (eval $ac_try) 2>&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; }; then
12165 ac_cv_lib_elf_elf_begin
=yes
12167 echo "$as_me: failed program was:" >&5
12168 sed 's/^/| /' conftest.
$ac_ext >&5
12170 ac_cv_lib_elf_elf_begin
=no
12172 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12173 LIBS
=$ac_check_lib_save_LIBS
12175 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
12176 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
12177 if test $ac_cv_lib_elf_elf_begin = yes; then
12182 if test $ac_have_func = no
; then
12183 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
12184 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
12185 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
12186 echo $ECHO_N "(cached) $ECHO_C" >&6
12188 ac_check_lib_save_LIBS
=$LIBS
12190 cat >conftest.
$ac_ext <<_ACEOF
12191 #line $LINENO "configure"
12194 cat confdefs.h
>>conftest.
$ac_ext
12195 cat >>conftest.
$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12198 /* Override any gcc2 internal prototype to avoid an error. */
12202 /* We use char because int might match the return type of a gcc2
12203 builtin and then its argument prototype would still apply. */
12213 rm -f conftest.
$ac_objext conftest
$ac_exeext
12214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12215 (eval $ac_link) 2>&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); } &&
12219 { ac_try
='test -s conftest$ac_exeext'
12220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12221 (eval $ac_try) 2>&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; }; then
12225 ac_cv_lib_kvm_kvm_open
=yes
12227 echo "$as_me: failed program was:" >&5
12228 sed 's/^/| /' conftest.
$ac_ext >&5
12230 ac_cv_lib_kvm_kvm_open
=no
12232 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12233 LIBS
=$ac_check_lib_save_LIBS
12235 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
12236 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
12237 if test $ac_cv_lib_kvm_kvm_open = yes; then
12241 # Check for the 4.4BSD definition of getloadavg.
12242 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
12243 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
12244 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
12245 echo $ECHO_N "(cached) $ECHO_C" >&6
12247 ac_check_lib_save_LIBS
=$LIBS
12248 LIBS
="-lutil $LIBS"
12249 cat >conftest.
$ac_ext <<_ACEOF
12250 #line $LINENO "configure"
12253 cat confdefs.h
>>conftest.
$ac_ext
12254 cat >>conftest.
$ac_ext <<_ACEOF
12255 /* end confdefs.h. */
12257 /* Override any gcc2 internal prototype to avoid an error. */
12261 /* We use char because int might match the return type of a gcc2
12262 builtin and then its argument prototype would still apply. */
12263 char getloadavg ();
12272 rm -f conftest.
$ac_objext conftest
$ac_exeext
12273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12274 (eval $ac_link) 2>&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } &&
12278 { ac_try
='test -s conftest$ac_exeext'
12279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280 (eval $ac_try) 2>&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }; }; then
12284 ac_cv_lib_util_getloadavg
=yes
12286 echo "$as_me: failed program was:" >&5
12287 sed 's/^/| /' conftest.
$ac_ext >&5
12289 ac_cv_lib_util_getloadavg
=no
12291 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12292 LIBS
=$ac_check_lib_save_LIBS
12294 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
12295 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
12296 if test $ac_cv_lib_util_getloadavg = yes; then
12297 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
12302 if test $ac_have_func = no
; then
12303 # There is a commonly available library for RS/6000 AIX.
12304 # Since it is not a standard part of AIX, it might be installed locally.
12305 ac_getloadavg_LIBS
=$LIBS
12306 LIBS
="-L/usr/local/lib $LIBS"
12307 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
12308 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
12309 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
12310 echo $ECHO_N "(cached) $ECHO_C" >&6
12312 ac_check_lib_save_LIBS
=$LIBS
12313 LIBS
="-lgetloadavg $LIBS"
12314 cat >conftest.
$ac_ext <<_ACEOF
12315 #line $LINENO "configure"
12318 cat confdefs.h
>>conftest.
$ac_ext
12319 cat >>conftest.
$ac_ext <<_ACEOF
12320 /* end confdefs.h. */
12322 /* Override any gcc2 internal prototype to avoid an error. */
12326 /* We use char because int might match the return type of a gcc2
12327 builtin and then its argument prototype would still apply. */
12328 char getloadavg ();
12337 rm -f conftest.
$ac_objext conftest
$ac_exeext
12338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12339 (eval $ac_link) 2>&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } &&
12343 { ac_try
='test -s conftest$ac_exeext'
12344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12345 (eval $ac_try) 2>&5
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); }; }; then
12349 ac_cv_lib_getloadavg_getloadavg
=yes
12351 echo "$as_me: failed program was:" >&5
12352 sed 's/^/| /' conftest.
$ac_ext >&5
12354 ac_cv_lib_getloadavg_getloadavg
=no
12356 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12357 LIBS
=$ac_check_lib_save_LIBS
12359 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12360 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
12361 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
12362 LIBS
="-lgetloadavg $LIBS"
12364 LIBS
=$ac_getloadavg_LIBS
12369 # Make sure it is really in the library, if we think we found it,
12370 # otherwise set up the replacement function.
12372 for ac_func
in getloadavg
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
12453 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
12455 cat >>confdefs.h
<<\_ACEOF
12456 #define C_GETLOADAVG 1
12459 # Figure out what our getloadavg.c needs.
12461 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12462 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12463 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12464 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12465 echo $ECHO_N "(cached) $ECHO_C" >&6
12467 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12468 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12470 # Is the header compilable?
12471 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
12472 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
12473 cat >conftest.
$ac_ext <<_ACEOF
12474 #line $LINENO "configure"
12477 cat confdefs.h
>>conftest.
$ac_ext
12478 cat >>conftest.
$ac_ext <<_ACEOF
12479 /* end confdefs.h. */
12480 $ac_includes_default
12481 #include <sys/dg_sys_info.h>
12483 rm -f conftest.
$ac_objext
12484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12485 (eval $ac_compile) 2>&5
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); } &&
12489 { ac_try
='test -s conftest.$ac_objext'
12490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12491 (eval $ac_try) 2>&5
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); }; }; then
12495 ac_header_compiler
=yes
12497 echo "$as_me: failed program was:" >&5
12498 sed 's/^/| /' conftest.
$ac_ext >&5
12500 ac_header_compiler
=no
12502 rm -f conftest.
$ac_objext conftest.
$ac_ext
12503 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12504 echo "${ECHO_T}$ac_header_compiler" >&6
12506 # Is the header present?
12507 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
12508 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
12509 cat >conftest.
$ac_ext <<_ACEOF
12510 #line $LINENO "configure"
12513 cat confdefs.h
>>conftest.
$ac_ext
12514 cat >>conftest.
$ac_ext <<_ACEOF
12515 /* end confdefs.h. */
12516 #include <sys/dg_sys_info.h>
12518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12519 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12521 grep -v '^ *+' conftest.er1
>conftest.err
12523 cat conftest.err
>&5
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); } >/dev
/null
; then
12526 if test -s conftest.err
; then
12527 ac_cpp_err
=$ac_c_preproc_warn_flag
12534 if test -z "$ac_cpp_err"; then
12535 ac_header_preproc
=yes
12537 echo "$as_me: failed program was:" >&5
12538 sed 's/^/| /' conftest.
$ac_ext >&5
12540 ac_header_preproc
=no
12542 rm -f conftest.err conftest.
$ac_ext
12543 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12544 echo "${ECHO_T}$ac_header_preproc" >&6
12546 # So? What about this header?
12547 case $ac_header_compiler:$ac_header_preproc in
12549 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
12550 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12551 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12552 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12555 ## ------------------------------------ ##
12556 ## Report this to bug-autoconf@gnu.org. ##
12557 ## ------------------------------------ ##
12560 sed "s/^/$as_me: WARNING: /" >&2
12563 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
12564 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
12565 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
12566 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
12567 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12568 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12571 ## ------------------------------------ ##
12572 ## Report this to bug-autoconf@gnu.org. ##
12573 ## ------------------------------------ ##
12576 sed "s/^/$as_me: WARNING: /" >&2
12579 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12580 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12581 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12582 echo $ECHO_N "(cached) $ECHO_C" >&6
12584 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
12586 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12587 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12590 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
12593 cat >>confdefs.h
<<\_ACEOF
12598 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
12599 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
12600 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
12601 echo $ECHO_N "(cached) $ECHO_C" >&6
12603 ac_check_lib_save_LIBS
=$LIBS
12605 cat >conftest.
$ac_ext <<_ACEOF
12606 #line $LINENO "configure"
12609 cat confdefs.h
>>conftest.
$ac_ext
12610 cat >>conftest.
$ac_ext <<_ACEOF
12611 /* end confdefs.h. */
12613 /* Override any gcc2 internal prototype to avoid an error. */
12617 /* We use char because int might match the return type of a gcc2
12618 builtin and then its argument prototype would still apply. */
12619 char dg_sys_info ();
12628 rm -f conftest.
$ac_objext conftest
$ac_exeext
12629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12630 (eval $ac_link) 2>&5
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); } &&
12634 { ac_try
='test -s conftest$ac_exeext'
12635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636 (eval $ac_try) 2>&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; }; then
12640 ac_cv_lib_dgc_dg_sys_info
=yes
12642 echo "$as_me: failed program was:" >&5
12643 sed 's/^/| /' conftest.
$ac_ext >&5
12645 ac_cv_lib_dgc_dg_sys_info
=no
12647 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12648 LIBS
=$ac_check_lib_save_LIBS
12650 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12651 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
12652 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
12653 cat >>confdefs.h
<<_ACEOF
12654 #define HAVE_LIBDGC 1
12665 if test "${ac_cv_header_locale_h+set}" = set; then
12666 echo "$as_me:$LINENO: checking for locale.h" >&5
12667 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12668 if test "${ac_cv_header_locale_h+set}" = set; then
12669 echo $ECHO_N "(cached) $ECHO_C" >&6
12671 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12672 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12674 # Is the header compilable?
12675 echo "$as_me:$LINENO: checking locale.h usability" >&5
12676 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
12677 cat >conftest.
$ac_ext <<_ACEOF
12678 #line $LINENO "configure"
12681 cat confdefs.h
>>conftest.
$ac_ext
12682 cat >>conftest.
$ac_ext <<_ACEOF
12683 /* end confdefs.h. */
12684 $ac_includes_default
12685 #include <locale.h>
12687 rm -f conftest.
$ac_objext
12688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12689 (eval $ac_compile) 2>&5
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); } &&
12693 { ac_try
='test -s conftest.$ac_objext'
12694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12695 (eval $ac_try) 2>&5
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); }; }; then
12699 ac_header_compiler
=yes
12701 echo "$as_me: failed program was:" >&5
12702 sed 's/^/| /' conftest.
$ac_ext >&5
12704 ac_header_compiler
=no
12706 rm -f conftest.
$ac_objext conftest.
$ac_ext
12707 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12708 echo "${ECHO_T}$ac_header_compiler" >&6
12710 # Is the header present?
12711 echo "$as_me:$LINENO: checking locale.h presence" >&5
12712 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
12713 cat >conftest.
$ac_ext <<_ACEOF
12714 #line $LINENO "configure"
12717 cat confdefs.h
>>conftest.
$ac_ext
12718 cat >>conftest.
$ac_ext <<_ACEOF
12719 /* end confdefs.h. */
12720 #include <locale.h>
12722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12723 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12725 grep -v '^ *+' conftest.er1
>conftest.err
12727 cat conftest.err
>&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); } >/dev
/null
; then
12730 if test -s conftest.err
; then
12731 ac_cpp_err
=$ac_c_preproc_warn_flag
12738 if test -z "$ac_cpp_err"; then
12739 ac_header_preproc
=yes
12741 echo "$as_me: failed program was:" >&5
12742 sed 's/^/| /' conftest.
$ac_ext >&5
12744 ac_header_preproc
=no
12746 rm -f conftest.err conftest.
$ac_ext
12747 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12748 echo "${ECHO_T}$ac_header_preproc" >&6
12750 # So? What about this header?
12751 case $ac_header_compiler:$ac_header_preproc in
12753 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
12754 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12755 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12756 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12759 ## ------------------------------------ ##
12760 ## Report this to bug-autoconf@gnu.org. ##
12761 ## ------------------------------------ ##
12764 sed "s/^/$as_me: WARNING: /" >&2
12767 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
12768 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
12769 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
12770 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
12771 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12772 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12775 ## ------------------------------------ ##
12776 ## Report this to bug-autoconf@gnu.org. ##
12777 ## ------------------------------------ ##
12780 sed "s/^/$as_me: WARNING: /" >&2
12783 echo "$as_me:$LINENO: checking for locale.h" >&5
12784 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12785 if test "${ac_cv_header_locale_h+set}" = set; then
12786 echo $ECHO_N "(cached) $ECHO_C" >&6
12788 ac_cv_header_locale_h
=$ac_header_preproc
12790 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12791 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12797 for ac_func
in setlocale
12799 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12800 echo "$as_me:$LINENO: checking for $ac_func" >&5
12801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12802 if eval "test \"\${$as_ac_var+set}\" = set"; then
12803 echo $ECHO_N "(cached) $ECHO_C" >&6
12805 cat >conftest.
$ac_ext <<_ACEOF
12806 #line $LINENO "configure"
12809 cat confdefs.h
>>conftest.
$ac_ext
12810 cat >>conftest.
$ac_ext <<_ACEOF
12811 /* end confdefs.h. */
12812 /* System header to define __stub macros and hopefully few prototypes,
12813 which can conflict with char $ac_func (); below.
12814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12815 <limits.h> exists even on freestanding compilers. */
12817 # include <limits.h>
12819 # include <assert.h>
12821 /* Override any gcc2 internal prototype to avoid an error. */
12826 /* We use char because int might match the return type of a gcc2
12827 builtin and then its argument prototype would still apply. */
12829 /* The GNU C library defines this for functions which it implements
12830 to always fail with ENOSYS. Some functions are actually named
12831 something starting with __ and the normal name is an alias. */
12832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12835 char (*f) () = $ac_func;
12844 return f != $ac_func;
12849 rm -f conftest.
$ac_objext conftest
$ac_exeext
12850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12851 (eval $ac_link) 2>&5
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); } &&
12855 { ac_try
='test -s conftest$ac_exeext'
12856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12857 (eval $ac_try) 2>&5
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); }; }; then
12861 eval "$as_ac_var=yes"
12863 echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.
$ac_ext >&5
12866 eval "$as_ac_var=no"
12868 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12871 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12872 if test `eval echo '${'$as_ac_var'}'` = yes; then
12873 cat >>confdefs.h
<<_ACEOF
12874 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12881 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12882 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12883 # Irix 4.0.5F has the header but not the library.
12884 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
12887 cat >>confdefs.h
<<\_ACEOF
12893 if test $ac_have_func = no
; then
12894 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12895 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
12896 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
12897 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12898 echo $ECHO_N "(cached) $ECHO_C" >&6
12900 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
12901 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
12903 # Is the header compilable?
12904 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
12905 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
12906 cat >conftest.
$ac_ext <<_ACEOF
12907 #line $LINENO "configure"
12910 cat confdefs.h
>>conftest.
$ac_ext
12911 cat >>conftest.
$ac_ext <<_ACEOF
12912 /* end confdefs.h. */
12913 $ac_includes_default
12914 #include <inq_stats/cpustats.h>
12916 rm -f conftest.
$ac_objext
12917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12918 (eval $ac_compile) 2>&5
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); } &&
12922 { ac_try
='test -s conftest.$ac_objext'
12923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12924 (eval $ac_try) 2>&5
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); }; }; then
12928 ac_header_compiler
=yes
12930 echo "$as_me: failed program was:" >&5
12931 sed 's/^/| /' conftest.
$ac_ext >&5
12933 ac_header_compiler
=no
12935 rm -f conftest.
$ac_objext conftest.
$ac_ext
12936 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12937 echo "${ECHO_T}$ac_header_compiler" >&6
12939 # Is the header present?
12940 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
12941 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
12942 cat >conftest.
$ac_ext <<_ACEOF
12943 #line $LINENO "configure"
12946 cat confdefs.h
>>conftest.
$ac_ext
12947 cat >>conftest.
$ac_ext <<_ACEOF
12948 /* end confdefs.h. */
12949 #include <inq_stats/cpustats.h>
12951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12952 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12954 grep -v '^ *+' conftest.er1
>conftest.err
12956 cat conftest.err
>&5
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); } >/dev
/null
; then
12959 if test -s conftest.err
; then
12960 ac_cpp_err
=$ac_c_preproc_warn_flag
12967 if test -z "$ac_cpp_err"; then
12968 ac_header_preproc
=yes
12970 echo "$as_me: failed program was:" >&5
12971 sed 's/^/| /' conftest.
$ac_ext >&5
12973 ac_header_preproc
=no
12975 rm -f conftest.err conftest.
$ac_ext
12976 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12977 echo "${ECHO_T}$ac_header_preproc" >&6
12979 # So? What about this header?
12980 case $ac_header_compiler:$ac_header_preproc in
12982 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
12983 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12984 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
12985 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
12988 ## ------------------------------------ ##
12989 ## Report this to bug-autoconf@gnu.org. ##
12990 ## ------------------------------------ ##
12993 sed "s/^/$as_me: WARNING: /" >&2
12996 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
12997 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
12998 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
12999 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
13000 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13001 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13004 ## ------------------------------------ ##
13005 ## Report this to bug-autoconf@gnu.org. ##
13006 ## ------------------------------------ ##
13009 sed "s/^/$as_me: WARNING: /" >&2
13012 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13013 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13014 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13015 echo $ECHO_N "(cached) $ECHO_C" >&6
13017 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
13019 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13020 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13023 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
13026 cat >>confdefs.h
<<\_ACEOF
13031 cat >>confdefs.h
<<\_ACEOF
13040 if test $ac_have_func = no
; then
13041 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13042 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13043 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13044 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13045 echo $ECHO_N "(cached) $ECHO_C" >&6
13047 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13048 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13050 # Is the header compilable?
13051 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
13052 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
13053 cat >conftest.
$ac_ext <<_ACEOF
13054 #line $LINENO "configure"
13057 cat confdefs.h
>>conftest.
$ac_ext
13058 cat >>conftest.
$ac_ext <<_ACEOF
13059 /* end confdefs.h. */
13060 $ac_includes_default
13061 #include <sys/cpustats.h>
13063 rm -f conftest.
$ac_objext
13064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13065 (eval $ac_compile) 2>&5
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); } &&
13069 { ac_try
='test -s conftest.$ac_objext'
13070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13071 (eval $ac_try) 2>&5
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); }; }; then
13075 ac_header_compiler
=yes
13077 echo "$as_me: failed program was:" >&5
13078 sed 's/^/| /' conftest.
$ac_ext >&5
13080 ac_header_compiler
=no
13082 rm -f conftest.
$ac_objext conftest.
$ac_ext
13083 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13084 echo "${ECHO_T}$ac_header_compiler" >&6
13086 # Is the header present?
13087 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
13088 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
13089 cat >conftest.
$ac_ext <<_ACEOF
13090 #line $LINENO "configure"
13093 cat confdefs.h
>>conftest.
$ac_ext
13094 cat >>conftest.
$ac_ext <<_ACEOF
13095 /* end confdefs.h. */
13096 #include <sys/cpustats.h>
13098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13099 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13101 grep -v '^ *+' conftest.er1
>conftest.err
13103 cat conftest.err
>&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); } >/dev
/null
; then
13106 if test -s conftest.err
; then
13107 ac_cpp_err
=$ac_c_preproc_warn_flag
13114 if test -z "$ac_cpp_err"; then
13115 ac_header_preproc
=yes
13117 echo "$as_me: failed program was:" >&5
13118 sed 's/^/| /' conftest.
$ac_ext >&5
13120 ac_header_preproc
=no
13122 rm -f conftest.err conftest.
$ac_ext
13123 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13124 echo "${ECHO_T}$ac_header_preproc" >&6
13126 # So? What about this header?
13127 case $ac_header_compiler:$ac_header_preproc in
13129 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13130 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13131 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13132 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13135 ## ------------------------------------ ##
13136 ## Report this to bug-autoconf@gnu.org. ##
13137 ## ------------------------------------ ##
13140 sed "s/^/$as_me: WARNING: /" >&2
13143 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
13144 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
13145 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
13146 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
13147 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13148 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13151 ## ------------------------------------ ##
13152 ## Report this to bug-autoconf@gnu.org. ##
13153 ## ------------------------------------ ##
13156 sed "s/^/$as_me: WARNING: /" >&2
13159 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13160 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13161 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13162 echo $ECHO_N "(cached) $ECHO_C" >&6
13164 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
13166 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13167 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13170 if test $ac_cv_header_sys_cpustats_h = yes; then
13171 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
13180 if test $ac_have_func = no
; then
13182 for ac_header
in mach
/mach.h
13184 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13186 echo "$as_me:$LINENO: checking for $ac_header" >&5
13187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13189 echo $ECHO_N "(cached) $ECHO_C" >&6
13191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13194 # Is the header compilable?
13195 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13197 cat >conftest.
$ac_ext <<_ACEOF
13198 #line $LINENO "configure"
13201 cat confdefs.h
>>conftest.
$ac_ext
13202 cat >>conftest.
$ac_ext <<_ACEOF
13203 /* end confdefs.h. */
13204 $ac_includes_default
13205 #include <$ac_header>
13207 rm -f conftest.
$ac_objext
13208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13209 (eval $ac_compile) 2>&5
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); } &&
13213 { ac_try
='test -s conftest.$ac_objext'
13214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13215 (eval $ac_try) 2>&5
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; }; then
13219 ac_header_compiler
=yes
13221 echo "$as_me: failed program was:" >&5
13222 sed 's/^/| /' conftest.
$ac_ext >&5
13224 ac_header_compiler
=no
13226 rm -f conftest.
$ac_objext conftest.
$ac_ext
13227 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13228 echo "${ECHO_T}$ac_header_compiler" >&6
13230 # Is the header present?
13231 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13232 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13233 cat >conftest.
$ac_ext <<_ACEOF
13234 #line $LINENO "configure"
13237 cat confdefs.h
>>conftest.
$ac_ext
13238 cat >>conftest.
$ac_ext <<_ACEOF
13239 /* end confdefs.h. */
13240 #include <$ac_header>
13242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13243 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13245 grep -v '^ *+' conftest.er1
>conftest.err
13247 cat conftest.err
>&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); } >/dev
/null
; then
13250 if test -s conftest.err
; then
13251 ac_cpp_err
=$ac_c_preproc_warn_flag
13258 if test -z "$ac_cpp_err"; then
13259 ac_header_preproc
=yes
13261 echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.
$ac_ext >&5
13264 ac_header_preproc
=no
13266 rm -f conftest.err conftest.
$ac_ext
13267 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13268 echo "${ECHO_T}$ac_header_preproc" >&6
13270 # So? What about this header?
13271 case $ac_header_compiler:$ac_header_preproc in
13273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13279 ## ------------------------------------ ##
13280 ## Report this to bug-autoconf@gnu.org. ##
13281 ## ------------------------------------ ##
13284 sed "s/^/$as_me: WARNING: /" >&2
13287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13290 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13295 ## ------------------------------------ ##
13296 ## Report this to bug-autoconf@gnu.org. ##
13297 ## ------------------------------------ ##
13300 sed "s/^/$as_me: WARNING: /" >&2
13303 echo "$as_me:$LINENO: checking for $ac_header" >&5
13304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13306 echo $ECHO_N "(cached) $ECHO_C" >&6
13308 eval "$as_ac_Header=$ac_header_preproc"
13310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13315 cat >>confdefs.h
<<_ACEOF
13316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13326 for ac_header
in nlist.h
13328 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13330 echo "$as_me:$LINENO: checking for $ac_header" >&5
13331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13333 echo $ECHO_N "(cached) $ECHO_C" >&6
13335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13336 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13338 # Is the header compilable?
13339 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13341 cat >conftest.
$ac_ext <<_ACEOF
13342 #line $LINENO "configure"
13345 cat confdefs.h
>>conftest.
$ac_ext
13346 cat >>conftest.
$ac_ext <<_ACEOF
13347 /* end confdefs.h. */
13348 $ac_includes_default
13349 #include <$ac_header>
13351 rm -f conftest.
$ac_objext
13352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13353 (eval $ac_compile) 2>&5
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); } &&
13357 { ac_try
='test -s conftest.$ac_objext'
13358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13359 (eval $ac_try) 2>&5
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); }; }; then
13363 ac_header_compiler
=yes
13365 echo "$as_me: failed program was:" >&5
13366 sed 's/^/| /' conftest.
$ac_ext >&5
13368 ac_header_compiler
=no
13370 rm -f conftest.
$ac_objext conftest.
$ac_ext
13371 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13372 echo "${ECHO_T}$ac_header_compiler" >&6
13374 # Is the header present?
13375 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13377 cat >conftest.
$ac_ext <<_ACEOF
13378 #line $LINENO "configure"
13381 cat confdefs.h
>>conftest.
$ac_ext
13382 cat >>conftest.
$ac_ext <<_ACEOF
13383 /* end confdefs.h. */
13384 #include <$ac_header>
13386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13387 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13389 grep -v '^ *+' conftest.er1
>conftest.err
13391 cat conftest.err
>&5
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); } >/dev
/null
; then
13394 if test -s conftest.err
; then
13395 ac_cpp_err
=$ac_c_preproc_warn_flag
13402 if test -z "$ac_cpp_err"; then
13403 ac_header_preproc
=yes
13405 echo "$as_me: failed program was:" >&5
13406 sed 's/^/| /' conftest.
$ac_ext >&5
13408 ac_header_preproc
=no
13410 rm -f conftest.err conftest.
$ac_ext
13411 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13412 echo "${ECHO_T}$ac_header_preproc" >&6
13414 # So? What about this header?
13415 case $ac_header_compiler:$ac_header_preproc in
13417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13423 ## ------------------------------------ ##
13424 ## Report this to bug-autoconf@gnu.org. ##
13425 ## ------------------------------------ ##
13428 sed "s/^/$as_me: WARNING: /" >&2
13431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13434 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13439 ## ------------------------------------ ##
13440 ## Report this to bug-autoconf@gnu.org. ##
13441 ## ------------------------------------ ##
13444 sed "s/^/$as_me: WARNING: /" >&2
13447 echo "$as_me:$LINENO: checking for $ac_header" >&5
13448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13450 echo $ECHO_N "(cached) $ECHO_C" >&6
13452 eval "$as_ac_Header=$ac_header_preproc"
13454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13458 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13459 cat >>confdefs.h
<<_ACEOF
13460 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13462 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
13463 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
13464 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
13465 echo $ECHO_N "(cached) $ECHO_C" >&6
13467 cat >conftest.
$ac_ext <<_ACEOF
13468 #line $LINENO "configure"
13471 cat confdefs.h
>>conftest.
$ac_ext
13472 cat >>conftest.
$ac_ext <<_ACEOF
13473 /* end confdefs.h. */
13479 static struct nlist ac_aggr;
13480 if (ac_aggr.n_un.n_name)
13486 rm -f conftest.
$ac_objext
13487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13488 (eval $ac_compile) 2>&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); } &&
13492 { ac_try
='test -s conftest.$ac_objext'
13493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494 (eval $ac_try) 2>&5
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }; then
13498 ac_cv_member_struct_nlist_n_un_n_name
=yes
13500 echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.
$ac_ext >&5
13503 cat >conftest.
$ac_ext <<_ACEOF
13504 #line $LINENO "configure"
13507 cat confdefs.h
>>conftest.
$ac_ext
13508 cat >>conftest.
$ac_ext <<_ACEOF
13509 /* end confdefs.h. */
13515 static struct nlist ac_aggr;
13516 if (sizeof ac_aggr.n_un.n_name)
13522 rm -f conftest.
$ac_objext
13523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13524 (eval $ac_compile) 2>&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); } &&
13528 { ac_try
='test -s conftest.$ac_objext'
13529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13530 (eval $ac_try) 2>&5
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); }; }; then
13534 ac_cv_member_struct_nlist_n_un_n_name
=yes
13536 echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.
$ac_ext >&5
13539 ac_cv_member_struct_nlist_n_un_n_name
=no
13541 rm -f conftest.
$ac_objext conftest.
$ac_ext
13543 rm -f conftest.
$ac_objext conftest.
$ac_ext
13545 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
13546 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
13547 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
13549 cat >>confdefs.h
<<_ACEOF
13550 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13554 cat >>confdefs.h
<<\_ACEOF
13555 #define NLIST_NAME_UNION 1
13569 # Some definitions of getloadavg require that the program be installed setgid.
13570 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
13571 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
13572 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
13573 echo $ECHO_N "(cached) $ECHO_C" >&6
13575 cat >conftest.
$ac_ext <<_ACEOF
13576 #line $LINENO "configure"
13579 cat confdefs.h
>>conftest.
$ac_ext
13580 cat >>conftest.
$ac_ext <<_ACEOF
13581 /* end confdefs.h. */
13582 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13583 #ifdef LDAV_PRIVILEGED
13584 Yowza Am I SETGID yet
13587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13588 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
13589 ac_cv_func_getloadavg_setgid
=yes
13591 ac_cv_func_getloadavg_setgid
=no
13596 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
13597 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
13598 if test $ac_cv_func_getloadavg_setgid = yes; then
13601 cat >>confdefs.h
<<\_ACEOF
13602 #define GETLOADAVG_PRIVILEGED 1
13609 if test $ac_cv_func_getloadavg_setgid = yes; then
13610 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
13611 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
13612 if test "${ac_cv_group_kmem+set}" = set; then
13613 echo $ECHO_N "(cached) $ECHO_C" >&6
13615 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13616 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
13617 # If we got an error (system does not support symlinks), try without -L.
13618 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
13619 ac_cv_group_kmem
=`echo $ac_ls_output \
13620 | sed -ne 's/[ ][ ]*/ /g;
13621 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13625 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
13626 echo "${ECHO_T}$ac_cv_group_kmem" >&6
13627 KMEM_GROUP
=$ac_cv_group_kmem
13629 if test "x$ac_save_LIBS" = x
; then
13630 GETLOADAVG_LIBS
=$LIBS
13632 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
13638 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13639 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13640 if test "${ac_cv_sys_largefile_source+set}" = set; then
13641 echo $ECHO_N "(cached) $ECHO_C" >&6
13644 ac_cv_sys_largefile_source
=no
13645 cat >conftest.
$ac_ext <<_ACEOF
13646 #line $LINENO "configure"
13649 cat confdefs.h
>>conftest.
$ac_ext
13650 cat >>conftest.
$ac_ext <<_ACEOF
13651 /* end confdefs.h. */
13661 rm -f conftest.
$ac_objext
13662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13663 (eval $ac_compile) 2>&5
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); } &&
13667 { ac_try
='test -s conftest.$ac_objext'
13668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13669 (eval $ac_try) 2>&5
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); }; }; then
13675 echo "$as_me: failed program was:" >&5
13676 sed 's/^/| /' conftest.
$ac_ext >&5
13679 rm -f conftest.
$ac_objext conftest.
$ac_ext
13680 cat >conftest.
$ac_ext <<_ACEOF
13681 #line $LINENO "configure"
13684 cat confdefs.h
>>conftest.
$ac_ext
13685 cat >>conftest.
$ac_ext <<_ACEOF
13686 /* end confdefs.h. */
13687 #define _LARGEFILE_SOURCE 1
13697 rm -f conftest.
$ac_objext
13698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13699 (eval $ac_compile) 2>&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); } &&
13703 { ac_try
='test -s conftest.$ac_objext'
13704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13705 (eval $ac_try) 2>&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; }; then
13709 ac_cv_sys_largefile_source
=1; break
13711 echo "$as_me: failed program was:" >&5
13712 sed 's/^/| /' conftest.
$ac_ext >&5
13715 rm -f conftest.
$ac_objext conftest.
$ac_ext
13719 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13720 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13721 if test "$ac_cv_sys_largefile_source" != no
; then
13723 cat >>confdefs.h
<<_ACEOF
13724 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13730 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13731 # in glibc 2.1.3, but that breaks too many other things.
13732 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13733 echo "$as_me:$LINENO: checking for fseeko" >&5
13734 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13735 if test "${ac_cv_func_fseeko+set}" = set; then
13736 echo $ECHO_N "(cached) $ECHO_C" >&6
13738 cat >conftest.
$ac_ext <<_ACEOF
13739 #line $LINENO "configure"
13742 cat confdefs.h
>>conftest.
$ac_ext
13743 cat >>conftest.
$ac_ext <<_ACEOF
13744 /* end confdefs.h. */
13749 return fseeko && fseeko (stdin, 0, 0);
13754 rm -f conftest.
$ac_objext conftest
$ac_exeext
13755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13756 (eval $ac_link) 2>&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } &&
13760 { ac_try
='test -s conftest$ac_exeext'
13761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13762 (eval $ac_try) 2>&5
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); }; }; then
13766 ac_cv_func_fseeko
=yes
13768 echo "$as_me: failed program was:" >&5
13769 sed 's/^/| /' conftest.
$ac_ext >&5
13771 ac_cv_func_fseeko
=no
13773 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13775 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13776 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13777 if test $ac_cv_func_fseeko = yes; then
13779 cat >>confdefs.h
<<\_ACEOF
13780 #define HAVE_FSEEKO 1
13786 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
13787 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
13788 if test "${ac_cv_func_getpgrp_void+set}" = set; then
13789 echo $ECHO_N "(cached) $ECHO_C" >&6
13791 # Use it with a single arg.
13792 cat >conftest.
$ac_ext <<_ACEOF
13793 #line $LINENO "configure"
13796 cat confdefs.h
>>conftest.
$ac_ext
13797 cat >>conftest.
$ac_ext <<_ACEOF
13798 /* end confdefs.h. */
13799 $ac_includes_default
13808 rm -f conftest.
$ac_objext
13809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13810 (eval $ac_compile) 2>&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); } &&
13814 { ac_try
='test -s conftest.$ac_objext'
13815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13816 (eval $ac_try) 2>&5
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); }; }; then
13820 ac_cv_func_getpgrp_void
=no
13822 echo "$as_me: failed program was:" >&5
13823 sed 's/^/| /' conftest.
$ac_ext >&5
13825 ac_cv_func_getpgrp_void
=yes
13827 rm -f conftest.
$ac_objext conftest.
$ac_ext
13830 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
13831 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
13832 if test $ac_cv_func_getpgrp_void = yes; then
13834 cat >>confdefs.h
<<\_ACEOF
13835 #define GETPGRP_VOID 1
13843 for ac_func
in grantpt
13845 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13846 echo "$as_me:$LINENO: checking for $ac_func" >&5
13847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13848 if eval "test \"\${$as_ac_var+set}\" = set"; then
13849 echo $ECHO_N "(cached) $ECHO_C" >&6
13851 cat >conftest.
$ac_ext <<_ACEOF
13852 #line $LINENO "configure"
13855 cat confdefs.h
>>conftest.
$ac_ext
13856 cat >>conftest.
$ac_ext <<_ACEOF
13857 /* end confdefs.h. */
13858 /* System header to define __stub macros and hopefully few prototypes,
13859 which can conflict with char $ac_func (); below.
13860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13861 <limits.h> exists even on freestanding compilers. */
13863 # include <limits.h>
13865 # include <assert.h>
13867 /* Override any gcc2 internal prototype to avoid an error. */
13872 /* We use char because int might match the return type of a gcc2
13873 builtin and then its argument prototype would still apply. */
13875 /* The GNU C library defines this for functions which it implements
13876 to always fail with ENOSYS. Some functions are actually named
13877 something starting with __ and the normal name is an alias. */
13878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13881 char (*f) () = $ac_func;
13890 return f != $ac_func;
13895 rm -f conftest.
$ac_objext conftest
$ac_exeext
13896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13897 (eval $ac_link) 2>&5
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); } &&
13901 { ac_try
='test -s conftest$ac_exeext'
13902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13903 (eval $ac_try) 2>&5
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); }; }; then
13907 eval "$as_ac_var=yes"
13909 echo "$as_me: failed program was:" >&5
13910 sed 's/^/| /' conftest.
$ac_ext >&5
13912 eval "$as_ac_var=no"
13914 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13917 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13918 if test `eval echo '${'$as_ac_var'}'` = yes; then
13919 cat >>confdefs.h
<<_ACEOF
13920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13927 # PTY-related GNU extensions.
13929 for ac_func
in getpt
13931 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13932 echo "$as_me:$LINENO: checking for $ac_func" >&5
13933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13934 if eval "test \"\${$as_ac_var+set}\" = set"; then
13935 echo $ECHO_N "(cached) $ECHO_C" >&6
13937 cat >conftest.
$ac_ext <<_ACEOF
13938 #line $LINENO "configure"
13941 cat confdefs.h
>>conftest.
$ac_ext
13942 cat >>conftest.
$ac_ext <<_ACEOF
13943 /* end confdefs.h. */
13944 /* System header to define __stub macros and hopefully few prototypes,
13945 which can conflict with char $ac_func (); below.
13946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13947 <limits.h> exists even on freestanding compilers. */
13949 # include <limits.h>
13951 # include <assert.h>
13953 /* Override any gcc2 internal prototype to avoid an error. */
13958 /* We use char because int might match the return type of a gcc2
13959 builtin and then its argument prototype would still apply. */
13961 /* The GNU C library defines this for functions which it implements
13962 to always fail with ENOSYS. Some functions are actually named
13963 something starting with __ and the normal name is an alias. */
13964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13967 char (*f) () = $ac_func;
13976 return f != $ac_func;
13981 rm -f conftest.
$ac_objext conftest
$ac_exeext
13982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13983 (eval $ac_link) 2>&5
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); } &&
13987 { ac_try
='test -s conftest$ac_exeext'
13988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13989 (eval $ac_try) 2>&5
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); }; }; then
13993 eval "$as_ac_var=yes"
13995 echo "$as_me: failed program was:" >&5
13996 sed 's/^/| /' conftest.
$ac_ext >&5
13998 eval "$as_ac_var=no"
14000 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14003 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14004 if test `eval echo '${'$as_ac_var'}'` = yes; then
14005 cat >>confdefs.h
<<_ACEOF
14006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14013 # Check this now, so that we will NOT find the above functions in ncurses.
14014 # That is because we have not set up to link ncurses in lib-src.
14015 # It's better to believe a function is not available
14016 # than to expect to find it in ncurses.
14018 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
14019 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
14020 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
14021 echo $ECHO_N "(cached) $ECHO_C" >&6
14023 ac_check_lib_save_LIBS
=$LIBS
14024 LIBS
="-lncurses $LIBS"
14025 cat >conftest.
$ac_ext <<_ACEOF
14026 #line $LINENO "configure"
14029 cat confdefs.h
>>conftest.
$ac_ext
14030 cat >>conftest.
$ac_ext <<_ACEOF
14031 /* end confdefs.h. */
14033 /* Override any gcc2 internal prototype to avoid an error. */
14037 /* We use char because int might match the return type of a gcc2
14038 builtin and then its argument prototype would still apply. */
14048 rm -f conftest.
$ac_objext conftest
$ac_exeext
14049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14050 (eval $ac_link) 2>&5
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); } &&
14054 { ac_try
='test -s conftest$ac_exeext'
14055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14056 (eval $ac_try) 2>&5
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); }; }; then
14060 ac_cv_lib_ncurses_tparm
=yes
14062 echo "$as_me: failed program was:" >&5
14063 sed 's/^/| /' conftest.
$ac_ext >&5
14065 ac_cv_lib_ncurses_tparm
=no
14067 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14068 LIBS
=$ac_check_lib_save_LIBS
14070 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
14071 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
14072 if test $ac_cv_lib_ncurses_tparm = yes; then
14073 cat >>confdefs.h
<<_ACEOF
14074 #define HAVE_LIBNCURSES 1
14077 LIBS
="-lncurses $LIBS"
14082 # Do we need the Hesiod library to provide the support routines?
14083 if test "$with_hesiod" = yes ; then
14084 # Don't set $LIBS here -- see comments above.
14086 echo "$as_me:$LINENO: checking for res_send" >&5
14087 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
14088 if test "${ac_cv_func_res_send+set}" = set; then
14089 echo $ECHO_N "(cached) $ECHO_C" >&6
14091 cat >conftest.
$ac_ext <<_ACEOF
14092 #line $LINENO "configure"
14095 cat confdefs.h
>>conftest.
$ac_ext
14096 cat >>conftest.
$ac_ext <<_ACEOF
14097 /* end confdefs.h. */
14098 /* System header to define __stub macros and hopefully few prototypes,
14099 which can conflict with char res_send (); below.
14100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14101 <limits.h> exists even on freestanding compilers. */
14103 # include <limits.h>
14105 # include <assert.h>
14107 /* Override any gcc2 internal prototype to avoid an error. */
14112 /* We use char because int might match the return type of a gcc2
14113 builtin and then its argument prototype would still apply. */
14115 /* The GNU C library defines this for functions which it implements
14116 to always fail with ENOSYS. Some functions are actually named
14117 something starting with __ and the normal name is an alias. */
14118 #if defined (__stub_res_send) || defined (__stub___res_send)
14121 char (*f) () = res_send;
14130 return f != res_send;
14135 rm -f conftest.
$ac_objext conftest
$ac_exeext
14136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14137 (eval $ac_link) 2>&5
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); } &&
14141 { ac_try
='test -s conftest$ac_exeext'
14142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14143 (eval $ac_try) 2>&5
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); }; }; then
14147 ac_cv_func_res_send
=yes
14149 echo "$as_me: failed program was:" >&5
14150 sed 's/^/| /' conftest.
$ac_ext >&5
14152 ac_cv_func_res_send
=no
14154 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14156 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
14157 echo "${ECHO_T}$ac_cv_func_res_send" >&6
14158 if test $ac_cv_func_res_send = yes; then
14161 echo "$as_me:$LINENO: checking for __res_send" >&5
14162 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
14163 if test "${ac_cv_func___res_send+set}" = set; then
14164 echo $ECHO_N "(cached) $ECHO_C" >&6
14166 cat >conftest.
$ac_ext <<_ACEOF
14167 #line $LINENO "configure"
14170 cat confdefs.h
>>conftest.
$ac_ext
14171 cat >>conftest.
$ac_ext <<_ACEOF
14172 /* end confdefs.h. */
14173 /* System header to define __stub macros and hopefully few prototypes,
14174 which can conflict with char __res_send (); below.
14175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14176 <limits.h> exists even on freestanding compilers. */
14178 # include <limits.h>
14180 # include <assert.h>
14182 /* Override any gcc2 internal prototype to avoid an error. */
14187 /* We use char because int might match the return type of a gcc2
14188 builtin and then its argument prototype would still apply. */
14189 char __res_send ();
14190 /* The GNU C library defines this for functions which it implements
14191 to always fail with ENOSYS. Some functions are actually named
14192 something starting with __ and the normal name is an alias. */
14193 #if defined (__stub___res_send) || defined (__stub_____res_send)
14196 char (*f) () = __res_send;
14205 return f != __res_send;
14210 rm -f conftest.
$ac_objext conftest
$ac_exeext
14211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14212 (eval $ac_link) 2>&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); } &&
14216 { ac_try
='test -s conftest$ac_exeext'
14217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14218 (eval $ac_try) 2>&5
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); }; }; then
14222 ac_cv_func___res_send
=yes
14224 echo "$as_me: failed program was:" >&5
14225 sed 's/^/| /' conftest.
$ac_ext >&5
14227 ac_cv_func___res_send
=no
14229 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14231 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
14232 echo "${ECHO_T}$ac_cv_func___res_send" >&6
14233 if test $ac_cv_func___res_send = yes; then
14236 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
14237 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
14238 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
14239 echo $ECHO_N "(cached) $ECHO_C" >&6
14241 ac_check_lib_save_LIBS
=$LIBS
14242 LIBS
="-lresolv $LIBS"
14243 cat >conftest.
$ac_ext <<_ACEOF
14244 #line $LINENO "configure"
14247 cat confdefs.h
>>conftest.
$ac_ext
14248 cat >>conftest.
$ac_ext <<_ACEOF
14249 /* end confdefs.h. */
14251 /* Override any gcc2 internal prototype to avoid an error. */
14255 /* We use char because int might match the return type of a gcc2
14256 builtin and then its argument prototype would still apply. */
14266 rm -f conftest.
$ac_objext conftest
$ac_exeext
14267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14268 (eval $ac_link) 2>&5
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); } &&
14272 { ac_try
='test -s conftest$ac_exeext'
14273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14274 (eval $ac_try) 2>&5
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); }; }; then
14278 ac_cv_lib_resolv_res_send
=yes
14280 echo "$as_me: failed program was:" >&5
14281 sed 's/^/| /' conftest.
$ac_ext >&5
14283 ac_cv_lib_resolv_res_send
=no
14285 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14286 LIBS
=$ac_check_lib_save_LIBS
14288 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
14289 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
14290 if test $ac_cv_lib_resolv_res_send = yes; then
14293 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
14294 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
14295 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
14296 echo $ECHO_N "(cached) $ECHO_C" >&6
14298 ac_check_lib_save_LIBS
=$LIBS
14299 LIBS
="-lresolv $LIBS"
14300 cat >conftest.
$ac_ext <<_ACEOF
14301 #line $LINENO "configure"
14304 cat confdefs.h
>>conftest.
$ac_ext
14305 cat >>conftest.
$ac_ext <<_ACEOF
14306 /* end confdefs.h. */
14308 /* Override any gcc2 internal prototype to avoid an error. */
14312 /* We use char because int might match the return type of a gcc2
14313 builtin and then its argument prototype would still apply. */
14314 char __res_send ();
14323 rm -f conftest.
$ac_objext conftest
$ac_exeext
14324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14325 (eval $ac_link) 2>&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } &&
14329 { ac_try
='test -s conftest$ac_exeext'
14330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331 (eval $ac_try) 2>&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; }; then
14335 ac_cv_lib_resolv___res_send
=yes
14337 echo "$as_me: failed program was:" >&5
14338 sed 's/^/| /' conftest.
$ac_ext >&5
14340 ac_cv_lib_resolv___res_send
=no
14342 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14343 LIBS
=$ac_check_lib_save_LIBS
14345 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
14346 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
14347 if test $ac_cv_lib_resolv___res_send = yes; then
14357 if test "$resolv" = yes ; then
14360 cat >>confdefs.h
<<\_ACEOF
14361 #define HAVE_LIBRESOLV 1
14367 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
14368 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
14369 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
14370 echo $ECHO_N "(cached) $ECHO_C" >&6
14372 cat >conftest.
$ac_ext <<_ACEOF
14373 #line $LINENO "configure"
14376 cat confdefs.h
>>conftest.
$ac_ext
14377 cat >>conftest.
$ac_ext <<_ACEOF
14378 /* end confdefs.h. */
14379 /* System header to define __stub macros and hopefully few prototypes,
14380 which can conflict with char hes_getmailhost (); below.
14381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14382 <limits.h> exists even on freestanding compilers. */
14384 # include <limits.h>
14386 # include <assert.h>
14388 /* Override any gcc2 internal prototype to avoid an error. */
14393 /* We use char because int might match the return type of a gcc2
14394 builtin and then its argument prototype would still apply. */
14395 char hes_getmailhost ();
14396 /* The GNU C library defines this for functions which it implements
14397 to always fail with ENOSYS. Some functions are actually named
14398 something starting with __ and the normal name is an alias. */
14399 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
14402 char (*f) () = hes_getmailhost;
14411 return f != hes_getmailhost;
14416 rm -f conftest.
$ac_objext conftest
$ac_exeext
14417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14418 (eval $ac_link) 2>&5
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); } &&
14422 { ac_try
='test -s conftest$ac_exeext'
14423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14424 (eval $ac_try) 2>&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); }; }; then
14428 ac_cv_func_hes_getmailhost
=yes
14430 echo "$as_me: failed program was:" >&5
14431 sed 's/^/| /' conftest.
$ac_ext >&5
14433 ac_cv_func_hes_getmailhost
=no
14435 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14437 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
14438 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
14439 if test $ac_cv_func_hes_getmailhost = yes; then
14442 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
14443 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
14444 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
14445 echo $ECHO_N "(cached) $ECHO_C" >&6
14447 ac_check_lib_save_LIBS
=$LIBS
14448 LIBS
="-lhesiod $RESOLVLIB $LIBS"
14449 cat >conftest.
$ac_ext <<_ACEOF
14450 #line $LINENO "configure"
14453 cat confdefs.h
>>conftest.
$ac_ext
14454 cat >>conftest.
$ac_ext <<_ACEOF
14455 /* end confdefs.h. */
14457 /* Override any gcc2 internal prototype to avoid an error. */
14461 /* We use char because int might match the return type of a gcc2
14462 builtin and then its argument prototype would still apply. */
14463 char hes_getmailhost ();
14467 hes_getmailhost ();
14472 rm -f conftest.
$ac_objext conftest
$ac_exeext
14473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14474 (eval $ac_link) 2>&5
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); } &&
14478 { ac_try
='test -s conftest$ac_exeext'
14479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14480 (eval $ac_try) 2>&5
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); }; }; then
14484 ac_cv_lib_hesiod_hes_getmailhost
=yes
14486 echo "$as_me: failed program was:" >&5
14487 sed 's/^/| /' conftest.
$ac_ext >&5
14489 ac_cv_lib_hesiod_hes_getmailhost
=no
14491 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14492 LIBS
=$ac_check_lib_save_LIBS
14494 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14495 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
14496 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
14498 cat >>confdefs.h
<<\_ACEOF
14499 #define HAVE_LIBHESIOD 1
14510 # These tell us which Kerberos-related libraries to use.
14511 if test "${with_kerberos+set}" = set; then
14513 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
14514 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
14515 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
14516 echo $ECHO_N "(cached) $ECHO_C" >&6
14518 ac_check_lib_save_LIBS
=$LIBS
14519 LIBS
="-lcom_err $LIBS"
14520 cat >conftest.
$ac_ext <<_ACEOF
14521 #line $LINENO "configure"
14524 cat confdefs.h
>>conftest.
$ac_ext
14525 cat >>conftest.
$ac_ext <<_ACEOF
14526 /* end confdefs.h. */
14528 /* Override any gcc2 internal prototype to avoid an error. */
14532 /* We use char because int might match the return type of a gcc2
14533 builtin and then its argument prototype would still apply. */
14543 rm -f conftest.
$ac_objext conftest
$ac_exeext
14544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14545 (eval $ac_link) 2>&5
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); } &&
14549 { ac_try
='test -s conftest$ac_exeext'
14550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14551 (eval $ac_try) 2>&5
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); }; }; then
14555 ac_cv_lib_com_err_com_err
=yes
14557 echo "$as_me: failed program was:" >&5
14558 sed 's/^/| /' conftest.
$ac_ext >&5
14560 ac_cv_lib_com_err_com_err
=no
14562 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14563 LIBS
=$ac_check_lib_save_LIBS
14565 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
14566 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
14567 if test $ac_cv_lib_com_err_com_err = yes; then
14568 cat >>confdefs.h
<<_ACEOF
14569 #define HAVE_LIBCOM_ERR 1
14572 LIBS
="-lcom_err $LIBS"
14577 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14578 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
14579 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
14580 echo $ECHO_N "(cached) $ECHO_C" >&6
14582 ac_check_lib_save_LIBS
=$LIBS
14583 LIBS
="-lk5crypto $LIBS"
14584 cat >conftest.
$ac_ext <<_ACEOF
14585 #line $LINENO "configure"
14588 cat confdefs.h
>>conftest.
$ac_ext
14589 cat >>conftest.
$ac_ext <<_ACEOF
14590 /* end confdefs.h. */
14592 /* Override any gcc2 internal prototype to avoid an error. */
14596 /* We use char because int might match the return type of a gcc2
14597 builtin and then its argument prototype would still apply. */
14598 char mit_des_cbc_encrypt ();
14602 mit_des_cbc_encrypt ();
14607 rm -f conftest.
$ac_objext conftest
$ac_exeext
14608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14609 (eval $ac_link) 2>&5
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); } &&
14613 { ac_try
='test -s conftest$ac_exeext'
14614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615 (eval $ac_try) 2>&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; }; then
14619 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
14621 echo "$as_me: failed program was:" >&5
14622 sed 's/^/| /' conftest.
$ac_ext >&5
14624 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
14626 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14627 LIBS
=$ac_check_lib_save_LIBS
14629 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14630 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
14631 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
14632 cat >>confdefs.h
<<_ACEOF
14633 #define HAVE_LIBK5CRYPTO 1
14636 LIBS
="-lk5crypto $LIBS"
14641 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14642 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
14643 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
14644 echo $ECHO_N "(cached) $ECHO_C" >&6
14646 ac_check_lib_save_LIBS
=$LIBS
14647 LIBS
="-lcrypto $LIBS"
14648 cat >conftest.
$ac_ext <<_ACEOF
14649 #line $LINENO "configure"
14652 cat confdefs.h
>>conftest.
$ac_ext
14653 cat >>conftest.
$ac_ext <<_ACEOF
14654 /* end confdefs.h. */
14656 /* Override any gcc2 internal prototype to avoid an error. */
14660 /* We use char because int might match the return type of a gcc2
14661 builtin and then its argument prototype would still apply. */
14662 char mit_des_cbc_encrypt ();
14666 mit_des_cbc_encrypt ();
14671 rm -f conftest.
$ac_objext conftest
$ac_exeext
14672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14673 (eval $ac_link) 2>&5
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); } &&
14677 { ac_try
='test -s conftest$ac_exeext'
14678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14679 (eval $ac_try) 2>&5
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); }; }; then
14683 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
14685 echo "$as_me: failed program was:" >&5
14686 sed 's/^/| /' conftest.
$ac_ext >&5
14688 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
14690 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14691 LIBS
=$ac_check_lib_save_LIBS
14693 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14694 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
14695 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
14696 cat >>confdefs.h
<<_ACEOF
14697 #define HAVE_LIBCRYPTO 1
14700 LIBS
="-lcrypto $LIBS"
14705 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
14706 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
14707 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
14708 echo $ECHO_N "(cached) $ECHO_C" >&6
14710 ac_check_lib_save_LIBS
=$LIBS
14711 LIBS
="-lkrb5 $LIBS"
14712 cat >conftest.
$ac_ext <<_ACEOF
14713 #line $LINENO "configure"
14716 cat confdefs.h
>>conftest.
$ac_ext
14717 cat >>conftest.
$ac_ext <<_ACEOF
14718 /* end confdefs.h. */
14720 /* Override any gcc2 internal prototype to avoid an error. */
14724 /* We use char because int might match the return type of a gcc2
14725 builtin and then its argument prototype would still apply. */
14726 char krb5_init_context ();
14730 krb5_init_context ();
14735 rm -f conftest.
$ac_objext conftest
$ac_exeext
14736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14737 (eval $ac_link) 2>&5
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); } &&
14741 { ac_try
='test -s conftest$ac_exeext'
14742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14743 (eval $ac_try) 2>&5
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); }; }; then
14747 ac_cv_lib_krb5_krb5_init_context
=yes
14749 echo "$as_me: failed program was:" >&5
14750 sed 's/^/| /' conftest.
$ac_ext >&5
14752 ac_cv_lib_krb5_krb5_init_context
=no
14754 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14755 LIBS
=$ac_check_lib_save_LIBS
14757 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14758 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
14759 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
14760 cat >>confdefs.h
<<_ACEOF
14761 #define HAVE_LIBKRB5 1
14764 LIBS
="-lkrb5 $LIBS"
14768 if test "${with_kerberos5+set}" != set; then
14770 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
14771 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
14772 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
14773 echo $ECHO_N "(cached) $ECHO_C" >&6
14775 ac_check_lib_save_LIBS
=$LIBS
14776 LIBS
="-ldes425 $LIBS"
14777 cat >conftest.
$ac_ext <<_ACEOF
14778 #line $LINENO "configure"
14781 cat confdefs.h
>>conftest.
$ac_ext
14782 cat >>conftest.
$ac_ext <<_ACEOF
14783 /* end confdefs.h. */
14785 /* Override any gcc2 internal prototype to avoid an error. */
14789 /* We use char because int might match the return type of a gcc2
14790 builtin and then its argument prototype would still apply. */
14791 char des_cbc_encrypt ();
14795 des_cbc_encrypt ();
14800 rm -f conftest.
$ac_objext conftest
$ac_exeext
14801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14802 (eval $ac_link) 2>&5
14804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); } &&
14806 { ac_try
='test -s conftest$ac_exeext'
14807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14808 (eval $ac_try) 2>&5
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); }; }; then
14812 ac_cv_lib_des425_des_cbc_encrypt
=yes
14814 echo "$as_me: failed program was:" >&5
14815 sed 's/^/| /' conftest.
$ac_ext >&5
14817 ac_cv_lib_des425_des_cbc_encrypt
=no
14819 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14820 LIBS
=$ac_check_lib_save_LIBS
14822 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14823 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
14824 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
14825 cat >>confdefs.h
<<_ACEOF
14826 #define HAVE_LIBDES425 1
14829 LIBS
="-ldes425 $LIBS"
14833 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
14834 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
14835 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
14836 echo $ECHO_N "(cached) $ECHO_C" >&6
14838 ac_check_lib_save_LIBS
=$LIBS
14840 cat >conftest.
$ac_ext <<_ACEOF
14841 #line $LINENO "configure"
14844 cat confdefs.h
>>conftest.
$ac_ext
14845 cat >>conftest.
$ac_ext <<_ACEOF
14846 /* end confdefs.h. */
14848 /* Override any gcc2 internal prototype to avoid an error. */
14852 /* We use char because int might match the return type of a gcc2
14853 builtin and then its argument prototype would still apply. */
14854 char des_cbc_encrypt ();
14858 des_cbc_encrypt ();
14863 rm -f conftest.
$ac_objext conftest
$ac_exeext
14864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14865 (eval $ac_link) 2>&5
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); } &&
14869 { ac_try
='test -s conftest$ac_exeext'
14870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14871 (eval $ac_try) 2>&5
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); }; }; then
14875 ac_cv_lib_des_des_cbc_encrypt
=yes
14877 echo "$as_me: failed program was:" >&5
14878 sed 's/^/| /' conftest.
$ac_ext >&5
14880 ac_cv_lib_des_des_cbc_encrypt
=no
14882 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14883 LIBS
=$ac_check_lib_save_LIBS
14885 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14886 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
14887 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
14888 cat >>confdefs.h
<<_ACEOF
14889 #define HAVE_LIBDES 1
14899 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
14900 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
14901 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
14902 echo $ECHO_N "(cached) $ECHO_C" >&6
14904 ac_check_lib_save_LIBS
=$LIBS
14905 LIBS
="-lkrb4 $LIBS"
14906 cat >conftest.
$ac_ext <<_ACEOF
14907 #line $LINENO "configure"
14910 cat confdefs.h
>>conftest.
$ac_ext
14911 cat >>conftest.
$ac_ext <<_ACEOF
14912 /* end confdefs.h. */
14914 /* Override any gcc2 internal prototype to avoid an error. */
14918 /* We use char because int might match the return type of a gcc2
14919 builtin and then its argument prototype would still apply. */
14920 char krb_get_cred ();
14929 rm -f conftest.
$ac_objext conftest
$ac_exeext
14930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14931 (eval $ac_link) 2>&5
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); } &&
14935 { ac_try
='test -s conftest$ac_exeext'
14936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14937 (eval $ac_try) 2>&5
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); }; }; then
14941 ac_cv_lib_krb4_krb_get_cred
=yes
14943 echo "$as_me: failed program was:" >&5
14944 sed 's/^/| /' conftest.
$ac_ext >&5
14946 ac_cv_lib_krb4_krb_get_cred
=no
14948 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14949 LIBS
=$ac_check_lib_save_LIBS
14951 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14952 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
14953 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
14954 cat >>confdefs.h
<<_ACEOF
14955 #define HAVE_LIBKRB4 1
14958 LIBS
="-lkrb4 $LIBS"
14962 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
14963 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
14964 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
14965 echo $ECHO_N "(cached) $ECHO_C" >&6
14967 ac_check_lib_save_LIBS
=$LIBS
14969 cat >conftest.
$ac_ext <<_ACEOF
14970 #line $LINENO "configure"
14973 cat confdefs.h
>>conftest.
$ac_ext
14974 cat >>conftest.
$ac_ext <<_ACEOF
14975 /* end confdefs.h. */
14977 /* Override any gcc2 internal prototype to avoid an error. */
14981 /* We use char because int might match the return type of a gcc2
14982 builtin and then its argument prototype would still apply. */
14983 char krb_get_cred ();
14992 rm -f conftest.
$ac_objext conftest
$ac_exeext
14993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14994 (eval $ac_link) 2>&5
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); } &&
14998 { ac_try
='test -s conftest$ac_exeext'
14999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15000 (eval $ac_try) 2>&5
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); }; }; then
15004 ac_cv_lib_krb_krb_get_cred
=yes
15006 echo "$as_me: failed program was:" >&5
15007 sed 's/^/| /' conftest.
$ac_ext >&5
15009 ac_cv_lib_krb_krb_get_cred
=no
15011 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15012 LIBS
=$ac_check_lib_save_LIBS
15014 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
15015 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
15016 if test $ac_cv_lib_krb_krb_get_cred = yes; then
15017 cat >>confdefs.h
<<_ACEOF
15018 #define HAVE_LIBKRB 1
15029 if test "${with_kerberos5+set}" = set; then
15031 for ac_header
in krb5.h
15033 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15035 echo "$as_me:$LINENO: checking for $ac_header" >&5
15036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15038 echo $ECHO_N "(cached) $ECHO_C" >&6
15040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15043 # Is the header compilable?
15044 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15046 cat >conftest.
$ac_ext <<_ACEOF
15047 #line $LINENO "configure"
15050 cat confdefs.h
>>conftest.
$ac_ext
15051 cat >>conftest.
$ac_ext <<_ACEOF
15052 /* end confdefs.h. */
15053 $ac_includes_default
15054 #include <$ac_header>
15056 rm -f conftest.
$ac_objext
15057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15058 (eval $ac_compile) 2>&5
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); } &&
15062 { ac_try
='test -s conftest.$ac_objext'
15063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15064 (eval $ac_try) 2>&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); }; }; then
15068 ac_header_compiler
=yes
15070 echo "$as_me: failed program was:" >&5
15071 sed 's/^/| /' conftest.
$ac_ext >&5
15073 ac_header_compiler
=no
15075 rm -f conftest.
$ac_objext conftest.
$ac_ext
15076 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15077 echo "${ECHO_T}$ac_header_compiler" >&6
15079 # Is the header present?
15080 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15082 cat >conftest.
$ac_ext <<_ACEOF
15083 #line $LINENO "configure"
15086 cat confdefs.h
>>conftest.
$ac_ext
15087 cat >>conftest.
$ac_ext <<_ACEOF
15088 /* end confdefs.h. */
15089 #include <$ac_header>
15091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15092 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15094 grep -v '^ *+' conftest.er1
>conftest.err
15096 cat conftest.err
>&5
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); } >/dev
/null
; then
15099 if test -s conftest.err
; then
15100 ac_cpp_err
=$ac_c_preproc_warn_flag
15107 if test -z "$ac_cpp_err"; then
15108 ac_header_preproc
=yes
15110 echo "$as_me: failed program was:" >&5
15111 sed 's/^/| /' conftest.
$ac_ext >&5
15113 ac_header_preproc
=no
15115 rm -f conftest.err conftest.
$ac_ext
15116 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15117 echo "${ECHO_T}$ac_header_preproc" >&6
15119 # So? What about this header?
15120 case $ac_header_compiler:$ac_header_preproc in
15122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15128 ## ------------------------------------ ##
15129 ## Report this to bug-autoconf@gnu.org. ##
15130 ## ------------------------------------ ##
15133 sed "s/^/$as_me: WARNING: /" >&2
15136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15137 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15139 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15144 ## ------------------------------------ ##
15145 ## Report this to bug-autoconf@gnu.org. ##
15146 ## ------------------------------------ ##
15149 sed "s/^/$as_me: WARNING: /" >&2
15152 echo "$as_me:$LINENO: checking for $ac_header" >&5
15153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15155 echo $ECHO_N "(cached) $ECHO_C" >&6
15157 eval "$as_ac_Header=$ac_header_preproc"
15159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15164 cat >>confdefs.h
<<_ACEOF
15165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15174 for ac_header
in des.h
15176 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15178 echo "$as_me:$LINENO: checking for $ac_header" >&5
15179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15181 echo $ECHO_N "(cached) $ECHO_C" >&6
15183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15186 # Is the header compilable?
15187 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15188 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15189 cat >conftest.
$ac_ext <<_ACEOF
15190 #line $LINENO "configure"
15193 cat confdefs.h
>>conftest.
$ac_ext
15194 cat >>conftest.
$ac_ext <<_ACEOF
15195 /* end confdefs.h. */
15196 $ac_includes_default
15197 #include <$ac_header>
15199 rm -f conftest.
$ac_objext
15200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15201 (eval $ac_compile) 2>&5
15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); } &&
15205 { ac_try
='test -s conftest.$ac_objext'
15206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15207 (eval $ac_try) 2>&5
15209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 (exit $ac_status); }; }; then
15211 ac_header_compiler
=yes
15213 echo "$as_me: failed program was:" >&5
15214 sed 's/^/| /' conftest.
$ac_ext >&5
15216 ac_header_compiler
=no
15218 rm -f conftest.
$ac_objext conftest.
$ac_ext
15219 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15220 echo "${ECHO_T}$ac_header_compiler" >&6
15222 # Is the header present?
15223 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15225 cat >conftest.
$ac_ext <<_ACEOF
15226 #line $LINENO "configure"
15229 cat confdefs.h
>>conftest.
$ac_ext
15230 cat >>conftest.
$ac_ext <<_ACEOF
15231 /* end confdefs.h. */
15232 #include <$ac_header>
15234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15235 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15237 grep -v '^ *+' conftest.er1
>conftest.err
15239 cat conftest.err
>&5
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); } >/dev
/null
; then
15242 if test -s conftest.err
; then
15243 ac_cpp_err
=$ac_c_preproc_warn_flag
15250 if test -z "$ac_cpp_err"; then
15251 ac_header_preproc
=yes
15253 echo "$as_me: failed program was:" >&5
15254 sed 's/^/| /' conftest.
$ac_ext >&5
15256 ac_header_preproc
=no
15258 rm -f conftest.err conftest.
$ac_ext
15259 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15260 echo "${ECHO_T}$ac_header_preproc" >&6
15262 # So? What about this header?
15263 case $ac_header_compiler:$ac_header_preproc in
15265 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15266 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15271 ## ------------------------------------ ##
15272 ## Report this to bug-autoconf@gnu.org. ##
15273 ## ------------------------------------ ##
15276 sed "s/^/$as_me: WARNING: /" >&2
15279 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15280 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15281 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15282 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15287 ## ------------------------------------ ##
15288 ## Report this to bug-autoconf@gnu.org. ##
15289 ## ------------------------------------ ##
15292 sed "s/^/$as_me: WARNING: /" >&2
15295 echo "$as_me:$LINENO: checking for $ac_header" >&5
15296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15298 echo $ECHO_N "(cached) $ECHO_C" >&6
15300 eval "$as_ac_Header=$ac_header_preproc"
15302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15307 cat >>confdefs.h
<<_ACEOF
15308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15313 for ac_header
in kerberosIV
/des.h
15315 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15317 echo "$as_me:$LINENO: checking for $ac_header" >&5
15318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15320 echo $ECHO_N "(cached) $ECHO_C" >&6
15322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15325 # Is the header compilable?
15326 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15327 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15328 cat >conftest.
$ac_ext <<_ACEOF
15329 #line $LINENO "configure"
15332 cat confdefs.h
>>conftest.
$ac_ext
15333 cat >>conftest.
$ac_ext <<_ACEOF
15334 /* end confdefs.h. */
15335 $ac_includes_default
15336 #include <$ac_header>
15338 rm -f conftest.
$ac_objext
15339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15340 (eval $ac_compile) 2>&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); } &&
15344 { ac_try
='test -s conftest.$ac_objext'
15345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15346 (eval $ac_try) 2>&5
15348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); }; }; then
15350 ac_header_compiler
=yes
15352 echo "$as_me: failed program was:" >&5
15353 sed 's/^/| /' conftest.
$ac_ext >&5
15355 ac_header_compiler
=no
15357 rm -f conftest.
$ac_objext conftest.
$ac_ext
15358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15359 echo "${ECHO_T}$ac_header_compiler" >&6
15361 # Is the header present?
15362 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15364 cat >conftest.
$ac_ext <<_ACEOF
15365 #line $LINENO "configure"
15368 cat confdefs.h
>>conftest.
$ac_ext
15369 cat >>conftest.
$ac_ext <<_ACEOF
15370 /* end confdefs.h. */
15371 #include <$ac_header>
15373 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15374 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15376 grep -v '^ *+' conftest.er1
>conftest.err
15378 cat conftest.err
>&5
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); } >/dev
/null
; then
15381 if test -s conftest.err
; then
15382 ac_cpp_err
=$ac_c_preproc_warn_flag
15389 if test -z "$ac_cpp_err"; then
15390 ac_header_preproc
=yes
15392 echo "$as_me: failed program was:" >&5
15393 sed 's/^/| /' conftest.
$ac_ext >&5
15395 ac_header_preproc
=no
15397 rm -f conftest.err conftest.
$ac_ext
15398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15399 echo "${ECHO_T}$ac_header_preproc" >&6
15401 # So? What about this header?
15402 case $ac_header_compiler:$ac_header_preproc in
15404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15410 ## ------------------------------------ ##
15411 ## Report this to bug-autoconf@gnu.org. ##
15412 ## ------------------------------------ ##
15415 sed "s/^/$as_me: WARNING: /" >&2
15418 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15419 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15420 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15421 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15426 ## ------------------------------------ ##
15427 ## Report this to bug-autoconf@gnu.org. ##
15428 ## ------------------------------------ ##
15431 sed "s/^/$as_me: WARNING: /" >&2
15434 echo "$as_me:$LINENO: checking for $ac_header" >&5
15435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15437 echo $ECHO_N "(cached) $ECHO_C" >&6
15439 eval "$as_ac_Header=$ac_header_preproc"
15441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15446 cat >>confdefs.h
<<_ACEOF
15447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15452 for ac_header
in kerberos
/des.h
15454 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15456 echo "$as_me:$LINENO: checking for $ac_header" >&5
15457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15459 echo $ECHO_N "(cached) $ECHO_C" >&6
15461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15464 # Is the header compilable?
15465 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15467 cat >conftest.
$ac_ext <<_ACEOF
15468 #line $LINENO "configure"
15471 cat confdefs.h
>>conftest.
$ac_ext
15472 cat >>conftest.
$ac_ext <<_ACEOF
15473 /* end confdefs.h. */
15474 $ac_includes_default
15475 #include <$ac_header>
15477 rm -f conftest.
$ac_objext
15478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15479 (eval $ac_compile) 2>&5
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); } &&
15483 { ac_try
='test -s conftest.$ac_objext'
15484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15485 (eval $ac_try) 2>&5
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); }; }; then
15489 ac_header_compiler
=yes
15491 echo "$as_me: failed program was:" >&5
15492 sed 's/^/| /' conftest.
$ac_ext >&5
15494 ac_header_compiler
=no
15496 rm -f conftest.
$ac_objext conftest.
$ac_ext
15497 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15498 echo "${ECHO_T}$ac_header_compiler" >&6
15500 # Is the header present?
15501 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15502 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15503 cat >conftest.
$ac_ext <<_ACEOF
15504 #line $LINENO "configure"
15507 cat confdefs.h
>>conftest.
$ac_ext
15508 cat >>conftest.
$ac_ext <<_ACEOF
15509 /* end confdefs.h. */
15510 #include <$ac_header>
15512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15513 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15515 grep -v '^ *+' conftest.er1
>conftest.err
15517 cat conftest.err
>&5
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); } >/dev
/null
; then
15520 if test -s conftest.err
; then
15521 ac_cpp_err
=$ac_c_preproc_warn_flag
15528 if test -z "$ac_cpp_err"; then
15529 ac_header_preproc
=yes
15531 echo "$as_me: failed program was:" >&5
15532 sed 's/^/| /' conftest.
$ac_ext >&5
15534 ac_header_preproc
=no
15536 rm -f conftest.err conftest.
$ac_ext
15537 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15538 echo "${ECHO_T}$ac_header_preproc" >&6
15540 # So? What about this header?
15541 case $ac_header_compiler:$ac_header_preproc in
15543 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15544 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15549 ## ------------------------------------ ##
15550 ## Report this to bug-autoconf@gnu.org. ##
15551 ## ------------------------------------ ##
15554 sed "s/^/$as_me: WARNING: /" >&2
15557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15558 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15560 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15562 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15565 ## ------------------------------------ ##
15566 ## Report this to bug-autoconf@gnu.org. ##
15567 ## ------------------------------------ ##
15570 sed "s/^/$as_me: WARNING: /" >&2
15573 echo "$as_me:$LINENO: checking for $ac_header" >&5
15574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15576 echo $ECHO_N "(cached) $ECHO_C" >&6
15578 eval "$as_ac_Header=$ac_header_preproc"
15580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15581 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15585 cat >>confdefs.h
<<_ACEOF
15586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15602 for ac_header
in krb.h
15604 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15606 echo "$as_me:$LINENO: checking for $ac_header" >&5
15607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15609 echo $ECHO_N "(cached) $ECHO_C" >&6
15611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15614 # Is the header compilable?
15615 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15616 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15617 cat >conftest.
$ac_ext <<_ACEOF
15618 #line $LINENO "configure"
15621 cat confdefs.h
>>conftest.
$ac_ext
15622 cat >>conftest.
$ac_ext <<_ACEOF
15623 /* end confdefs.h. */
15624 $ac_includes_default
15625 #include <$ac_header>
15627 rm -f conftest.
$ac_objext
15628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15629 (eval $ac_compile) 2>&5
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); } &&
15633 { ac_try
='test -s conftest.$ac_objext'
15634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15635 (eval $ac_try) 2>&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); }; }; then
15639 ac_header_compiler
=yes
15641 echo "$as_me: failed program was:" >&5
15642 sed 's/^/| /' conftest.
$ac_ext >&5
15644 ac_header_compiler
=no
15646 rm -f conftest.
$ac_objext conftest.
$ac_ext
15647 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15648 echo "${ECHO_T}$ac_header_compiler" >&6
15650 # Is the header present?
15651 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15653 cat >conftest.
$ac_ext <<_ACEOF
15654 #line $LINENO "configure"
15657 cat confdefs.h
>>conftest.
$ac_ext
15658 cat >>conftest.
$ac_ext <<_ACEOF
15659 /* end confdefs.h. */
15660 #include <$ac_header>
15662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15663 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15665 grep -v '^ *+' conftest.er1
>conftest.err
15667 cat conftest.err
>&5
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); } >/dev
/null
; then
15670 if test -s conftest.err
; then
15671 ac_cpp_err
=$ac_c_preproc_warn_flag
15678 if test -z "$ac_cpp_err"; then
15679 ac_header_preproc
=yes
15681 echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.
$ac_ext >&5
15684 ac_header_preproc
=no
15686 rm -f conftest.err conftest.
$ac_ext
15687 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15688 echo "${ECHO_T}$ac_header_preproc" >&6
15690 # So? What about this header?
15691 case $ac_header_compiler:$ac_header_preproc in
15693 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15694 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15699 ## ------------------------------------ ##
15700 ## Report this to bug-autoconf@gnu.org. ##
15701 ## ------------------------------------ ##
15704 sed "s/^/$as_me: WARNING: /" >&2
15707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15710 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15712 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15715 ## ------------------------------------ ##
15716 ## Report this to bug-autoconf@gnu.org. ##
15717 ## ------------------------------------ ##
15720 sed "s/^/$as_me: WARNING: /" >&2
15723 echo "$as_me:$LINENO: checking for $ac_header" >&5
15724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15726 echo $ECHO_N "(cached) $ECHO_C" >&6
15728 eval "$as_ac_Header=$ac_header_preproc"
15730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15735 cat >>confdefs.h
<<_ACEOF
15736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15741 for ac_header
in kerberosIV
/krb.h
15743 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15745 echo "$as_me:$LINENO: checking for $ac_header" >&5
15746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15748 echo $ECHO_N "(cached) $ECHO_C" >&6
15750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15751 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15753 # Is the header compilable?
15754 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15755 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15756 cat >conftest.
$ac_ext <<_ACEOF
15757 #line $LINENO "configure"
15760 cat confdefs.h
>>conftest.
$ac_ext
15761 cat >>conftest.
$ac_ext <<_ACEOF
15762 /* end confdefs.h. */
15763 $ac_includes_default
15764 #include <$ac_header>
15766 rm -f conftest.
$ac_objext
15767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15768 (eval $ac_compile) 2>&5
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); } &&
15772 { ac_try
='test -s conftest.$ac_objext'
15773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774 (eval $ac_try) 2>&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; }; then
15778 ac_header_compiler
=yes
15780 echo "$as_me: failed program was:" >&5
15781 sed 's/^/| /' conftest.
$ac_ext >&5
15783 ac_header_compiler
=no
15785 rm -f conftest.
$ac_objext conftest.
$ac_ext
15786 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15787 echo "${ECHO_T}$ac_header_compiler" >&6
15789 # Is the header present?
15790 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15791 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15792 cat >conftest.
$ac_ext <<_ACEOF
15793 #line $LINENO "configure"
15796 cat confdefs.h
>>conftest.
$ac_ext
15797 cat >>conftest.
$ac_ext <<_ACEOF
15798 /* end confdefs.h. */
15799 #include <$ac_header>
15801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15802 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15804 grep -v '^ *+' conftest.er1
>conftest.err
15806 cat conftest.err
>&5
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); } >/dev
/null
; then
15809 if test -s conftest.err
; then
15810 ac_cpp_err
=$ac_c_preproc_warn_flag
15817 if test -z "$ac_cpp_err"; then
15818 ac_header_preproc
=yes
15820 echo "$as_me: failed program was:" >&5
15821 sed 's/^/| /' conftest.
$ac_ext >&5
15823 ac_header_preproc
=no
15825 rm -f conftest.err conftest.
$ac_ext
15826 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15827 echo "${ECHO_T}$ac_header_preproc" >&6
15829 # So? What about this header?
15830 case $ac_header_compiler:$ac_header_preproc in
15832 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15833 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15838 ## ------------------------------------ ##
15839 ## Report this to bug-autoconf@gnu.org. ##
15840 ## ------------------------------------ ##
15843 sed "s/^/$as_me: WARNING: /" >&2
15846 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15847 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15848 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15849 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15854 ## ------------------------------------ ##
15855 ## Report this to bug-autoconf@gnu.org. ##
15856 ## ------------------------------------ ##
15859 sed "s/^/$as_me: WARNING: /" >&2
15862 echo "$as_me:$LINENO: checking for $ac_header" >&5
15863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15865 echo $ECHO_N "(cached) $ECHO_C" >&6
15867 eval "$as_ac_Header=$ac_header_preproc"
15869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15870 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15874 cat >>confdefs.h
<<_ACEOF
15875 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15880 for ac_header
in kerberos
/krb.h
15882 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15884 echo "$as_me:$LINENO: checking for $ac_header" >&5
15885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15887 echo $ECHO_N "(cached) $ECHO_C" >&6
15889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15892 # Is the header compilable?
15893 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15894 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15895 cat >conftest.
$ac_ext <<_ACEOF
15896 #line $LINENO "configure"
15899 cat confdefs.h
>>conftest.
$ac_ext
15900 cat >>conftest.
$ac_ext <<_ACEOF
15901 /* end confdefs.h. */
15902 $ac_includes_default
15903 #include <$ac_header>
15905 rm -f conftest.
$ac_objext
15906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15907 (eval $ac_compile) 2>&5
15909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); } &&
15911 { ac_try
='test -s conftest.$ac_objext'
15912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15913 (eval $ac_try) 2>&5
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); }; }; then
15917 ac_header_compiler
=yes
15919 echo "$as_me: failed program was:" >&5
15920 sed 's/^/| /' conftest.
$ac_ext >&5
15922 ac_header_compiler
=no
15924 rm -f conftest.
$ac_objext conftest.
$ac_ext
15925 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15926 echo "${ECHO_T}$ac_header_compiler" >&6
15928 # Is the header present?
15929 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15930 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15931 cat >conftest.
$ac_ext <<_ACEOF
15932 #line $LINENO "configure"
15935 cat confdefs.h
>>conftest.
$ac_ext
15936 cat >>conftest.
$ac_ext <<_ACEOF
15937 /* end confdefs.h. */
15938 #include <$ac_header>
15940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15941 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15943 grep -v '^ *+' conftest.er1
>conftest.err
15945 cat conftest.err
>&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); } >/dev
/null
; then
15948 if test -s conftest.err
; then
15949 ac_cpp_err
=$ac_c_preproc_warn_flag
15956 if test -z "$ac_cpp_err"; then
15957 ac_header_preproc
=yes
15959 echo "$as_me: failed program was:" >&5
15960 sed 's/^/| /' conftest.
$ac_ext >&5
15962 ac_header_preproc
=no
15964 rm -f conftest.err conftest.
$ac_ext
15965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15966 echo "${ECHO_T}$ac_header_preproc" >&6
15968 # So? What about this header?
15969 case $ac_header_compiler:$ac_header_preproc in
15971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15977 ## ------------------------------------ ##
15978 ## Report this to bug-autoconf@gnu.org. ##
15979 ## ------------------------------------ ##
15982 sed "s/^/$as_me: WARNING: /" >&2
15985 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15986 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15987 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15988 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15993 ## ------------------------------------ ##
15994 ## Report this to bug-autoconf@gnu.org. ##
15995 ## ------------------------------------ ##
15998 sed "s/^/$as_me: WARNING: /" >&2
16001 echo "$as_me:$LINENO: checking for $ac_header" >&5
16002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16004 echo $ECHO_N "(cached) $ECHO_C" >&6
16006 eval "$as_ac_Header=$ac_header_preproc"
16008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16013 cat >>confdefs.h
<<_ACEOF
16014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16031 for ac_header
in com_err.h
16033 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16035 echo "$as_me:$LINENO: checking for $ac_header" >&5
16036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16038 echo $ECHO_N "(cached) $ECHO_C" >&6
16040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16043 # Is the header compilable?
16044 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16046 cat >conftest.
$ac_ext <<_ACEOF
16047 #line $LINENO "configure"
16050 cat confdefs.h
>>conftest.
$ac_ext
16051 cat >>conftest.
$ac_ext <<_ACEOF
16052 /* end confdefs.h. */
16053 $ac_includes_default
16054 #include <$ac_header>
16056 rm -f conftest.
$ac_objext
16057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16058 (eval $ac_compile) 2>&5
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); } &&
16062 { ac_try
='test -s conftest.$ac_objext'
16063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16064 (eval $ac_try) 2>&5
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); }; }; then
16068 ac_header_compiler
=yes
16070 echo "$as_me: failed program was:" >&5
16071 sed 's/^/| /' conftest.
$ac_ext >&5
16073 ac_header_compiler
=no
16075 rm -f conftest.
$ac_objext conftest.
$ac_ext
16076 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16077 echo "${ECHO_T}$ac_header_compiler" >&6
16079 # Is the header present?
16080 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16082 cat >conftest.
$ac_ext <<_ACEOF
16083 #line $LINENO "configure"
16086 cat confdefs.h
>>conftest.
$ac_ext
16087 cat >>conftest.
$ac_ext <<_ACEOF
16088 /* end confdefs.h. */
16089 #include <$ac_header>
16091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16092 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16094 grep -v '^ *+' conftest.er1
>conftest.err
16096 cat conftest.err
>&5
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); } >/dev
/null
; then
16099 if test -s conftest.err
; then
16100 ac_cpp_err
=$ac_c_preproc_warn_flag
16107 if test -z "$ac_cpp_err"; then
16108 ac_header_preproc
=yes
16110 echo "$as_me: failed program was:" >&5
16111 sed 's/^/| /' conftest.
$ac_ext >&5
16113 ac_header_preproc
=no
16115 rm -f conftest.err conftest.
$ac_ext
16116 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16117 echo "${ECHO_T}$ac_header_preproc" >&6
16119 # So? What about this header?
16120 case $ac_header_compiler:$ac_header_preproc in
16122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16128 ## ------------------------------------ ##
16129 ## Report this to bug-autoconf@gnu.org. ##
16130 ## ------------------------------------ ##
16133 sed "s/^/$as_me: WARNING: /" >&2
16136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16137 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16139 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16144 ## ------------------------------------ ##
16145 ## Report this to bug-autoconf@gnu.org. ##
16146 ## ------------------------------------ ##
16149 sed "s/^/$as_me: WARNING: /" >&2
16152 echo "$as_me:$LINENO: checking for $ac_header" >&5
16153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16155 echo $ECHO_N "(cached) $ECHO_C" >&6
16157 eval "$as_ac_Header=$ac_header_preproc"
16159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16164 cat >>confdefs.h
<<_ACEOF
16165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16174 # Solaris requires -lintl if you want strerror (which calls dgettext)
16175 # to return localized messages.
16177 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
16178 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
16179 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
16180 echo $ECHO_N "(cached) $ECHO_C" >&6
16182 ac_check_lib_save_LIBS
=$LIBS
16183 LIBS
="-lintl $LIBS"
16184 cat >conftest.
$ac_ext <<_ACEOF
16185 #line $LINENO "configure"
16188 cat confdefs.h
>>conftest.
$ac_ext
16189 cat >>conftest.
$ac_ext <<_ACEOF
16190 /* end confdefs.h. */
16192 /* Override any gcc2 internal prototype to avoid an error. */
16196 /* We use char because int might match the return type of a gcc2
16197 builtin and then its argument prototype would still apply. */
16207 rm -f conftest.
$ac_objext conftest
$ac_exeext
16208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16209 (eval $ac_link) 2>&5
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); } &&
16213 { ac_try
='test -s conftest$ac_exeext'
16214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16215 (eval $ac_try) 2>&5
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); }; }; then
16219 ac_cv_lib_intl_dgettext
=yes
16221 echo "$as_me: failed program was:" >&5
16222 sed 's/^/| /' conftest.
$ac_ext >&5
16224 ac_cv_lib_intl_dgettext
=no
16226 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16227 LIBS
=$ac_check_lib_save_LIBS
16229 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
16230 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
16231 if test $ac_cv_lib_intl_dgettext = yes; then
16232 cat >>confdefs.h
<<_ACEOF
16233 #define HAVE_LIBINTL 1
16236 LIBS
="-lintl $LIBS"
16241 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
16242 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
16243 if test "${emacs_cv_localtime_cache+set}" = set; then
16244 echo $ECHO_N "(cached) $ECHO_C" >&6
16246 if test x
$ac_cv_func_tzset = xyes
; then
16247 if test "$cross_compiling" = yes; then
16248 # If we have tzset, assume the worst when cross-compiling.
16249 emacs_cv_localtime_cache
=yes
16251 cat >conftest.
$ac_ext <<_ACEOF
16252 #line $LINENO "configure"
16255 cat confdefs.h
>>conftest.
$ac_ext
16256 cat >>conftest.
$ac_ext <<_ACEOF
16257 /* end confdefs.h. */
16259 extern char **environ;
16263 for (to = from = environ; (*to = *from); from++)
16264 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
16267 char TZ_GMT0[] = "TZ=GMT0";
16268 char TZ_PST8[] = "TZ=PST8";
16271 time_t now = time ((time_t *) 0);
16272 int hour_GMT0, hour_unset;
16273 if (putenv (TZ_GMT0) != 0)
16275 hour_GMT0 = localtime (&now)->tm_hour;
16277 hour_unset = localtime (&now)->tm_hour;
16278 if (putenv (TZ_PST8) != 0)
16280 if (localtime (&now)->tm_hour == hour_GMT0)
16283 if (localtime (&now)->tm_hour != hour_unset)
16288 rm -f conftest
$ac_exeext
16289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16290 (eval $ac_link) 2>&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16295 (eval $ac_try) 2>&5
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); }; }; then
16299 emacs_cv_localtime_cache
=no
16301 echo "$as_me: program exited with status $ac_status" >&5
16302 echo "$as_me: failed program was:" >&5
16303 sed 's/^/| /' conftest.
$ac_ext >&5
16305 ( exit $ac_status )
16306 emacs_cv_localtime_cache
=yes
16308 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16311 # If we lack tzset, report that localtime does not cache TZ,
16312 # since we can't invalidate the cache if we don't have tzset.
16313 emacs_cv_localtime_cache
=no
16316 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
16317 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
16318 if test $emacs_cv_localtime_cache = yes; then
16320 cat >>confdefs.h
<<\_ACEOF
16321 #define LOCALTIME_CACHE 1
16326 if test "x$HAVE_TIMEVAL" = xyes
; then
16328 for ac_func
in gettimeofday
16330 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16331 echo "$as_me:$LINENO: checking for $ac_func" >&5
16332 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16333 if eval "test \"\${$as_ac_var+set}\" = set"; then
16334 echo $ECHO_N "(cached) $ECHO_C" >&6
16336 cat >conftest.
$ac_ext <<_ACEOF
16337 #line $LINENO "configure"
16340 cat confdefs.h
>>conftest.
$ac_ext
16341 cat >>conftest.
$ac_ext <<_ACEOF
16342 /* end confdefs.h. */
16343 /* System header to define __stub macros and hopefully few prototypes,
16344 which can conflict with char $ac_func (); below.
16345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16346 <limits.h> exists even on freestanding compilers. */
16348 # include <limits.h>
16350 # include <assert.h>
16352 /* Override any gcc2 internal prototype to avoid an error. */
16357 /* We use char because int might match the return type of a gcc2
16358 builtin and then its argument prototype would still apply. */
16360 /* The GNU C library defines this for functions which it implements
16361 to always fail with ENOSYS. Some functions are actually named
16362 something starting with __ and the normal name is an alias. */
16363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16366 char (*f) () = $ac_func;
16375 return f != $ac_func;
16380 rm -f conftest.
$ac_objext conftest
$ac_exeext
16381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16382 (eval $ac_link) 2>&5
16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); } &&
16386 { ac_try
='test -s conftest$ac_exeext'
16387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16388 (eval $ac_try) 2>&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); }; }; then
16392 eval "$as_ac_var=yes"
16394 echo "$as_me: failed program was:" >&5
16395 sed 's/^/| /' conftest.
$ac_ext >&5
16397 eval "$as_ac_var=no"
16399 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16402 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16403 if test `eval echo '${'$as_ac_var'}'` = yes; then
16404 cat >>confdefs.h
<<_ACEOF
16405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16411 if test $ac_cv_func_gettimeofday = yes; then
16412 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
16413 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
16414 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
16415 echo $ECHO_N "(cached) $ECHO_C" >&6
16417 cat >conftest.
$ac_ext <<_ACEOF
16418 #line $LINENO "configure"
16421 cat confdefs.h
>>conftest.
$ac_ext
16422 cat >>conftest.
$ac_ext <<_ACEOF
16423 /* end confdefs.h. */
16425 #ifdef TIME_WITH_SYS_TIME
16426 #include <sys/time.h>
16429 #ifdef HAVE_SYS_TIME_H
16430 #include <sys/time.h>
16438 struct timeval time;
16439 gettimeofday (&time, 0);
16444 rm -f conftest.
$ac_objext
16445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16446 (eval $ac_compile) 2>&5
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); } &&
16450 { ac_try
='test -s conftest.$ac_objext'
16451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16452 (eval $ac_try) 2>&5
16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); }; }; then
16456 emacs_cv_gettimeofday_two_arguments
=yes
16458 echo "$as_me: failed program was:" >&5
16459 sed 's/^/| /' conftest.
$ac_ext >&5
16461 emacs_cv_gettimeofday_two_arguments
=no
16463 rm -f conftest.
$ac_objext conftest.
$ac_ext
16465 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
16466 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
16467 if test $emacs_cv_gettimeofday_two_arguments = no
; then
16469 cat >>confdefs.h
<<\_ACEOF
16470 #define GETTIMEOFDAY_ONE_ARGUMENT 1
16477 if test "$ac_cv_func_gettimeofday" = yes; then
16478 echo "$as_me:$LINENO: checking for struct timezone" >&5
16479 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
16480 if test "${emacs_cv_struct_timezone+set}" = set; then
16481 echo $ECHO_N "(cached) $ECHO_C" >&6
16483 cat >conftest.
$ac_ext <<_ACEOF
16484 #line $LINENO "configure"
16487 cat confdefs.h
>>conftest.
$ac_ext
16488 cat >>conftest.
$ac_ext <<_ACEOF
16489 /* end confdefs.h. */
16490 #include <sys/time.h>
16494 struct timezone tz;
16499 rm -f conftest.
$ac_objext
16500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16501 (eval $ac_compile) 2>&5
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); } &&
16505 { ac_try
='test -s conftest.$ac_objext'
16506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16507 (eval $ac_try) 2>&5
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); }; }; then
16511 if test "$cross_compiling" = yes; then
16512 emacs_cv_struct_timezone
=yes
16514 cat >conftest.
$ac_ext <<_ACEOF
16515 #line $LINENO "configure"
16518 cat confdefs.h
>>conftest.
$ac_ext
16519 cat >>conftest.
$ac_ext <<_ACEOF
16520 /* end confdefs.h. */
16522 #ifdef TIME_WITH_SYS_TIME
16523 #include <sys/time.h>
16526 #ifdef HAVE_SYS_TIME_H
16527 #include <sys/time.h>
16533 struct timeval time;
16534 struct timezone dummy;
16535 exit (gettimeofday (&time, &dummy));
16538 rm -f conftest
$ac_exeext
16539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16540 (eval $ac_link) 2>&5
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16545 (eval $ac_try) 2>&5
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); }; }; then
16549 emacs_cv_struct_timezone
=yes
16551 echo "$as_me: program exited with status $ac_status" >&5
16552 echo "$as_me: failed program was:" >&5
16553 sed 's/^/| /' conftest.
$ac_ext >&5
16555 ( exit $ac_status )
16556 emacs_cv_struct_timezone
=no
16558 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16561 echo "$as_me: failed program was:" >&5
16562 sed 's/^/| /' conftest.
$ac_ext >&5
16564 emacs_cv_struct_timezone
=no
16566 rm -f conftest.
$ac_objext conftest.
$ac_ext
16568 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
16569 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
16573 echo "$as_me:$LINENO: checking for socket" >&5
16574 echo $ECHO_N "checking for socket... $ECHO_C" >&6
16575 if test "${ac_cv_func_socket+set}" = set; then
16576 echo $ECHO_N "(cached) $ECHO_C" >&6
16578 cat >conftest.
$ac_ext <<_ACEOF
16579 #line $LINENO "configure"
16582 cat confdefs.h
>>conftest.
$ac_ext
16583 cat >>conftest.
$ac_ext <<_ACEOF
16584 /* end confdefs.h. */
16585 /* System header to define __stub macros and hopefully few prototypes,
16586 which can conflict with char socket (); below.
16587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16588 <limits.h> exists even on freestanding compilers. */
16590 # include <limits.h>
16592 # include <assert.h>
16594 /* Override any gcc2 internal prototype to avoid an error. */
16599 /* We use char because int might match the return type of a gcc2
16600 builtin and then its argument prototype would still apply. */
16602 /* The GNU C library defines this for functions which it implements
16603 to always fail with ENOSYS. Some functions are actually named
16604 something starting with __ and the normal name is an alias. */
16605 #if defined (__stub_socket) || defined (__stub___socket)
16608 char (*f) () = socket;
16617 return f != socket;
16622 rm -f conftest.
$ac_objext conftest
$ac_exeext
16623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16624 (eval $ac_link) 2>&5
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); } &&
16628 { ac_try
='test -s conftest$ac_exeext'
16629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16630 (eval $ac_try) 2>&5
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); }; }; then
16634 ac_cv_func_socket
=yes
16636 echo "$as_me: failed program was:" >&5
16637 sed 's/^/| /' conftest.
$ac_ext >&5
16639 ac_cv_func_socket
=no
16641 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16643 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16644 echo "${ECHO_T}$ac_cv_func_socket" >&6
16645 if test $ac_cv_func_socket = yes; then
16651 if test $ok_so_far = yes; then
16652 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16653 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
16654 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
16655 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16656 echo $ECHO_N "(cached) $ECHO_C" >&6
16658 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
16659 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
16661 # Is the header compilable?
16662 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
16663 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
16664 cat >conftest.
$ac_ext <<_ACEOF
16665 #line $LINENO "configure"
16668 cat confdefs.h
>>conftest.
$ac_ext
16669 cat >>conftest.
$ac_ext <<_ACEOF
16670 /* end confdefs.h. */
16671 $ac_includes_default
16672 #include <netinet/in.h>
16674 rm -f conftest.
$ac_objext
16675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16676 (eval $ac_compile) 2>&5
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); } &&
16680 { ac_try
='test -s conftest.$ac_objext'
16681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16682 (eval $ac_try) 2>&5
16684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685 (exit $ac_status); }; }; then
16686 ac_header_compiler
=yes
16688 echo "$as_me: failed program was:" >&5
16689 sed 's/^/| /' conftest.
$ac_ext >&5
16691 ac_header_compiler
=no
16693 rm -f conftest.
$ac_objext conftest.
$ac_ext
16694 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16695 echo "${ECHO_T}$ac_header_compiler" >&6
16697 # Is the header present?
16698 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
16699 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
16700 cat >conftest.
$ac_ext <<_ACEOF
16701 #line $LINENO "configure"
16704 cat confdefs.h
>>conftest.
$ac_ext
16705 cat >>conftest.
$ac_ext <<_ACEOF
16706 /* end confdefs.h. */
16707 #include <netinet/in.h>
16709 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16710 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16712 grep -v '^ *+' conftest.er1
>conftest.err
16714 cat conftest.err
>&5
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); } >/dev
/null
; then
16717 if test -s conftest.err
; then
16718 ac_cpp_err
=$ac_c_preproc_warn_flag
16725 if test -z "$ac_cpp_err"; then
16726 ac_header_preproc
=yes
16728 echo "$as_me: failed program was:" >&5
16729 sed 's/^/| /' conftest.
$ac_ext >&5
16731 ac_header_preproc
=no
16733 rm -f conftest.err conftest.
$ac_ext
16734 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16735 echo "${ECHO_T}$ac_header_preproc" >&6
16737 # So? What about this header?
16738 case $ac_header_compiler:$ac_header_preproc in
16740 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
16741 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16742 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
16743 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
16746 ## ------------------------------------ ##
16747 ## Report this to bug-autoconf@gnu.org. ##
16748 ## ------------------------------------ ##
16751 sed "s/^/$as_me: WARNING: /" >&2
16754 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
16755 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
16756 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
16757 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
16758 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
16759 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
16762 ## ------------------------------------ ##
16763 ## Report this to bug-autoconf@gnu.org. ##
16764 ## ------------------------------------ ##
16767 sed "s/^/$as_me: WARNING: /" >&2
16770 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
16771 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
16772 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16773 echo $ECHO_N "(cached) $ECHO_C" >&6
16775 ac_cv_header_netinet_in_h
=$ac_header_preproc
16777 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
16778 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
16781 if test $ac_cv_header_netinet_in_h = yes; then
16789 if test $ok_so_far = yes; then
16790 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16791 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
16792 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
16793 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16794 echo $ECHO_N "(cached) $ECHO_C" >&6
16796 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
16797 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
16799 # Is the header compilable?
16800 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
16801 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
16802 cat >conftest.
$ac_ext <<_ACEOF
16803 #line $LINENO "configure"
16806 cat confdefs.h
>>conftest.
$ac_ext
16807 cat >>conftest.
$ac_ext <<_ACEOF
16808 /* end confdefs.h. */
16809 $ac_includes_default
16810 #include <arpa/inet.h>
16812 rm -f conftest.
$ac_objext
16813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16814 (eval $ac_compile) 2>&5
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); } &&
16818 { ac_try
='test -s conftest.$ac_objext'
16819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16820 (eval $ac_try) 2>&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); }; }; then
16824 ac_header_compiler
=yes
16826 echo "$as_me: failed program was:" >&5
16827 sed 's/^/| /' conftest.
$ac_ext >&5
16829 ac_header_compiler
=no
16831 rm -f conftest.
$ac_objext conftest.
$ac_ext
16832 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16833 echo "${ECHO_T}$ac_header_compiler" >&6
16835 # Is the header present?
16836 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
16837 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
16838 cat >conftest.
$ac_ext <<_ACEOF
16839 #line $LINENO "configure"
16842 cat confdefs.h
>>conftest.
$ac_ext
16843 cat >>conftest.
$ac_ext <<_ACEOF
16844 /* end confdefs.h. */
16845 #include <arpa/inet.h>
16847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16848 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16850 grep -v '^ *+' conftest.er1
>conftest.err
16852 cat conftest.err
>&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); } >/dev
/null
; then
16855 if test -s conftest.err
; then
16856 ac_cpp_err
=$ac_c_preproc_warn_flag
16863 if test -z "$ac_cpp_err"; then
16864 ac_header_preproc
=yes
16866 echo "$as_me: failed program was:" >&5
16867 sed 's/^/| /' conftest.
$ac_ext >&5
16869 ac_header_preproc
=no
16871 rm -f conftest.err conftest.
$ac_ext
16872 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16873 echo "${ECHO_T}$ac_header_preproc" >&6
16875 # So? What about this header?
16876 case $ac_header_compiler:$ac_header_preproc in
16878 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
16879 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16880 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
16881 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
16884 ## ------------------------------------ ##
16885 ## Report this to bug-autoconf@gnu.org. ##
16886 ## ------------------------------------ ##
16889 sed "s/^/$as_me: WARNING: /" >&2
16892 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
16893 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
16894 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
16895 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
16896 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
16897 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
16900 ## ------------------------------------ ##
16901 ## Report this to bug-autoconf@gnu.org. ##
16902 ## ------------------------------------ ##
16905 sed "s/^/$as_me: WARNING: /" >&2
16908 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
16909 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
16910 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16911 echo $ECHO_N "(cached) $ECHO_C" >&6
16913 ac_cv_header_arpa_inet_h
=$ac_header_preproc
16915 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
16916 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
16919 if test $ac_cv_header_arpa_inet_h = yes; then
16927 if test $ok_so_far = yes; then
16929 cat >>confdefs.h
<<\_ACEOF
16930 #define HAVE_INET_SOCKETS 1
16935 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
16937 cat >>confdefs.h
<<\_ACEOF
16938 #define HAVE_AIX_SMT_EXP 1
16943 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
16944 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
16945 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
16946 echo "$as_me:$LINENO: result: yes" >&5
16947 echo "${ECHO_T}yes" >&6
16949 cat >>confdefs.h
<<\_ACEOF
16950 #define HAVE_DEV_PTMX 1
16954 echo "$as_me:$LINENO: result: no" >&5
16955 echo "${ECHO_T}no" >&6
16958 echo "$as_me:$LINENO: checking for pid_t" >&5
16959 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16960 if test "${ac_cv_type_pid_t+set}" = set; then
16961 echo $ECHO_N "(cached) $ECHO_C" >&6
16963 cat >conftest.
$ac_ext <<_ACEOF
16964 #line $LINENO "configure"
16967 cat confdefs.h
>>conftest.
$ac_ext
16968 cat >>conftest.
$ac_ext <<_ACEOF
16969 /* end confdefs.h. */
16970 $ac_includes_default
16976 if (sizeof (pid_t))
16982 rm -f conftest.
$ac_objext
16983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16984 (eval $ac_compile) 2>&5
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); } &&
16988 { ac_try
='test -s conftest.$ac_objext'
16989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990 (eval $ac_try) 2>&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; }; then
16994 ac_cv_type_pid_t
=yes
16996 echo "$as_me: failed program was:" >&5
16997 sed 's/^/| /' conftest.
$ac_ext >&5
16999 ac_cv_type_pid_t
=no
17001 rm -f conftest.
$ac_objext conftest.
$ac_ext
17003 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17004 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17005 if test $ac_cv_type_pid_t = yes; then
17009 cat >>confdefs.h
<<_ACEOF
17017 for ac_header
in unistd.h vfork.h
17019 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17021 echo "$as_me:$LINENO: checking for $ac_header" >&5
17022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17024 echo $ECHO_N "(cached) $ECHO_C" >&6
17026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17027 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17029 # Is the header compilable?
17030 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17031 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17032 cat >conftest.
$ac_ext <<_ACEOF
17033 #line $LINENO "configure"
17036 cat confdefs.h
>>conftest.
$ac_ext
17037 cat >>conftest.
$ac_ext <<_ACEOF
17038 /* end confdefs.h. */
17039 $ac_includes_default
17040 #include <$ac_header>
17042 rm -f conftest.
$ac_objext
17043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17044 (eval $ac_compile) 2>&5
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); } &&
17048 { ac_try
='test -s conftest.$ac_objext'
17049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17050 (eval $ac_try) 2>&5
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); }; }; then
17054 ac_header_compiler
=yes
17056 echo "$as_me: failed program was:" >&5
17057 sed 's/^/| /' conftest.
$ac_ext >&5
17059 ac_header_compiler
=no
17061 rm -f conftest.
$ac_objext conftest.
$ac_ext
17062 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17063 echo "${ECHO_T}$ac_header_compiler" >&6
17065 # Is the header present?
17066 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17067 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17068 cat >conftest.
$ac_ext <<_ACEOF
17069 #line $LINENO "configure"
17072 cat confdefs.h
>>conftest.
$ac_ext
17073 cat >>conftest.
$ac_ext <<_ACEOF
17074 /* end confdefs.h. */
17075 #include <$ac_header>
17077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17078 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17080 grep -v '^ *+' conftest.er1
>conftest.err
17082 cat conftest.err
>&5
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); } >/dev
/null
; then
17085 if test -s conftest.err
; then
17086 ac_cpp_err
=$ac_c_preproc_warn_flag
17093 if test -z "$ac_cpp_err"; then
17094 ac_header_preproc
=yes
17096 echo "$as_me: failed program was:" >&5
17097 sed 's/^/| /' conftest.
$ac_ext >&5
17099 ac_header_preproc
=no
17101 rm -f conftest.err conftest.
$ac_ext
17102 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17103 echo "${ECHO_T}$ac_header_preproc" >&6
17105 # So? What about this header?
17106 case $ac_header_compiler:$ac_header_preproc in
17108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17114 ## ------------------------------------ ##
17115 ## Report this to bug-autoconf@gnu.org. ##
17116 ## ------------------------------------ ##
17119 sed "s/^/$as_me: WARNING: /" >&2
17122 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17123 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17124 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17125 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17127 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17130 ## ------------------------------------ ##
17131 ## Report this to bug-autoconf@gnu.org. ##
17132 ## ------------------------------------ ##
17135 sed "s/^/$as_me: WARNING: /" >&2
17138 echo "$as_me:$LINENO: checking for $ac_header" >&5
17139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17141 echo $ECHO_N "(cached) $ECHO_C" >&6
17143 eval "$as_ac_Header=$ac_header_preproc"
17145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17150 cat >>confdefs.h
<<_ACEOF
17151 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17160 for ac_func
in fork vfork
17162 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17163 echo "$as_me:$LINENO: checking for $ac_func" >&5
17164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17165 if eval "test \"\${$as_ac_var+set}\" = set"; then
17166 echo $ECHO_N "(cached) $ECHO_C" >&6
17168 cat >conftest.
$ac_ext <<_ACEOF
17169 #line $LINENO "configure"
17172 cat confdefs.h
>>conftest.
$ac_ext
17173 cat >>conftest.
$ac_ext <<_ACEOF
17174 /* end confdefs.h. */
17175 /* System header to define __stub macros and hopefully few prototypes,
17176 which can conflict with char $ac_func (); below.
17177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17178 <limits.h> exists even on freestanding compilers. */
17180 # include <limits.h>
17182 # include <assert.h>
17184 /* Override any gcc2 internal prototype to avoid an error. */
17189 /* We use char because int might match the return type of a gcc2
17190 builtin and then its argument prototype would still apply. */
17192 /* The GNU C library defines this for functions which it implements
17193 to always fail with ENOSYS. Some functions are actually named
17194 something starting with __ and the normal name is an alias. */
17195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17198 char (*f) () = $ac_func;
17207 return f != $ac_func;
17212 rm -f conftest.
$ac_objext conftest
$ac_exeext
17213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17214 (eval $ac_link) 2>&5
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); } &&
17218 { ac_try
='test -s conftest$ac_exeext'
17219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17220 (eval $ac_try) 2>&5
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); }; }; then
17224 eval "$as_ac_var=yes"
17226 echo "$as_me: failed program was:" >&5
17227 sed 's/^/| /' conftest.
$ac_ext >&5
17229 eval "$as_ac_var=no"
17231 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17234 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17235 if test `eval echo '${'$as_ac_var'}'` = yes; then
17236 cat >>confdefs.h
<<_ACEOF
17237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17243 if test "x$ac_cv_func_fork" = xyes
; then
17244 echo "$as_me:$LINENO: checking for working fork" >&5
17245 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17246 if test "${ac_cv_func_fork_works+set}" = set; then
17247 echo $ECHO_N "(cached) $ECHO_C" >&6
17249 if test "$cross_compiling" = yes; then
17250 ac_cv_func_fork_works
=cross
17252 cat >conftest.
$ac_ext <<_ACEOF
17253 /* By Ruediger Kuhlmann. */
17254 #include <sys/types.h>
17256 # include <unistd.h>
17258 /* Some systems only have a dummy stub for fork() */
17266 rm -f conftest
$ac_exeext
17267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17268 (eval $ac_link) 2>&5
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17273 (eval $ac_try) 2>&5
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); }; }; then
17277 ac_cv_func_fork_works
=yes
17279 echo "$as_me: program exited with status $ac_status" >&5
17280 echo "$as_me: failed program was:" >&5
17281 sed 's/^/| /' conftest.
$ac_ext >&5
17283 ( exit $ac_status )
17284 ac_cv_func_fork_works
=no
17286 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17289 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
17290 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17293 ac_cv_func_fork_works
=$ac_cv_func_fork
17295 if test "x$ac_cv_func_fork_works" = xcross
; then
17297 *-*-amigaos* |
*-*-msdosdjgpp*)
17298 # Override, as these systems have only a dummy fork() stub
17299 ac_cv_func_fork_works
=no
17302 ac_cv_func_fork_works
=yes
17305 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17306 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17308 ac_cv_func_vfork_works
=$ac_cv_func_vfork
17309 if test "x$ac_cv_func_vfork" = xyes
; then
17310 echo "$as_me:$LINENO: checking for working vfork" >&5
17311 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17312 if test "${ac_cv_func_vfork_works+set}" = set; then
17313 echo $ECHO_N "(cached) $ECHO_C" >&6
17315 if test "$cross_compiling" = yes; then
17316 ac_cv_func_vfork_works
=cross
17318 cat >conftest.
$ac_ext <<_ACEOF
17319 #line $LINENO "configure"
17322 cat confdefs.h
>>conftest.
$ac_ext
17323 cat >>conftest.
$ac_ext <<_ACEOF
17324 /* end confdefs.h. */
17325 /* Thanks to Paul Eggert for this test. */
17327 #include <stdlib.h>
17328 #include <sys/types.h>
17329 #include <sys/stat.h>
17330 #include <sys/wait.h>
17332 # include <unistd.h>
17335 # include <vfork.h>
17337 /* On some sparc systems, changes by the child to local and incoming
17338 argument registers are propagated back to the parent. The compiler
17339 is told about this with #include <vfork.h>, but some compilers
17340 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17341 static variable whose address is put into a register that is
17342 clobbered by the vfork. */
17345 sparc_address_test (int arg)
17347 sparc_address_test (arg) int arg;
17350 static pid_t child;
17368 pid_t parent = getpid ();
17371 sparc_address_test (0);
17376 /* Here is another test for sparc vfork register problems. This
17377 test uses lots of local variables, at least as many local
17378 variables as main has allocated so far including compiler
17379 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17380 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17381 reuse the register of parent for one of the local variables,
17382 since it will think that parent can't possibly be used any more
17383 in this routine. Assigning to the local variable will thus
17384 munge parent in the parent process. */
17386 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17387 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17388 /* Convince the compiler that p..p7 are live; otherwise, it might
17389 use the same hardware register for all 8 local variables. */
17390 if (p != p1 || p != p2 || p != p3 || p != p4
17391 || p != p5 || p != p6 || p != p7)
17394 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17395 from child file descriptors. If the child closes a descriptor
17396 before it execs or exits, this munges the parent's descriptor
17397 as well. Test for this by closing stdout in the child. */
17398 _exit(close(fileno(stdout)) != 0);
17403 while (wait(&status) != child)
17406 /* Was there some problem with vforking? */
17409 /* Did the child fail? (This shouldn't happen.) */
17412 /* Did the vfork/compiler bug occur? */
17413 || parent != getpid()
17415 /* Did the file descriptor bug occur? */
17416 || fstat(fileno(stdout), &st) != 0
17421 rm -f conftest
$ac_exeext
17422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17423 (eval $ac_link) 2>&5
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17428 (eval $ac_try) 2>&5
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); }; }; then
17432 ac_cv_func_vfork_works
=yes
17434 echo "$as_me: program exited with status $ac_status" >&5
17435 echo "$as_me: failed program was:" >&5
17436 sed 's/^/| /' conftest.
$ac_ext >&5
17438 ( exit $ac_status )
17439 ac_cv_func_vfork_works
=no
17441 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17444 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
17445 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17448 if test "x$ac_cv_func_fork_works" = xcross
; then
17449 ac_cv_func_vfork_works
=ac_cv_func_vfork
17450 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17451 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17454 if test "x$ac_cv_func_vfork_works" = xyes
; then
17456 cat >>confdefs.h
<<\_ACEOF
17457 #define HAVE_WORKING_VFORK 1
17462 cat >>confdefs.h
<<\_ACEOF
17467 if test "x$ac_cv_func_fork_works" = xyes
; then
17469 cat >>confdefs.h
<<\_ACEOF
17470 #define HAVE_WORKING_FORK 1
17476 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17477 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17478 if test "${emacs_cv_langinfo_codeset+set}" = set; then
17479 echo $ECHO_N "(cached) $ECHO_C" >&6
17481 cat >conftest.
$ac_ext <<_ACEOF
17482 #line $LINENO "configure"
17485 cat confdefs.h
>>conftest.
$ac_ext
17486 cat >>conftest.
$ac_ext <<_ACEOF
17487 /* end confdefs.h. */
17488 #include <langinfo.h>
17492 char* cs = nl_langinfo(CODESET);
17497 rm -f conftest.
$ac_objext conftest
$ac_exeext
17498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17499 (eval $ac_link) 2>&5
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); } &&
17503 { ac_try
='test -s conftest$ac_exeext'
17504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17505 (eval $ac_try) 2>&5
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); }; }; then
17509 emacs_cv_langinfo_codeset
=yes
17511 echo "$as_me: failed program was:" >&5
17512 sed 's/^/| /' conftest.
$ac_ext >&5
17514 emacs_cv_langinfo_codeset
=no
17516 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17519 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
17520 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
17521 if test $emacs_cv_langinfo_codeset = yes; then
17523 cat >>confdefs.h
<<\_ACEOF
17524 #define HAVE_LANGINFO_CODESET 1
17529 echo "$as_me:$LINENO: checking for size_t" >&5
17530 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17531 if test "${ac_cv_type_size_t+set}" = set; then
17532 echo $ECHO_N "(cached) $ECHO_C" >&6
17534 cat >conftest.
$ac_ext <<_ACEOF
17535 #line $LINENO "configure"
17538 cat confdefs.h
>>conftest.
$ac_ext
17539 cat >>conftest.
$ac_ext <<_ACEOF
17540 /* end confdefs.h. */
17541 $ac_includes_default
17547 if (sizeof (size_t))
17553 rm -f conftest.
$ac_objext
17554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17555 (eval $ac_compile) 2>&5
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); } &&
17559 { ac_try
='test -s conftest.$ac_objext'
17560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561 (eval $ac_try) 2>&5
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; }; then
17565 ac_cv_type_size_t
=yes
17567 echo "$as_me: failed program was:" >&5
17568 sed 's/^/| /' conftest.
$ac_ext >&5
17570 ac_cv_type_size_t
=no
17572 rm -f conftest.
$ac_objext conftest.
$ac_ext
17574 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17575 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17576 if test $ac_cv_type_size_t = yes; then
17578 cat >>confdefs.h
<<_ACEOF
17579 #define HAVE_SIZE_T 1
17586 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
17587 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
17588 if test "${emacs_cv_c_restrict+set}" = set; then
17589 echo $ECHO_N "(cached) $ECHO_C" >&6
17591 cat >conftest.
$ac_ext <<_ACEOF
17592 #line $LINENO "configure"
17595 cat confdefs.h
>>conftest.
$ac_ext
17596 cat >>conftest.
$ac_ext <<_ACEOF
17597 /* end confdefs.h. */
17598 void fred (int *restrict x);
17607 rm -f conftest.
$ac_objext
17608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17609 (eval $ac_compile) 2>&5
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); } &&
17613 { ac_try
='test -s conftest.$ac_objext'
17614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17615 (eval $ac_try) 2>&5
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); }; }; then
17619 emacs_cv_c_restrict
=yes
17621 echo "$as_me: failed program was:" >&5
17622 sed 's/^/| /' conftest.
$ac_ext >&5
17624 cat >conftest.
$ac_ext <<_ACEOF
17625 #line $LINENO "configure"
17628 cat confdefs.h
>>conftest.
$ac_ext
17629 cat >>conftest.
$ac_ext <<_ACEOF
17630 /* end confdefs.h. */
17631 void fred (int *__restrict x);
17640 rm -f conftest.
$ac_objext
17641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17642 (eval $ac_compile) 2>&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); } &&
17646 { ac_try
='test -s conftest.$ac_objext'
17647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17648 (eval $ac_try) 2>&5
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); }; }; then
17652 emacs_cv_c_restrict
=__restrict
17654 echo "$as_me: failed program was:" >&5
17655 sed 's/^/| /' conftest.
$ac_ext >&5
17657 emacs_cv_c_restrict
=no
17659 rm -f conftest.
$ac_objext conftest.
$ac_ext
17661 rm -f conftest.
$ac_objext conftest.
$ac_ext
17663 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
17664 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
17665 case "$emacs_cv_c_restrict" in
17666 yes) emacs_restrict
=restrict
;;
17667 no
) emacs_restrict
="";;
17668 *) emacs_restrict
="$emacs_cv_c_restrict";;
17670 if test "$emacs_restrict" != __restrict
; then
17672 cat >>confdefs.h
<<_ACEOF
17673 #define __restrict $emacs_restrict
17678 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
17679 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
17680 if test "${emacs_cv_c_restrict_arr+set}" = set; then
17681 echo $ECHO_N "(cached) $ECHO_C" >&6
17683 cat >conftest.
$ac_ext <<_ACEOF
17684 #line $LINENO "configure"
17687 cat confdefs.h
>>conftest.
$ac_ext
17688 cat >>conftest.
$ac_ext <<_ACEOF
17689 /* end confdefs.h. */
17690 void fred (int x[__restrict]);
17699 rm -f conftest.
$ac_objext
17700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17701 (eval $ac_compile) 2>&5
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); } &&
17705 { ac_try
='test -s conftest.$ac_objext'
17706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17707 (eval $ac_try) 2>&5
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); }; }; then
17711 emacs_cv_c_restrict_arr
=yes
17713 echo "$as_me: failed program was:" >&5
17714 sed 's/^/| /' conftest.
$ac_ext >&5
17716 emacs_cv_c_restrict_arr
=no
17718 rm -f conftest.
$ac_objext conftest.
$ac_ext
17720 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
17721 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
17722 if test "$emacs_cv_c_restrict_arr" = yes; then
17724 cat >>confdefs.h
<<\_ACEOF
17725 #define __restrict_arr __restrict
17731 for ac_header
in nlist.h
17733 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17735 echo "$as_me:$LINENO: checking for $ac_header" >&5
17736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17738 echo $ECHO_N "(cached) $ECHO_C" >&6
17740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17741 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17743 # Is the header compilable?
17744 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17745 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17746 cat >conftest.
$ac_ext <<_ACEOF
17747 #line $LINENO "configure"
17750 cat confdefs.h
>>conftest.
$ac_ext
17751 cat >>conftest.
$ac_ext <<_ACEOF
17752 /* end confdefs.h. */
17753 $ac_includes_default
17754 #include <$ac_header>
17756 rm -f conftest.
$ac_objext
17757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17758 (eval $ac_compile) 2>&5
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); } &&
17762 { ac_try
='test -s conftest.$ac_objext'
17763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17764 (eval $ac_try) 2>&5
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); }; }; then
17768 ac_header_compiler
=yes
17770 echo "$as_me: failed program was:" >&5
17771 sed 's/^/| /' conftest.
$ac_ext >&5
17773 ac_header_compiler
=no
17775 rm -f conftest.
$ac_objext conftest.
$ac_ext
17776 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17777 echo "${ECHO_T}$ac_header_compiler" >&6
17779 # Is the header present?
17780 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17781 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17782 cat >conftest.
$ac_ext <<_ACEOF
17783 #line $LINENO "configure"
17786 cat confdefs.h
>>conftest.
$ac_ext
17787 cat >>conftest.
$ac_ext <<_ACEOF
17788 /* end confdefs.h. */
17789 #include <$ac_header>
17791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17792 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17794 grep -v '^ *+' conftest.er1
>conftest.err
17796 cat conftest.err
>&5
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); } >/dev
/null
; then
17799 if test -s conftest.err
; then
17800 ac_cpp_err
=$ac_c_preproc_warn_flag
17807 if test -z "$ac_cpp_err"; then
17808 ac_header_preproc
=yes
17810 echo "$as_me: failed program was:" >&5
17811 sed 's/^/| /' conftest.
$ac_ext >&5
17813 ac_header_preproc
=no
17815 rm -f conftest.err conftest.
$ac_ext
17816 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17817 echo "${ECHO_T}$ac_header_preproc" >&6
17819 # So? What about this header?
17820 case $ac_header_compiler:$ac_header_preproc in
17822 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17823 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17828 ## ------------------------------------ ##
17829 ## Report this to bug-autoconf@gnu.org. ##
17830 ## ------------------------------------ ##
17833 sed "s/^/$as_me: WARNING: /" >&2
17836 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17837 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17838 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17839 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17844 ## ------------------------------------ ##
17845 ## Report this to bug-autoconf@gnu.org. ##
17846 ## ------------------------------------ ##
17849 sed "s/^/$as_me: WARNING: /" >&2
17852 echo "$as_me:$LINENO: checking for $ac_header" >&5
17853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17855 echo $ECHO_N "(cached) $ECHO_C" >&6
17857 eval "$as_ac_Header=$ac_header_preproc"
17859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17864 cat >>confdefs.h
<<_ACEOF
17865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17868 cat >>confdefs.h
<<\_ACEOF
17869 #define NLIST_STRUCT 1
17879 # Set up the CFLAGS for real compilation, so we can substitute it.
17880 CFLAGS
="$REAL_CFLAGS"
17881 CPPFLAGS
="$REAL_CPPFLAGS"
17883 #### Find out which version of Emacs this is.
17884 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
17885 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
17886 if test x
"${version}" = x
; then
17887 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
17888 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
17889 { (exit 1); exit 1; }; }
17892 ### Specify what sort of things we'll be editing into Makefile and config.h.
17893 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17929 cat >>confdefs.h
<<_ACEOF
17930 #define EMACS_CONFIGURATION "${canonical}"
17934 cat >>confdefs.h
<<_ACEOF
17935 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
17939 cat >>confdefs.h
<<_ACEOF
17940 #define config_machfile "${machfile}"
17944 cat >>confdefs.h
<<_ACEOF
17945 #define config_opsysfile "${opsysfile}"
17949 cat >>confdefs.h
<<_ACEOF
17950 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
17954 cat >>confdefs.h
<<_ACEOF
17955 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
17959 cat >>confdefs.h
<<_ACEOF
17960 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
17964 cat >>confdefs.h
<<_ACEOF
17965 #define UNEXEC_SRC ${UNEXEC_SRC}
17969 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17971 cat >>confdefs.h
<<\_ACEOF
17972 #define HAVE_X_WINDOWS 1
17976 if test "${USE_X_TOOLKIT}" != "none" ; then
17978 cat >>confdefs.h
<<\_ACEOF
17979 #define USE_X_TOOLKIT 1
17983 if test "${HAVE_X11}" = "yes" ; then
17985 cat >>confdefs.h
<<\_ACEOF
17990 if test "${HAVE_XFREE386}" = "yes" ; then
17992 cat >>confdefs.h
<<\_ACEOF
17993 #define HAVE_XFREE386 1
17997 if test "${HAVE_MENUS}" = "yes" ; then
17999 cat >>confdefs.h
<<\_ACEOF
18000 #define HAVE_MENUS 1
18004 if test "${GNU_MALLOC}" = "yes" ; then
18006 cat >>confdefs.h
<<\_ACEOF
18007 #define GNU_MALLOC 1
18011 if test "${REL_ALLOC}" = "yes" ; then
18013 cat >>confdefs.h
<<\_ACEOF
18014 #define REL_ALLOC 1
18023 #### Report on what we decided to do.
18024 #### Report GTK as a toolkit, even if it doesn't use Xt.
18025 #### It makes printing result more understandable as using GTK sets
18026 #### toolkit_scroll_bars to yes by default.
18027 if test "${HAVE_GTK}" = "yes"; then
18032 Configured for \`${canonical}'.
18034 Where should the build process find the source code? ${srcdir}
18035 What operating system and machine description files should Emacs use?
18036 \`${opsysfile}' and \`${machfile}'
18037 What compiler should emacs be built with? ${CC} ${CFLAGS}
18038 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
18039 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
18040 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
18041 What window system should Emacs use? ${window_system}
18042 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
18044 if test -n "${x_includes}"; then
18045 echo " Where do we find X Windows header files? ${x_includes}"
18047 echo " Where do we find X Windows header files? Standard dirs"
18049 if test -n "${x_libraries}"; then
18050 echo " Where do we find X Windows libraries? ${x_libraries}"
18052 echo " Where do we find X Windows libraries? Standard dirs"
18055 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
18056 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
18057 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
18058 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
18059 echo " Does Emacs use -lungif? ${HAVE_GIF}"
18060 echo " Does Emacs use -lpng? ${HAVE_PNG}"
18061 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
18064 # Remove any trailing slashes in these variables.
18065 test "${prefix}" != NONE
&&
18066 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
18067 test "${exec_prefix}" != NONE
&&
18068 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
18070 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
18071 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
18072 ## from Makefile.c can correctly provide the arg `-traditional' to the
18075 cat >conftest.
$ac_ext <<_ACEOF
18076 #line $LINENO "configure"
18079 cat confdefs.h
>>conftest.
$ac_ext
18080 cat >>conftest.
$ac_ext <<_ACEOF
18081 /* end confdefs.h. */
18084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18085 $EGREP "yes..yes" >/dev
/null
2>&1; then
18086 CPP_NEED_TRADITIONAL
=no
18088 CPP_NEED_TRADITIONAL
=yes
18093 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"
18094 ac_config_commands
="$ac_config_commands default"
18095 cat >confcache
<<\_ACEOF
18096 # This file is a shell script that caches the results of configure
18097 # tests run on this system so they can be shared between configure
18098 # scripts and configure runs, see configure's option --config-cache.
18099 # It is not useful on other systems. If it contains results you don't
18100 # want to keep, you may remove or edit it.
18102 # config.status only pays attention to the cache file if you give it
18103 # the --recheck option to rerun configure.
18105 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18106 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18107 # following values.
18111 # The following way of writing the cache mishandles newlines in values,
18112 # but we know of no workaround that is simple, portable, and efficient.
18113 # So, don't put newlines in cache variables' values.
18114 # Ultrix sh set writes to stderr and can't be redirected directly,
18115 # and sets the high bit in the cache file unless we assign to the vars.
18118 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18120 # `set' does not quote correctly, so add quotes (double-quote
18121 # substitution turns \\\\ into \\, and sed turns \\ into \).
18124 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18127 # `set' quotes correctly as required by POSIX, so do not add quotes.
18129 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18136 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18138 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18140 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
18141 if test -w $cache_file; then
18142 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18143 cat confcache
>$cache_file
18145 echo "not updating unwritable cache $cache_file"
18150 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
18151 # Let make expand exec_prefix.
18152 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
18154 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18155 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18156 # trailing colons and then remove the whole line if VPATH becomes empty
18157 # (actually we leave an empty line to preserve line numbers).
18158 if test "x$srcdir" = x.
; then
18159 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
18160 s/:*\$(srcdir):*/:/;
18161 s/:*\${srcdir}:*/:/;
18163 s/^\([^=]*=[ ]*\):*/\1/;
18169 DEFS
=-DHAVE_CONFIG_H
18173 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
18174 # 1. Remove the extension, and $U if already installed.
18175 ac_i
=`echo "$ac_i" |
18176 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18178 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
18179 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
18181 LIBOBJS
=$ac_libobjs
18183 LTLIBOBJS
=$ac_ltlibobjs
18187 : ${CONFIG_STATUS=./config.status}
18188 ac_clean_files_save
=$ac_clean_files
18189 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
18190 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18191 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18192 cat >$CONFIG_STATUS <<_ACEOF
18194 # Generated by $as_me.
18195 # Run this file to recreate the current configuration.
18196 # Compiler output produced by configure, useful for debugging
18197 # configure, is in config.log if it exists.
18200 ac_cs_recheck=false
18202 SHELL=\${CONFIG_SHELL-$SHELL}
18205 cat >>$CONFIG_STATUS <<\_ACEOF
18206 ## --------------------- ##
18207 ## M4sh Initialization. ##
18208 ## --------------------- ##
18210 # Be Bourne compatible
18211 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18214 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18215 # is contrary to our usage. Disable this feature.
18216 alias -g '${1+"$@"}'='"$@"'
18217 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
18221 # Support unset when possible.
18222 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
18229 # Work around bugs in pre-3.0 UWIN ksh.
18230 $as_unset ENV MAIL MAILPATH
18237 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18238 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18239 LC_TELEPHONE LC_TIME
18241 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18242 eval $as_var=C
; export $as_var
18248 # Required to use basename.
18249 if expr a
: '\(a\)' >/dev
/null
2>&1; then
18255 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
18256 as_basename
=basename
18262 # Name of the executable.
18263 as_me
=`$as_basename "$0" ||
18264 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18265 X"$0" : 'X\(//\)$' \| \
18266 X"$0" : 'X\(/\)$' \| \
18267 . : '\(.\)' 2>/dev/null ||
18269 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18270 /^X\/\(\/\/\)$/{ s//\1/; q; }
18271 /^X\/\(\/\).*/{ s//\1/; q; }
18275 # PATH needs CR, and LINENO needs CR and PATH.
18276 # Avoid depending upon Character Ranges.
18277 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18278 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18279 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18280 as_cr_digits
='0123456789'
18281 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18283 # The user is always right.
18284 if test "${PATH_SEPARATOR+set}" != set; then
18285 echo "#! /bin/sh" >conf$$.sh
18286 echo "exit 0" >>conf$$.sh
18288 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
18297 as_lineno_1
=$LINENO
18298 as_lineno_2
=$LINENO
18299 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
18300 test "x$as_lineno_1" != "x$as_lineno_2" &&
18301 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
18302 # Find who we are. Look in the path if we contain no path at all
18305 *[\\/]* ) as_myself
=$0 ;;
18306 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18307 for as_dir
in $PATH
18310 test -z "$as_dir" && as_dir
=.
18311 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
18316 # We did not find ourselves, most probably we were run as `sh COMMAND'
18317 # in which case we are not to be found in the path.
18318 if test "x$as_myself" = x
; then
18321 if test ! -f "$as_myself"; then
18322 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18323 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18324 { (exit 1); exit 1; }; }
18326 case $CONFIG_SHELL in
18328 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18329 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
18332 test -z "$as_dir" && as_dir
=.
18333 for as_base
in sh bash ksh sh5
; do
18336 if ("$as_dir/$as_base" -c '
18337 as_lineno_1=$LINENO
18338 as_lineno_2=$LINENO
18339 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18340 test "x$as_lineno_1" != "x$as_lineno_2" &&
18341 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
18342 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
18343 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
18344 CONFIG_SHELL
=$as_dir/$as_base
18345 export CONFIG_SHELL
18346 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18354 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18355 # uniformly replaced by the line number. The first 'sed' inserts a
18356 # line-number line before each line; the second 'sed' does the real
18357 # work. The second script uses 'N' to pair each line-number line
18358 # with the numbered line, and appends trailing '-' during
18359 # substitution so that $LINENO is not a special case at line end.
18360 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18361 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18362 sed '=' <$as_myself |
18367 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18370 s,^['$as_cr_digits']*\n,,
18371 ' >$as_me.lineno
&&
18372 chmod +x
$as_me.lineno ||
18373 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18374 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18375 { (exit 1); exit 1; }; }
18377 # Don't try to exec as it changes $[0], causing all sort of problems
18378 # (the dirname of $[0] is not the place where we might find the
18379 # original and so on. Autoconf is especially sensible to this).
18381 # Exit status is that of the last command.
18386 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18387 *c
*,-n*) ECHO_N
= ECHO_C
='
18389 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
18390 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
18393 if expr a
: '\(a\)' >/dev
/null
2>&1; then
18399 rm -f conf$$ conf$$.exe conf$$.
file
18401 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18402 # We could just check for DJGPP; but this test a) works b) is more generic
18403 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18404 if test -f conf$$.exe
; then
18405 # Don't use ln at all; we don't have any links
18410 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18415 rm -f conf$$ conf$$.exe conf$$.
file
18417 if mkdir
-p .
2>/dev
/null
; then
18423 as_executable_p
="test -f"
18425 # Sed expression to map a string onto a valid CPP name.
18426 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18428 # Sed expression to map a string onto a valid variable name.
18429 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18433 # We need space, tab and new line, in precisely that order.
18443 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18444 # report actual input values of CONFIG_FILES etc. instead of their
18445 # values after options handling. Logging --version etc. is OK.
18449 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18450 ## Running $as_me. ##
18455 This file was extended by $as_me, which was
18456 generated by GNU Autoconf 2.57. Invocation command line was
18458 CONFIG_FILES = $CONFIG_FILES
18459 CONFIG_HEADERS = $CONFIG_HEADERS
18460 CONFIG_LINKS = $CONFIG_LINKS
18461 CONFIG_COMMANDS = $CONFIG_COMMANDS
18465 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18469 # Files that config.status was made for.
18470 if test -n "$ac_config_files"; then
18471 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18474 if test -n "$ac_config_headers"; then
18475 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18478 if test -n "$ac_config_links"; then
18479 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18482 if test -n "$ac_config_commands"; then
18483 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18486 cat >>$CONFIG_STATUS <<\_ACEOF
18489 \`$as_me' instantiates files from templates according to the
18490 current configuration.
18492 Usage: $0 [OPTIONS] [FILE]...
18494 -h, --help print this help, then exit
18495 -V, --version print version number, then exit
18496 -q, --quiet do not print progress messages
18497 -d, --debug don't remove temporary files
18498 --recheck update $as_me by reconfiguring in the same conditions
18499 --file=FILE[:TEMPLATE]
18500 instantiate the configuration file FILE
18501 --header=FILE[:TEMPLATE]
18502 instantiate the configuration header FILE
18504 Configuration files:
18507 Configuration headers:
18510 Configuration commands:
18513 Report bugs to <bug-autoconf@gnu.org>."
18516 cat >>$CONFIG_STATUS <<_ACEOF
18519 configured by $0, generated by GNU Autoconf 2.57,
18520 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18522 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18523 Free Software Foundation, Inc.
18524 This config.status script is free software; the Free Software Foundation
18525 gives unlimited permission to copy, distribute and modify it."
18530 cat >>$CONFIG_STATUS <<\_ACEOF
18531 # If no file are specified by the user, then we need to provide default
18532 # value. By we need to know if files were specified by the user.
18538 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
18539 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
18547 *) # This is not an option, so the user has probably given explicit
18550 ac_need_defaults
=false
;;
18554 # Handling of the options.
18556 cat >>$CONFIG_STATUS <<\_ACEOF
18557 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18559 --version |
--vers* |
-V )
18560 echo "$ac_cs_version"; exit 0 ;;
18562 # Conflict between --help and --header
18563 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18564 Try \`$0 --help' for more information." >&5
18565 echo "$as_me: error: ambiguous option: $1
18566 Try \`$0 --help' for more information." >&2;}
18567 { (exit 1); exit 1; }; };;
18568 --help |
--hel |
-h )
18569 echo "$ac_cs_usage"; exit 0 ;;
18570 --debug |
--d* |
-d )
18572 --file |
--fil |
--fi |
--f )
18574 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
18575 ac_need_defaults
=false
;;
18576 --header |
--heade |
--head |
--hea )
18578 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
18579 ac_need_defaults
=false
;;
18580 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18581 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18584 # This is an error.
18585 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18586 Try \`$0 --help' for more information." >&5
18587 echo "$as_me: error: unrecognized option: $1
18588 Try \`$0 --help' for more information." >&2;}
18589 { (exit 1); exit 1; }; } ;;
18591 *) ac_config_targets
="$ac_config_targets $1" ;;
18597 ac_configure_extra_args
=
18599 if $ac_cs_silent; then
18601 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18605 cat >>$CONFIG_STATUS <<_ACEOF
18606 if \$ac_cs_recheck; then
18607 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18608 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18613 cat >>$CONFIG_STATUS <<_ACEOF
18615 # INIT-COMMANDS section.
18618 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
18624 cat >>$CONFIG_STATUS <<\_ACEOF
18625 for ac_config_target
in $ac_config_targets
18627 case "$ac_config_target" in
18628 # Handling of arguments.
18629 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18630 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
18631 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
18632 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
18633 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
18634 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
18635 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
18636 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
18637 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
18638 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
18639 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
18640 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18641 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18642 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18643 { (exit 1); exit 1; }; };;
18647 # If the user did not use the arguments to specify the items to instantiate,
18648 # then the envvar interface is used. Set only those that are not.
18649 # We use the long form for the default assignment because of an extremely
18650 # bizarre bug on SunOS 4.1.3.
18651 if $ac_need_defaults; then
18652 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18653 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18654 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18657 # Have a temporary directory for convenience. Make it in the build tree
18658 # simply because there is no reason to put it here, and in addition,
18659 # creating and moving files from /tmp can sometimes cause problems.
18660 # Create a temporary directory, and hook for its removal unless debugging.
18663 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18664 trap '{ (exit 1); exit 1; }' 1 2 13 15
18667 # Create a (secure) tmp directory for tmp files.
18670 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18671 test -n "$tmp" && test -d "$tmp"
18674 tmp
=.
/confstat$$
-$RANDOM
18675 (umask 077 && mkdir
$tmp)
18678 echo "$me: cannot create a temporary directory in ." >&2
18679 { (exit 1); exit 1; }
18684 cat >>$CONFIG_STATUS <<_ACEOF
18687 # CONFIG_FILES section.
18690 # No need to generate the scripts if there are no CONFIG_FILES.
18691 # This happens for instance when ./config.status config.h
18692 if test -n "\$CONFIG_FILES"; then
18693 # Protect against being on the right side of a sed subst in config.status.
18694 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18695 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18696 s,@SHELL@,$SHELL,;t t
18697 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18698 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18699 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18700 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18701 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18702 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18703 s,@exec_prefix@,$exec_prefix,;t t
18704 s,@prefix@,$prefix,;t t
18705 s,@program_transform_name@,$program_transform_name,;t t
18706 s,@bindir@,$bindir,;t t
18707 s,@sbindir@,$sbindir,;t t
18708 s,@libexecdir@,$libexecdir,;t t
18709 s,@datadir@,$datadir,;t t
18710 s,@sysconfdir@,$sysconfdir,;t t
18711 s,@sharedstatedir@,$sharedstatedir,;t t
18712 s,@localstatedir@,$localstatedir,;t t
18713 s,@libdir@,$libdir,;t t
18714 s,@includedir@,$includedir,;t t
18715 s,@oldincludedir@,$oldincludedir,;t t
18716 s,@infodir@,$infodir,;t t
18717 s,@mandir@,$mandir,;t t
18718 s,@build_alias@,$build_alias,;t t
18719 s,@host_alias@,$host_alias,;t t
18720 s,@target_alias@,$target_alias,;t t
18721 s,@DEFS@,$DEFS,;t t
18722 s,@ECHO_C@,$ECHO_C,;t t
18723 s,@ECHO_N@,$ECHO_N,;t t
18724 s,@ECHO_T@,$ECHO_T,;t t
18725 s,@LIBS@,$LIBS,;t t
18726 s,@build@,$build,;t t
18727 s,@build_cpu@,$build_cpu,;t t
18728 s,@build_vendor@,$build_vendor,;t t
18729 s,@build_os@,$build_os,;t t
18730 s,@host@,$host,;t t
18731 s,@host_cpu@,$host_cpu,;t t
18732 s,@host_vendor@,$host_vendor,;t t
18733 s,@host_os@,$host_os,;t t
18735 s,@CFLAGS@,$CFLAGS,;t t
18736 s,@LDFLAGS@,$LDFLAGS,;t t
18737 s,@CPPFLAGS@,$CPPFLAGS,;t t
18738 s,@ac_ct_CC@,$ac_ct_CC,;t t
18739 s,@EXEEXT@,$EXEEXT,;t t
18740 s,@OBJEXT@,$OBJEXT,;t t
18741 s,@LN_S@,$LN_S,;t t
18743 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18744 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18745 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18746 s,@RANLIB@,$RANLIB,;t t
18747 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18748 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
18749 s,@EGREP@,$EGREP,;t t
18750 s,@LIBSOUND@,$LIBSOUND,;t t
18751 s,@SET_MAKE@,$SET_MAKE,;t t
18752 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
18753 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
18754 s,@GTK_LIBS@,$GTK_LIBS,;t t
18755 s,@ALLOCA@,$ALLOCA,;t t
18756 s,@liblockfile@,$liblockfile,;t t
18757 s,@LIBOBJS@,$LIBOBJS,;t t
18758 s,@NEED_SETGID@,$NEED_SETGID,;t t
18759 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
18760 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
18761 s,@version@,$version,;t t
18762 s,@configuration@,$configuration,;t t
18763 s,@canonical@,$canonical,;t t
18764 s,@srcdir@,$srcdir,;t t
18765 s,@lispdir@,$lispdir,;t t
18766 s,@locallisppath@,$locallisppath,;t t
18767 s,@lisppath@,$lisppath,;t t
18768 s,@x_default_search_path@,$x_default_search_path,;t t
18769 s,@etcdir@,$etcdir,;t t
18770 s,@archlibdir@,$archlibdir,;t t
18771 s,@docdir@,$docdir,;t t
18772 s,@bitmapdir@,$bitmapdir,;t t
18773 s,@gamedir@,$gamedir,;t t
18774 s,@gameuser@,$gameuser,;t t
18775 s,@c_switch_system@,$c_switch_system,;t t
18776 s,@c_switch_machine@,$c_switch_machine,;t t
18777 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
18778 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
18779 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
18780 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
18781 s,@machfile@,$machfile,;t t
18782 s,@opsysfile@,$opsysfile,;t t
18783 s,@carbon_appdir@,$carbon_appdir,;t t
18784 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18789 cat >>$CONFIG_STATUS <<\_ACEOF
18790 # Split the substitutions into bite-sized pieces for seds with
18791 # small command number limits, like on Digital OSF/1 and HP-UX.
18792 ac_max_sed_lines
=48
18793 ac_sed_frag
=1 # Number of current file.
18794 ac_beg
=1 # First line for current file.
18795 ac_end
=$ac_max_sed_lines # Line after last line for current file.
18798 while $ac_more_lines; do
18799 if test $ac_beg -gt 1; then
18800 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
18802 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
18804 if test ! -s $tmp/subs.frag
; then
18805 ac_more_lines
=false
18807 # The purpose of the label and of the branching condition is to
18808 # speed up the sed processing (if there are no `@' at all, there
18809 # is no need to browse any of the substitutions).
18810 # These are the two extra sed commands mentioned above.
18812 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
18813 if test -z "$ac_sed_cmds"; then
18814 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
18816 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18818 ac_sed_frag
=`expr $ac_sed_frag + 1`
18820 ac_end
=`expr $ac_end + $ac_max_sed_lines`
18823 if test -z "$ac_sed_cmds"; then
18826 fi # test -n "$CONFIG_FILES"
18829 cat >>$CONFIG_STATUS <<\_ACEOF
18830 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
18831 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18833 - |
*:- |
*:-:* ) # input from stdin
18835 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18836 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18837 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18838 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18839 * ) ac_file_in
=$ac_file.
in ;;
18842 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18843 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
18844 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18845 X"$ac_file" : 'X\(//\)[^/]' \| \
18846 X"$ac_file" : 'X\(//\)$' \| \
18847 X"$ac_file" : 'X\(/\)' \| \
18848 . : '\(.\)' 2>/dev/null ||
18850 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18851 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18852 /^X\(\/\/\)$/{ s//\1/; q; }
18853 /^X\(\/\).*/{ s//\1/; q; }
18855 { if $as_mkdir_p; then
18860 while test ! -d "$as_dir"; do
18861 as_dirs
="$as_dir $as_dirs"
18862 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
18863 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18864 X"$as_dir" : 'X\(//\)[^/]' \| \
18865 X"$as_dir" : 'X\(//\)$' \| \
18866 X"$as_dir" : 'X\(/\)' \| \
18867 . : '\(.\)' 2>/dev/null ||
18869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18870 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18871 /^X\(\/\/\)$/{ s//\1/; q; }
18872 /^X\(\/\).*/{ s//\1/; q; }
18875 test ! -n "$as_dirs" || mkdir
$as_dirs
18876 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18877 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18878 { (exit 1); exit 1; }; }; }
18882 if test "$ac_dir" != .
; then
18883 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18884 # A "../" for each directory in $ac_dir_suffix.
18885 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18887 ac_dir_suffix
= ac_top_builddir
=
18891 .
) # No --srcdir option. We are building in place.
18893 if test -z "$ac_top_builddir"; then
18896 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
18898 [\\/]* | ?
:[\\/]* ) # Absolute path.
18899 ac_srcdir
=$srcdir$ac_dir_suffix;
18900 ac_top_srcdir
=$srcdir ;;
18901 *) # Relative path.
18902 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
18903 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
18905 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18907 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
18908 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18909 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18910 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18914 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18915 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
18918 if test x
"$ac_file" != x-
; then
18919 { echo "$as_me:$LINENO: creating $ac_file" >&5
18920 echo "$as_me: creating $ac_file" >&6;}
18923 # Let's still pretend it is `configure' which instantiates (i.e., don't
18924 # use $as_me), people would be surprised to read:
18925 # /* config.h. Generated by config.status. */
18926 if test x
"$ac_file" = x-
; then
18929 configure_input
="$ac_file. "
18931 configure_input
=$configure_input"Generated from `echo $ac_file_in |
18932 sed 's,.*/,,'` by configure."
18934 # First look for the input files in the build tree, otherwise in the
18936 ac_file_inputs
=`IFS=:
18937 for f in $ac_file_in; do
18939 -) echo $tmp/stdin ;;
18941 # Absolute (can't be DOS-style, as IFS=:)
18942 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18943 echo "$as_me: error: cannot find input file: $f" >&2;}
18944 { (exit 1); exit 1; }; }
18947 if test -f "$f"; then
18950 elif test -f "$srcdir/$f"; then
18955 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18956 echo "$as_me: error: cannot find input file: $f" >&2;}
18957 { (exit 1); exit 1; }; }
18960 done` ||
{ (exit 1); exit 1; }
18962 cat >>$CONFIG_STATUS <<_ACEOF
18966 cat >>$CONFIG_STATUS <<\_ACEOF
18968 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18969 s
,@configure_input@
,$configure_input,;t t
18970 s
,@srcdir@
,$ac_srcdir,;t t
18971 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
18972 s
,@top_srcdir@
,$ac_top_srcdir,;t t
18973 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
18974 s
,@builddir@
,$ac_builddir,;t t
18975 s
,@abs_builddir@
,$ac_abs_builddir,;t t
18976 s
,@top_builddir@
,$ac_top_builddir,;t t
18977 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
18978 s
,@INSTALL@
,$ac_INSTALL,;t t
18979 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18981 if test x"$ac_file" != x-; then
18982 mv $tmp/out $ac_file
18990 cat >>$CONFIG_STATUS <<\_ACEOF
18993 # CONFIG_HEADER section.
18996 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
18997 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18999 # ac_d sets the value in "#define NAME VALUE" lines.
19000 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19001 ac_dB
='[ ].*$,\1#\2'
19004 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19005 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19006 ac_uB
='$,\1#\2define\3'
19010 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
19011 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19013 - |
*:- |
*:-:* ) # input from stdin
19015 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19016 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19017 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19018 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19019 * ) ac_file_in
=$ac_file.
in ;;
19022 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
19023 echo "$as_me: creating $ac_file" >&6;}
19025 # First look for the input files in the build tree, otherwise in the
19027 ac_file_inputs
=`IFS=:
19028 for f in $ac_file_in; do
19030 -) echo $tmp/stdin ;;
19032 # Absolute (can't be DOS-style, as IFS=:)
19033 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19034 echo "$as_me: error: cannot find input file: $f" >&2;}
19035 { (exit 1); exit 1; }; }
19038 if test -f "$f"; then
19041 elif test -f "$srcdir/$f"; then
19046 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19047 echo "$as_me: error: cannot find input file: $f" >&2;}
19048 { (exit 1); exit 1; }; }
19051 done` ||
{ (exit 1); exit 1; }
19052 # Remove the trailing spaces.
19053 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19057 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19058 # `conftest.undefs', that substitutes the proper values into
19059 # config.h.in to produce config.h. The first handles `#define'
19060 # templates, and the second `#undef' templates.
19061 # And first: Protect against being on the right side of a sed subst in
19062 # config.status. Protect against being in an unquoted here document
19063 # in config.status.
19064 rm -f conftest.defines conftest.undefs
19065 # Using a here document instead of a string reduces the quoting nightmare.
19066 # Putting comments in sed scripts is not portable.
19068 # `end' is used to avoid that the second main sed command (meant for
19069 # 0-ary CPP macros) applies to n-ary macro definitions.
19070 # See the Autoconf documentation for `clear'.
19071 cat >confdef2sed.
sed <<\_ACEOF
19076 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19078 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19081 # If some macros were called several times there might be several times
19082 # the same #defines, which is useless. Nevertheless, we may not want to
19083 # sort them, since we want the *last* AC-DEFINE to be honored.
19084 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19085 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19086 rm -f confdef2sed.sed
19088 # This sed command replaces #undef with comments. This is necessary, for
19089 # example, in the case of _POSIX_SOURCE, which is predefined and required
19090 # on some systems where configure will not decide to define it.
19091 cat >>conftest.undefs <<\_ACEOF
19092 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19095 # Break up conftest.defines because some shells have a limit on the size
19096 # of here documents, and old seds have small limits too (100 cmds).
19097 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19098 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19099 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19100 echo ' :' >>$CONFIG_STATUS
19101 rm -f conftest.tail
19102 while grep . conftest.defines >/dev/null
19104 # Write a limited-size here document to $tmp/defines.sed.
19105 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19106 # Speed up: don't consider the non `#define' lines.
19107 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19108 # Work around the forget-to-reset-the-flag bug.
19109 echo 't clr' >>$CONFIG_STATUS
19110 echo ': clr' >>$CONFIG_STATUS
19111 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
19113 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19115 mv $tmp/out $tmp/in
19117 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
19118 rm -f conftest.defines
19119 mv conftest.
tail conftest.defines
19121 rm -f conftest.defines
19122 echo ' fi # grep' >>$CONFIG_STATUS
19123 echo >>$CONFIG_STATUS
19125 # Break up conftest.undefs because some shells have a limit on the size
19126 # of here documents, and old seds have small limits too (100 cmds).
19127 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19128 rm -f conftest.
tail
19129 while grep . conftest.undefs
>/dev
/null
19131 # Write a limited-size here document to $tmp/undefs.sed.
19132 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19133 # Speed up: don't consider the non
`#undef'
19134 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19135 # Work around the forget-to-reset-the-flag bug.
19136 echo 't clr' >>$CONFIG_STATUS
19137 echo ': clr' >>$CONFIG_STATUS
19138 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19140 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19142 mv $tmp/out $tmp/in
19144 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19145 rm -f conftest.undefs
19146 mv conftest.tail conftest.undefs
19148 rm -f conftest.undefs
19150 cat >>$CONFIG_STATUS <<\_ACEOF
19151 # Let's still pretend it is `configure
' which instantiates (i.e., don't
19152 # use $as_me), people would be surprised to read:
19153 # /* config.h. Generated by config.status. */
19154 if test x
"$ac_file" = x-
; then
19155 echo "/* Generated by configure. */" >$tmp/config.h
19157 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19159 cat $tmp/in >>$tmp/config.h
19161 if test x
"$ac_file" != x-
; then
19162 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
19163 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19164 echo "$as_me: $ac_file is unchanged" >&6;}
19166 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
19167 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19168 X"$ac_file" : 'X\(//\)[^/]' \| \
19169 X"$ac_file" : 'X\(//\)$' \| \
19170 X"$ac_file" : 'X\(/\)' \| \
19171 . : '\(.\)' 2>/dev/null ||
19173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19174 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19175 /^X\(\/\/\)$/{ s//\1/; q; }
19176 /^X\(\/\).*/{ s//\1/; q; }
19178 { if $as_mkdir_p; then
19183 while test ! -d "$as_dir"; do
19184 as_dirs
="$as_dir $as_dirs"
19185 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
19186 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19187 X"$as_dir" : 'X\(//\)[^/]' \| \
19188 X"$as_dir" : 'X\(//\)$' \| \
19189 X"$as_dir" : 'X\(/\)' \| \
19190 . : '\(.\)' 2>/dev/null ||
19192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19193 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19194 /^X\(\/\/\)$/{ s//\1/; q; }
19195 /^X\(\/\).*/{ s//\1/; q; }
19198 test ! -n "$as_dirs" || mkdir
$as_dirs
19199 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19200 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19201 { (exit 1); exit 1; }; }; }
19204 mv $tmp/config.h
$ac_file
19208 rm -f $tmp/config.h
19212 cat >>$CONFIG_STATUS <<\_ACEOF
19215 # CONFIG_COMMANDS section.
19217 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
19218 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
19219 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19220 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
19221 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19222 X"$ac_dest" : 'X\(//\)[^/]' \| \
19223 X"$ac_dest" : 'X\(//\)$' \| \
19224 X"$ac_dest" : 'X\(/\)' \| \
19225 . : '\(.\)' 2>/dev/null ||
19227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19228 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19229 /^X\(\/\/\)$/{ s//\1/; q; }
19230 /^X\(\/\).*/{ s//\1/; q; }
19234 if test "$ac_dir" != .
; then
19235 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19236 # A "../" for each directory in $ac_dir_suffix.
19237 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19239 ac_dir_suffix
= ac_top_builddir
=
19243 .
) # No --srcdir option. We are building in place.
19245 if test -z "$ac_top_builddir"; then
19248 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
19250 [\\/]* | ?
:[\\/]* ) # Absolute path.
19251 ac_srcdir
=$srcdir$ac_dir_suffix;
19252 ac_top_srcdir
=$srcdir ;;
19253 *) # Relative path.
19254 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
19255 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
19257 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19259 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
19260 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19261 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19262 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19265 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19266 echo "$as_me: executing $ac_dest commands" >&6;}
19270 ### Make the necessary directories, if they don't exist.
19271 for dir
in etc lisp
; do
19272 test -d ${dir} || mkdir
${dir}
19275 # Build src/Makefile from ${srcdir}/src/Makefile.c
19276 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
19277 # This must be done after src/config.h is built, since we rely on that file.
19279 # Now get this: Some word that is part of the ${srcdir} directory name
19280 # or the ${configuration} value might, just might, happen to be an
19281 # identifier like `sun4' or `i386' or something, and be predefined by
19282 # the C preprocessor to some helpful value like 1, or maybe the empty
19283 # string. Needless to say consequent macro substitutions are less
19284 # than conducive to the makefile finding the correct directory.
19285 undefs
="`echo $top_srcdir $configuration $canonical |
19286 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
19287 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
19290 echo creating src
/epaths.h
19291 ${MAKE-make} epaths-force
19293 # As of 2000-11-19, newest development versions of GNU cpp preprocess
19294 # `..' to `. .' unless invoked with -traditional
19296 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
19297 CPPFLAGS
="$CPPFLAGS -traditional"
19300 echo creating lib-src
/Makefile
19302 rm -f junk.c junk1.c junk2.c
19303 sed -e '/start of cpp stuff/q' \
19304 < Makefile.c
> junk1.c
19305 sed -e '1,/start of cpp stuff/d'\
19306 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19307 < Makefile.c
> junk.c
19308 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
19309 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19310 cat junk1.c junk2.c
> Makefile.new
19311 rm -f junk.c junk1.c junk2.c
19312 chmod 444 Makefile.new
19313 mv -f Makefile.new Makefile
19316 echo creating src
/Makefile
19318 rm -f junk.c junk1.c junk2.c
19319 sed -e '/start of cpp stuff/q' \
19320 < Makefile.c
> junk1.c
19321 sed -e '1,/start of cpp stuff/d'\
19322 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19323 < Makefile.c
> junk.c
19324 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
19325 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19326 cat junk1.c junk2.c
> Makefile.new
19327 rm -f junk.c junk1.c junk2.c
19328 chmod 444 Makefile.new
19329 mv -f Makefile.new Makefile
19332 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
19333 echo creating src
/.gdbinit
19334 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
19337 # This is how we know whether to re-run configure in certain cases.
19338 touch src
/config.stamp
19345 cat >>$CONFIG_STATUS <<\_ACEOF
19347 { (exit 0); exit 0; }
19349 chmod +x
$CONFIG_STATUS
19350 ac_clean_files
=$ac_clean_files_save
19353 # configure is writing to config.log, and then calls config.status.
19354 # config.status does its own redirection, appending to config.log.
19355 # Unfortunately, on DOS this fails, as config.log is still kept open
19356 # by configure, so config.status won't be able to write to it; its
19357 # output is simply discarded. So we exec the FD to /dev/null,
19358 # effectively closing config.log, so it can be properly (re)opened and
19359 # appended to by config.status. When coming back to configure, we
19360 # need to make the FD available again.
19361 if test "$no_create" != yes; then
19363 ac_config_status_args
=
19364 test "$silent" = yes &&
19365 ac_config_status_args
="$ac_config_status_args --quiet"
19367 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19369 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19370 # would make configure fail if this is the last instruction.
19371 $ac_cs_success ||
{ (exit 1); exit 1; }