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
2014 machine
=hp800 opsys
=hpux10
2016 hppa
*-hp-hpux1[1-9]* )
2017 machine
=hp800 opsys
=hpux11
2020 hppa
*-*-linux-gnu* )
2021 machine
=hp800 opsys
=gnu-linux
2024 ## HP 9000 series 700 and 800, running HP/UX
2026 ## Cross-compilation? Nah!
2027 case "`uname -r`" in
2028 ## Someone's system reports A.B8.05 for this.
2029 ## I wonder what other possibilities there are.
2030 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2031 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2032 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2033 *) machine
=hp800 opsys
=hpux10
;;
2037 machine
=hp800 opsys
=nextstep
2042 machine
=orion opsys
=bsd4-2
2044 clipper-orion-bsd
* )
2045 machine
=orion105 opsys
=bsd4-2
2049 i
[3456]86-ibm-aix1.1
* )
2050 machine
=ibmps2-aix opsys
=usg5-2-2
2052 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2053 machine
=ibmps2-aix opsys
=usg5-3
2056 machine
=ibm370aix opsys
=usg5-3
2059 machine
=ibms390 opsys
=gnu-linux
2061 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2062 machine
=ibmrs6000 opsys
=aix3-1
2064 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2065 machine
=ibmrs6000 opsys
=aix3-2-5
2067 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2068 machine
=ibmrs6000 opsys
=aix4-1
2070 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2071 machine
=ibmrs6000 opsys
=aix4-2
2073 rs6000-ibm-aix5.1
* | powerpc-ibm-aix5.1
* )
2074 machine
=ibmrs6000 opsys
=aix4-2
2076 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2077 machine
=ibmrs6000 opsys
=aix4
2079 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2080 machine
=ibmrs6000 opsys
=aix4-1
2082 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2083 machine
=ibmrs6000 opsys
=aix3-2
2086 machine
=ibmrt opsys
=bsd4-3
2089 machine
=ibmrt opsys
=bsd4-2
2092 machine
=ibmrt opsys
=bsd4-3
2095 machine
=ibmrt opsys
=bsd4-2
2098 machine
=ibmrt opsys
=bsd4-3
2101 machine
=ibmrt opsys
=bsd4-3
2104 machine
=ibmrt-aix opsys
=usg5-2-2
2107 ## Integrated Solutions `Optimum V'
2109 machine
=isi-ov opsys
=bsd4-2
2112 machine
=isi-ov opsys
=bsd4-3
2115 ## Intel 386 machines where we do care about the manufacturer
2116 i
[3456]86-intsys-sysv* )
2117 machine
=is386 opsys
=usg5-2-2
2121 i
[3456]86-prime-sysv* )
2122 machine
=i386 opsys
=usg5-3
2125 ## Sequent Symmetry running Dynix
2126 i
[3456]86-sequent-bsd* )
2127 machine
=symmetry opsys
=bsd4-3
2130 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2131 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2132 machine
=sequent-ptx opsys
=ptx4
2133 NON_GNU_CPP
=/lib
/cpp
2136 ## Sequent Symmetry running DYNIX/ptx
2137 ## Use the old cpp rather than the newer ANSI one.
2138 i
[3456]86-sequent-ptx* )
2139 machine
=sequent-ptx opsys
=ptx
2140 NON_GNU_CPP
="/lib/cpp"
2143 ## ncr machine running svr4.3.
2144 i
[3456]86-ncr-sysv4.3
)
2145 machine
=ncr386 opsys
=usg5-4-3
2148 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2149 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2150 i
[3456]86-ncr-sysv* )
2151 machine
=ncr386 opsys
=usg5-4-2
2154 ## Intel Paragon OSF/1
2156 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2161 machine
=i860 opsys
=usg5-4
2162 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2163 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2166 ## Macintosh PowerPC
2167 powerpc
*-*-linux-gnu* )
2168 machine
=macppc opsys
=gnu-linux
2171 ## Masscomp machines
2172 m68
*-masscomp-rtu* )
2173 machine
=masscomp opsys
=rtu
2176 ## Megatest machines
2177 m68
*-megatest-bsd* )
2178 machine
=mega68 opsys
=bsd4-2
2181 ## Workstations sold by MIPS
2182 ## This is not necessarily all workstations using the MIPS processor -
2183 ## Irises are produced by SGI, and DECstations by DEC.
2185 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2186 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2187 ## it gives for choosing between the alternatives seems to be "Use
2188 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2189 ## the BSD world." I'll assume that these are instructions for
2190 ## handling two odd situations, and that every other situation
2191 ## should use mips.h and usg5-2-2, they being listed first.
2194 ## Fall through to the general code at the bottom to decide on the OS.
2196 mips-mips-riscos4
* )
2197 machine
=mips4 opsys
=bsd4-3
2198 NON_GNU_CC
="cc -systype bsd43"
2199 NON_GNU_CPP
="cc -systype bsd43 -E"
2201 mips-mips-riscos5
* )
2202 machine
=mips4 opsys
=riscos5
2203 NON_GNU_CC
="cc -systype bsd43"
2204 NON_GNU_CPP
="cc -systype bsd43 -E"
2207 machine
=mips opsys
=bsd4-3
2210 machine
=mips opsys
=usg5-2-2
2214 m68
*-next-* | m68k-
*-nextstep* )
2215 machine
=m68k opsys
=nextstep
2218 ## The complete machine from National Semiconductor
2220 machine
=ns32000 opsys
=usg5-2
2224 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2225 machine
=tower32 opsys
=usg5-2-2
2227 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2228 machine
=tower32v3 opsys
=usg5-3
2233 machine
=ews4800 opsys
=ux4800
2236 ## Nixdorf Targon 31
2237 m68
*-nixdorf-sysv* )
2238 machine
=targon31 opsys
=usg5-2-2
2243 machine
=nu opsys
=usg5-2
2248 machine
=plexus opsys
=usg5-2
2252 ## I don't really have any idea what sort of processor the Pyramid has,
2253 ## so I'm assuming it is its own architecture.
2254 pyramid-pyramid-bsd
* )
2255 machine
=pyramid opsys
=bsd4-2
2259 ns32k-sequent-bsd4.2
* )
2260 machine
=sequent opsys
=bsd4-2
2262 ns32k-sequent-bsd4.3
* )
2263 machine
=sequent opsys
=bsd4-3
2267 mips-siemens-sysv
* | mips-sni-sysv
*)
2268 machine
=mips-siemens opsys
=usg5-4
2269 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2270 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2273 ## Silicon Graphics machines
2274 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2276 machine
=irist opsys
=iris3-5
2278 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2279 machine
=irist opsys
=iris3-6
2283 machine
=iris4d opsys
=irix3-3
2286 machine
=iris4d opsys
=irix4-0
2289 machine
=iris4d opsys
=irix6-5
2290 # Without defining _LANGUAGE_C, things get masked out in the headers
2291 # so that, for instance, grepping for `free' in stdlib.h fails and
2292 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2293 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2294 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2297 machine
=iris4d opsys
=irix6-0
2298 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2299 # but presumably it does no harm.
2300 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2301 # -32 probably isn't necessary in later v.6s -- anyone know which?
2302 NON_GCC_TEST_OPTIONS
=-32
2304 mips-sgi-irix5.
[01]* )
2305 machine
=iris4d opsys
=irix5-0
2307 mips-sgi-irix5
* | mips-sgi-irix
* )
2308 machine
=iris4d opsys
=irix5-2
2313 machine
=news opsys
=bsd4-2
2316 machine
=news opsys
=bsd4-3
2318 m68
*-sony-newsos3* | m68
*-sony-news3*)
2319 machine
=news opsys
=bsd4-3
2321 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2322 machine
=news-risc opsys
=bsd4-3
2324 mips-sony-newsos6
* )
2325 machine
=news-r6 opsys
=newsos6
2328 machine
=news-risc opsys
=newsos5
2333 machine
=stride opsys
=usg5-2
2337 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2338 machine
=sparc opsys
=gnu-linux
2341 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2342 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2343 | rs6000-
*-solaris2*)
2344 case "${canonical}" in
2345 m68
*-sunos1* ) machine
=sun1
;;
2346 m68
*-sunos2* ) machine
=sun2
;;
2347 m68
* ) machine
=sun3
;;
2348 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2349 i
[3456]86-*-* ) machine
=intel386
;;
2350 powerpcle
* ) machine
=powerpcle
;;
2351 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2352 sparc
* ) machine
=sparc
;;
2355 case "${canonical}" in
2356 ## The Sun386 didn't get past 4.0.
2357 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2358 *-sunos4.0
* ) opsys
=sunos4-0
;;
2359 *-sunos4.1.
[3-9]*noshare
)
2360 ## This name is sunos413 instead of sunos4-1-3
2361 ## to avoid a file name conflict on MSDOS.
2363 NON_GNU_CPP
=/usr
/lib
/cpp
2364 NON_GCC_TEST_OPTIONS
=-Bstatic
2365 GCC_TEST_OPTIONS
=-static
2367 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2369 NON_GNU_CPP
=/usr
/lib
/cpp
2371 *-sunos4* |
*-sunos )
2373 NON_GCC_TEST_OPTIONS
=-Bstatic
2374 GCC_TEST_OPTIONS
=-static
2376 *-sunos5.3
* |
*-solaris2.3
* )
2378 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2380 *-sunos5.4
* |
*-solaris2.4
* )
2382 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2385 *-sunos5.5
* |
*-solaris2.5
* )
2387 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2390 *-sunos5.6
* |
*-solaris2.6
* )
2392 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2395 *-sunos5* |
*-solaris* )
2397 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2401 ## Watch out for a compiler that we know will not work.
2402 case "${canonical}" in
2403 *-solaris* |
*-sunos5* )
2404 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2405 ## /usr/ucb/cc doesn't work;
2406 ## we should find some other compiler that does work.
2414 machine
=sparc opsys
=nextstep
2418 m68
*-tadpole-sysv* )
2419 machine
=tad68k opsys
=usg5-3
2423 tahoe-tahoe-bsd4.2
* )
2424 machine
=tahoe opsys
=bsd4-2
2426 tahoe-tahoe-bsd4.3
* )
2427 machine
=tahoe opsys
=bsd4-3
2430 ## Tandem Integrity S2
2432 machine
=tandem-s2 opsys
=usg5-3
2436 m88k-tektronix-sysv3
* )
2437 machine
=tekxd88 opsys
=usg5-3
2440 ## Tektronix 16000 box (6130?)
2441 ns16k-tektronix-bsd
* )
2442 machine
=ns16000 opsys
=bsd4-2
2445 ## src/m/tek4300.h hints that this is a m68k machine.
2446 m68
*-tektronix-bsd* )
2447 machine
=tek4300 opsys
=bsd4-3
2451 ## We seem to have lost the machine-description file titan.h!
2453 machine
=titan opsys
=usg5-3
2456 ## Ustation E30 (SS5E)
2457 m68
*-unisys-uniplus* )
2458 machine
=ustation opsystem
=unipl5-2
2464 case "${canonical}" in
2465 *-bsd4.1
* ) opsys
=bsd4-1
;;
2466 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2467 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2468 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2469 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2470 *-vms* ) opsys
=vms
;;
2476 ns16k-whitechapel-
* )
2478 ## We don't know what sort of OS runs on these; we'll let the
2479 ## operating system guessing code below try.
2484 machine
=wicat opsys
=usg5-2
2489 machine
=ia64 opsys
=gnu-linux
2492 ## Intel 386 machines where we don't care about the manufacturer
2495 case "${canonical}" in
2496 *-lynxos* ) opsys
=lynxos
;;
2497 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2498 *-isc2.2
* ) opsys
=isc2-2
;;
2499 *-isc4.0
* ) opsys
=isc4-0
;;
2500 *-isc4.
* ) opsys
=isc4-1
2501 GCC_TEST_OPTIONS
=-posix
2502 NON_GCC_TEST_OPTIONS
=-Xp
2504 *-isc* ) opsys
=isc3-0
;;
2505 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2506 *-esix* ) opsys
=esix
;;
2507 *-xenix* ) opsys
=xenix
;;
2508 *-linux-gnu* ) opsys
=gnu-linux
;;
2509 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2510 *-sco3.2v5
* ) opsys
=sco5
2511 NON_GNU_CPP
=/lib
/cpp
2512 # Prevent -belf from being passed to $CPP.
2513 # /lib/cpp does not accept it.
2514 OVERRIDE_CPPFLAGS
=" "
2516 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2517 *-386bsd* ) opsys
=386bsd
;;
2518 *-nextstep* ) opsys
=nextstep
;;
2519 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2523 ## m68k Linux-based GNU system
2525 machine
=m68k opsys
=gnu-linux
2528 ## Mips Linux-based GNU system
2529 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2530 machine
=mips opsys
=gnu-linux
2534 sparc-fujitsu-sysv4
* )
2535 machine
=sparc opsys
=uxpds
2536 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2541 f301-fujitsu-uxpv4.1
)
2542 machine
=f301 opsys
=uxpv
2545 ## Darwin / Mac OS X
2546 powerpc-apple-darwin
* )
2547 machine
=powermac opsys
=darwin
2548 # Define CPP as follows to make autoconf work correctly.
2549 CPP
="cc -E -traditional-cpp"
2552 ## AMD x86-64 Linux-based GNU system
2553 x86_64-
*-linux-gnu* )
2554 machine
=amdx86-64 opsys
=gnu-linux
2562 ### If the code above didn't choose an operating system, just choose
2563 ### an operating system based on the configuration name. You really
2564 ### only want to use this when you have no idea what the right
2565 ### operating system is; if you know what operating systems a machine
2566 ### runs, it's cleaner to make it explicit in the case statement
2568 if test x
"${opsys}" = x
; then
2569 case "${canonical}" in
2570 *-gnu* ) opsys
=gnu
;;
2571 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2572 *-bsd4.2
) opsys
=bsd4-2
;;
2573 *-bsd4.3
) opsys
=bsd4-3
;;
2574 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2575 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2576 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2577 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2578 *-sysv4.2uw
* ) opsys
=unixware
;;
2579 *-sysv4.1
* |
*-sysvr4.1
* )
2580 NON_GNU_CPP
=/usr
/lib
/cpp
2582 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2583 if [ x
$NON_GNU_CPP = x
]; then
2584 if [ -f /usr
/ccs
/lib
/cpp
]; then
2585 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2587 NON_GNU_CPP
=/lib
/cpp
2591 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2600 if test $unported = yes; then
2601 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2602 Check \`etc/MACHINES' for recognized configuration names." >&5
2603 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2604 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2605 { (exit 1); exit 1; }; }
2608 machfile
="m/${machine}.h"
2609 opsysfile
="s/${opsys}.h"
2612 #### Choose a compiler.
2613 test -n "$CC" && cc_specified
=yes
2615 # Save the value of CFLAGS that the user specified.
2616 SPECIFIED_CFLAGS
="$CFLAGS"
2619 "yes" ) CC
="gcc" GCC
=yes ;;
2620 "no" ) : ${CC=cc} ;;
2624 ac_cpp
='$CPP $CPPFLAGS'
2625 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2626 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2627 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2628 if test -n "$ac_tool_prefix"; then
2629 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2630 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2631 echo "$as_me:$LINENO: checking for $ac_word" >&5
2632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2633 if test "${ac_cv_prog_CC+set}" = set; then
2634 echo $ECHO_N "(cached) $ECHO_C" >&6
2636 if test -n "$CC"; then
2637 ac_cv_prog_CC
="$CC" # Let the user override the test.
2639 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2643 test -z "$as_dir" && as_dir
=.
2644 for ac_exec_ext
in '' $ac_executable_extensions; do
2645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2646 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 if test -n "$CC"; then
2657 echo "$as_me:$LINENO: result: $CC" >&5
2658 echo "${ECHO_T}$CC" >&6
2660 echo "$as_me:$LINENO: result: no" >&5
2661 echo "${ECHO_T}no" >&6
2665 if test -z "$ac_cv_prog_CC"; then
2667 # Extract the first word of "gcc", so it can be a program name with args.
2668 set dummy gcc
; ac_word
=$2
2669 echo "$as_me:$LINENO: checking for $ac_word" >&5
2670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2671 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2674 if test -n "$ac_ct_CC"; then
2675 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2681 test -z "$as_dir" && as_dir
=.
2682 for ac_exec_ext
in '' $ac_executable_extensions; do
2683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2684 ac_cv_prog_ac_ct_CC
="gcc"
2685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2694 if test -n "$ac_ct_CC"; then
2695 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2696 echo "${ECHO_T}$ac_ct_CC" >&6
2698 echo "$as_me:$LINENO: result: no" >&5
2699 echo "${ECHO_T}no" >&6
2707 if test -z "$CC"; then
2708 if test -n "$ac_tool_prefix"; then
2709 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2710 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2711 echo "$as_me:$LINENO: checking for $ac_word" >&5
2712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2713 if test "${ac_cv_prog_CC+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
2716 if test -n "$CC"; then
2717 ac_cv_prog_CC
="$CC" # Let the user override the test.
2719 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2723 test -z "$as_dir" && as_dir
=.
2724 for ac_exec_ext
in '' $ac_executable_extensions; do
2725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2726 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2736 if test -n "$CC"; then
2737 echo "$as_me:$LINENO: result: $CC" >&5
2738 echo "${ECHO_T}$CC" >&6
2740 echo "$as_me:$LINENO: result: no" >&5
2741 echo "${ECHO_T}no" >&6
2745 if test -z "$ac_cv_prog_CC"; then
2747 # Extract the first word of "cc", so it can be a program name with args.
2748 set dummy cc
; ac_word
=$2
2749 echo "$as_me:$LINENO: checking for $ac_word" >&5
2750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2751 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2754 if test -n "$ac_ct_CC"; then
2755 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2757 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2761 test -z "$as_dir" && as_dir
=.
2762 for ac_exec_ext
in '' $ac_executable_extensions; do
2763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2764 ac_cv_prog_ac_ct_CC
="cc"
2765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2773 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2774 if test -n "$ac_ct_CC"; then
2775 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2776 echo "${ECHO_T}$ac_ct_CC" >&6
2778 echo "$as_me:$LINENO: result: no" >&5
2779 echo "${ECHO_T}no" >&6
2788 if test -z "$CC"; then
2789 # Extract the first word of "cc", so it can be a program name with args.
2790 set dummy cc
; ac_word
=$2
2791 echo "$as_me:$LINENO: checking for $ac_word" >&5
2792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2793 if test "${ac_cv_prog_CC+set}" = set; then
2794 echo $ECHO_N "(cached) $ECHO_C" >&6
2796 if test -n "$CC"; then
2797 ac_cv_prog_CC
="$CC" # Let the user override the test.
2800 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2804 test -z "$as_dir" && as_dir
=.
2805 for ac_exec_ext
in '' $ac_executable_extensions; do
2806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2807 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2808 ac_prog_rejected
=yes
2812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 if test $ac_prog_rejected = yes; then
2819 # We found a bogon in the path, so make sure we never use it.
2820 set dummy
$ac_cv_prog_CC
2822 if test $# != 0; then
2823 # We chose a different compiler from the bogus one.
2824 # However, it has the same basename, so the bogon will be chosen
2825 # first if we set CC to just the basename; use the full file name.
2827 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2833 if test -n "$CC"; then
2834 echo "$as_me:$LINENO: result: $CC" >&5
2835 echo "${ECHO_T}$CC" >&6
2837 echo "$as_me:$LINENO: result: no" >&5
2838 echo "${ECHO_T}no" >&6
2842 if test -z "$CC"; then
2843 if test -n "$ac_tool_prefix"; then
2846 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2847 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2848 echo "$as_me:$LINENO: checking for $ac_word" >&5
2849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2850 if test "${ac_cv_prog_CC+set}" = set; then
2851 echo $ECHO_N "(cached) $ECHO_C" >&6
2853 if test -n "$CC"; then
2854 ac_cv_prog_CC
="$CC" # Let the user override the test.
2856 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2860 test -z "$as_dir" && as_dir
=.
2861 for ac_exec_ext
in '' $ac_executable_extensions; do
2862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2863 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2873 if test -n "$CC"; then
2874 echo "$as_me:$LINENO: result: $CC" >&5
2875 echo "${ECHO_T}$CC" >&6
2877 echo "$as_me:$LINENO: result: no" >&5
2878 echo "${ECHO_T}no" >&6
2881 test -n "$CC" && break
2884 if test -z "$CC"; then
2888 # Extract the first word of "$ac_prog", so it can be a program name with args.
2889 set dummy
$ac_prog; ac_word
=$2
2890 echo "$as_me:$LINENO: checking for $ac_word" >&5
2891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2892 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2895 if test -n "$ac_ct_CC"; then
2896 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2898 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2902 test -z "$as_dir" && as_dir
=.
2903 for ac_exec_ext
in '' $ac_executable_extensions; do
2904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2905 ac_cv_prog_ac_ct_CC
="$ac_prog"
2906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2915 if test -n "$ac_ct_CC"; then
2916 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2917 echo "${ECHO_T}$ac_ct_CC" >&6
2919 echo "$as_me:$LINENO: result: no" >&5
2920 echo "${ECHO_T}no" >&6
2923 test -n "$ac_ct_CC" && break
2932 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2933 See \`config.log' for more details." >&5
2934 echo "$as_me: error: no acceptable C compiler found in \$PATH
2935 See \`config.log' for more details." >&2;}
2936 { (exit 1); exit 1; }; }
2938 # Provide some information about the compiler.
2939 echo "$as_me:$LINENO:" \
2940 "checking for C compiler version" >&5
2941 ac_compiler
=`set X $ac_compile; echo $2`
2942 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2943 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }
2947 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2948 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }
2952 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2953 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }
2958 cat >conftest.
$ac_ext <<_ACEOF
2959 #line $LINENO "configure"
2962 cat confdefs.h
>>conftest.
$ac_ext
2963 cat >>conftest.
$ac_ext <<_ACEOF
2964 /* end confdefs.h. */
2974 ac_clean_files_save
=$ac_clean_files
2975 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2976 # Try to create an executable without -o first, disregard a.out.
2977 # It will help us diagnose broken compilers, and finding out an intuition
2979 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2980 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2981 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2982 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2983 (eval $ac_link_default) 2>&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; then
2987 # Find the output, starting from the most likely. This scheme is
2988 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2991 # Be careful to initialize this variable, since it used to be cached.
2992 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2994 # b.out is created by i960 compilers.
2995 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2997 test -f "$ac_file" ||
continue
2999 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3002 # This is the source file.
3005 # We found the default executable, but exeext='' is most
3009 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3010 # FIXME: I believe we export ac_cv_exeext for Libtool,
3011 # but it would be cool to find out if it's true. Does anybody
3012 # maintain Libtool? --akim.
3020 echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.
$ac_ext >&5
3023 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3024 See \`config.log' for more details." >&5
3025 echo "$as_me: error: C compiler cannot create executables
3026 See \`config.log' for more details." >&2;}
3027 { (exit 77); exit 77; }; }
3030 ac_exeext
=$ac_cv_exeext
3031 echo "$as_me:$LINENO: result: $ac_file" >&5
3032 echo "${ECHO_T}$ac_file" >&6
3034 # Check the compiler produces executables we can run. If not, either
3035 # the compiler is broken, or we cross compile.
3036 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3037 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3038 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3039 # If not cross compiling, check that we can run a simple program.
3040 if test "$cross_compiling" != yes; then
3041 if { ac_try
='./$ac_file'
3042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; }; then
3049 if test "$cross_compiling" = maybe
; then
3052 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3053 If you meant to cross compile, use \`--host'.
3054 See \`config.log' for more details." >&5
3055 echo "$as_me: error: cannot run C compiled programs.
3056 If you meant to cross compile, use \`--host'.
3057 See \`config.log' for more details." >&2;}
3058 { (exit 1); exit 1; }; }
3062 echo "$as_me:$LINENO: result: yes" >&5
3063 echo "${ECHO_T}yes" >&6
3065 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3066 ac_clean_files
=$ac_clean_files_save
3067 # Check the compiler produces executables we can run. If not, either
3068 # the compiler is broken, or we cross compile.
3069 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3070 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3071 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3072 echo "${ECHO_T}$cross_compiling" >&6
3074 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3075 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3077 (eval $ac_link) 2>&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; then
3081 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3082 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3083 # work properly (i.e., refer to `conftest.exe'), while it won't with
3085 for ac_file
in conftest.exe conftest conftest.
*; do
3086 test -f "$ac_file" ||
continue
3088 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3089 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3096 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3097 See \`config.log' for more details." >&5
3098 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3099 See \`config.log' for more details." >&2;}
3100 { (exit 1); exit 1; }; }
3103 rm -f conftest
$ac_cv_exeext
3104 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3105 echo "${ECHO_T}$ac_cv_exeext" >&6
3107 rm -f conftest.
$ac_ext
3108 EXEEXT
=$ac_cv_exeext
3110 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3111 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3112 if test "${ac_cv_objext+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3115 cat >conftest.
$ac_ext <<_ACEOF
3116 #line $LINENO "configure"
3119 cat confdefs.h
>>conftest.
$ac_ext
3120 cat >>conftest.
$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3131 rm -f conftest.o conftest.obj
3132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3133 (eval $ac_compile) 2>&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; then
3137 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3139 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3140 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3145 echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.
$ac_ext >&5
3148 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3149 See \`config.log' for more details." >&5
3150 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3151 See \`config.log' for more details." >&2;}
3152 { (exit 1); exit 1; }; }
3155 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3157 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3158 echo "${ECHO_T}$ac_cv_objext" >&6
3159 OBJEXT
=$ac_cv_objext
3161 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3162 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3163 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3166 cat >conftest.
$ac_ext <<_ACEOF
3167 #line $LINENO "configure"
3170 cat confdefs.h
>>conftest.
$ac_ext
3171 cat >>conftest.
$ac_ext <<_ACEOF
3172 /* end confdefs.h. */
3185 rm -f conftest.
$ac_objext
3186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3187 (eval $ac_compile) 2>&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); } &&
3191 { ac_try
='test -s conftest.$ac_objext'
3192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; }; then
3199 echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.
$ac_ext >&5
3204 rm -f conftest.
$ac_objext conftest.
$ac_ext
3205 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3208 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3209 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3210 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3211 ac_test_CFLAGS
=${CFLAGS+set}
3212 ac_save_CFLAGS
=$CFLAGS
3214 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3215 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3216 if test "${ac_cv_prog_cc_g+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 cat >conftest.
$ac_ext <<_ACEOF
3220 #line $LINENO "configure"
3223 cat confdefs.h
>>conftest.
$ac_ext
3224 cat >>conftest.
$ac_ext <<_ACEOF
3225 /* end confdefs.h. */
3235 rm -f conftest.
$ac_objext
3236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3237 (eval $ac_compile) 2>&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); } &&
3241 { ac_try
='test -s conftest.$ac_objext'
3242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); }; }; then
3249 echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.
$ac_ext >&5
3254 rm -f conftest.
$ac_objext conftest.
$ac_ext
3256 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3257 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3258 if test "$ac_test_CFLAGS" = set; then
3259 CFLAGS
=$ac_save_CFLAGS
3260 elif test $ac_cv_prog_cc_g = yes; then
3261 if test "$GCC" = yes; then
3267 if test "$GCC" = yes; then
3273 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3274 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3275 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 ac_cv_prog_cc_stdc
=no
3280 cat >conftest.
$ac_ext <<_ACEOF
3281 #line $LINENO "configure"
3284 cat confdefs.h
>>conftest.
$ac_ext
3285 cat >>conftest.
$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3289 #include <sys/types.h>
3290 #include <sys/stat.h>
3291 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3292 struct buf { int x; };
3293 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3294 static char *e (p, i)
3300 static char *f (char * (*g) (char **, int), char **p, ...)
3305 s = g (p, va_arg (v,int));
3309 int test (int i, double x);
3310 struct s1 {int (*f) (int a);};
3311 struct s2 {int (*f) (double a);};
3312 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3318 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3323 # Don't try gcc -ansi; that turns off useful extensions and
3324 # breaks some systems' header files.
3325 # AIX -qlanglvl=ansi
3326 # Ultrix and OSF/1 -std1
3327 # HP-UX 10.20 and later -Ae
3328 # HP-UX older versions -Aa -D_HPUX_SOURCE
3329 # SVR4 -Xc -D__EXTENSIONS__
3330 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3332 CC
="$ac_save_CC $ac_arg"
3333 rm -f conftest.
$ac_objext
3334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3335 (eval $ac_compile) 2>&5
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); } &&
3339 { ac_try
='test -s conftest.$ac_objext'
3340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; }; then
3345 ac_cv_prog_cc_stdc
=$ac_arg
3348 echo "$as_me: failed program was:" >&5
3349 sed 's/^/| /' conftest.
$ac_ext >&5
3352 rm -f conftest.
$ac_objext
3354 rm -f conftest.
$ac_ext conftest.
$ac_objext
3359 case "x$ac_cv_prog_cc_stdc" in
3361 echo "$as_me:$LINENO: result: none needed" >&5
3362 echo "${ECHO_T}none needed" >&6 ;;
3364 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3365 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3366 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3369 # Some people use a C++ compiler to compile C. Since we use `exit',
3370 # in C++ we need to declare it. In case someone uses the same compiler
3371 # for both compiling C and C++ we need to have the C++ compiler decide
3372 # the declaration of exit, since it's the most demanding environment.
3373 cat >conftest.
$ac_ext <<_ACEOF
3378 rm -f conftest.
$ac_objext
3379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3380 (eval $ac_compile) 2>&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); } &&
3384 { ac_try
='test -s conftest.$ac_objext'
3385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; }; then
3390 for ac_declaration
in \
3392 '#include <stdlib.h>' \
3393 'extern "C" void std::exit (int) throw (); using std::exit;' \
3394 'extern "C" void std::exit (int); using std::exit;' \
3395 'extern "C" void exit (int) throw ();' \
3396 'extern "C" void exit (int);' \
3399 cat >conftest.
$ac_ext <<_ACEOF
3400 #line $LINENO "configure"
3403 cat confdefs.h
>>conftest.
$ac_ext
3404 cat >>conftest.
$ac_ext <<_ACEOF
3405 /* end confdefs.h. */
3416 rm -f conftest.
$ac_objext
3417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3418 (eval $ac_compile) 2>&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); } &&
3422 { ac_try
='test -s conftest.$ac_objext'
3423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); }; }; then
3430 echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.
$ac_ext >&5
3435 rm -f conftest.
$ac_objext conftest.
$ac_ext
3436 cat >conftest.
$ac_ext <<_ACEOF
3437 #line $LINENO "configure"
3440 cat confdefs.h
>>conftest.
$ac_ext
3441 cat >>conftest.
$ac_ext <<_ACEOF
3442 /* end confdefs.h. */
3452 rm -f conftest.
$ac_objext
3453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3454 (eval $ac_compile) 2>&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } &&
3458 { ac_try
='test -s conftest.$ac_objext'
3459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; }; then
3466 echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.
$ac_ext >&5
3470 rm -f conftest.
$ac_objext conftest.
$ac_ext
3473 if test -n "$ac_declaration"; then
3474 echo '#ifdef __cplusplus' >>confdefs.h
3475 echo $ac_declaration >>confdefs.h
3476 echo '#endif' >>confdefs.h
3480 echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.
$ac_ext >&5
3484 rm -f conftest.
$ac_objext conftest.
$ac_ext
3486 ac_cpp
='$CPP $CPPFLAGS'
3487 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3492 # On Suns, sometimes $CPP names a directory.
3493 if test -n "$CPP" && test -d "$CPP"; then
3497 #### Some systems specify a CPP to use unless we are using GCC.
3498 #### Now that we know whether we are using GCC, we can decide whether
3499 #### to use that one.
3500 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3505 #### Some systems specify a CC to use unless we are using GCC.
3506 #### Now that we know whether we are using GCC, we can decide whether
3507 #### to use that one.
3508 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3509 test x
$cc_specified != xyes
3514 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3516 CC
="$CC $GCC_TEST_OPTIONS"
3519 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3521 CC
="$CC $NON_GCC_TEST_OPTIONS"
3524 #### Some other nice autoconf tests.
3526 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3527 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3529 if test "$LN_S" = "ln -s"; then
3530 echo "$as_me:$LINENO: result: yes" >&5
3531 echo "${ECHO_T}yes" >&6
3533 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3534 echo "${ECHO_T}no, using $LN_S" >&6
3538 ac_cpp
='$CPP $CPPFLAGS'
3539 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3540 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3541 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3542 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3543 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3544 # On Suns, sometimes $CPP names a directory.
3545 if test -n "$CPP" && test -d "$CPP"; then
3548 if test -z "$CPP"; then
3549 if test "${ac_cv_prog_CPP+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 # Double quotes because CPP needs to be expanded
3553 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3556 for ac_c_preproc_warn_flag
in '' yes
3558 # Use a header file that comes with gcc, so configuring glibc
3559 # with a fresh cross-compiler works.
3560 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3561 # <limits.h> exists even on freestanding compilers.
3562 # On the NeXT, cc -E runs the code through the compiler's parser,
3563 # not just through cpp. "Syntax error" is here to catch this case.
3564 cat >conftest.
$ac_ext <<_ACEOF
3565 #line $LINENO "configure"
3568 cat confdefs.h
>>conftest.
$ac_ext
3569 cat >>conftest.
$ac_ext <<_ACEOF
3570 /* end confdefs.h. */
3572 # include <limits.h>
3574 # include <assert.h>
3578 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3579 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3581 grep -v '^ *+' conftest.er1
>conftest.err
3583 cat conftest.err
>&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } >/dev
/null
; then
3586 if test -s conftest.err
; then
3587 ac_cpp_err
=$ac_c_preproc_warn_flag
3594 if test -z "$ac_cpp_err"; then
3597 echo "$as_me: failed program was:" >&5
3598 sed 's/^/| /' conftest.
$ac_ext >&5
3600 # Broken: fails on valid input.
3603 rm -f conftest.err conftest.
$ac_ext
3605 # OK, works on sane cases. Now check whether non-existent headers
3606 # can be detected and how.
3607 cat >conftest.
$ac_ext <<_ACEOF
3608 #line $LINENO "configure"
3611 cat confdefs.h
>>conftest.
$ac_ext
3612 cat >>conftest.
$ac_ext <<_ACEOF
3613 /* end confdefs.h. */
3614 #include <ac_nonexistent.h>
3616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3617 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3619 grep -v '^ *+' conftest.er1
>conftest.err
3621 cat conftest.err
>&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); } >/dev
/null
; then
3624 if test -s conftest.err
; then
3625 ac_cpp_err
=$ac_c_preproc_warn_flag
3632 if test -z "$ac_cpp_err"; then
3633 # Broken: success on invalid input.
3636 echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.
$ac_ext >&5
3639 # Passes both tests.
3643 rm -f conftest.err conftest.
$ac_ext
3646 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3647 rm -f conftest.err conftest.
$ac_ext
3648 if $ac_preproc_ok; then
3660 echo "$as_me:$LINENO: result: $CPP" >&5
3661 echo "${ECHO_T}$CPP" >&6
3663 for ac_c_preproc_warn_flag
in '' yes
3665 # Use a header file that comes with gcc, so configuring glibc
3666 # with a fresh cross-compiler works.
3667 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3668 # <limits.h> exists even on freestanding compilers.
3669 # On the NeXT, cc -E runs the code through the compiler's parser,
3670 # not just through cpp. "Syntax error" is here to catch this case.
3671 cat >conftest.
$ac_ext <<_ACEOF
3672 #line $LINENO "configure"
3675 cat confdefs.h
>>conftest.
$ac_ext
3676 cat >>conftest.
$ac_ext <<_ACEOF
3677 /* end confdefs.h. */
3679 # include <limits.h>
3681 # include <assert.h>
3685 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3686 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3688 grep -v '^ *+' conftest.er1
>conftest.err
3690 cat conftest.err
>&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); } >/dev
/null
; then
3693 if test -s conftest.err
; then
3694 ac_cpp_err
=$ac_c_preproc_warn_flag
3701 if test -z "$ac_cpp_err"; then
3704 echo "$as_me: failed program was:" >&5
3705 sed 's/^/| /' conftest.
$ac_ext >&5
3707 # Broken: fails on valid input.
3710 rm -f conftest.err conftest.
$ac_ext
3712 # OK, works on sane cases. Now check whether non-existent headers
3713 # can be detected and how.
3714 cat >conftest.
$ac_ext <<_ACEOF
3715 #line $LINENO "configure"
3718 cat confdefs.h
>>conftest.
$ac_ext
3719 cat >>conftest.
$ac_ext <<_ACEOF
3720 /* end confdefs.h. */
3721 #include <ac_nonexistent.h>
3723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3724 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3726 grep -v '^ *+' conftest.er1
>conftest.err
3728 cat conftest.err
>&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); } >/dev
/null
; then
3731 if test -s conftest.err
; then
3732 ac_cpp_err
=$ac_c_preproc_warn_flag
3739 if test -z "$ac_cpp_err"; then
3740 # Broken: success on invalid input.
3743 echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.
$ac_ext >&5
3746 # Passes both tests.
3750 rm -f conftest.err conftest.
$ac_ext
3753 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3754 rm -f conftest.err conftest.
$ac_ext
3755 if $ac_preproc_ok; then
3758 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3759 See \`config.log' for more details." >&5
3760 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3761 See \`config.log' for more details." >&2;}
3762 { (exit 1); exit 1; }; }
3766 ac_cpp
='$CPP $CPPFLAGS'
3767 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3768 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3769 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3771 # Find a good install program. We prefer a C program (faster),
3772 # so one script is as good as another. But avoid the broken or
3773 # incompatible versions:
3774 # SysV /etc/install, /usr/sbin/install
3775 # SunOS /usr/etc/install
3776 # IRIX /sbin/install
3778 # AmigaOS /C/install, which installs bootblocks on floppy discs
3779 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3780 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3781 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3782 # ./install, which can be erroneously created by make from ./install.sh.
3783 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3784 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3785 if test -z "$INSTALL"; then
3786 if test "${ac_cv_path_install+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3793 test -z "$as_dir" && as_dir
=.
3794 # Account for people who put trailing slashes in PATH elements.
3796 .
/ | .
// |
/cC
/* | \
3797 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3800 # OSF1 and SCO ODT 3.0 have their own names for install.
3801 # Don't use installbsd from OSF since it installs stuff as root
3803 for ac_prog
in ginstall scoinst
install; do
3804 for ac_exec_ext
in '' $ac_executable_extensions; do
3805 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3806 if test $ac_prog = install &&
3807 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3808 # AIX install. It has an incompatible calling convention.
3810 elif test $ac_prog = install &&
3811 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3812 # program-specific install script used by HP pwplus--don't use.
3815 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3827 if test "${ac_cv_path_install+set}" = set; then
3828 INSTALL
=$ac_cv_path_install
3830 # As a last resort, use the slow shell script. We don't cache a
3831 # path for INSTALL within a source directory, because that will
3832 # break other packages using the cache if that directory is
3833 # removed, or if the path is relative.
3834 INSTALL
=$ac_install_sh
3837 echo "$as_me:$LINENO: result: $INSTALL" >&5
3838 echo "${ECHO_T}$INSTALL" >&6
3840 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3841 # It thinks the first close brace ends the variable substitution.
3842 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3844 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3846 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3848 if test "x$RANLIB" = x
; then
3849 if test -n "$ac_tool_prefix"; then
3850 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3851 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3852 echo "$as_me:$LINENO: checking for $ac_word" >&5
3853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3854 if test "${ac_cv_prog_RANLIB+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 if test -n "$RANLIB"; then
3858 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3860 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3864 test -z "$as_dir" && as_dir
=.
3865 for ac_exec_ext
in '' $ac_executable_extensions; do
3866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3867 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3876 RANLIB
=$ac_cv_prog_RANLIB
3877 if test -n "$RANLIB"; then
3878 echo "$as_me:$LINENO: result: $RANLIB" >&5
3879 echo "${ECHO_T}$RANLIB" >&6
3881 echo "$as_me:$LINENO: result: no" >&5
3882 echo "${ECHO_T}no" >&6
3886 if test -z "$ac_cv_prog_RANLIB"; then
3887 ac_ct_RANLIB
=$RANLIB
3888 # Extract the first word of "ranlib", so it can be a program name with args.
3889 set dummy ranlib
; ac_word
=$2
3890 echo "$as_me:$LINENO: checking for $ac_word" >&5
3891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3892 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3895 if test -n "$ac_ct_RANLIB"; then
3896 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3898 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3902 test -z "$as_dir" && as_dir
=.
3903 for ac_exec_ext
in '' $ac_executable_extensions; do
3904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3905 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3912 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3915 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3916 if test -n "$ac_ct_RANLIB"; then
3917 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3918 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3920 echo "$as_me:$LINENO: result: no" >&5
3921 echo "${ECHO_T}no" >&6
3924 RANLIB
=$ac_ct_RANLIB
3926 RANLIB
="$ac_cv_prog_RANLIB"
3930 # Extract the first word of "install-info", so it can be a program name with args.
3931 set dummy install-info
; ac_word
=$2
3932 echo "$as_me:$LINENO: checking for $ac_word" >&5
3933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3934 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3937 case $INSTALL_INFO in
3939 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
3942 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3946 test -z "$as_dir" && as_dir
=.
3947 for ac_exec_ext
in '' $ac_executable_extensions; do
3948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3949 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
3950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3959 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
3961 if test -n "$INSTALL_INFO"; then
3962 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3963 echo "${ECHO_T}$INSTALL_INFO" >&6
3965 echo "$as_me:$LINENO: result: no" >&5
3966 echo "${ECHO_T}no" >&6
3969 # Extract the first word of "install-info", so it can be a program name with args.
3970 set dummy install-info
; ac_word
=$2
3971 echo "$as_me:$LINENO: checking for $ac_word" >&5
3972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3973 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 case $INSTALL_INFO in
3978 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
3981 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3982 for as_dir
in /usr
/sbin
3985 test -z "$as_dir" && as_dir
=.
3986 for ac_exec_ext
in '' $ac_executable_extensions; do
3987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3988 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
3989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3998 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4000 if test -n "$INSTALL_INFO"; then
4001 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4002 echo "${ECHO_T}$INSTALL_INFO" >&6
4004 echo "$as_me:$LINENO: result: no" >&5
4005 echo "${ECHO_T}no" >&6
4008 # Extract the first word of "install-info", so it can be a program name with args.
4009 set dummy install-info
; ac_word
=$2
4010 echo "$as_me:$LINENO: checking for $ac_word" >&5
4011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4012 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4015 case $INSTALL_INFO in
4017 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4020 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4024 test -z "$as_dir" && as_dir
=.
4025 for ac_exec_ext
in '' $ac_executable_extensions; do
4026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4027 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4034 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4038 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4040 if test -n "$INSTALL_INFO"; then
4041 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4042 echo "${ECHO_T}$INSTALL_INFO" >&6
4044 echo "$as_me:$LINENO: result: no" >&5
4045 echo "${ECHO_T}no" >&6
4050 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4052 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4055 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4057 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4062 echo "$as_me:$LINENO: checking for egrep" >&5
4063 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4064 if test "${ac_cv_prog_egrep+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4067 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4068 then ac_cv_prog_egrep
='grep -E'
4069 else ac_cv_prog_egrep
='egrep'
4072 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4073 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4074 EGREP
=$ac_cv_prog_egrep
4078 echo "$as_me:$LINENO: checking for AIX" >&5
4079 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4080 cat >conftest.
$ac_ext <<_ACEOF
4081 #line $LINENO "configure"
4084 cat confdefs.h
>>conftest.
$ac_ext
4085 cat >>conftest.
$ac_ext <<_ACEOF
4086 /* end confdefs.h. */
4092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4093 $EGREP "yes" >/dev
/null
2>&1; then
4094 echo "$as_me:$LINENO: result: yes" >&5
4095 echo "${ECHO_T}yes" >&6
4096 cat >>confdefs.h
<<\_ACEOF
4097 #define _ALL_SOURCE 1
4101 echo "$as_me:$LINENO: result: no" >&5
4102 echo "${ECHO_T}no" >&6
4108 #### Extract some information from the operating system and machine files.
4110 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4111 - which libraries the lib-src programs will want, and
4112 - whether the GNU malloc routines are usable..." >&5
4113 echo "$as_me: checking the machine- and system-dependent files to find out
4114 - which libraries the lib-src programs will want, and
4115 - whether the GNU malloc routines are usable..." >&6;}
4117 ### First figure out CFLAGS (which we use for running the compiler here)
4118 ### and REAL_CFLAGS (which we use for real compilation).
4119 ### The two are the same except on a few systems, where they are made
4120 ### different to work around various lossages. For example,
4121 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4122 ### as implying static linking.
4124 ### If the CFLAGS env var is specified, we use that value
4125 ### instead of the default.
4127 ### It's not important that this name contain the PID; you can't run
4128 ### two configures in the same directory and have anything work
4130 tempcname
="conftest.c"
4133 #include "'${srcdir}'/src/'${opsysfile}'"
4134 #include "'${srcdir}'/src/'${machfile}'"
4135 #ifndef LIBS_MACHINE
4136 #define LIBS_MACHINE
4141 #ifndef C_SWITCH_SYSTEM
4142 #define C_SWITCH_SYSTEM
4144 #ifndef C_SWITCH_MACHINE
4145 #define C_SWITCH_MACHINE
4147 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4148 configure___ c_switch_system=C_SWITCH_SYSTEM
4149 configure___ c_switch_machine=C_SWITCH_MACHINE
4152 #define LIB_X11_LIB -lX11
4155 #ifndef LIBX11_MACHINE
4156 #define LIBX11_MACHINE
4159 #ifndef LIBX11_SYSTEM
4160 #define LIBX11_SYSTEM
4162 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4165 configure___ unexec=UNEXEC
4167 configure___ unexec=unexec.o
4170 #ifdef SYSTEM_MALLOC
4171 configure___ system_malloc=yes
4173 configure___ system_malloc=no
4176 #ifdef USE_MMAP_FOR_BUFFERS
4177 configure___ use_mmap_for_buffers=yes
4179 configure___ use_mmap_for_buffers=no
4182 #ifndef C_DEBUG_SWITCH
4183 #define C_DEBUG_SWITCH -g
4186 #ifndef C_OPTIMIZE_SWITCH
4188 #define C_OPTIMIZE_SWITCH -O2
4190 #define C_OPTIMIZE_SWITCH -O
4194 #ifndef LD_SWITCH_MACHINE
4195 #define LD_SWITCH_MACHINE
4198 #ifndef LD_SWITCH_SYSTEM
4199 #define LD_SWITCH_SYSTEM
4202 #ifndef LD_SWITCH_X_SITE_AUX
4203 #define LD_SWITCH_X_SITE_AUX
4206 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4207 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4209 #ifdef THIS_IS_CONFIGURE
4211 /* Get the CFLAGS for tests in configure. */
4213 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4215 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4218 #else /* not THIS_IS_CONFIGURE */
4220 /* Get the CFLAGS for real compilation. */
4222 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4224 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4227 #endif /* not THIS_IS_CONFIGURE */
4230 # The value of CPP is a quoted variable reference, so we need to do this
4231 # to get its actual value...
4232 CPP
=`eval "echo $CPP"`
4233 eval `${CPP} -Isrc ${tempcname} \
4234 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4235 if test "x$SPECIFIED_CFLAGS" = x
; then
4236 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4237 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4239 REAL_CFLAGS
="$CFLAGS"
4243 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4245 ### Make sure subsequent tests use flags consistent with the build flags.
4247 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4248 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4250 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4256 cat >>confdefs.h
<<\_ACEOF
4257 #define _GNU_SOURCE 1
4262 # Check whether --enable-largefile or --disable-largefile was given.
4263 if test "${enable_largefile+set}" = set; then
4264 enableval
="$enable_largefile"
4267 if test "$enable_largefile" != no
; then
4269 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4270 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4271 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 ac_cv_sys_largefile_CC
=no
4275 if test "$GCC" != yes; then
4278 # IRIX 6.2 and later do not support large files by default,
4279 # so use the C compiler's -n32 option if that helps.
4280 cat >conftest.
$ac_ext <<_ACEOF
4281 #line $LINENO "configure"
4284 cat confdefs.h
>>conftest.
$ac_ext
4285 cat >>conftest.
$ac_ext <<_ACEOF
4286 /* end confdefs.h. */
4287 #include <sys/types.h>
4288 /* Check that off_t can represent 2**63 - 1 correctly.
4289 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4290 since some C++ compilers masquerading as C compilers
4291 incorrectly reject 9223372036854775807. */
4292 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4293 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4294 && LARGE_OFF_T % 2147483647 == 1)
4304 rm -f conftest.
$ac_objext
4305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4306 (eval $ac_compile) 2>&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); } &&
4310 { ac_try
='test -s conftest.$ac_objext'
4311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); }; }; then
4318 echo "$as_me: failed program was:" >&5
4319 sed 's/^/| /' conftest.
$ac_ext >&5
4322 rm -f conftest.
$ac_objext
4324 rm -f conftest.
$ac_objext
4325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4326 (eval $ac_compile) 2>&5
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); } &&
4330 { ac_try
='test -s conftest.$ac_objext'
4331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); }; }; then
4336 ac_cv_sys_largefile_CC
=' -n32'; break
4338 echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.
$ac_ext >&5
4342 rm -f conftest.
$ac_objext
4346 rm -f conftest.
$ac_ext
4349 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4350 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4351 if test "$ac_cv_sys_largefile_CC" != no
; then
4352 CC
=$CC$ac_cv_sys_largefile_CC
4355 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4356 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4357 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4361 ac_cv_sys_file_offset_bits
=no
4362 cat >conftest.
$ac_ext <<_ACEOF
4363 #line $LINENO "configure"
4366 cat confdefs.h
>>conftest.
$ac_ext
4367 cat >>conftest.
$ac_ext <<_ACEOF
4368 /* end confdefs.h. */
4369 #include <sys/types.h>
4370 /* Check that off_t can represent 2**63 - 1 correctly.
4371 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4372 since some C++ compilers masquerading as C compilers
4373 incorrectly reject 9223372036854775807. */
4374 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4375 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4376 && LARGE_OFF_T % 2147483647 == 1)
4386 rm -f conftest.
$ac_objext
4387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388 (eval $ac_compile) 2>&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); } &&
4392 { ac_try
='test -s conftest.$ac_objext'
4393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; }; then
4400 echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.
$ac_ext >&5
4404 rm -f conftest.
$ac_objext conftest.
$ac_ext
4405 cat >conftest.
$ac_ext <<_ACEOF
4406 #line $LINENO "configure"
4409 cat confdefs.h
>>conftest.
$ac_ext
4410 cat >>conftest.
$ac_ext <<_ACEOF
4411 /* end confdefs.h. */
4412 #define _FILE_OFFSET_BITS 64
4413 #include <sys/types.h>
4414 /* Check that off_t can represent 2**63 - 1 correctly.
4415 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4416 since some C++ compilers masquerading as C compilers
4417 incorrectly reject 9223372036854775807. */
4418 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4419 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4420 && LARGE_OFF_T % 2147483647 == 1)
4430 rm -f conftest.
$ac_objext
4431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4432 (eval $ac_compile) 2>&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } &&
4436 { ac_try
='test -s conftest.$ac_objext'
4437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }; }; then
4442 ac_cv_sys_file_offset_bits
=64; break
4444 echo "$as_me: failed program was:" >&5
4445 sed 's/^/| /' conftest.
$ac_ext >&5
4448 rm -f conftest.
$ac_objext conftest.
$ac_ext
4452 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4453 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4454 if test "$ac_cv_sys_file_offset_bits" != no
; then
4456 cat >>confdefs.h
<<_ACEOF
4457 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4462 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4463 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4464 if test "${ac_cv_sys_large_files+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4468 ac_cv_sys_large_files
=no
4469 cat >conftest.
$ac_ext <<_ACEOF
4470 #line $LINENO "configure"
4473 cat confdefs.h
>>conftest.
$ac_ext
4474 cat >>conftest.
$ac_ext <<_ACEOF
4475 /* end confdefs.h. */
4476 #include <sys/types.h>
4477 /* Check that off_t can represent 2**63 - 1 correctly.
4478 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4479 since some C++ compilers masquerading as C compilers
4480 incorrectly reject 9223372036854775807. */
4481 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4482 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4483 && LARGE_OFF_T % 2147483647 == 1)
4493 rm -f conftest.
$ac_objext
4494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4495 (eval $ac_compile) 2>&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); } &&
4499 { ac_try
='test -s conftest.$ac_objext'
4500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; }; then
4507 echo "$as_me: failed program was:" >&5
4508 sed 's/^/| /' conftest.
$ac_ext >&5
4511 rm -f conftest.
$ac_objext conftest.
$ac_ext
4512 cat >conftest.
$ac_ext <<_ACEOF
4513 #line $LINENO "configure"
4516 cat confdefs.h
>>conftest.
$ac_ext
4517 cat >>conftest.
$ac_ext <<_ACEOF
4518 /* end confdefs.h. */
4519 #define _LARGE_FILES 1
4520 #include <sys/types.h>
4521 /* Check that off_t can represent 2**63 - 1 correctly.
4522 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4523 since some C++ compilers masquerading as C compilers
4524 incorrectly reject 9223372036854775807. */
4525 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4526 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4527 && LARGE_OFF_T % 2147483647 == 1)
4537 rm -f conftest.
$ac_objext
4538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4539 (eval $ac_compile) 2>&5
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); } &&
4543 { ac_try
='test -s conftest.$ac_objext'
4544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }; }; then
4549 ac_cv_sys_large_files
=1; break
4551 echo "$as_me: failed program was:" >&5
4552 sed 's/^/| /' conftest.
$ac_ext >&5
4555 rm -f conftest.
$ac_objext conftest.
$ac_ext
4559 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4560 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4561 if test "$ac_cv_sys_large_files" != no
; then
4563 cat >>confdefs.h
<<_ACEOF
4564 #define _LARGE_FILES $ac_cv_sys_large_files
4572 if test "${with_sound}" != "no"; then
4573 # Sound support for GNU/Linux and the free BSDs.
4574 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4575 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4576 if test "${ac_cv_header_stdc+set}" = set; then
4577 echo $ECHO_N "(cached) $ECHO_C" >&6
4579 cat >conftest.
$ac_ext <<_ACEOF
4580 #line $LINENO "configure"
4583 cat confdefs.h
>>conftest.
$ac_ext
4584 cat >>conftest.
$ac_ext <<_ACEOF
4585 /* end confdefs.h. */
4599 rm -f conftest.
$ac_objext
4600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4601 (eval $ac_compile) 2>&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } &&
4605 { ac_try
='test -s conftest.$ac_objext'
4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; }; then
4611 ac_cv_header_stdc
=yes
4613 echo "$as_me: failed program was:" >&5
4614 sed 's/^/| /' conftest.
$ac_ext >&5
4616 ac_cv_header_stdc
=no
4618 rm -f conftest.
$ac_objext conftest.
$ac_ext
4620 if test $ac_cv_header_stdc = yes; then
4621 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4622 cat >conftest.
$ac_ext <<_ACEOF
4623 #line $LINENO "configure"
4626 cat confdefs.h
>>conftest.
$ac_ext
4627 cat >>conftest.
$ac_ext <<_ACEOF
4628 /* end confdefs.h. */
4632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4633 $EGREP "memchr" >/dev
/null
2>&1; then
4636 ac_cv_header_stdc
=no
4642 if test $ac_cv_header_stdc = yes; then
4643 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4644 cat >conftest.
$ac_ext <<_ACEOF
4645 #line $LINENO "configure"
4648 cat confdefs.h
>>conftest.
$ac_ext
4649 cat >>conftest.
$ac_ext <<_ACEOF
4650 /* end confdefs.h. */
4654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4655 $EGREP "free" >/dev
/null
2>&1; then
4658 ac_cv_header_stdc
=no
4664 if test $ac_cv_header_stdc = yes; then
4665 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4666 if test "$cross_compiling" = yes; then
4669 cat >conftest.
$ac_ext <<_ACEOF
4670 #line $LINENO "configure"
4673 cat confdefs.h
>>conftest.
$ac_ext
4674 cat >>conftest.
$ac_ext <<_ACEOF
4675 /* end confdefs.h. */
4677 #if ((' ' & 0x0FF) == 0x020)
4678 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4679 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4681 # define ISLOWER(c) \
4682 (('a' <= (c) && (c) <= 'i') \
4683 || ('j' <= (c) && (c) <= 'r') \
4684 || ('s' <= (c) && (c) <= 'z'))
4685 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4688 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4693 for (i = 0; i < 256; i++)
4694 if (XOR (islower (i), ISLOWER (i))
4695 || toupper (i) != TOUPPER (i))
4700 rm -f conftest
$ac_exeext
4701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4702 (eval $ac_link) 2>&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); }; }; then
4713 echo "$as_me: program exited with status $ac_status" >&5
4714 echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.
$ac_ext >&5
4718 ac_cv_header_stdc
=no
4720 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4724 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4725 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4726 if test $ac_cv_header_stdc = yes; then
4728 cat >>confdefs.h
<<\_ACEOF
4729 #define STDC_HEADERS 1
4734 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4744 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4745 inttypes.h stdint.h unistd.h
4747 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4748 echo "$as_me:$LINENO: checking for $ac_header" >&5
4749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4751 echo $ECHO_N "(cached) $ECHO_C" >&6
4753 cat >conftest.
$ac_ext <<_ACEOF
4754 #line $LINENO "configure"
4757 cat confdefs.h
>>conftest.
$ac_ext
4758 cat >>conftest.
$ac_ext <<_ACEOF
4759 /* end confdefs.h. */
4760 $ac_includes_default
4762 #include <$ac_header>
4764 rm -f conftest.
$ac_objext
4765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4766 (eval $ac_compile) 2>&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); } &&
4770 { ac_try
='test -s conftest.$ac_objext'
4771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; }; then
4776 eval "$as_ac_Header=yes"
4778 echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.
$ac_ext >&5
4781 eval "$as_ac_Header=no"
4783 rm -f conftest.
$ac_objext conftest.
$ac_ext
4785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4788 cat >>confdefs.h
<<_ACEOF
4789 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4800 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
4802 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4804 echo "$as_me:$LINENO: checking for $ac_header" >&5
4805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4812 # Is the header compilable?
4813 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4814 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4815 cat >conftest.
$ac_ext <<_ACEOF
4816 #line $LINENO "configure"
4819 cat confdefs.h
>>conftest.
$ac_ext
4820 cat >>conftest.
$ac_ext <<_ACEOF
4821 /* end confdefs.h. */
4822 $ac_includes_default
4823 #include <$ac_header>
4825 rm -f conftest.
$ac_objext
4826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4827 (eval $ac_compile) 2>&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } &&
4831 { ac_try
='test -s conftest.$ac_objext'
4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; }; then
4837 ac_header_compiler
=yes
4839 echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.
$ac_ext >&5
4842 ac_header_compiler
=no
4844 rm -f conftest.
$ac_objext conftest.
$ac_ext
4845 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4846 echo "${ECHO_T}$ac_header_compiler" >&6
4848 # Is the header present?
4849 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4850 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4851 cat >conftest.
$ac_ext <<_ACEOF
4852 #line $LINENO "configure"
4855 cat confdefs.h
>>conftest.
$ac_ext
4856 cat >>conftest.
$ac_ext <<_ACEOF
4857 /* end confdefs.h. */
4858 #include <$ac_header>
4860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4861 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4863 grep -v '^ *+' conftest.er1
>conftest.err
4865 cat conftest.err
>&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } >/dev
/null
; then
4868 if test -s conftest.err
; then
4869 ac_cpp_err
=$ac_c_preproc_warn_flag
4876 if test -z "$ac_cpp_err"; then
4877 ac_header_preproc
=yes
4879 echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.
$ac_ext >&5
4882 ac_header_preproc
=no
4884 rm -f conftest.err conftest.
$ac_ext
4885 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4886 echo "${ECHO_T}$ac_header_preproc" >&6
4888 # So? What about this header?
4889 case $ac_header_compiler:$ac_header_preproc in
4891 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4892 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4897 ## ------------------------------------ ##
4898 ## Report this to bug-autoconf@gnu.org. ##
4899 ## ------------------------------------ ##
4902 sed "s/^/$as_me: WARNING: /" >&2
4905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4908 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4913 ## ------------------------------------ ##
4914 ## Report this to bug-autoconf@gnu.org. ##
4915 ## ------------------------------------ ##
4918 sed "s/^/$as_me: WARNING: /" >&2
4921 echo "$as_me:$LINENO: checking for $ac_header" >&5
4922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4924 echo $ECHO_N "(cached) $ECHO_C" >&6
4926 eval "$as_ac_Header=$ac_header_preproc"
4928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4933 cat >>confdefs.h
<<_ACEOF
4934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4941 # Emulation library used on NetBSD.
4942 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4943 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4944 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4947 ac_check_lib_save_LIBS
=$LIBS
4948 LIBS
="-lossaudio $LIBS"
4949 cat >conftest.
$ac_ext <<_ACEOF
4950 #line $LINENO "configure"
4953 cat confdefs.h
>>conftest.
$ac_ext
4954 cat >>conftest.
$ac_ext <<_ACEOF
4955 /* end confdefs.h. */
4957 /* Override any gcc2 internal prototype to avoid an error. */
4961 /* We use char because int might match the return type of a gcc2
4962 builtin and then its argument prototype would still apply. */
4972 rm -f conftest.
$ac_objext conftest
$ac_exeext
4973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4974 (eval $ac_link) 2>&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); } &&
4978 { ac_try
='test -s conftest$ac_exeext'
4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; }; then
4984 ac_cv_lib_ossaudio__oss_ioctl
=yes
4986 echo "$as_me: failed program was:" >&5
4987 sed 's/^/| /' conftest.
$ac_ext >&5
4989 ac_cv_lib_ossaudio__oss_ioctl
=no
4991 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4992 LIBS
=$ac_check_lib_save_LIBS
4994 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4995 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4996 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5027 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5028 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5029 termcap.h stdio_ext.h fcntl.h term.h
strings.h coff.h pty.h sys
/mman.h \
5030 sys
/param.h sys
/vlimit.h sys
/resource.h
5032 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5034 echo "$as_me:$LINENO: checking for $ac_header" >&5
5035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5042 # Is the header compilable?
5043 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5044 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5045 cat >conftest.
$ac_ext <<_ACEOF
5046 #line $LINENO "configure"
5049 cat confdefs.h
>>conftest.
$ac_ext
5050 cat >>conftest.
$ac_ext <<_ACEOF
5051 /* end confdefs.h. */
5052 $ac_includes_default
5053 #include <$ac_header>
5055 rm -f conftest.
$ac_objext
5056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5057 (eval $ac_compile) 2>&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); } &&
5061 { ac_try
='test -s conftest.$ac_objext'
5062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); }; }; then
5067 ac_header_compiler
=yes
5069 echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.
$ac_ext >&5
5072 ac_header_compiler
=no
5074 rm -f conftest.
$ac_objext conftest.
$ac_ext
5075 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5076 echo "${ECHO_T}$ac_header_compiler" >&6
5078 # Is the header present?
5079 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5081 cat >conftest.
$ac_ext <<_ACEOF
5082 #line $LINENO "configure"
5085 cat confdefs.h
>>conftest.
$ac_ext
5086 cat >>conftest.
$ac_ext <<_ACEOF
5087 /* end confdefs.h. */
5088 #include <$ac_header>
5090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5091 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5093 grep -v '^ *+' conftest.er1
>conftest.err
5095 cat conftest.err
>&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } >/dev
/null
; then
5098 if test -s conftest.err
; then
5099 ac_cpp_err
=$ac_c_preproc_warn_flag
5106 if test -z "$ac_cpp_err"; then
5107 ac_header_preproc
=yes
5109 echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.
$ac_ext >&5
5112 ac_header_preproc
=no
5114 rm -f conftest.err conftest.
$ac_ext
5115 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5116 echo "${ECHO_T}$ac_header_preproc" >&6
5118 # So? What about this header?
5119 case $ac_header_compiler:$ac_header_preproc in
5121 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5122 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5127 ## ------------------------------------ ##
5128 ## Report this to bug-autoconf@gnu.org. ##
5129 ## ------------------------------------ ##
5132 sed "s/^/$as_me: WARNING: /" >&2
5135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5138 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5143 ## ------------------------------------ ##
5144 ## Report this to bug-autoconf@gnu.org. ##
5145 ## ------------------------------------ ##
5148 sed "s/^/$as_me: WARNING: /" >&2
5151 echo "$as_me:$LINENO: checking for $ac_header" >&5
5152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5156 eval "$as_ac_Header=$ac_header_preproc"
5158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5163 cat >>confdefs.h
<<_ACEOF
5164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5172 for ac_header
in term.h
5174 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5175 echo "$as_me:$LINENO: checking for $ac_header" >&5
5176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5178 echo $ECHO_N "(cached) $ECHO_C" >&6
5180 cat >conftest.
$ac_ext <<_ACEOF
5181 #line $LINENO "configure"
5184 cat confdefs.h
>>conftest.
$ac_ext
5185 cat >>conftest.
$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5187 #include <$ac_header>
5189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5190 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5192 grep -v '^ *+' conftest.er1
>conftest.err
5194 cat conftest.err
>&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } >/dev
/null
; then
5197 if test -s conftest.err
; then
5198 ac_cpp_err
=$ac_c_preproc_warn_flag
5205 if test -z "$ac_cpp_err"; then
5206 eval "$as_ac_Header=yes"
5208 echo "$as_me: failed program was:" >&5
5209 sed 's/^/| /' conftest.
$ac_ext >&5
5211 eval "$as_ac_Header=no"
5213 rm -f conftest.err conftest.
$ac_ext
5215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5218 cat >>confdefs.h
<<_ACEOF
5219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5226 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5227 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5228 if test "${ac_cv_header_stdc+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5231 cat >conftest.
$ac_ext <<_ACEOF
5232 #line $LINENO "configure"
5235 cat confdefs.h
>>conftest.
$ac_ext
5236 cat >>conftest.
$ac_ext <<_ACEOF
5237 /* end confdefs.h. */
5251 rm -f conftest.
$ac_objext
5252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5253 (eval $ac_compile) 2>&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } &&
5257 { ac_try
='test -s conftest.$ac_objext'
5258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); }; }; then
5263 ac_cv_header_stdc
=yes
5265 echo "$as_me: failed program was:" >&5
5266 sed 's/^/| /' conftest.
$ac_ext >&5
5268 ac_cv_header_stdc
=no
5270 rm -f conftest.
$ac_objext conftest.
$ac_ext
5272 if test $ac_cv_header_stdc = yes; then
5273 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5274 cat >conftest.
$ac_ext <<_ACEOF
5275 #line $LINENO "configure"
5278 cat confdefs.h
>>conftest.
$ac_ext
5279 cat >>conftest.
$ac_ext <<_ACEOF
5280 /* end confdefs.h. */
5284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5285 $EGREP "memchr" >/dev
/null
2>&1; then
5288 ac_cv_header_stdc
=no
5294 if test $ac_cv_header_stdc = yes; then
5295 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5296 cat >conftest.
$ac_ext <<_ACEOF
5297 #line $LINENO "configure"
5300 cat confdefs.h
>>conftest.
$ac_ext
5301 cat >>conftest.
$ac_ext <<_ACEOF
5302 /* end confdefs.h. */
5306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5307 $EGREP "free" >/dev
/null
2>&1; then
5310 ac_cv_header_stdc
=no
5316 if test $ac_cv_header_stdc = yes; then
5317 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5318 if test "$cross_compiling" = yes; then
5321 cat >conftest.
$ac_ext <<_ACEOF
5322 #line $LINENO "configure"
5325 cat confdefs.h
>>conftest.
$ac_ext
5326 cat >>conftest.
$ac_ext <<_ACEOF
5327 /* end confdefs.h. */
5329 #if ((' ' & 0x0FF) == 0x020)
5330 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5331 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5333 # define ISLOWER(c) \
5334 (('a' <= (c) && (c) <= 'i') \
5335 || ('j' <= (c) && (c) <= 'r') \
5336 || ('s' <= (c) && (c) <= 'z'))
5337 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5340 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5345 for (i = 0; i < 256; i++)
5346 if (XOR (islower (i), ISLOWER (i))
5347 || toupper (i) != TOUPPER (i))
5352 rm -f conftest
$ac_exeext
5353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5354 (eval $ac_link) 2>&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); }; }; then
5365 echo "$as_me: program exited with status $ac_status" >&5
5366 echo "$as_me: failed program was:" >&5
5367 sed 's/^/| /' conftest.
$ac_ext >&5
5370 ac_cv_header_stdc
=no
5372 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5376 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5377 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5378 if test $ac_cv_header_stdc = yes; then
5380 cat >>confdefs.h
<<\_ACEOF
5381 #define STDC_HEADERS 1
5386 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5387 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5388 if test "${ac_cv_header_time+set}" = set; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
5391 cat >conftest.
$ac_ext <<_ACEOF
5392 #line $LINENO "configure"
5395 cat confdefs.h
>>conftest.
$ac_ext
5396 cat >>conftest.
$ac_ext <<_ACEOF
5397 /* end confdefs.h. */
5398 #include <sys/types.h>
5399 #include <sys/time.h>
5405 if ((struct tm *) 0)
5411 rm -f conftest.
$ac_objext
5412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5413 (eval $ac_compile) 2>&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); } &&
5417 { ac_try
='test -s conftest.$ac_objext'
5418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); }; }; then
5423 ac_cv_header_time
=yes
5425 echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.
$ac_ext >&5
5428 ac_cv_header_time
=no
5430 rm -f conftest.
$ac_objext conftest.
$ac_ext
5432 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5433 echo "${ECHO_T}$ac_cv_header_time" >&6
5434 if test $ac_cv_header_time = yes; then
5436 cat >>confdefs.h
<<\_ACEOF
5437 #define TIME_WITH_SYS_TIME 1
5442 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5443 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5444 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5447 cat >conftest.
$ac_ext <<_ACEOF
5448 #line $LINENO "configure"
5451 cat confdefs.h
>>conftest.
$ac_ext
5452 cat >>conftest.
$ac_ext <<_ACEOF
5453 /* end confdefs.h. */
5454 $ac_includes_default
5459 char *p = (char *) sys_siglist;
5466 rm -f conftest.
$ac_objext
5467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5468 (eval $ac_compile) 2>&5
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); } &&
5472 { ac_try
='test -s conftest.$ac_objext'
5473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); }; }; then
5478 ac_cv_have_decl_sys_siglist
=yes
5480 echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.
$ac_ext >&5
5483 ac_cv_have_decl_sys_siglist
=no
5485 rm -f conftest.
$ac_objext conftest.
$ac_ext
5487 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5488 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5489 if test $ac_cv_have_decl_sys_siglist = yes; then
5491 cat >>confdefs.h
<<_ACEOF
5492 #define HAVE_DECL_SYS_SIGLIST 1
5497 cat >>confdefs.h
<<_ACEOF
5498 #define HAVE_DECL_SYS_SIGLIST 0
5505 if test $ac_cv_have_decl_sys_siglist != yes; then
5506 # For Tru64, at least:
5507 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5508 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5509 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5512 cat >conftest.
$ac_ext <<_ACEOF
5513 #line $LINENO "configure"
5516 cat confdefs.h
>>conftest.
$ac_ext
5517 cat >>conftest.
$ac_ext <<_ACEOF
5518 /* end confdefs.h. */
5519 $ac_includes_default
5523 #ifndef __sys_siglist
5524 char *p = (char *) __sys_siglist;
5531 rm -f conftest.
$ac_objext
5532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5533 (eval $ac_compile) 2>&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } &&
5537 { ac_try
='test -s conftest.$ac_objext'
5538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; }; then
5543 ac_cv_have_decl___sys_siglist
=yes
5545 echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.
$ac_ext >&5
5548 ac_cv_have_decl___sys_siglist
=no
5550 rm -f conftest.
$ac_objext conftest.
$ac_ext
5552 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5553 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5554 if test $ac_cv_have_decl___sys_siglist = yes; then
5556 cat >>confdefs.h
<<_ACEOF
5557 #define HAVE_DECL___SYS_SIGLIST 1
5562 cat >>confdefs.h
<<_ACEOF
5563 #define HAVE_DECL___SYS_SIGLIST 0
5570 if test $ac_cv_have_decl___sys_siglist = yes; then
5572 cat >>confdefs.h
<<\_ACEOF
5573 #define sys_siglist __sys_siglist
5578 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5579 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5580 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5581 echo $ECHO_N "(cached) $ECHO_C" >&6
5583 cat >conftest.
$ac_ext <<_ACEOF
5584 #line $LINENO "configure"
5587 cat confdefs.h
>>conftest.
$ac_ext
5588 cat >>conftest.
$ac_ext <<_ACEOF
5589 /* end confdefs.h. */
5590 #include <sys/types.h>
5591 #include <sys/wait.h>
5593 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5596 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5604 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5609 rm -f conftest.
$ac_objext
5610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5611 (eval $ac_compile) 2>&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } &&
5615 { ac_try
='test -s conftest.$ac_objext'
5616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; }; then
5621 ac_cv_header_sys_wait_h
=yes
5623 echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.
$ac_ext >&5
5626 ac_cv_header_sys_wait_h
=no
5628 rm -f conftest.
$ac_objext conftest.
$ac_ext
5630 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5631 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5632 if test $ac_cv_header_sys_wait_h = yes; then
5634 cat >>confdefs.h
<<\_ACEOF
5635 #define HAVE_SYS_WAIT_H 1
5641 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5642 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5643 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 cat >conftest.
$ac_ext <<_ACEOF
5647 #line $LINENO "configure"
5650 cat confdefs.h
>>conftest.
$ac_ext
5651 cat >>conftest.
$ac_ext <<_ACEOF
5652 /* end confdefs.h. */
5653 #ifdef TIME_WITH_SYS_TIME
5654 #include <sys/time.h>
5657 #ifdef HAVE_SYS_TIME_H
5658 #include <sys/time.h>
5669 static struct utimbuf x; x.actime = x.modtime;
5674 rm -f conftest.
$ac_objext
5675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5676 (eval $ac_compile) 2>&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); } &&
5680 { ac_try
='test -s conftest.$ac_objext'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; }; then
5686 emacs_cv_struct_utimbuf
=yes
5688 echo "$as_me: failed program was:" >&5
5689 sed 's/^/| /' conftest.
$ac_ext >&5
5691 emacs_cv_struct_utimbuf
=no
5693 rm -f conftest.
$ac_objext conftest.
$ac_ext
5695 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5696 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5697 if test $emacs_cv_struct_utimbuf = yes; then
5699 cat >>confdefs.h
<<\_ACEOF
5700 #define HAVE_STRUCT_UTIMBUF 1
5705 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5706 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5707 if test "${ac_cv_type_signal+set}" = set; then
5708 echo $ECHO_N "(cached) $ECHO_C" >&6
5710 cat >conftest.
$ac_ext <<_ACEOF
5711 #line $LINENO "configure"
5714 cat confdefs.h
>>conftest.
$ac_ext
5715 cat >>conftest.
$ac_ext <<_ACEOF
5716 /* end confdefs.h. */
5717 #include <sys/types.h>
5723 extern "C" void (*signal (int, void (*)(int)))(int);
5725 void (*signal ()) ();
5736 rm -f conftest.
$ac_objext
5737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5738 (eval $ac_compile) 2>&5
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); } &&
5742 { ac_try
='test -s conftest.$ac_objext'
5743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; }; then
5748 ac_cv_type_signal
=void
5750 echo "$as_me: failed program was:" >&5
5751 sed 's/^/| /' conftest.
$ac_ext >&5
5753 ac_cv_type_signal
=int
5755 rm -f conftest.
$ac_objext conftest.
$ac_ext
5757 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5758 echo "${ECHO_T}$ac_cv_type_signal" >&6
5760 cat >>confdefs.h
<<_ACEOF
5761 #define RETSIGTYPE $ac_cv_type_signal
5766 echo "$as_me:$LINENO: checking for speed_t" >&5
5767 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5768 if test "${emacs_cv_speed_t+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5771 cat >conftest.
$ac_ext <<_ACEOF
5772 #line $LINENO "configure"
5775 cat confdefs.h
>>conftest.
$ac_ext
5776 cat >>conftest.
$ac_ext <<_ACEOF
5777 /* end confdefs.h. */
5778 #include <termios.h>
5787 rm -f conftest.
$ac_objext
5788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5789 (eval $ac_compile) 2>&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); } &&
5793 { ac_try
='test -s conftest.$ac_objext'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; }; then
5799 emacs_cv_speed_t
=yes
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.
$ac_ext >&5
5806 rm -f conftest.
$ac_objext conftest.
$ac_ext
5808 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5809 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5810 if test $emacs_cv_speed_t = yes; then
5812 cat >>confdefs.h
<<\_ACEOF
5813 #define HAVE_SPEED_T 1
5818 echo "$as_me:$LINENO: checking for struct timeval" >&5
5819 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5820 if test "${emacs_cv_struct_timeval+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 cat >conftest.
$ac_ext <<_ACEOF
5824 #line $LINENO "configure"
5827 cat confdefs.h
>>conftest.
$ac_ext
5828 cat >>conftest.
$ac_ext <<_ACEOF
5829 /* end confdefs.h. */
5830 #ifdef TIME_WITH_SYS_TIME
5831 #include <sys/time.h>
5834 #ifdef HAVE_SYS_TIME_H
5835 #include <sys/time.h>
5843 static struct timeval x; x.tv_sec = x.tv_usec;
5848 rm -f conftest.
$ac_objext
5849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5850 (eval $ac_compile) 2>&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); } &&
5854 { ac_try
='test -s conftest.$ac_objext'
5855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; }; then
5860 emacs_cv_struct_timeval
=yes
5862 echo "$as_me: failed program was:" >&5
5863 sed 's/^/| /' conftest.
$ac_ext >&5
5865 emacs_cv_struct_timeval
=no
5867 rm -f conftest.
$ac_objext conftest.
$ac_ext
5869 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5870 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5871 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
5872 if test $emacs_cv_struct_timeval = yes; then
5874 cat >>confdefs.h
<<\_ACEOF
5875 #define HAVE_TIMEVAL 1
5880 echo "$as_me:$LINENO: checking for struct exception" >&5
5881 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5882 if test "${emacs_cv_struct_exception+set}" = set; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5885 cat >conftest.
$ac_ext <<_ACEOF
5886 #line $LINENO "configure"
5889 cat confdefs.h
>>conftest.
$ac_ext
5890 cat >>conftest.
$ac_ext <<_ACEOF
5891 /* end confdefs.h. */
5896 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5901 rm -f conftest.
$ac_objext
5902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5903 (eval $ac_compile) 2>&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); } &&
5907 { ac_try
='test -s conftest.$ac_objext'
5908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); }; }; then
5913 emacs_cv_struct_exception
=yes
5915 echo "$as_me: failed program was:" >&5
5916 sed 's/^/| /' conftest.
$ac_ext >&5
5918 emacs_cv_struct_exception
=no
5920 rm -f conftest.
$ac_objext conftest.
$ac_ext
5922 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5923 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5924 HAVE_EXCEPTION
=$emacs_cv_struct_exception
5925 if test $emacs_cv_struct_exception != yes; then
5927 cat >>confdefs.h
<<\_ACEOF
5928 #define NO_MATHERR 1
5933 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5934 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5935 if test "${ac_cv_struct_tm+set}" = set; then
5936 echo $ECHO_N "(cached) $ECHO_C" >&6
5938 cat >conftest.
$ac_ext <<_ACEOF
5939 #line $LINENO "configure"
5942 cat confdefs.h
>>conftest.
$ac_ext
5943 cat >>conftest.
$ac_ext <<_ACEOF
5944 /* end confdefs.h. */
5945 #include <sys/types.h>
5951 struct tm *tp; tp->tm_sec;
5956 rm -f conftest.
$ac_objext
5957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5958 (eval $ac_compile) 2>&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); } &&
5962 { ac_try
='test -s conftest.$ac_objext'
5963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
5968 ac_cv_struct_tm
=time.h
5970 echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.
$ac_ext >&5
5973 ac_cv_struct_tm
=sys
/time.h
5975 rm -f conftest.
$ac_objext conftest.
$ac_ext
5977 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5978 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5979 if test $ac_cv_struct_tm = sys
/time.h
; then
5981 cat >>confdefs.h
<<\_ACEOF
5982 #define TM_IN_SYS_TIME 1
5987 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5988 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5989 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 cat >conftest.
$ac_ext <<_ACEOF
5993 #line $LINENO "configure"
5996 cat confdefs.h
>>conftest.
$ac_ext
5997 cat >>conftest.
$ac_ext <<_ACEOF
5998 /* end confdefs.h. */
5999 #include <sys/types.h>
6000 #include <$ac_cv_struct_tm>
6006 static struct tm ac_aggr;
6007 if (ac_aggr.tm_zone)
6013 rm -f conftest.
$ac_objext
6014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6015 (eval $ac_compile) 2>&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } &&
6019 { ac_try
='test -s conftest.$ac_objext'
6020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); }; }; then
6025 ac_cv_member_struct_tm_tm_zone
=yes
6027 echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.
$ac_ext >&5
6030 cat >conftest.
$ac_ext <<_ACEOF
6031 #line $LINENO "configure"
6034 cat confdefs.h
>>conftest.
$ac_ext
6035 cat >>conftest.
$ac_ext <<_ACEOF
6036 /* end confdefs.h. */
6037 #include <sys/types.h>
6038 #include <$ac_cv_struct_tm>
6044 static struct tm ac_aggr;
6045 if (sizeof ac_aggr.tm_zone)
6051 rm -f conftest.
$ac_objext
6052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6053 (eval $ac_compile) 2>&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } &&
6057 { ac_try
='test -s conftest.$ac_objext'
6058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); }; }; then
6063 ac_cv_member_struct_tm_tm_zone
=yes
6065 echo "$as_me: failed program was:" >&5
6066 sed 's/^/| /' conftest.
$ac_ext >&5
6068 ac_cv_member_struct_tm_tm_zone
=no
6070 rm -f conftest.
$ac_objext conftest.
$ac_ext
6072 rm -f conftest.
$ac_objext conftest.
$ac_ext
6074 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6075 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6076 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6078 cat >>confdefs.h
<<_ACEOF
6079 #define HAVE_STRUCT_TM_TM_ZONE 1
6085 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6087 cat >>confdefs.h
<<\_ACEOF
6088 #define HAVE_TM_ZONE 1
6092 echo "$as_me:$LINENO: checking for tzname" >&5
6093 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6094 if test "${ac_cv_var_tzname+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6097 cat >conftest.
$ac_ext <<_ACEOF
6098 #line $LINENO "configure"
6101 cat confdefs.h
>>conftest.
$ac_ext
6102 cat >>conftest.
$ac_ext <<_ACEOF
6103 /* end confdefs.h. */
6105 #ifndef tzname /* For SGI. */
6106 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6117 rm -f conftest.
$ac_objext conftest
$ac_exeext
6118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6119 (eval $ac_link) 2>&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } &&
6123 { ac_try
='test -s conftest$ac_exeext'
6124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; }; then
6129 ac_cv_var_tzname
=yes
6131 echo "$as_me: failed program was:" >&5
6132 sed 's/^/| /' conftest.
$ac_ext >&5
6136 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6138 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6139 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6140 if test $ac_cv_var_tzname = yes; then
6142 cat >>confdefs.h
<<\_ACEOF
6143 #define HAVE_TZNAME 1
6149 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6150 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6151 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
6154 cat >conftest.
$ac_ext <<_ACEOF
6155 #line $LINENO "configure"
6158 cat confdefs.h
>>conftest.
$ac_ext
6159 cat >>conftest.
$ac_ext <<_ACEOF
6160 /* end confdefs.h. */
6166 static struct tm ac_aggr;
6167 if (ac_aggr.tm_gmtoff)
6173 rm -f conftest.
$ac_objext
6174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6175 (eval $ac_compile) 2>&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } &&
6179 { ac_try
='test -s conftest.$ac_objext'
6180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; }; then
6185 ac_cv_member_struct_tm_tm_gmtoff
=yes
6187 echo "$as_me: failed program was:" >&5
6188 sed 's/^/| /' conftest.
$ac_ext >&5
6190 cat >conftest.
$ac_ext <<_ACEOF
6191 #line $LINENO "configure"
6194 cat confdefs.h
>>conftest.
$ac_ext
6195 cat >>conftest.
$ac_ext <<_ACEOF
6196 /* end confdefs.h. */
6202 static struct tm ac_aggr;
6203 if (sizeof ac_aggr.tm_gmtoff)
6209 rm -f conftest.
$ac_objext
6210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6211 (eval $ac_compile) 2>&5
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); } &&
6215 { ac_try
='test -s conftest.$ac_objext'
6216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); }; }; then
6221 ac_cv_member_struct_tm_tm_gmtoff
=yes
6223 echo "$as_me: failed program was:" >&5
6224 sed 's/^/| /' conftest.
$ac_ext >&5
6226 ac_cv_member_struct_tm_tm_gmtoff
=no
6228 rm -f conftest.
$ac_objext conftest.
$ac_ext
6230 rm -f conftest.
$ac_objext conftest.
$ac_ext
6232 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6233 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6234 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6236 cat >>confdefs.h
<<\_ACEOF
6237 #define HAVE_TM_GMTOFF 1
6244 echo "$as_me:$LINENO: checking for function prototypes" >&5
6245 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6246 if test "$ac_cv_prog_cc_stdc" != no
; then
6247 echo "$as_me:$LINENO: result: yes" >&5
6248 echo "${ECHO_T}yes" >&6
6250 cat >>confdefs.h
<<\_ACEOF
6251 #define PROTOTYPES 1
6255 cat >>confdefs.h
<<\_ACEOF
6256 #define __PROTOTYPES 1
6260 echo "$as_me:$LINENO: result: no" >&5
6261 echo "${ECHO_T}no" >&6
6264 echo "$as_me:$LINENO: checking for working volatile" >&5
6265 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6266 if test "${ac_cv_c_volatile+set}" = set; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6269 cat >conftest.
$ac_ext <<_ACEOF
6270 #line $LINENO "configure"
6273 cat confdefs.h
>>conftest.
$ac_ext
6274 cat >>conftest.
$ac_ext <<_ACEOF
6275 /* end confdefs.h. */
6287 rm -f conftest.
$ac_objext
6288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6289 (eval $ac_compile) 2>&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); } &&
6293 { ac_try
='test -s conftest.$ac_objext'
6294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); }; }; then
6299 ac_cv_c_volatile
=yes
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.
$ac_ext >&5
6306 rm -f conftest.
$ac_objext conftest.
$ac_ext
6308 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6309 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6310 if test $ac_cv_c_volatile = no
; then
6312 cat >>confdefs.h
<<\_ACEOF
6318 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6319 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6320 if test "${ac_cv_c_const+set}" = set; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
6323 cat >conftest.
$ac_ext <<_ACEOF
6324 #line $LINENO "configure"
6327 cat confdefs.h
>>conftest.
$ac_ext
6328 cat >>conftest.
$ac_ext <<_ACEOF
6329 /* end confdefs.h. */
6334 /* FIXME: Include the comments suggested by Paul. */
6336 /* Ultrix mips cc rejects this. */
6337 typedef int charset[2];
6339 /* SunOS 4.1.1 cc rejects this. */
6340 char const *const *ccp;
6342 /* NEC SVR4.0.2 mips cc rejects this. */
6343 struct point {int x, y;};
6344 static struct point const zero = {0,0};
6345 /* AIX XL C 1.02.0.0 rejects this.
6346 It does not let you subtract one const X* pointer from another in
6347 an arm of an if-expression whose if-part is not a constant
6349 const char *g = "string";
6350 ccp = &g + (g ? g-g : 0);
6351 /* HPUX 7.0 cc rejects these. */
6354 ccp = (char const *const *) p;
6355 { /* SCO 3.2v4 cc rejects this. */
6357 char const *s = 0 ? (char *) 0 : (char const *) 0;
6361 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6363 const int *foo = &x[0];
6366 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6367 typedef const int *iptr;
6371 { /* AIX XL C 1.02.0.0 rejects this saying
6372 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6373 struct s { int j; const int *ap[3]; };
6374 struct s *b; b->j = 5;
6376 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6385 rm -f conftest.
$ac_objext
6386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6387 (eval $ac_compile) 2>&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } &&
6391 { ac_try
='test -s conftest.$ac_objext'
6392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); }; }; then
6399 echo "$as_me: failed program was:" >&5
6400 sed 's/^/| /' conftest.
$ac_ext >&5
6404 rm -f conftest.
$ac_objext conftest.
$ac_ext
6406 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6407 echo "${ECHO_T}$ac_cv_c_const" >&6
6408 if test $ac_cv_c_const = no
; then
6410 cat >>confdefs.h
<<\_ACEOF
6416 echo "$as_me:$LINENO: checking for void * support" >&5
6417 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
6418 if test "${emacs_cv_void_star+set}" = set; then
6419 echo $ECHO_N "(cached) $ECHO_C" >&6
6421 cat >conftest.
$ac_ext <<_ACEOF
6422 #line $LINENO "configure"
6425 cat confdefs.h
>>conftest.
$ac_ext
6426 cat >>conftest.
$ac_ext <<_ACEOF
6427 /* end confdefs.h. */
6437 rm -f conftest.
$ac_objext
6438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6439 (eval $ac_compile) 2>&5
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); } &&
6443 { ac_try
='test -s conftest.$ac_objext'
6444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); }; }; then
6449 emacs_cv_void_star
=yes
6451 echo "$as_me: failed program was:" >&5
6452 sed 's/^/| /' conftest.
$ac_ext >&5
6454 emacs_cv_void_star
=no
6456 rm -f conftest.
$ac_objext conftest.
$ac_ext
6458 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6459 echo "${ECHO_T}$emacs_cv_void_star" >&6
6460 if test $emacs_cv_void_star = yes; then
6461 cat >>confdefs.h
<<\_ACEOF
6462 #define POINTER_TYPE void
6466 cat >>confdefs.h
<<\_ACEOF
6467 #define POINTER_TYPE char
6474 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6475 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6476 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
6477 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6480 cat >conftest.
make <<\_ACEOF
6482 @
echo 'ac_maketemp="$(MAKE)"'
6484 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6485 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6486 if test -n "$ac_maketemp"; then
6487 eval ac_cv_prog_make_
${ac_make}_set
=yes
6489 eval ac_cv_prog_make_
${ac_make}_set
=no
6493 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6494 echo "$as_me:$LINENO: result: yes" >&5
6495 echo "${ECHO_T}yes" >&6
6498 echo "$as_me:$LINENO: result: no" >&5
6499 echo "${ECHO_T}no" >&6
6500 SET_MAKE
="MAKE=${MAKE-make}"
6504 echo "$as_me:$LINENO: checking for long file names" >&5
6505 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
6506 if test "${ac_cv_sys_long_file_names+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6509 ac_cv_sys_long_file_names
=yes
6510 # Test for long file names in all the places we know might matter:
6511 # . the current directory, where building will happen
6512 # $prefix/lib where we will be installing things
6513 # $exec_prefix/lib likewise
6514 # eval it to expand exec_prefix.
6515 # $TMPDIR if set, where it might want to write temporary files
6516 # if $TMPDIR is not set:
6517 # /tmp where it might want to write temporary files
6520 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6523 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
6525 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6526 test -d $ac_dir ||
continue
6527 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
6528 ac_xdir
=$ac_dir/cf$$
6529 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
6530 ac_tf1
=$ac_xdir/conftest9012345
6531 ac_tf2
=$ac_xdir/conftest9012346
6532 (echo 1 >$ac_tf1) 2>/dev
/null
6533 (echo 2 >$ac_tf2) 2>/dev
/null
6534 ac_val
=`cat $ac_tf1 2>/dev/null`
6535 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
6536 ac_cv_sys_long_file_names
=no
6537 rm -rf $ac_xdir 2>/dev
/null
6540 rm -rf $ac_xdir 2>/dev
/null
6543 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6544 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6545 if test $ac_cv_sys_long_file_names = yes; then
6547 cat >>confdefs.h
<<\_ACEOF
6548 #define HAVE_LONG_FILE_NAMES 1
6554 #### Choose a window system.
6556 echo "$as_me:$LINENO: checking for X" >&5
6557 echo $ECHO_N "checking for X... $ECHO_C" >&6
6560 # Check whether --with-x or --without-x was given.
6561 if test "${with_x+set}" = set; then
6565 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6566 if test "x$with_x" = xno
; then
6567 # The user explicitly disabled X.
6570 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
6571 # Both variables are already set.
6574 if test "${ac_cv_have_x+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6577 # One or both of the vars are not set, and there is no cached value.
6578 ac_x_includes
=no ac_x_libraries
=no
6580 if mkdir conftest.dir
; then
6582 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6583 cat >Imakefile
<<'_ACEOF'
6585 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6587 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6588 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6589 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6590 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6591 for ac_extension
in a so sl
; do
6592 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
6593 test -f $ac_im_libdir/libX11.
$ac_extension; then
6594 ac_im_usrlibdir
=$ac_im_libdir; break
6597 # Screen out bogus values from the imake configuration. They are
6598 # bogus both because they are the default anyway, and because
6599 # using them would break gcc on systems where it needs fixed includes.
6600 case $ac_im_incroot in
6602 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6604 case $ac_im_usrlibdir in
6606 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6613 # Standard set of common directories for X headers.
6614 # Check X11 before X11Rn because it is often a symlink to the current release.
6626 /usr/local/X11/include
6627 /usr/local/X11R6/include
6628 /usr/local/X11R5/include
6629 /usr/local/X11R4/include
6631 /usr/local/include/X11
6632 /usr/local/include/X11R6
6633 /usr/local/include/X11R5
6634 /usr/local/include/X11R4
6638 /usr/XFree86/include/X11
6642 /usr/unsupported/include
6644 /usr/local/x11r5/include
6645 /usr/lpp/Xamples/include
6647 /usr/openwin/include
6648 /usr/openwin/share/include'
6650 if test "$ac_x_includes" = no
; then
6651 # Guess where to find include files, by looking for Intrinsic.h.
6652 # First, try using that file with no special directory specified.
6653 cat >conftest.
$ac_ext <<_ACEOF
6654 #line $LINENO "configure"
6657 cat confdefs.h
>>conftest.
$ac_ext
6658 cat >>conftest.
$ac_ext <<_ACEOF
6659 /* end confdefs.h. */
6660 #include <X11/Intrinsic.h>
6662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6663 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6665 grep -v '^ *+' conftest.er1
>conftest.err
6667 cat conftest.err
>&5
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); } >/dev
/null
; then
6670 if test -s conftest.err
; then
6671 ac_cpp_err
=$ac_c_preproc_warn_flag
6678 if test -z "$ac_cpp_err"; then
6679 # We can compile using X headers with no special include directory.
6682 echo "$as_me: failed program was:" >&5
6683 sed 's/^/| /' conftest.
$ac_ext >&5
6685 for ac_dir
in $ac_x_header_dirs; do
6686 if test -r "$ac_dir/X11/Intrinsic.h"; then
6687 ac_x_includes
=$ac_dir
6692 rm -f conftest.err conftest.
$ac_ext
6693 fi # $ac_x_includes = no
6695 if test "$ac_x_libraries" = no
; then
6696 # Check for the libraries.
6697 # See if we find them without any special options.
6698 # Don't add to $LIBS permanently.
6701 cat >conftest.
$ac_ext <<_ACEOF
6702 #line $LINENO "configure"
6705 cat confdefs.h
>>conftest.
$ac_ext
6706 cat >>conftest.
$ac_ext <<_ACEOF
6707 /* end confdefs.h. */
6708 #include <X11/Intrinsic.h>
6717 rm -f conftest.
$ac_objext conftest
$ac_exeext
6718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6719 (eval $ac_link) 2>&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); } &&
6723 { ac_try
='test -s conftest$ac_exeext'
6724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); }; }; then
6730 # We can link X programs with no special library path.
6733 echo "$as_me: failed program was:" >&5
6734 sed 's/^/| /' conftest.
$ac_ext >&5
6737 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6739 # Don't even attempt the hair of trying to link an X program!
6740 for ac_extension
in a so sl
; do
6741 if test -r $ac_dir/libXt.
$ac_extension; then
6742 ac_x_libraries
=$ac_dir
6748 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6749 fi # $ac_x_libraries = no
6751 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
6752 # Didn't find X anywhere. Cache the known absence of X.
6753 ac_cv_have_x
="have_x=no"
6755 # Record where we found X for the cache.
6756 ac_cv_have_x
="have_x=yes \
6757 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6762 eval "$ac_cv_have_x"
6765 if test "$have_x" != yes; then
6766 echo "$as_me:$LINENO: result: $have_x" >&5
6767 echo "${ECHO_T}$have_x" >&6
6770 # If each of the values was on the command line, it overrides each guess.
6771 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6772 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6773 # Update the cache value to reflect the command line values.
6774 ac_cv_have_x
="have_x=yes \
6775 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6776 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6777 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6780 if test "$no_x" = yes; then
6786 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
6787 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6788 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6789 x_default_search_path
=""
6790 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6792 ${x_library}/X11/%L/%T/%N%C%S:\
6793 ${x_library}/X11/%l/%T/%N%C%S:\
6794 ${x_library}/X11/%T/%N%C%S:\
6795 ${x_library}/X11/%L/%T/%N%S:\
6796 ${x_library}/X11/%l/%T/%N%S:\
6797 ${x_library}/X11/%T/%N%S"
6798 if test x
"${x_default_search_path}" = x
; then
6799 x_default_search_path
=${x_search_path}
6801 x_default_search_path
="${x_search_path}:${x_default_search_path}"
6805 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
6806 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6809 if test x
"${x_includes}" = x
; then
6810 bitmapdir
=/usr
/include
/X11
/bitmaps
6812 # accumulate include directories that have X11 bitmap subdirectories
6814 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6815 if test -d "${bmd}/X11/bitmaps"; then
6816 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
6818 if test -d "${bmd}/bitmaps"; then
6819 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
6822 if test ${bmd_acc} != "dummyval"; then
6823 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6827 case "${window_system}" in
6831 case "${with_x_toolkit}" in
6832 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
6833 motif
) USE_X_TOOLKIT
=MOTIF
;;
6835 USE_X_TOOLKIT
=none
;;
6836 no
) USE_X_TOOLKIT
=none
;;
6837 * ) USE_X_TOOLKIT
=maybe
;;
6847 ### If we're using X11, we should use the X menu package.
6850 yes ) HAVE_MENUS
=yes ;;
6853 if test "${opsys}" = "hpux9"; then
6854 case "${x_libraries}" in
6856 opsysfile
="s/hpux9-x11r4.h"
6861 if test "${opsys}" = "hpux9shr"; then
6862 case "${x_libraries}" in
6864 opsysfile
="s/hpux9shxr4.h"
6869 ### Compute the unexec source name from the object name.
6870 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
6872 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6873 # Assume not, until told otherwise.
6876 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6877 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6878 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6881 cat >conftest.
$ac_ext <<_ACEOF
6882 #line $LINENO "configure"
6885 cat confdefs.h
>>conftest.
$ac_ext
6886 cat >>conftest.
$ac_ext <<_ACEOF
6887 /* end confdefs.h. */
6888 /* System header to define __stub macros and hopefully few prototypes,
6889 which can conflict with char malloc_get_state (); below.
6890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6891 <limits.h> exists even on freestanding compilers. */
6893 # include <limits.h>
6895 # include <assert.h>
6897 /* Override any gcc2 internal prototype to avoid an error. */
6902 /* We use char because int might match the return type of a gcc2
6903 builtin and then its argument prototype would still apply. */
6904 char malloc_get_state ();
6905 /* The GNU C library defines this for functions which it implements
6906 to always fail with ENOSYS. Some functions are actually named
6907 something starting with __ and the normal name is an alias. */
6908 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6911 char (*f) () = malloc_get_state;
6920 return f != malloc_get_state;
6925 rm -f conftest.
$ac_objext conftest
$ac_exeext
6926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6927 (eval $ac_link) 2>&5
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); } &&
6931 { ac_try
='test -s conftest$ac_exeext'
6932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936 (exit $ac_status); }; }; then
6937 ac_cv_func_malloc_get_state
=yes
6939 echo "$as_me: failed program was:" >&5
6940 sed 's/^/| /' conftest.
$ac_ext >&5
6942 ac_cv_func_malloc_get_state
=no
6944 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6946 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6947 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6948 if test $ac_cv_func_malloc_get_state = yes; then
6954 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6955 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6956 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
6959 cat >conftest.
$ac_ext <<_ACEOF
6960 #line $LINENO "configure"
6963 cat confdefs.h
>>conftest.
$ac_ext
6964 cat >>conftest.
$ac_ext <<_ACEOF
6965 /* end confdefs.h. */
6966 /* System header to define __stub macros and hopefully few prototypes,
6967 which can conflict with char malloc_set_state (); below.
6968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6969 <limits.h> exists even on freestanding compilers. */
6971 # include <limits.h>
6973 # include <assert.h>
6975 /* Override any gcc2 internal prototype to avoid an error. */
6980 /* We use char because int might match the return type of a gcc2
6981 builtin and then its argument prototype would still apply. */
6982 char malloc_set_state ();
6983 /* The GNU C library defines this for functions which it implements
6984 to always fail with ENOSYS. Some functions are actually named
6985 something starting with __ and the normal name is an alias. */
6986 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
6989 char (*f) () = malloc_set_state;
6998 return f != malloc_set_state;
7003 rm -f conftest.
$ac_objext conftest
$ac_exeext
7004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7005 (eval $ac_link) 2>&5
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); } &&
7009 { ac_try
='test -s conftest$ac_exeext'
7010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); }; }; then
7015 ac_cv_func_malloc_set_state
=yes
7017 echo "$as_me: failed program was:" >&5
7018 sed 's/^/| /' conftest.
$ac_ext >&5
7020 ac_cv_func_malloc_set_state
=no
7022 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7024 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
7025 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
7026 if test $ac_cv_func_malloc_set_state = yes; then
7032 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7033 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
7034 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7035 echo $ECHO_N "(cached) $ECHO_C" >&6
7037 cat >conftest.
$ac_ext <<_ACEOF
7038 #line $LINENO "configure"
7041 cat confdefs.h
>>conftest.
$ac_ext
7042 cat >>conftest.
$ac_ext <<_ACEOF
7043 /* end confdefs.h. */
7044 extern void (* __after_morecore_hook)();
7048 __after_morecore_hook = 0
7053 rm -f conftest.
$ac_objext conftest
$ac_exeext
7054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7055 (eval $ac_link) 2>&5
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); } &&
7059 { ac_try
='test -s conftest$ac_exeext'
7060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); }; }; then
7065 emacs_cv_var___after_morecore_hook
=yes
7067 echo "$as_me: failed program was:" >&5
7068 sed 's/^/| /' conftest.
$ac_ext >&5
7070 emacs_cv_var___after_morecore_hook
=no
7072 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7074 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7075 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
7076 if test $emacs_cv_var___after_morecore_hook = no
; then
7079 if test "${system_malloc}" = "yes"; then
7082 (The GNU allocators don't work with this system configuration.)"
7084 if test "$doug_lea_malloc" = "yes" ; then
7085 if test "$GNU_MALLOC" = yes ; then
7087 (Using Doug Lea's new malloc from the GNU C Library.)"
7090 cat >>confdefs.h
<<\_ACEOF
7091 #define DOUG_LEA_MALLOC 1
7096 if test x
"${REL_ALLOC}" = x
; then
7097 REL_ALLOC
=${GNU_MALLOC}
7103 for ac_header
in stdlib.h unistd.h
7105 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7107 echo "$as_me:$LINENO: checking for $ac_header" >&5
7108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7115 # Is the header compilable?
7116 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7118 cat >conftest.
$ac_ext <<_ACEOF
7119 #line $LINENO "configure"
7122 cat confdefs.h
>>conftest.
$ac_ext
7123 cat >>conftest.
$ac_ext <<_ACEOF
7124 /* end confdefs.h. */
7125 $ac_includes_default
7126 #include <$ac_header>
7128 rm -f conftest.
$ac_objext
7129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7130 (eval $ac_compile) 2>&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } &&
7134 { ac_try
='test -s conftest.$ac_objext'
7135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); }; }; then
7140 ac_header_compiler
=yes
7142 echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.
$ac_ext >&5
7145 ac_header_compiler
=no
7147 rm -f conftest.
$ac_objext conftest.
$ac_ext
7148 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7149 echo "${ECHO_T}$ac_header_compiler" >&6
7151 # Is the header present?
7152 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7153 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7154 cat >conftest.
$ac_ext <<_ACEOF
7155 #line $LINENO "configure"
7158 cat confdefs.h
>>conftest.
$ac_ext
7159 cat >>conftest.
$ac_ext <<_ACEOF
7160 /* end confdefs.h. */
7161 #include <$ac_header>
7163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7164 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7166 grep -v '^ *+' conftest.er1
>conftest.err
7168 cat conftest.err
>&5
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); } >/dev
/null
; then
7171 if test -s conftest.err
; then
7172 ac_cpp_err
=$ac_c_preproc_warn_flag
7179 if test -z "$ac_cpp_err"; then
7180 ac_header_preproc
=yes
7182 echo "$as_me: failed program was:" >&5
7183 sed 's/^/| /' conftest.
$ac_ext >&5
7185 ac_header_preproc
=no
7187 rm -f conftest.err conftest.
$ac_ext
7188 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7189 echo "${ECHO_T}$ac_header_preproc" >&6
7191 # So? What about this header?
7192 case $ac_header_compiler:$ac_header_preproc in
7194 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7195 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7200 ## ------------------------------------ ##
7201 ## Report this to bug-autoconf@gnu.org. ##
7202 ## ------------------------------------ ##
7205 sed "s/^/$as_me: WARNING: /" >&2
7208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7211 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7213 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7216 ## ------------------------------------ ##
7217 ## Report this to bug-autoconf@gnu.org. ##
7218 ## ------------------------------------ ##
7221 sed "s/^/$as_me: WARNING: /" >&2
7224 echo "$as_me:$LINENO: checking for $ac_header" >&5
7225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7229 eval "$as_ac_Header=$ac_header_preproc"
7231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7236 cat >>confdefs.h
<<_ACEOF
7237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7245 for ac_func
in getpagesize
7247 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7248 echo "$as_me:$LINENO: checking for $ac_func" >&5
7249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7250 if eval "test \"\${$as_ac_var+set}\" = set"; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7253 cat >conftest.
$ac_ext <<_ACEOF
7254 #line $LINENO "configure"
7257 cat confdefs.h
>>conftest.
$ac_ext
7258 cat >>conftest.
$ac_ext <<_ACEOF
7259 /* end confdefs.h. */
7260 /* System header to define __stub macros and hopefully few prototypes,
7261 which can conflict with char $ac_func (); below.
7262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7263 <limits.h> exists even on freestanding compilers. */
7265 # include <limits.h>
7267 # include <assert.h>
7269 /* Override any gcc2 internal prototype to avoid an error. */
7274 /* We use char because int might match the return type of a gcc2
7275 builtin and then its argument prototype would still apply. */
7277 /* The GNU C library defines this for functions which it implements
7278 to always fail with ENOSYS. Some functions are actually named
7279 something starting with __ and the normal name is an alias. */
7280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7283 char (*f) () = $ac_func;
7292 return f != $ac_func;
7297 rm -f conftest.
$ac_objext conftest
$ac_exeext
7298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7299 (eval $ac_link) 2>&5
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); } &&
7303 { ac_try
='test -s conftest$ac_exeext'
7304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); }; }; then
7309 eval "$as_ac_var=yes"
7311 echo "$as_me: failed program was:" >&5
7312 sed 's/^/| /' conftest.
$ac_ext >&5
7314 eval "$as_ac_var=no"
7316 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7319 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7320 if test `eval echo '${'$as_ac_var'}'` = yes; then
7321 cat >>confdefs.h
<<_ACEOF
7322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7328 echo "$as_me:$LINENO: checking for working mmap" >&5
7329 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7330 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7333 if test "$cross_compiling" = yes; then
7334 ac_cv_func_mmap_fixed_mapped
=no
7336 cat >conftest.
$ac_ext <<_ACEOF
7337 #line $LINENO "configure"
7340 cat confdefs.h
>>conftest.
$ac_ext
7341 cat >>conftest.
$ac_ext <<_ACEOF
7342 /* end confdefs.h. */
7343 $ac_includes_default
7344 /* malloc might have been renamed as rpl_malloc. */
7347 /* Thanks to Mike Haertel and Jim Avera for this test.
7348 Here is a matrix of mmap possibilities:
7349 mmap private not fixed
7350 mmap private fixed at somewhere currently unmapped
7351 mmap private fixed at somewhere already mapped
7352 mmap shared not fixed
7353 mmap shared fixed at somewhere currently unmapped
7354 mmap shared fixed at somewhere already mapped
7355 For private mappings, we should verify that changes cannot be read()
7356 back from the file, nor mmap's back from the file at a different
7357 address. (There have been systems where private was not correctly
7358 implemented like the infamous i386 svr4.0, and systems where the
7359 VM page cache was not coherent with the file system buffer cache
7360 like early versions of FreeBSD and possibly contemporary NetBSD.)
7361 For shared mappings, we should conversely verify that changes get
7362 propagated back to all the places they're supposed to be.
7364 Grep wants private fixed already mapped.
7365 The main things grep needs to know about mmap are:
7366 * does it exist and is it safe to write into the mmap'd area
7367 * how to use it (BSD variants) */
7370 #include <sys/mman.h>
7372 #if !STDC_HEADERS && !HAVE_STDLIB_H
7376 /* This mess was copied from the GNU getpagesize.h. */
7377 #if !HAVE_GETPAGESIZE
7378 /* Assume that all systems that can run configure have sys/param.h. */
7379 # if !HAVE_SYS_PARAM_H
7380 # define HAVE_SYS_PARAM_H 1
7383 # ifdef _SC_PAGESIZE
7384 # define getpagesize() sysconf(_SC_PAGESIZE)
7385 # else /* no _SC_PAGESIZE */
7386 # if HAVE_SYS_PARAM_H
7387 # include <sys/param.h>
7388 # ifdef EXEC_PAGESIZE
7389 # define getpagesize() EXEC_PAGESIZE
7390 # else /* no EXEC_PAGESIZE */
7392 # define getpagesize() NBPG * CLSIZE
7395 # endif /* no CLSIZE */
7396 # else /* no NBPG */
7398 # define getpagesize() NBPC
7399 # else /* no NBPC */
7401 # define getpagesize() PAGESIZE
7402 # endif /* PAGESIZE */
7403 # endif /* no NBPC */
7404 # endif /* no NBPG */
7405 # endif /* no EXEC_PAGESIZE */
7406 # else /* no HAVE_SYS_PARAM_H */
7407 # define getpagesize() 8192 /* punt totally */
7408 # endif /* no HAVE_SYS_PARAM_H */
7409 # endif /* no _SC_PAGESIZE */
7411 #endif /* no HAVE_GETPAGESIZE */
7416 char *data, *data2, *data3;
7420 pagesize = getpagesize ();
7422 /* First, make a file with some known garbage in it. */
7423 data = (char *) malloc (pagesize);
7426 for (i = 0; i < pagesize; ++i)
7427 *(data + i) = rand ();
7429 fd = creat ("conftest.mmap", 0600);
7432 if (write (fd, data, pagesize) != pagesize)
7436 /* Next, try to mmap the file at a fixed address which already has
7437 something else allocated at it. If we can, also make sure that
7438 we see the same garbage. */
7439 fd = open ("conftest.mmap", O_RDWR);
7442 data2 = (char *) malloc (2 * pagesize);
7445 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7446 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7447 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7449 for (i = 0; i < pagesize; ++i)
7450 if (*(data + i) != *(data2 + i))
7453 /* Finally, make sure that changes to the mapped area do not
7454 percolate back to the file as seen by read(). (This is a bug on
7455 some variants of i386 svr4.0.) */
7456 for (i = 0; i < pagesize; ++i)
7457 *(data2 + i) = *(data2 + i) + 1;
7458 data3 = (char *) malloc (pagesize);
7461 if (read (fd, data3, pagesize) != pagesize)
7463 for (i = 0; i < pagesize; ++i)
7464 if (*(data + i) != *(data3 + i))
7470 rm -f conftest
$ac_exeext
7471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7472 (eval $ac_link) 2>&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); }; }; then
7481 ac_cv_func_mmap_fixed_mapped
=yes
7483 echo "$as_me: program exited with status $ac_status" >&5
7484 echo "$as_me: failed program was:" >&5
7485 sed 's/^/| /' conftest.
$ac_ext >&5
7488 ac_cv_func_mmap_fixed_mapped
=no
7490 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7493 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7494 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7495 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7497 cat >>confdefs.h
<<\_ACEOF
7504 if test $use_mmap_for_buffers = yes; then
7508 LIBS
="$libsrc_libs $LIBS"
7511 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7512 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7513 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7516 ac_check_lib_save_LIBS
=$LIBS
7518 cat >conftest.
$ac_ext <<_ACEOF
7519 #line $LINENO "configure"
7522 cat confdefs.h
>>conftest.
$ac_ext
7523 cat >>conftest.
$ac_ext <<_ACEOF
7524 /* end confdefs.h. */
7526 /* Override any gcc2 internal prototype to avoid an error. */
7530 /* We use char because int might match the return type of a gcc2
7531 builtin and then its argument prototype would still apply. */
7541 rm -f conftest.
$ac_objext conftest
$ac_exeext
7542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7543 (eval $ac_link) 2>&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); } &&
7547 { ac_try
='test -s conftest$ac_exeext'
7548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; }; then
7553 ac_cv_lib_dnet_dnet_ntoa
=yes
7555 echo "$as_me: failed program was:" >&5
7556 sed 's/^/| /' conftest.
$ac_ext >&5
7558 ac_cv_lib_dnet_dnet_ntoa
=no
7560 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7561 LIBS
=$ac_check_lib_save_LIBS
7563 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7564 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7565 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7566 cat >>confdefs.h
<<_ACEOF
7567 #define HAVE_LIBDNET 1
7575 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7576 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
7577 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7578 echo $ECHO_N "(cached) $ECHO_C" >&6
7580 ac_check_lib_save_LIBS
=$LIBS
7582 cat >conftest.
$ac_ext <<_ACEOF
7583 #line $LINENO "configure"
7586 cat confdefs.h
>>conftest.
$ac_ext
7587 cat >>conftest.
$ac_ext <<_ACEOF
7588 /* end confdefs.h. */
7599 rm -f conftest.
$ac_objext conftest
$ac_exeext
7600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7601 (eval $ac_link) 2>&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); } &&
7605 { ac_try
='test -s conftest$ac_exeext'
7606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); }; }; then
7611 ac_cv_lib_Xbsd_main
=yes
7613 echo "$as_me: failed program was:" >&5
7614 sed 's/^/| /' conftest.
$ac_ext >&5
7616 ac_cv_lib_Xbsd_main
=no
7618 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7619 LIBS
=$ac_check_lib_save_LIBS
7621 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7622 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7623 if test $ac_cv_lib_Xbsd_main = yes; then
7624 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
7629 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7630 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7631 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7634 ac_check_lib_save_LIBS
=$LIBS
7635 LIBS
="-lpthreads $LIBS"
7636 cat >conftest.
$ac_ext <<_ACEOF
7637 #line $LINENO "configure"
7640 cat confdefs.h
>>conftest.
$ac_ext
7641 cat >>conftest.
$ac_ext <<_ACEOF
7642 /* end confdefs.h. */
7644 /* Override any gcc2 internal prototype to avoid an error. */
7648 /* We use char because int might match the return type of a gcc2
7649 builtin and then its argument prototype would still apply. */
7659 rm -f conftest.
$ac_objext conftest
$ac_exeext
7660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7661 (eval $ac_link) 2>&5
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); } &&
7665 { ac_try
='test -s conftest$ac_exeext'
7666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); }; }; then
7671 ac_cv_lib_pthreads_cma_open
=yes
7673 echo "$as_me: failed program was:" >&5
7674 sed 's/^/| /' conftest.
$ac_ext >&5
7676 ac_cv_lib_pthreads_cma_open
=no
7678 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7679 LIBS
=$ac_check_lib_save_LIBS
7681 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7682 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7683 if test $ac_cv_lib_pthreads_cma_open = yes; then
7684 cat >>confdefs.h
<<_ACEOF
7685 #define HAVE_LIBPTHREADS 1
7688 LIBS
="-lpthreads $LIBS"
7693 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7694 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7695 if test -d /usr
/X386
/include
; then
7697 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7701 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7702 echo "${ECHO_T}$HAVE_XFREE386" >&6
7704 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7705 # used for the tests that follow. We set them back to REAL_CFLAGS and
7706 # REAL_CPPFLAGS later on.
7708 REAL_CPPFLAGS
="$CPPFLAGS"
7710 if test "${HAVE_X11}" = "yes"; then
7711 DEFS
="$C_SWITCH_X_SITE $DEFS"
7712 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
7714 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
7715 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
7717 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7718 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7719 # but it's more convenient here to set LD_RUN_PATH
7720 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7721 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
7722 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7726 if test "${opsys}" = "gnu-linux"; then
7727 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7728 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7729 cat >conftest.
$ac_ext <<_ACEOF
7730 #line $LINENO "configure"
7733 cat confdefs.h
>>conftest.
$ac_ext
7734 cat >>conftest.
$ac_ext <<_ACEOF
7735 /* end confdefs.h. */
7740 XOpenDisplay ("foo");
7745 rm -f conftest.
$ac_objext conftest
$ac_exeext
7746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7747 (eval $ac_link) 2>&5
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); } &&
7751 { ac_try
='test -s conftest$ac_exeext'
7752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); }; }; then
7757 xlinux_first_failure
=no
7759 echo "$as_me: failed program was:" >&5
7760 sed 's/^/| /' conftest.
$ac_ext >&5
7762 xlinux_first_failure
=yes
7764 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7765 if test "${xlinux_first_failure}" = "yes"; then
7766 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
7767 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
7768 OLD_CPPFLAGS
="$CPPFLAGS"
7770 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
7771 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
7772 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
7773 LIBS
="$LIBS -b i486-linuxaout"
7774 cat >conftest.
$ac_ext <<_ACEOF
7775 #line $LINENO "configure"
7778 cat confdefs.h
>>conftest.
$ac_ext
7779 cat >>conftest.
$ac_ext <<_ACEOF
7780 /* end confdefs.h. */
7785 XOpenDisplay ("foo");
7790 rm -f conftest.
$ac_objext conftest
$ac_exeext
7791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7792 (eval $ac_link) 2>&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); } &&
7796 { ac_try
='test -s conftest$ac_exeext'
7797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); }; }; then
7802 xlinux_second_failure
=no
7804 echo "$as_me: failed program was:" >&5
7805 sed 's/^/| /' conftest.
$ac_ext >&5
7807 xlinux_second_failure
=yes
7809 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7810 if test "${xlinux_second_failure}" = "yes"; then
7811 # If we get the same failure with -b, there is no use adding -b.
7812 # So take it out. This plays safe.
7813 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
7814 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
7815 CPPFLAGS
="$OLD_CPPFLAGS"
7817 echo "$as_me:$LINENO: result: no" >&5
7818 echo "${ECHO_T}no" >&6
7820 echo "$as_me:$LINENO: result: yes" >&5
7821 echo "${ECHO_T}yes" >&6
7824 echo "$as_me:$LINENO: result: no" >&5
7825 echo "${ECHO_T}no" >&6
7829 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7830 # header files included from there.
7831 echo "$as_me:$LINENO: checking for Xkb" >&5
7832 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7833 cat >conftest.
$ac_ext <<_ACEOF
7834 #line $LINENO "configure"
7837 cat confdefs.h
>>conftest.
$ac_ext
7838 cat >>conftest.
$ac_ext <<_ACEOF
7839 /* end confdefs.h. */
7840 #include <X11/Xlib.h>
7841 #include <X11/XKBlib.h>
7845 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7850 rm -f conftest.
$ac_objext conftest
$ac_exeext
7851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7852 (eval $ac_link) 2>&5
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); } &&
7856 { ac_try
='test -s conftest$ac_exeext'
7857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); }; }; then
7864 echo "$as_me: failed program was:" >&5
7865 sed 's/^/| /' conftest.
$ac_ext >&5
7869 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7870 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7871 echo "${ECHO_T}$emacs_xkb" >&6
7872 if test $emacs_xkb = yes; then
7874 cat >>confdefs.h
<<\_ACEOF
7875 #define HAVE_XKBGETKEYBOARD 1
7884 for ac_func
in XrmSetDatabase XScreenResourceString \
7885 XScreenNumberOfScreen XSetWMProtocols
7887 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7888 echo "$as_me:$LINENO: checking for $ac_func" >&5
7889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7890 if eval "test \"\${$as_ac_var+set}\" = set"; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
7893 cat >conftest.
$ac_ext <<_ACEOF
7894 #line $LINENO "configure"
7897 cat confdefs.h
>>conftest.
$ac_ext
7898 cat >>conftest.
$ac_ext <<_ACEOF
7899 /* end confdefs.h. */
7900 /* System header to define __stub macros and hopefully few prototypes,
7901 which can conflict with char $ac_func (); below.
7902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7903 <limits.h> exists even on freestanding compilers. */
7905 # include <limits.h>
7907 # include <assert.h>
7909 /* Override any gcc2 internal prototype to avoid an error. */
7914 /* We use char because int might match the return type of a gcc2
7915 builtin and then its argument prototype would still apply. */
7917 /* The GNU C library defines this for functions which it implements
7918 to always fail with ENOSYS. Some functions are actually named
7919 something starting with __ and the normal name is an alias. */
7920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7923 char (*f) () = $ac_func;
7932 return f != $ac_func;
7937 rm -f conftest.
$ac_objext conftest
$ac_exeext
7938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7939 (eval $ac_link) 2>&5
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); } &&
7943 { ac_try
='test -s conftest$ac_exeext'
7944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); }; }; then
7949 eval "$as_ac_var=yes"
7951 echo "$as_me: failed program was:" >&5
7952 sed 's/^/| /' conftest.
$ac_ext >&5
7954 eval "$as_ac_var=no"
7956 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7959 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7960 if test `eval echo '${'$as_ac_var'}'` = yes; then
7961 cat >>confdefs.h
<<_ACEOF
7962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7970 if test "${window_system}" = "x11"; then
7971 echo "$as_me:$LINENO: checking X11 version 6" >&5
7972 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
7973 if test "${emacs_cv_x11_version_6+set}" = set; then
7974 echo $ECHO_N "(cached) $ECHO_C" >&6
7976 cat >conftest.
$ac_ext <<_ACEOF
7977 #line $LINENO "configure"
7980 cat confdefs.h
>>conftest.
$ac_ext
7981 cat >>conftest.
$ac_ext <<_ACEOF
7982 /* end confdefs.h. */
7983 #include <X11/Xlib.h>
7987 #if XlibSpecificationRelease < 6
7995 rm -f conftest.
$ac_objext conftest
$ac_exeext
7996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7997 (eval $ac_link) 2>&5
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); } &&
8001 { ac_try
='test -s conftest$ac_exeext'
8002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); }; }; then
8007 emacs_cv_x11_version_6
=yes
8009 echo "$as_me: failed program was:" >&5
8010 sed 's/^/| /' conftest.
$ac_ext >&5
8012 emacs_cv_x11_version_6
=no
8014 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8017 if test $emacs_cv_x11_version_6 = yes; then
8018 echo "$as_me:$LINENO: result: 6 or newer" >&5
8019 echo "${ECHO_T}6 or newer" >&6
8021 cat >>confdefs.h
<<\_ACEOF
8022 #define HAVE_X11R6 1
8026 echo "$as_me:$LINENO: result: before 6" >&5
8027 echo "${ECHO_T}before 6" >&6
8031 if test "${window_system}" = "x11"; then
8032 echo "$as_me:$LINENO: checking X11 version 5" >&5
8033 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
8034 if test "${emacs_cv_x11_version_5+set}" = set; then
8035 echo $ECHO_N "(cached) $ECHO_C" >&6
8037 cat >conftest.
$ac_ext <<_ACEOF
8038 #line $LINENO "configure"
8041 cat confdefs.h
>>conftest.
$ac_ext
8042 cat >>conftest.
$ac_ext <<_ACEOF
8043 /* end confdefs.h. */
8044 #include <X11/Xlib.h>
8048 #if XlibSpecificationRelease < 5
8056 rm -f conftest.
$ac_objext conftest
$ac_exeext
8057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8058 (eval $ac_link) 2>&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } &&
8062 { ac_try
='test -s conftest$ac_exeext'
8063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }; }; then
8068 emacs_cv_x11_version_5
=yes
8070 echo "$as_me: failed program was:" >&5
8071 sed 's/^/| /' conftest.
$ac_ext >&5
8073 emacs_cv_x11_version_5
=no
8075 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8078 if test $emacs_cv_x11_version_5 = yes; then
8079 echo "$as_me:$LINENO: result: 5 or newer" >&5
8080 echo "${ECHO_T}5 or newer" >&6
8083 cat >>confdefs.h
<<\_ACEOF
8084 #define HAVE_X11R5 1
8089 echo "$as_me:$LINENO: result: before 5" >&5
8090 echo "${ECHO_T}before 5" >&6
8097 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
8098 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
8099 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
8100 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
8101 { (exit 1); exit 1; }; };
8105 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8107 if test "X${with_pkg_config_prog}" != X
; then
8108 PKG_CONFIG
="${with_pkg_config_prog}"
8113 if test -z "$PKG_CONFIG"; then
8114 # Extract the first word of "pkg-config", so it can be a program name with args.
8115 set dummy pkg-config
; ac_word
=$2
8116 echo "$as_me:$LINENO: checking for $ac_word" >&5
8117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8118 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8119 echo $ECHO_N "(cached) $ECHO_C" >&6
8123 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8126 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8130 test -z "$as_dir" && as_dir
=.
8131 for ac_exec_ext
in '' $ac_executable_extensions; do
8132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8133 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8140 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8144 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8146 if test -n "$PKG_CONFIG"; then
8147 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8148 echo "${ECHO_T}$PKG_CONFIG" >&6
8150 echo "$as_me:$LINENO: result: no" >&5
8151 echo "${ECHO_T}no" >&6
8156 if test "$PKG_CONFIG" = "no" ; then
8157 echo "*** The pkg-config script could not be found. Make sure it is"
8158 echo "*** in your path, or give the full path to pkg-config with"
8159 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
8160 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8162 PKG_CONFIG_MIN_VERSION
=0.9.0
8163 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8164 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
8165 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
8167 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
8168 echo "$as_me:$LINENO: result: yes" >&5
8169 echo "${ECHO_T}yes" >&6
8172 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
8173 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
8174 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
8175 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
8176 echo "${ECHO_T}$GTK_CFLAGS" >&6
8178 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
8179 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
8180 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
8181 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
8182 echo "${ECHO_T}$GTK_LIBS" >&6
8186 ## If we have a custom action on failure, don't print errors, but
8187 ## do set a variable so people can do so.
8188 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8189 echo $GTK_PKG_ERRORS
8195 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8196 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8200 if test $succeeded = yes; then
8203 { { 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
8204 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;}
8205 { (exit 1); exit 1; }; }
8210 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
8213 cat >>confdefs.h
<<\_ACEOF
8219 with_toolkit_scroll_bars
=yes
8222 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
8223 if test x
"${HAVE_X11R5}" = xyes
; then
8224 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
8225 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
8226 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8229 cat >conftest.
$ac_ext <<_ACEOF
8230 #line $LINENO "configure"
8233 cat confdefs.h
>>conftest.
$ac_ext
8234 cat >>conftest.
$ac_ext <<_ACEOF
8235 /* end confdefs.h. */
8237 #include <X11/Intrinsic.h>
8238 #include <X11/Xaw/Simple.h>
8247 rm -f conftest.
$ac_objext conftest
$ac_exeext
8248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8249 (eval $ac_link) 2>&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); } &&
8253 { ac_try
='test -s conftest$ac_exeext'
8254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); }; }; then
8259 emacs_cv_x11_version_5_with_xaw
=yes
8261 echo "$as_me: failed program was:" >&5
8262 sed 's/^/| /' conftest.
$ac_ext >&5
8264 emacs_cv_x11_version_5_with_xaw
=no
8266 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8269 if test $emacs_cv_x11_version_5_with_xaw = yes; then
8270 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
8271 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
8274 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
8275 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
8283 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
8285 if test "${USE_X_TOOLKIT}" != "none"; then
8286 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8287 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
8288 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8289 echo $ECHO_N "(cached) $ECHO_C" >&6
8291 cat >conftest.
$ac_ext <<_ACEOF
8292 #line $LINENO "configure"
8295 cat confdefs.h
>>conftest.
$ac_ext
8296 cat >>conftest.
$ac_ext <<_ACEOF
8297 /* end confdefs.h. */
8298 #include <X11/Intrinsic.h>
8302 #if XtSpecificationRelease < 6
8310 rm -f conftest.
$ac_objext conftest
$ac_exeext
8311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8312 (eval $ac_link) 2>&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); } &&
8316 { ac_try
='test -s conftest$ac_exeext'
8317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); }; }; then
8322 emacs_cv_x11_toolkit_version_6
=yes
8324 echo "$as_me: failed program was:" >&5
8325 sed 's/^/| /' conftest.
$ac_ext >&5
8327 emacs_cv_x11_toolkit_version_6
=no
8329 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8332 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
8333 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8334 echo "$as_me:$LINENO: result: 6 or newer" >&5
8335 echo "${ECHO_T}6 or newer" >&6
8337 cat >>confdefs.h
<<\_ACEOF
8338 #define HAVE_X11XTR6 1
8342 echo "$as_me:$LINENO: result: before 6" >&5
8343 echo "${ECHO_T}before 6" >&6
8347 if test x
$HAVE_X11XTR6 = xyes
; then
8348 LIBS
="-lXt -lSM -lICE $LIBS"
8353 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
8354 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
8355 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8358 ac_check_lib_save_LIBS
=$LIBS
8360 cat >conftest.
$ac_ext <<_ACEOF
8361 #line $LINENO "configure"
8364 cat confdefs.h
>>conftest.
$ac_ext
8365 cat >>conftest.
$ac_ext <<_ACEOF
8366 /* end confdefs.h. */
8368 /* Override any gcc2 internal prototype to avoid an error. */
8372 /* We use char because int might match the return type of a gcc2
8373 builtin and then its argument prototype would still apply. */
8374 char XmuConvertStandardSelection ();
8378 XmuConvertStandardSelection ();
8383 rm -f conftest.
$ac_objext conftest
$ac_exeext
8384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8385 (eval $ac_link) 2>&5
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); } &&
8389 { ac_try
='test -s conftest$ac_exeext'
8390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); }; }; then
8395 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
8397 echo "$as_me: failed program was:" >&5
8398 sed 's/^/| /' conftest.
$ac_ext >&5
8400 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
8402 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8403 LIBS
=$ac_check_lib_save_LIBS
8405 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8406 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
8407 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
8408 cat >>confdefs.h
<<_ACEOF
8409 #define HAVE_LIBXMU 1
8416 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
8419 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8420 if test "${HAVE_X11}" = "yes"; then
8421 if test "${USE_X_TOOLKIT}" != "none"; then
8423 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8424 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8425 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8428 ac_check_lib_save_LIBS
=$LIBS
8430 cat >conftest.
$ac_ext <<_ACEOF
8431 #line $LINENO "configure"
8434 cat confdefs.h
>>conftest.
$ac_ext
8435 cat >>conftest.
$ac_ext <<_ACEOF
8436 /* end confdefs.h. */
8438 /* Override any gcc2 internal prototype to avoid an error. */
8442 /* We use char because int might match the return type of a gcc2
8443 builtin and then its argument prototype would still apply. */
8444 char XShapeQueryExtension ();
8448 XShapeQueryExtension ();
8453 rm -f conftest.
$ac_objext conftest
$ac_exeext
8454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8455 (eval $ac_link) 2>&5
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); } &&
8459 { ac_try
='test -s conftest$ac_exeext'
8460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); }; }; then
8465 ac_cv_lib_Xext_XShapeQueryExtension
=yes
8467 echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.
$ac_ext >&5
8470 ac_cv_lib_Xext_XShapeQueryExtension
=no
8472 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8473 LIBS
=$ac_check_lib_save_LIBS
8475 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8476 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8477 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8478 cat >>confdefs.h
<<_ACEOF
8479 #define HAVE_LIBXEXT 1
8489 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8490 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
8491 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
8492 if test "${emacs_cv_lesstif+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8495 # We put this in CFLAGS temporarily to precede other -I options
8496 # that might be in CFLAGS temporarily.
8497 # We put this in CPPFLAGS where it precedes the other -I options.
8498 OLD_CPPFLAGS
=$CPPFLAGS
8500 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8501 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8502 cat >conftest.
$ac_ext <<_ACEOF
8503 #line $LINENO "configure"
8506 cat confdefs.h
>>conftest.
$ac_ext
8507 cat >>conftest.
$ac_ext <<_ACEOF
8508 /* end confdefs.h. */
8509 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8518 rm -f conftest.
$ac_objext
8519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8520 (eval $ac_compile) 2>&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } &&
8524 { ac_try
='test -s conftest.$ac_objext'
8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }; }; then
8530 emacs_cv_lesstif
=yes
8532 echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.
$ac_ext >&5
8537 rm -f conftest.
$ac_objext conftest.
$ac_ext
8539 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
8540 echo "${ECHO_T}$emacs_cv_lesstif" >&6
8541 if test $emacs_cv_lesstif = yes; then
8542 # Make sure this -I option remains in CPPFLAGS after it is set
8543 # back to REAL_CPPFLAGS.
8544 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8545 # have those other -I options anyway. Ultimately, having this
8546 # directory ultimately in CPPFLAGS will be enough.
8547 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8548 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
8551 CPPFLAGS
=$OLD_CPPFLAGS
8553 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
8554 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
8555 if test "${emacs_cv_motif_version_2_1+set}" = set; then
8556 echo $ECHO_N "(cached) $ECHO_C" >&6
8558 cat >conftest.
$ac_ext <<_ACEOF
8559 #line $LINENO "configure"
8562 cat confdefs.h
>>conftest.
$ac_ext
8563 cat >>conftest.
$ac_ext <<_ACEOF
8564 /* end confdefs.h. */
8569 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8572 Motif version prior to 2.1.
8578 rm -f conftest.
$ac_objext
8579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8580 (eval $ac_compile) 2>&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); } &&
8584 { ac_try
='test -s conftest.$ac_objext'
8585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); }; }; then
8590 emacs_cv_motif_version_2_1
=yes
8592 echo "$as_me: failed program was:" >&5
8593 sed 's/^/| /' conftest.
$ac_ext >&5
8595 emacs_cv_motif_version_2_1
=no
8597 rm -f conftest.
$ac_objext conftest.
$ac_ext
8599 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
8600 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
8601 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
8602 if test $emacs_cv_motif_version_2_1 = yes; then
8605 cat >>confdefs.h
<<\_ACEOF
8606 #define HAVE_MOTIF_2_1 1
8609 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
8610 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
8611 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
8612 echo $ECHO_N "(cached) $ECHO_C" >&6
8614 ac_check_lib_save_LIBS
=$LIBS
8616 cat >conftest.
$ac_ext <<_ACEOF
8617 #line $LINENO "configure"
8620 cat confdefs.h
>>conftest.
$ac_ext
8621 cat >>conftest.
$ac_ext <<_ACEOF
8622 /* end confdefs.h. */
8624 /* Override any gcc2 internal prototype to avoid an error. */
8628 /* We use char because int might match the return type of a gcc2
8629 builtin and then its argument prototype would still apply. */
8630 char XpCreateContext ();
8639 rm -f conftest.
$ac_objext conftest
$ac_exeext
8640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8641 (eval $ac_link) 2>&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } &&
8645 { ac_try
='test -s conftest$ac_exeext'
8646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); }; }; then
8651 ac_cv_lib_Xp_XpCreateContext
=yes
8653 echo "$as_me: failed program was:" >&5
8654 sed 's/^/| /' conftest.
$ac_ext >&5
8656 ac_cv_lib_Xp_XpCreateContext
=no
8658 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8659 LIBS
=$ac_check_lib_save_LIBS
8661 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8662 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
8663 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
8667 if test ${HAVE_LIBXP} = yes; then
8669 cat >>confdefs.h
<<\_ACEOF
8670 #define HAVE_LIBXP 1
8677 ### Is -lXaw3d available?
8679 if test "${HAVE_X11}" = "yes"; then
8680 if test "${USE_X_TOOLKIT}" != "none"; then
8681 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
8682 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
8683 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
8686 cat >conftest.
$ac_ext <<_ACEOF
8687 #line $LINENO "configure"
8690 cat confdefs.h
>>conftest.
$ac_ext
8691 cat >>conftest.
$ac_ext <<_ACEOF
8692 /* end confdefs.h. */
8693 #include <X11/Xaw3d/Scrollbar.h>
8695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8696 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8698 grep -v '^ *+' conftest.er1
>conftest.err
8700 cat conftest.err
>&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); } >/dev
/null
; then
8703 if test -s conftest.err
; then
8704 ac_cpp_err
=$ac_c_preproc_warn_flag
8711 if test -z "$ac_cpp_err"; then
8712 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
8714 echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.
$ac_ext >&5
8717 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
8719 rm -f conftest.err conftest.
$ac_ext
8721 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8722 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8723 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8724 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8725 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8726 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8727 echo $ECHO_N "(cached) $ECHO_C" >&6
8729 ac_check_lib_save_LIBS
=$LIBS
8730 LIBS
="-lXaw3d $LIBS"
8731 cat >conftest.
$ac_ext <<_ACEOF
8732 #line $LINENO "configure"
8735 cat confdefs.h
>>conftest.
$ac_ext
8736 cat >>conftest.
$ac_ext <<_ACEOF
8737 /* end confdefs.h. */
8739 /* Override any gcc2 internal prototype to avoid an error. */
8743 /* We use char because int might match the return type of a gcc2
8744 builtin and then its argument prototype would still apply. */
8745 char XawScrollbarSetThumb ();
8749 XawScrollbarSetThumb ();
8754 rm -f conftest.
$ac_objext conftest
$ac_exeext
8755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8756 (eval $ac_link) 2>&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } &&
8760 { ac_try
='test -s conftest$ac_exeext'
8761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; }; then
8766 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
8768 echo "$as_me: failed program was:" >&5
8769 sed 's/^/| /' conftest.
$ac_ext >&5
8771 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
8773 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8774 LIBS
=$ac_check_lib_save_LIBS
8776 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8777 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8778 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8785 if test "${HAVE_XAW3D}" = "yes"; then
8787 cat >>confdefs.h
<<\_ACEOF
8788 #define HAVE_XAW3D 1
8797 USE_TOOLKIT_SCROLL_BARS
=no
8798 if test "${with_toolkit_scroll_bars}" != "no"; then
8799 if test "${USE_X_TOOLKIT}" != "none"; then
8800 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8801 cat >>confdefs.h
<<\_ACEOF
8802 #define USE_TOOLKIT_SCROLL_BARS 1
8806 USE_TOOLKIT_SCROLL_BARS
=yes
8807 elif test "${HAVE_XAW3D}" = "yes"; then
8808 cat >>confdefs.h
<<\_ACEOF
8809 #define USE_TOOLKIT_SCROLL_BARS 1
8812 USE_TOOLKIT_SCROLL_BARS
=yes
8814 elif test "${HAVE_GTK}" = "yes"; then
8815 cat >>confdefs.h
<<\_ACEOF
8816 #define USE_TOOLKIT_SCROLL_BARS 1
8819 USE_TOOLKIT_SCROLL_BARS
=yes
8824 if test "${with_xim}" != "no"; then
8826 cat >>confdefs.h
<<\_ACEOF
8832 ### Use -lXpm if available, unless `--with-xpm=no'.
8834 if test "${HAVE_X11}" = "yes"; then
8835 if test "${with_xpm}" != "no"; then
8836 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8837 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8838 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8839 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8840 echo $ECHO_N "(cached) $ECHO_C" >&6
8842 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8843 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8845 # Is the header compilable?
8846 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
8847 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
8848 cat >conftest.
$ac_ext <<_ACEOF
8849 #line $LINENO "configure"
8852 cat confdefs.h
>>conftest.
$ac_ext
8853 cat >>conftest.
$ac_ext <<_ACEOF
8854 /* end confdefs.h. */
8855 $ac_includes_default
8856 #include <X11/xpm.h>
8858 rm -f conftest.
$ac_objext
8859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8860 (eval $ac_compile) 2>&5
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); } &&
8864 { ac_try
='test -s conftest.$ac_objext'
8865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); }; }; then
8870 ac_header_compiler
=yes
8872 echo "$as_me: failed program was:" >&5
8873 sed 's/^/| /' conftest.
$ac_ext >&5
8875 ac_header_compiler
=no
8877 rm -f conftest.
$ac_objext conftest.
$ac_ext
8878 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8879 echo "${ECHO_T}$ac_header_compiler" >&6
8881 # Is the header present?
8882 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
8883 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
8884 cat >conftest.
$ac_ext <<_ACEOF
8885 #line $LINENO "configure"
8888 cat confdefs.h
>>conftest.
$ac_ext
8889 cat >>conftest.
$ac_ext <<_ACEOF
8890 /* end confdefs.h. */
8891 #include <X11/xpm.h>
8893 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8894 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8896 grep -v '^ *+' conftest.er1
>conftest.err
8898 cat conftest.err
>&5
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); } >/dev
/null
; then
8901 if test -s conftest.err
; then
8902 ac_cpp_err
=$ac_c_preproc_warn_flag
8909 if test -z "$ac_cpp_err"; then
8910 ac_header_preproc
=yes
8912 echo "$as_me: failed program was:" >&5
8913 sed 's/^/| /' conftest.
$ac_ext >&5
8915 ac_header_preproc
=no
8917 rm -f conftest.err conftest.
$ac_ext
8918 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8919 echo "${ECHO_T}$ac_header_preproc" >&6
8921 # So? What about this header?
8922 case $ac_header_compiler:$ac_header_preproc in
8924 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8925 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8926 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8927 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
8930 ## ------------------------------------ ##
8931 ## Report this to bug-autoconf@gnu.org. ##
8932 ## ------------------------------------ ##
8935 sed "s/^/$as_me: WARNING: /" >&2
8938 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
8939 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
8940 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
8941 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
8942 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8943 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
8946 ## ------------------------------------ ##
8947 ## Report this to bug-autoconf@gnu.org. ##
8948 ## ------------------------------------ ##
8951 sed "s/^/$as_me: WARNING: /" >&2
8954 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8955 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8956 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8957 echo $ECHO_N "(cached) $ECHO_C" >&6
8959 ac_cv_header_X11_xpm_h
=$ac_header_preproc
8961 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8962 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8965 if test $ac_cv_header_X11_xpm_h = yes; then
8966 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
8967 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
8968 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
8969 echo $ECHO_N "(cached) $ECHO_C" >&6
8971 ac_check_lib_save_LIBS
=$LIBS
8972 LIBS
="-lXpm -lX11 $LIBS"
8973 cat >conftest.
$ac_ext <<_ACEOF
8974 #line $LINENO "configure"
8977 cat confdefs.h
>>conftest.
$ac_ext
8978 cat >>conftest.
$ac_ext <<_ACEOF
8979 /* end confdefs.h. */
8981 /* Override any gcc2 internal prototype to avoid an error. */
8985 /* We use char because int might match the return type of a gcc2
8986 builtin and then its argument prototype would still apply. */
8987 char XpmReadFileToPixmap ();
8991 XpmReadFileToPixmap ();
8996 rm -f conftest.
$ac_objext conftest
$ac_exeext
8997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8998 (eval $ac_link) 2>&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } &&
9002 { ac_try
='test -s conftest$ac_exeext'
9003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); }; }; then
9008 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
9010 echo "$as_me: failed program was:" >&5
9011 sed 's/^/| /' conftest.
$ac_ext >&5
9013 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
9015 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9016 LIBS
=$ac_check_lib_save_LIBS
9018 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9019 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
9020 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9027 if test "${HAVE_XPM}" = "yes"; then
9028 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9029 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
9030 cat >conftest.
$ac_ext <<_ACEOF
9031 #line $LINENO "configure"
9034 cat confdefs.h
>>conftest.
$ac_ext
9035 cat >>conftest.
$ac_ext <<_ACEOF
9036 /* end confdefs.h. */
9037 #include "X11/xpm.h"
9038 #ifndef XpmReturnAllocPixels
9039 no_return_alloc_pixels
9043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9044 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
9052 if test "${HAVE_XPM}" = "yes"; then
9053 echo "$as_me:$LINENO: result: yes" >&5
9054 echo "${ECHO_T}yes" >&6
9056 echo "$as_me:$LINENO: result: no" >&5
9057 echo "${ECHO_T}no" >&6
9062 if test "${HAVE_XPM}" = "yes"; then
9064 cat >>confdefs.h
<<\_ACEOF
9071 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9073 if test "${HAVE_X11}" = "yes"; then
9074 if test "${with_jpeg}" != "no"; then
9075 if test "${ac_cv_header_jerror_h+set}" = set; then
9076 echo "$as_me:$LINENO: checking for jerror.h" >&5
9077 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9078 if test "${ac_cv_header_jerror_h+set}" = set; then
9079 echo $ECHO_N "(cached) $ECHO_C" >&6
9081 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9082 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9084 # Is the header compilable?
9085 echo "$as_me:$LINENO: checking jerror.h usability" >&5
9086 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
9087 cat >conftest.
$ac_ext <<_ACEOF
9088 #line $LINENO "configure"
9091 cat confdefs.h
>>conftest.
$ac_ext
9092 cat >>conftest.
$ac_ext <<_ACEOF
9093 /* end confdefs.h. */
9094 $ac_includes_default
9097 rm -f conftest.
$ac_objext
9098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9099 (eval $ac_compile) 2>&5
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); } &&
9103 { ac_try
='test -s conftest.$ac_objext'
9104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); }; }; then
9109 ac_header_compiler
=yes
9111 echo "$as_me: failed program was:" >&5
9112 sed 's/^/| /' conftest.
$ac_ext >&5
9114 ac_header_compiler
=no
9116 rm -f conftest.
$ac_objext conftest.
$ac_ext
9117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9118 echo "${ECHO_T}$ac_header_compiler" >&6
9120 # Is the header present?
9121 echo "$as_me:$LINENO: checking jerror.h presence" >&5
9122 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
9123 cat >conftest.
$ac_ext <<_ACEOF
9124 #line $LINENO "configure"
9127 cat confdefs.h
>>conftest.
$ac_ext
9128 cat >>conftest.
$ac_ext <<_ACEOF
9129 /* end confdefs.h. */
9132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9133 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9135 grep -v '^ *+' conftest.er1
>conftest.err
9137 cat conftest.err
>&5
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); } >/dev
/null
; then
9140 if test -s conftest.err
; then
9141 ac_cpp_err
=$ac_c_preproc_warn_flag
9148 if test -z "$ac_cpp_err"; then
9149 ac_header_preproc
=yes
9151 echo "$as_me: failed program was:" >&5
9152 sed 's/^/| /' conftest.
$ac_ext >&5
9154 ac_header_preproc
=no
9156 rm -f conftest.err conftest.
$ac_ext
9157 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9158 echo "${ECHO_T}$ac_header_preproc" >&6
9160 # So? What about this header?
9161 case $ac_header_compiler:$ac_header_preproc in
9163 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
9164 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9165 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9166 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9169 ## ------------------------------------ ##
9170 ## Report this to bug-autoconf@gnu.org. ##
9171 ## ------------------------------------ ##
9174 sed "s/^/$as_me: WARNING: /" >&2
9177 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
9178 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
9179 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
9180 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
9181 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9182 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9185 ## ------------------------------------ ##
9186 ## Report this to bug-autoconf@gnu.org. ##
9187 ## ------------------------------------ ##
9190 sed "s/^/$as_me: WARNING: /" >&2
9193 echo "$as_me:$LINENO: checking for jerror.h" >&5
9194 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9195 if test "${ac_cv_header_jerror_h+set}" = set; then
9196 echo $ECHO_N "(cached) $ECHO_C" >&6
9198 ac_cv_header_jerror_h
=$ac_header_preproc
9200 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9201 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9204 if test $ac_cv_header_jerror_h = yes; then
9205 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9206 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
9207 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9210 ac_check_lib_save_LIBS
=$LIBS
9212 cat >conftest.
$ac_ext <<_ACEOF
9213 #line $LINENO "configure"
9216 cat confdefs.h
>>conftest.
$ac_ext
9217 cat >>conftest.
$ac_ext <<_ACEOF
9218 /* end confdefs.h. */
9220 /* Override any gcc2 internal prototype to avoid an error. */
9224 /* We use char because int might match the return type of a gcc2
9225 builtin and then its argument prototype would still apply. */
9226 char jpeg_destroy_compress ();
9230 jpeg_destroy_compress ();
9235 rm -f conftest.
$ac_objext conftest
$ac_exeext
9236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9237 (eval $ac_link) 2>&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } &&
9241 { ac_try
='test -s conftest$ac_exeext'
9242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); }; }; then
9247 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
9249 echo "$as_me: failed program was:" >&5
9250 sed 's/^/| /' conftest.
$ac_ext >&5
9252 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
9254 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9255 LIBS
=$ac_check_lib_save_LIBS
9257 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9258 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
9259 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
9269 if test "${HAVE_JPEG}" = "yes"; then
9270 cat >>confdefs.h
<<\_ACEOF
9274 cat >conftest.
$ac_ext <<_ACEOF
9275 #line $LINENO "configure"
9278 cat confdefs.h
>>conftest.
$ac_ext
9279 cat >>conftest.
$ac_ext <<_ACEOF
9280 /* end confdefs.h. */
9281 #include <jpeglib.h>
9282 version=JPEG_LIB_VERSION
9285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9286 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
9287 cat >>confdefs.h
<<\_ACEOF
9292 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
9293 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9301 ### Use -lpng if available, unless `--with-png=no'.
9303 if test "${HAVE_X11}" = "yes"; then
9304 if test "${with_png}" != "no"; then
9305 if test "${ac_cv_header_png_h+set}" = set; then
9306 echo "$as_me:$LINENO: checking for png.h" >&5
9307 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9308 if test "${ac_cv_header_png_h+set}" = set; then
9309 echo $ECHO_N "(cached) $ECHO_C" >&6
9311 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9312 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9314 # Is the header compilable?
9315 echo "$as_me:$LINENO: checking png.h usability" >&5
9316 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
9317 cat >conftest.
$ac_ext <<_ACEOF
9318 #line $LINENO "configure"
9321 cat confdefs.h
>>conftest.
$ac_ext
9322 cat >>conftest.
$ac_ext <<_ACEOF
9323 /* end confdefs.h. */
9324 $ac_includes_default
9327 rm -f conftest.
$ac_objext
9328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9329 (eval $ac_compile) 2>&5
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); } &&
9333 { ac_try
='test -s conftest.$ac_objext'
9334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); }; }; then
9339 ac_header_compiler
=yes
9341 echo "$as_me: failed program was:" >&5
9342 sed 's/^/| /' conftest.
$ac_ext >&5
9344 ac_header_compiler
=no
9346 rm -f conftest.
$ac_objext conftest.
$ac_ext
9347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9348 echo "${ECHO_T}$ac_header_compiler" >&6
9350 # Is the header present?
9351 echo "$as_me:$LINENO: checking png.h presence" >&5
9352 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
9353 cat >conftest.
$ac_ext <<_ACEOF
9354 #line $LINENO "configure"
9357 cat confdefs.h
>>conftest.
$ac_ext
9358 cat >>conftest.
$ac_ext <<_ACEOF
9359 /* end confdefs.h. */
9362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9363 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9365 grep -v '^ *+' conftest.er1
>conftest.err
9367 cat conftest.err
>&5
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); } >/dev
/null
; then
9370 if test -s conftest.err
; then
9371 ac_cpp_err
=$ac_c_preproc_warn_flag
9378 if test -z "$ac_cpp_err"; then
9379 ac_header_preproc
=yes
9381 echo "$as_me: failed program was:" >&5
9382 sed 's/^/| /' conftest.
$ac_ext >&5
9384 ac_header_preproc
=no
9386 rm -f conftest.err conftest.
$ac_ext
9387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9388 echo "${ECHO_T}$ac_header_preproc" >&6
9390 # So? What about this header?
9391 case $ac_header_compiler:$ac_header_preproc in
9393 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
9394 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9395 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9396 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9399 ## ------------------------------------ ##
9400 ## Report this to bug-autoconf@gnu.org. ##
9401 ## ------------------------------------ ##
9404 sed "s/^/$as_me: WARNING: /" >&2
9407 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
9408 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
9409 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
9410 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
9411 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9412 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9415 ## ------------------------------------ ##
9416 ## Report this to bug-autoconf@gnu.org. ##
9417 ## ------------------------------------ ##
9420 sed "s/^/$as_me: WARNING: /" >&2
9423 echo "$as_me:$LINENO: checking for png.h" >&5
9424 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9425 if test "${ac_cv_header_png_h+set}" = set; then
9426 echo $ECHO_N "(cached) $ECHO_C" >&6
9428 ac_cv_header_png_h
=$ac_header_preproc
9430 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9431 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9434 if test $ac_cv_header_png_h = yes; then
9435 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
9436 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
9437 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
9438 echo $ECHO_N "(cached) $ECHO_C" >&6
9440 ac_check_lib_save_LIBS
=$LIBS
9441 LIBS
="-lpng -lz -lm $LIBS"
9442 cat >conftest.
$ac_ext <<_ACEOF
9443 #line $LINENO "configure"
9446 cat confdefs.h
>>conftest.
$ac_ext
9447 cat >>conftest.
$ac_ext <<_ACEOF
9448 /* end confdefs.h. */
9450 /* Override any gcc2 internal prototype to avoid an error. */
9454 /* We use char because int might match the return type of a gcc2
9455 builtin and then its argument prototype would still apply. */
9456 char png_get_channels ();
9460 png_get_channels ();
9465 rm -f conftest.
$ac_objext conftest
$ac_exeext
9466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9467 (eval $ac_link) 2>&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); } &&
9471 { ac_try
='test -s conftest$ac_exeext'
9472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; }; then
9477 ac_cv_lib_png_png_get_channels
=yes
9479 echo "$as_me: failed program was:" >&5
9480 sed 's/^/| /' conftest.
$ac_ext >&5
9482 ac_cv_lib_png_png_get_channels
=no
9484 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9485 LIBS
=$ac_check_lib_save_LIBS
9487 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
9488 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
9489 if test $ac_cv_lib_png_png_get_channels = yes; then
9498 if test "${HAVE_PNG}" = "yes"; then
9500 cat >>confdefs.h
<<\_ACEOF
9507 ### Use -ltiff if available, unless `--with-tiff=no'.
9509 if test "${HAVE_X11}" = "yes"; then
9510 if test "${with_tiff}" != "no"; then
9511 if test "${ac_cv_header_tiffio_h+set}" = set; then
9512 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9513 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9514 if test "${ac_cv_header_tiffio_h+set}" = set; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9517 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9518 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9520 # Is the header compilable?
9521 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
9522 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
9523 cat >conftest.
$ac_ext <<_ACEOF
9524 #line $LINENO "configure"
9527 cat confdefs.h
>>conftest.
$ac_ext
9528 cat >>conftest.
$ac_ext <<_ACEOF
9529 /* end confdefs.h. */
9530 $ac_includes_default
9533 rm -f conftest.
$ac_objext
9534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9535 (eval $ac_compile) 2>&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } &&
9539 { ac_try
='test -s conftest.$ac_objext'
9540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); }; }; then
9545 ac_header_compiler
=yes
9547 echo "$as_me: failed program was:" >&5
9548 sed 's/^/| /' conftest.
$ac_ext >&5
9550 ac_header_compiler
=no
9552 rm -f conftest.
$ac_objext conftest.
$ac_ext
9553 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9554 echo "${ECHO_T}$ac_header_compiler" >&6
9556 # Is the header present?
9557 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
9558 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
9559 cat >conftest.
$ac_ext <<_ACEOF
9560 #line $LINENO "configure"
9563 cat confdefs.h
>>conftest.
$ac_ext
9564 cat >>conftest.
$ac_ext <<_ACEOF
9565 /* end confdefs.h. */
9568 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9569 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9571 grep -v '^ *+' conftest.er1
>conftest.err
9573 cat conftest.err
>&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); } >/dev
/null
; then
9576 if test -s conftest.err
; then
9577 ac_cpp_err
=$ac_c_preproc_warn_flag
9584 if test -z "$ac_cpp_err"; then
9585 ac_header_preproc
=yes
9587 echo "$as_me: failed program was:" >&5
9588 sed 's/^/| /' conftest.
$ac_ext >&5
9590 ac_header_preproc
=no
9592 rm -f conftest.err conftest.
$ac_ext
9593 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9594 echo "${ECHO_T}$ac_header_preproc" >&6
9596 # So? What about this header?
9597 case $ac_header_compiler:$ac_header_preproc in
9599 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9600 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9601 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9602 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9605 ## ------------------------------------ ##
9606 ## Report this to bug-autoconf@gnu.org. ##
9607 ## ------------------------------------ ##
9610 sed "s/^/$as_me: WARNING: /" >&2
9613 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
9614 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
9615 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
9616 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
9617 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9618 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9621 ## ------------------------------------ ##
9622 ## Report this to bug-autoconf@gnu.org. ##
9623 ## ------------------------------------ ##
9626 sed "s/^/$as_me: WARNING: /" >&2
9629 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9630 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9631 if test "${ac_cv_header_tiffio_h+set}" = set; then
9632 echo $ECHO_N "(cached) $ECHO_C" >&6
9634 ac_cv_header_tiffio_h
=$ac_header_preproc
9636 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9637 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9640 if test $ac_cv_header_tiffio_h = yes; then
9642 # At least one tiff package requires the jpeg library.
9643 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
9644 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
9645 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
9646 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9649 ac_check_lib_save_LIBS
=$LIBS
9650 LIBS
="-ltiff $tifflibs $LIBS"
9651 cat >conftest.
$ac_ext <<_ACEOF
9652 #line $LINENO "configure"
9655 cat confdefs.h
>>conftest.
$ac_ext
9656 cat >>conftest.
$ac_ext <<_ACEOF
9657 /* end confdefs.h. */
9659 /* Override any gcc2 internal prototype to avoid an error. */
9663 /* We use char because int might match the return type of a gcc2
9664 builtin and then its argument prototype would still apply. */
9665 char TIFFGetVersion ();
9674 rm -f conftest.
$ac_objext conftest
$ac_exeext
9675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9676 (eval $ac_link) 2>&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } &&
9680 { ac_try
='test -s conftest$ac_exeext'
9681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); }; }; then
9686 ac_cv_lib_tiff_TIFFGetVersion
=yes
9688 echo "$as_me: failed program was:" >&5
9689 sed 's/^/| /' conftest.
$ac_ext >&5
9691 ac_cv_lib_tiff_TIFFGetVersion
=no
9693 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9694 LIBS
=$ac_check_lib_save_LIBS
9696 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9697 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
9698 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
9707 if test "${HAVE_TIFF}" = "yes"; then
9709 cat >>confdefs.h
<<\_ACEOF
9716 ### Use -lgif if available, unless `--with-gif=no'.
9718 if test "${HAVE_X11}" = "yes"; then
9719 if test "${with_gif}" != "no"; then
9720 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9721 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9722 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9723 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9724 echo $ECHO_N "(cached) $ECHO_C" >&6
9726 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9727 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9729 # Is the header compilable?
9730 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
9731 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
9732 cat >conftest.
$ac_ext <<_ACEOF
9733 #line $LINENO "configure"
9736 cat confdefs.h
>>conftest.
$ac_ext
9737 cat >>conftest.
$ac_ext <<_ACEOF
9738 /* end confdefs.h. */
9739 $ac_includes_default
9740 #include <gif_lib.h>
9742 rm -f conftest.
$ac_objext
9743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9744 (eval $ac_compile) 2>&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } &&
9748 { ac_try
='test -s conftest.$ac_objext'
9749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; }; then
9754 ac_header_compiler
=yes
9756 echo "$as_me: failed program was:" >&5
9757 sed 's/^/| /' conftest.
$ac_ext >&5
9759 ac_header_compiler
=no
9761 rm -f conftest.
$ac_objext conftest.
$ac_ext
9762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9763 echo "${ECHO_T}$ac_header_compiler" >&6
9765 # Is the header present?
9766 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
9767 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
9768 cat >conftest.
$ac_ext <<_ACEOF
9769 #line $LINENO "configure"
9772 cat confdefs.h
>>conftest.
$ac_ext
9773 cat >>conftest.
$ac_ext <<_ACEOF
9774 /* end confdefs.h. */
9775 #include <gif_lib.h>
9777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9778 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9780 grep -v '^ *+' conftest.er1
>conftest.err
9782 cat conftest.err
>&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); } >/dev
/null
; then
9785 if test -s conftest.err
; then
9786 ac_cpp_err
=$ac_c_preproc_warn_flag
9793 if test -z "$ac_cpp_err"; then
9794 ac_header_preproc
=yes
9796 echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.
$ac_ext >&5
9799 ac_header_preproc
=no
9801 rm -f conftest.err conftest.
$ac_ext
9802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9803 echo "${ECHO_T}$ac_header_preproc" >&6
9805 # So? What about this header?
9806 case $ac_header_compiler:$ac_header_preproc in
9808 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9809 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9810 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9811 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9814 ## ------------------------------------ ##
9815 ## Report this to bug-autoconf@gnu.org. ##
9816 ## ------------------------------------ ##
9819 sed "s/^/$as_me: WARNING: /" >&2
9822 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
9823 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
9824 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
9825 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
9826 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9827 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9830 ## ------------------------------------ ##
9831 ## Report this to bug-autoconf@gnu.org. ##
9832 ## ------------------------------------ ##
9835 sed "s/^/$as_me: WARNING: /" >&2
9838 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9839 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9840 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9841 echo $ECHO_N "(cached) $ECHO_C" >&6
9843 ac_cv_header_gif_lib_h
=$ac_header_preproc
9845 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9846 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9849 if test $ac_cv_header_gif_lib_h = yes; then
9850 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9851 # Earlier versions can crash Emacs.
9852 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
9853 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
9854 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
9855 echo $ECHO_N "(cached) $ECHO_C" >&6
9857 ac_check_lib_save_LIBS
=$LIBS
9858 LIBS
="-lungif $LIBS"
9859 cat >conftest.
$ac_ext <<_ACEOF
9860 #line $LINENO "configure"
9863 cat confdefs.h
>>conftest.
$ac_ext
9864 cat >>conftest.
$ac_ext <<_ACEOF
9865 /* end confdefs.h. */
9867 /* Override any gcc2 internal prototype to avoid an error. */
9871 /* We use char because int might match the return type of a gcc2
9872 builtin and then its argument prototype would still apply. */
9873 char EGifPutExtensionLast ();
9877 EGifPutExtensionLast ();
9882 rm -f conftest.
$ac_objext conftest
$ac_exeext
9883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9884 (eval $ac_link) 2>&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); } &&
9888 { ac_try
='test -s conftest$ac_exeext'
9889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); }; }; then
9894 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
9896 echo "$as_me: failed program was:" >&5
9897 sed 's/^/| /' conftest.
$ac_ext >&5
9899 ac_cv_lib_ungif_EGifPutExtensionLast
=no
9901 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9902 LIBS
=$ac_check_lib_save_LIBS
9904 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
9905 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
9906 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
9915 if test "${HAVE_GIF}" = "yes"; then
9917 cat >>confdefs.h
<<\_ACEOF
9924 ### Use Mac OS X Carbon API to implement GUI.
9926 if test "${with_carbon}" != "no"; then
9927 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9928 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9929 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9930 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9931 echo $ECHO_N "(cached) $ECHO_C" >&6
9933 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9934 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
9936 # Is the header compilable?
9937 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9938 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
9939 cat >conftest.
$ac_ext <<_ACEOF
9940 #line $LINENO "configure"
9943 cat confdefs.h
>>conftest.
$ac_ext
9944 cat >>conftest.
$ac_ext <<_ACEOF
9945 /* end confdefs.h. */
9946 $ac_includes_default
9947 #include <Carbon/Carbon.h>
9949 rm -f conftest.
$ac_objext
9950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9951 (eval $ac_compile) 2>&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); } &&
9955 { ac_try
='test -s conftest.$ac_objext'
9956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }; }; then
9961 ac_header_compiler
=yes
9963 echo "$as_me: failed program was:" >&5
9964 sed 's/^/| /' conftest.
$ac_ext >&5
9966 ac_header_compiler
=no
9968 rm -f conftest.
$ac_objext conftest.
$ac_ext
9969 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9970 echo "${ECHO_T}$ac_header_compiler" >&6
9972 # Is the header present?
9973 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9974 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
9975 cat >conftest.
$ac_ext <<_ACEOF
9976 #line $LINENO "configure"
9979 cat confdefs.h
>>conftest.
$ac_ext
9980 cat >>conftest.
$ac_ext <<_ACEOF
9981 /* end confdefs.h. */
9982 #include <Carbon/Carbon.h>
9984 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9985 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9987 grep -v '^ *+' conftest.er1
>conftest.err
9989 cat conftest.err
>&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); } >/dev
/null
; then
9992 if test -s conftest.err
; then
9993 ac_cpp_err
=$ac_c_preproc_warn_flag
10000 if test -z "$ac_cpp_err"; then
10001 ac_header_preproc
=yes
10003 echo "$as_me: failed program was:" >&5
10004 sed 's/^/| /' conftest.
$ac_ext >&5
10006 ac_header_preproc
=no
10008 rm -f conftest.err conftest.
$ac_ext
10009 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10010 echo "${ECHO_T}$ac_header_preproc" >&6
10012 # So? What about this header?
10013 case $ac_header_compiler:$ac_header_preproc in
10015 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
10016 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10017 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10018 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10021 ## ------------------------------------ ##
10022 ## Report this to bug-autoconf@gnu.org. ##
10023 ## ------------------------------------ ##
10026 sed "s/^/$as_me: WARNING: /" >&2
10029 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
10030 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
10031 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
10032 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
10033 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10034 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10037 ## ------------------------------------ ##
10038 ## Report this to bug-autoconf@gnu.org. ##
10039 ## ------------------------------------ ##
10042 sed "s/^/$as_me: WARNING: /" >&2
10045 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10046 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10047 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10048 echo $ECHO_N "(cached) $ECHO_C" >&6
10050 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
10052 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10053 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10056 if test $ac_cv_header_Carbon_Carbon_h = yes; then
10063 if test "${HAVE_CARBON}" = "yes"; then
10065 cat >>confdefs.h
<<\_ACEOF
10066 #define HAVE_CARBON 1
10070 ## Specify the install directory
10072 if test "${carbon_appdir_x}" != ""; then
10073 case ${carbon_appdir_x} in
10074 y | ye |
yes) carbon_appdir
=/Applications
;;
10075 * ) carbon_appdir
=${carbon_appdir_x} ;;
10080 ### Use session management (-lSM -lICE) if available
10082 if test "${HAVE_X11}" = "yes"; then
10083 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10084 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10085 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10086 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10087 echo $ECHO_N "(cached) $ECHO_C" >&6
10089 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10090 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10092 # Is the header compilable?
10093 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
10094 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
10095 cat >conftest.
$ac_ext <<_ACEOF
10096 #line $LINENO "configure"
10099 cat confdefs.h
>>conftest.
$ac_ext
10100 cat >>conftest.
$ac_ext <<_ACEOF
10101 /* end confdefs.h. */
10102 $ac_includes_default
10103 #include <X11/SM/SMlib.h>
10105 rm -f conftest.
$ac_objext
10106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10107 (eval $ac_compile) 2>&5
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); } &&
10111 { ac_try
='test -s conftest.$ac_objext'
10112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10113 (eval $ac_try) 2>&5
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); }; }; then
10117 ac_header_compiler
=yes
10119 echo "$as_me: failed program was:" >&5
10120 sed 's/^/| /' conftest.
$ac_ext >&5
10122 ac_header_compiler
=no
10124 rm -f conftest.
$ac_objext conftest.
$ac_ext
10125 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10126 echo "${ECHO_T}$ac_header_compiler" >&6
10128 # Is the header present?
10129 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
10130 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
10131 cat >conftest.
$ac_ext <<_ACEOF
10132 #line $LINENO "configure"
10135 cat confdefs.h
>>conftest.
$ac_ext
10136 cat >>conftest.
$ac_ext <<_ACEOF
10137 /* end confdefs.h. */
10138 #include <X11/SM/SMlib.h>
10140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10141 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10143 grep -v '^ *+' conftest.er1
>conftest.err
10145 cat conftest.err
>&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); } >/dev
/null
; then
10148 if test -s conftest.err
; then
10149 ac_cpp_err
=$ac_c_preproc_warn_flag
10156 if test -z "$ac_cpp_err"; then
10157 ac_header_preproc
=yes
10159 echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.
$ac_ext >&5
10162 ac_header_preproc
=no
10164 rm -f conftest.err conftest.
$ac_ext
10165 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10166 echo "${ECHO_T}$ac_header_preproc" >&6
10168 # So? What about this header?
10169 case $ac_header_compiler:$ac_header_preproc in
10171 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10172 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10173 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10174 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10177 ## ------------------------------------ ##
10178 ## Report this to bug-autoconf@gnu.org. ##
10179 ## ------------------------------------ ##
10182 sed "s/^/$as_me: WARNING: /" >&2
10185 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
10186 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
10187 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
10188 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
10189 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10190 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10193 ## ------------------------------------ ##
10194 ## Report this to bug-autoconf@gnu.org. ##
10195 ## ------------------------------------ ##
10198 sed "s/^/$as_me: WARNING: /" >&2
10201 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10202 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10203 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10204 echo $ECHO_N "(cached) $ECHO_C" >&6
10206 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
10208 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10209 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10212 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
10213 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10214 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
10215 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10216 echo $ECHO_N "(cached) $ECHO_C" >&6
10218 ac_check_lib_save_LIBS
=$LIBS
10220 cat >conftest.
$ac_ext <<_ACEOF
10221 #line $LINENO "configure"
10224 cat confdefs.h
>>conftest.
$ac_ext
10225 cat >>conftest.
$ac_ext <<_ACEOF
10226 /* end confdefs.h. */
10228 /* Override any gcc2 internal prototype to avoid an error. */
10232 /* We use char because int might match the return type of a gcc2
10233 builtin and then its argument prototype would still apply. */
10234 char SmcOpenConnection ();
10238 SmcOpenConnection ();
10243 rm -f conftest.
$ac_objext conftest
$ac_exeext
10244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10245 (eval $ac_link) 2>&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); } &&
10249 { ac_try
='test -s conftest$ac_exeext'
10250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251 (eval $ac_try) 2>&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); }; }; then
10255 ac_cv_lib_SM_SmcOpenConnection
=yes
10257 echo "$as_me: failed program was:" >&5
10258 sed 's/^/| /' conftest.
$ac_ext >&5
10260 ac_cv_lib_SM_SmcOpenConnection
=no
10262 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10263 LIBS
=$ac_check_lib_save_LIBS
10265 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10266 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
10267 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
10277 if test "${HAVE_X_SM}" = "yes"; then
10279 cat >>confdefs.h
<<\_ACEOF
10280 #define HAVE_X_SM 1
10285 *) LIBS
="-lSM -lICE $LIBS" ;;
10290 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10291 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
10292 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
10293 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
10294 echo $ECHO_N "(cached) $ECHO_C" >&6
10296 cat >conftest.
$ac_ext <<_ACEOF
10297 #line $LINENO "configure"
10300 cat confdefs.h
>>conftest.
$ac_ext
10301 cat >>conftest.
$ac_ext <<_ACEOF
10302 /* end confdefs.h. */
10312 rm -f conftest.
$ac_objext conftest
$ac_exeext
10313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10314 (eval $ac_link) 2>&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); } &&
10318 { ac_try
='test -s conftest$ac_exeext'
10319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10320 (eval $ac_try) 2>&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); }; }; then
10324 emacs_cv_netdb_declares_h_errno
=yes
10326 echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.
$ac_ext >&5
10329 emacs_cv_netdb_declares_h_errno
=no
10331 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10333 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
10334 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
10335 if test $emacs_cv_netdb_declares_h_errno = yes; then
10337 cat >>confdefs.h
<<\_ACEOF
10338 #define HAVE_H_ERRNO 1
10343 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10344 # for constant arguments. Useless!
10345 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10346 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10347 if test "${ac_cv_working_alloca_h+set}" = set; then
10348 echo $ECHO_N "(cached) $ECHO_C" >&6
10350 cat >conftest.
$ac_ext <<_ACEOF
10351 #line $LINENO "configure"
10354 cat confdefs.h
>>conftest.
$ac_ext
10355 cat >>conftest.
$ac_ext <<_ACEOF
10356 /* end confdefs.h. */
10357 #include <alloca.h>
10361 char *p = (char *) alloca (2 * sizeof (int));
10366 rm -f conftest.
$ac_objext conftest
$ac_exeext
10367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10368 (eval $ac_link) 2>&5
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); } &&
10372 { ac_try
='test -s conftest$ac_exeext'
10373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10374 (eval $ac_try) 2>&5
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); }; }; then
10378 ac_cv_working_alloca_h
=yes
10380 echo "$as_me: failed program was:" >&5
10381 sed 's/^/| /' conftest.
$ac_ext >&5
10383 ac_cv_working_alloca_h
=no
10385 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10387 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10388 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10389 if test $ac_cv_working_alloca_h = yes; then
10391 cat >>confdefs.h
<<\_ACEOF
10392 #define HAVE_ALLOCA_H 1
10397 echo "$as_me:$LINENO: checking for alloca" >&5
10398 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10399 if test "${ac_cv_func_alloca_works+set}" = set; then
10400 echo $ECHO_N "(cached) $ECHO_C" >&6
10402 cat >conftest.
$ac_ext <<_ACEOF
10403 #line $LINENO "configure"
10406 cat confdefs.h
>>conftest.
$ac_ext
10407 cat >>conftest.
$ac_ext <<_ACEOF
10408 /* end confdefs.h. */
10410 # define alloca __builtin_alloca
10413 # include <malloc.h>
10414 # define alloca _alloca
10417 # include <alloca.h>
10422 # ifndef alloca /* predefined by HP cc +Olibcalls */
10433 char *p = (char *) alloca (1);
10438 rm -f conftest.
$ac_objext conftest
$ac_exeext
10439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10440 (eval $ac_link) 2>&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); } &&
10444 { ac_try
='test -s conftest$ac_exeext'
10445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446 (eval $ac_try) 2>&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; }; then
10450 ac_cv_func_alloca_works
=yes
10452 echo "$as_me: failed program was:" >&5
10453 sed 's/^/| /' conftest.
$ac_ext >&5
10455 ac_cv_func_alloca_works
=no
10457 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10459 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10460 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10462 if test $ac_cv_func_alloca_works = yes; then
10464 cat >>confdefs.h
<<\_ACEOF
10465 #define HAVE_ALLOCA 1
10469 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10470 # that cause trouble. Some versions do not even contain alloca or
10471 # contain a buggy version. If you still want to use their alloca,
10472 # use ar to extract alloca.o from them instead of compiling alloca.c.
10474 ALLOCA
=alloca.
$ac_objext
10476 cat >>confdefs.h
<<\_ACEOF
10481 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10482 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10483 if test "${ac_cv_os_cray+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10486 cat >conftest.
$ac_ext <<_ACEOF
10487 #line $LINENO "configure"
10490 cat confdefs.h
>>conftest.
$ac_ext
10491 cat >>conftest.
$ac_ext <<_ACEOF
10492 /* end confdefs.h. */
10493 #if defined(CRAY) && ! defined(CRAY2)
10500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10501 $EGREP "webecray" >/dev
/null
2>&1; then
10509 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10510 echo "${ECHO_T}$ac_cv_os_cray" >&6
10511 if test $ac_cv_os_cray = yes; then
10512 for ac_func
in _getb67 GETB67 getb67
; do
10513 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10514 echo "$as_me:$LINENO: checking for $ac_func" >&5
10515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10516 if eval "test \"\${$as_ac_var+set}\" = set"; then
10517 echo $ECHO_N "(cached) $ECHO_C" >&6
10519 cat >conftest.
$ac_ext <<_ACEOF
10520 #line $LINENO "configure"
10523 cat confdefs.h
>>conftest.
$ac_ext
10524 cat >>conftest.
$ac_ext <<_ACEOF
10525 /* end confdefs.h. */
10526 /* System header to define __stub macros and hopefully few prototypes,
10527 which can conflict with char $ac_func (); below.
10528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10529 <limits.h> exists even on freestanding compilers. */
10531 # include <limits.h>
10533 # include <assert.h>
10535 /* Override any gcc2 internal prototype to avoid an error. */
10540 /* We use char because int might match the return type of a gcc2
10541 builtin and then its argument prototype would still apply. */
10543 /* The GNU C library defines this for functions which it implements
10544 to always fail with ENOSYS. Some functions are actually named
10545 something starting with __ and the normal name is an alias. */
10546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10549 char (*f) () = $ac_func;
10558 return f != $ac_func;
10563 rm -f conftest.
$ac_objext conftest
$ac_exeext
10564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10565 (eval $ac_link) 2>&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); } &&
10569 { ac_try
='test -s conftest$ac_exeext'
10570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571 (eval $ac_try) 2>&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); }; }; then
10575 eval "$as_ac_var=yes"
10577 echo "$as_me: failed program was:" >&5
10578 sed 's/^/| /' conftest.
$ac_ext >&5
10580 eval "$as_ac_var=no"
10582 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10585 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10586 if test `eval echo '${'$as_ac_var'}'` = yes; then
10588 cat >>confdefs.h
<<_ACEOF
10589 #define CRAY_STACKSEG_END $ac_func
10598 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10599 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10600 if test "${ac_cv_c_stack_direction+set}" = set; then
10601 echo $ECHO_N "(cached) $ECHO_C" >&6
10603 if test "$cross_compiling" = yes; then
10604 ac_cv_c_stack_direction
=0
10606 cat >conftest.
$ac_ext <<_ACEOF
10607 #line $LINENO "configure"
10610 cat confdefs.h
>>conftest.
$ac_ext
10611 cat >>conftest.
$ac_ext <<_ACEOF
10612 /* end confdefs.h. */
10614 find_stack_direction ()
10616 static char *addr = 0;
10621 return find_stack_direction ();
10624 return (&dummy > addr) ? 1 : -1;
10630 exit (find_stack_direction () < 0);
10633 rm -f conftest
$ac_exeext
10634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10635 (eval $ac_link) 2>&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10640 (eval $ac_try) 2>&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); }; }; then
10644 ac_cv_c_stack_direction
=1
10646 echo "$as_me: program exited with status $ac_status" >&5
10647 echo "$as_me: failed program was:" >&5
10648 sed 's/^/| /' conftest.
$ac_ext >&5
10650 ( exit $ac_status )
10651 ac_cv_c_stack_direction
=-1
10653 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10656 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10657 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10659 cat >>confdefs.h
<<_ACEOF
10660 #define STACK_DIRECTION $ac_cv_c_stack_direction
10667 # fmod, logb, and frexp are found in -lm on most systems.
10668 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10670 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10671 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
10672 if test "${ac_cv_lib_m_sqrt+set}" = set; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10675 ac_check_lib_save_LIBS
=$LIBS
10677 cat >conftest.
$ac_ext <<_ACEOF
10678 #line $LINENO "configure"
10681 cat confdefs.h
>>conftest.
$ac_ext
10682 cat >>conftest.
$ac_ext <<_ACEOF
10683 /* end confdefs.h. */
10685 /* Override any gcc2 internal prototype to avoid an error. */
10689 /* We use char because int might match the return type of a gcc2
10690 builtin and then its argument prototype would still apply. */
10700 rm -f conftest.
$ac_objext conftest
$ac_exeext
10701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10702 (eval $ac_link) 2>&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); } &&
10706 { ac_try
='test -s conftest$ac_exeext'
10707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10708 (eval $ac_try) 2>&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); }; }; then
10712 ac_cv_lib_m_sqrt
=yes
10714 echo "$as_me: failed program was:" >&5
10715 sed 's/^/| /' conftest.
$ac_ext >&5
10717 ac_cv_lib_m_sqrt
=no
10719 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10720 LIBS
=$ac_check_lib_save_LIBS
10722 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10723 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
10724 if test $ac_cv_lib_m_sqrt = yes; then
10725 cat >>confdefs.h
<<_ACEOF
10726 #define HAVE_LIBM 1
10734 # Check for mail-locking functions in a "mail" library
10736 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10737 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
10738 if test "${ac_cv_lib_mail_maillock+set}" = set; then
10739 echo $ECHO_N "(cached) $ECHO_C" >&6
10741 ac_check_lib_save_LIBS
=$LIBS
10742 LIBS
="-lmail $LIBS"
10743 cat >conftest.
$ac_ext <<_ACEOF
10744 #line $LINENO "configure"
10747 cat confdefs.h
>>conftest.
$ac_ext
10748 cat >>conftest.
$ac_ext <<_ACEOF
10749 /* end confdefs.h. */
10751 /* Override any gcc2 internal prototype to avoid an error. */
10755 /* We use char because int might match the return type of a gcc2
10756 builtin and then its argument prototype would still apply. */
10766 rm -f conftest.
$ac_objext conftest
$ac_exeext
10767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10768 (eval $ac_link) 2>&5
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); } &&
10772 { ac_try
='test -s conftest$ac_exeext'
10773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10774 (eval $ac_try) 2>&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); }; }; then
10778 ac_cv_lib_mail_maillock
=yes
10780 echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.
$ac_ext >&5
10783 ac_cv_lib_mail_maillock
=no
10785 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10786 LIBS
=$ac_check_lib_save_LIBS
10788 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
10789 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
10790 if test $ac_cv_lib_mail_maillock = yes; then
10791 cat >>confdefs.h
<<_ACEOF
10792 #define HAVE_LIBMAIL 1
10795 LIBS
="-lmail $LIBS"
10800 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
10801 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
10802 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
10803 echo $ECHO_N "(cached) $ECHO_C" >&6
10805 ac_check_lib_save_LIBS
=$LIBS
10806 LIBS
="-llockfile $LIBS"
10807 cat >conftest.
$ac_ext <<_ACEOF
10808 #line $LINENO "configure"
10811 cat confdefs.h
>>conftest.
$ac_ext
10812 cat >>conftest.
$ac_ext <<_ACEOF
10813 /* end confdefs.h. */
10815 /* Override any gcc2 internal prototype to avoid an error. */
10819 /* We use char because int might match the return type of a gcc2
10820 builtin and then its argument prototype would still apply. */
10830 rm -f conftest.
$ac_objext conftest
$ac_exeext
10831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10832 (eval $ac_link) 2>&5
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); } &&
10836 { ac_try
='test -s conftest$ac_exeext'
10837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10838 (eval $ac_try) 2>&5
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); }; }; then
10842 ac_cv_lib_lockfile_maillock
=yes
10844 echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.
$ac_ext >&5
10847 ac_cv_lib_lockfile_maillock
=no
10849 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10850 LIBS
=$ac_check_lib_save_LIBS
10852 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
10853 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
10854 if test $ac_cv_lib_lockfile_maillock = yes; then
10855 cat >>confdefs.h
<<_ACEOF
10856 #define HAVE_LIBLOCKFILE 1
10859 LIBS
="-llockfile $LIBS"
10863 # If we have the shared liblockfile, assume we must use it for mail
10864 # locking (e.g. Debian). If we couldn't link against liblockfile
10865 # (no liblockfile.a installed), ensure that we don't need to.
10866 if test "$ac_cv_lib_lockfile_maillock" = no
; then
10867 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10868 set dummy liblockfile.so
; ac_word
=$2
10869 echo "$as_me:$LINENO: checking for $ac_word" >&5
10870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10871 if test "${ac_cv_prog_liblockfile+set}" = set; then
10872 echo $ECHO_N "(cached) $ECHO_C" >&6
10874 if test -n "$liblockfile"; then
10875 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
10877 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10878 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10879 for as_dir
in $as_dummy
10882 test -z "$as_dir" && as_dir
=.
10883 for ac_exec_ext
in '' $ac_executable_extensions; do
10884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10885 ac_cv_prog_liblockfile
="yes"
10886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10892 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
10895 liblockfile
=$ac_cv_prog_liblockfile
10896 if test -n "$liblockfile"; then
10897 echo "$as_me:$LINENO: result: $liblockfile" >&5
10898 echo "${ECHO_T}$liblockfile" >&6
10900 echo "$as_me:$LINENO: result: no" >&5
10901 echo "${ECHO_T}no" >&6
10904 if test $ac_cv_prog_liblockfile = yes; then
10905 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
10906 This probably means that movemail could lose mail.
10907 There may be a \`development' package to install containing liblockfile." >&5
10908 echo "$as_me: error: Shared liblockfile found but can't link against it.
10909 This probably means that movemail could lose mail.
10910 There may be a \`development' package to install containing liblockfile." >&2;}
10911 { (exit 1); exit 1; }; }
10913 cat >>confdefs.h
<<\_ACEOF
10914 #define LIBMAIL -llockfile
10921 for ac_func
in touchlock
10923 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10924 echo "$as_me:$LINENO: checking for $ac_func" >&5
10925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10926 if eval "test \"\${$as_ac_var+set}\" = set"; then
10927 echo $ECHO_N "(cached) $ECHO_C" >&6
10929 cat >conftest.
$ac_ext <<_ACEOF
10930 #line $LINENO "configure"
10933 cat confdefs.h
>>conftest.
$ac_ext
10934 cat >>conftest.
$ac_ext <<_ACEOF
10935 /* end confdefs.h. */
10936 /* System header to define __stub macros and hopefully few prototypes,
10937 which can conflict with char $ac_func (); below.
10938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10939 <limits.h> exists even on freestanding compilers. */
10941 # include <limits.h>
10943 # include <assert.h>
10945 /* Override any gcc2 internal prototype to avoid an error. */
10950 /* We use char because int might match the return type of a gcc2
10951 builtin and then its argument prototype would still apply. */
10953 /* The GNU C library defines this for functions which it implements
10954 to always fail with ENOSYS. Some functions are actually named
10955 something starting with __ and the normal name is an alias. */
10956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10959 char (*f) () = $ac_func;
10968 return f != $ac_func;
10973 rm -f conftest.
$ac_objext conftest
$ac_exeext
10974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10975 (eval $ac_link) 2>&5
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); } &&
10979 { ac_try
='test -s conftest$ac_exeext'
10980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981 (eval $ac_try) 2>&5
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); }; }; then
10985 eval "$as_ac_var=yes"
10987 echo "$as_me: failed program was:" >&5
10988 sed 's/^/| /' conftest.
$ac_ext >&5
10990 eval "$as_ac_var=no"
10992 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10995 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10996 if test `eval echo '${'$as_ac_var'}'` = yes; then
10997 cat >>confdefs.h
<<_ACEOF
10998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11005 for ac_header
in maillock.h
11007 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11009 echo "$as_me:$LINENO: checking for $ac_header" >&5
11010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11012 echo $ECHO_N "(cached) $ECHO_C" >&6
11014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11017 # Is the header compilable?
11018 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11019 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11020 cat >conftest.
$ac_ext <<_ACEOF
11021 #line $LINENO "configure"
11024 cat confdefs.h
>>conftest.
$ac_ext
11025 cat >>conftest.
$ac_ext <<_ACEOF
11026 /* end confdefs.h. */
11027 $ac_includes_default
11028 #include <$ac_header>
11030 rm -f conftest.
$ac_objext
11031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11032 (eval $ac_compile) 2>&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); } &&
11036 { ac_try
='test -s conftest.$ac_objext'
11037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11038 (eval $ac_try) 2>&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); }; }; then
11042 ac_header_compiler
=yes
11044 echo "$as_me: failed program was:" >&5
11045 sed 's/^/| /' conftest.
$ac_ext >&5
11047 ac_header_compiler
=no
11049 rm -f conftest.
$ac_objext conftest.
$ac_ext
11050 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11051 echo "${ECHO_T}$ac_header_compiler" >&6
11053 # Is the header present?
11054 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11055 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11056 cat >conftest.
$ac_ext <<_ACEOF
11057 #line $LINENO "configure"
11060 cat confdefs.h
>>conftest.
$ac_ext
11061 cat >>conftest.
$ac_ext <<_ACEOF
11062 /* end confdefs.h. */
11063 #include <$ac_header>
11065 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11066 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11068 grep -v '^ *+' conftest.er1
>conftest.err
11070 cat conftest.err
>&5
11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); } >/dev
/null
; then
11073 if test -s conftest.err
; then
11074 ac_cpp_err
=$ac_c_preproc_warn_flag
11081 if test -z "$ac_cpp_err"; then
11082 ac_header_preproc
=yes
11084 echo "$as_me: failed program was:" >&5
11085 sed 's/^/| /' conftest.
$ac_ext >&5
11087 ac_header_preproc
=no
11089 rm -f conftest.err conftest.
$ac_ext
11090 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11091 echo "${ECHO_T}$ac_header_preproc" >&6
11093 # So? What about this header?
11094 case $ac_header_compiler:$ac_header_preproc in
11096 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11102 ## ------------------------------------ ##
11103 ## Report this to bug-autoconf@gnu.org. ##
11104 ## ------------------------------------ ##
11107 sed "s/^/$as_me: WARNING: /" >&2
11110 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11112 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11113 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11118 ## ------------------------------------ ##
11119 ## Report this to bug-autoconf@gnu.org. ##
11120 ## ------------------------------------ ##
11123 sed "s/^/$as_me: WARNING: /" >&2
11126 echo "$as_me:$LINENO: checking for $ac_header" >&5
11127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11129 echo $ECHO_N "(cached) $ECHO_C" >&6
11131 eval "$as_ac_Header=$ac_header_preproc"
11133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11138 cat >>confdefs.h
<<_ACEOF
11139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11207 for ac_func
in gethostname getdomainname dup2 \
11208 rename closedir mkdir
rmdir sysinfo \
11209 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
11210 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
11211 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
11212 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11213 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11214 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero memset
11216 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11217 echo "$as_me:$LINENO: checking for $ac_func" >&5
11218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11219 if eval "test \"\${$as_ac_var+set}\" = set"; then
11220 echo $ECHO_N "(cached) $ECHO_C" >&6
11222 cat >conftest.
$ac_ext <<_ACEOF
11223 #line $LINENO "configure"
11226 cat confdefs.h
>>conftest.
$ac_ext
11227 cat >>conftest.
$ac_ext <<_ACEOF
11228 /* end confdefs.h. */
11229 /* System header to define __stub macros and hopefully few prototypes,
11230 which can conflict with char $ac_func (); below.
11231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11232 <limits.h> exists even on freestanding compilers. */
11234 # include <limits.h>
11236 # include <assert.h>
11238 /* Override any gcc2 internal prototype to avoid an error. */
11243 /* We use char because int might match the return type of a gcc2
11244 builtin and then its argument prototype would still apply. */
11246 /* The GNU C library defines this for functions which it implements
11247 to always fail with ENOSYS. Some functions are actually named
11248 something starting with __ and the normal name is an alias. */
11249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11252 char (*f) () = $ac_func;
11261 return f != $ac_func;
11266 rm -f conftest.
$ac_objext conftest
$ac_exeext
11267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11268 (eval $ac_link) 2>&5
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); } &&
11272 { ac_try
='test -s conftest$ac_exeext'
11273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11274 (eval $ac_try) 2>&5
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); }; }; then
11278 eval "$as_ac_var=yes"
11280 echo "$as_me: failed program was:" >&5
11281 sed 's/^/| /' conftest.
$ac_ext >&5
11283 eval "$as_ac_var=no"
11285 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11288 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11289 if test `eval echo '${'$as_ac_var'}'` = yes; then
11290 cat >>confdefs.h
<<_ACEOF
11291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11299 for ac_header
in sys
/un.h
11301 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11303 echo "$as_me:$LINENO: checking for $ac_header" >&5
11304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11306 echo $ECHO_N "(cached) $ECHO_C" >&6
11308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11311 # Is the header compilable?
11312 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11314 cat >conftest.
$ac_ext <<_ACEOF
11315 #line $LINENO "configure"
11318 cat confdefs.h
>>conftest.
$ac_ext
11319 cat >>conftest.
$ac_ext <<_ACEOF
11320 /* end confdefs.h. */
11321 $ac_includes_default
11322 #include <$ac_header>
11324 rm -f conftest.
$ac_objext
11325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11326 (eval $ac_compile) 2>&5
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); } &&
11330 { ac_try
='test -s conftest.$ac_objext'
11331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332 (eval $ac_try) 2>&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); }; }; then
11336 ac_header_compiler
=yes
11338 echo "$as_me: failed program was:" >&5
11339 sed 's/^/| /' conftest.
$ac_ext >&5
11341 ac_header_compiler
=no
11343 rm -f conftest.
$ac_objext conftest.
$ac_ext
11344 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11345 echo "${ECHO_T}$ac_header_compiler" >&6
11347 # Is the header present?
11348 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11350 cat >conftest.
$ac_ext <<_ACEOF
11351 #line $LINENO "configure"
11354 cat confdefs.h
>>conftest.
$ac_ext
11355 cat >>conftest.
$ac_ext <<_ACEOF
11356 /* end confdefs.h. */
11357 #include <$ac_header>
11359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11360 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11362 grep -v '^ *+' conftest.er1
>conftest.err
11364 cat conftest.err
>&5
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); } >/dev
/null
; then
11367 if test -s conftest.err
; then
11368 ac_cpp_err
=$ac_c_preproc_warn_flag
11375 if test -z "$ac_cpp_err"; then
11376 ac_header_preproc
=yes
11378 echo "$as_me: failed program was:" >&5
11379 sed 's/^/| /' conftest.
$ac_ext >&5
11381 ac_header_preproc
=no
11383 rm -f conftest.err conftest.
$ac_ext
11384 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11385 echo "${ECHO_T}$ac_header_preproc" >&6
11387 # So? What about this header?
11388 case $ac_header_compiler:$ac_header_preproc in
11390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11396 ## ------------------------------------ ##
11397 ## Report this to bug-autoconf@gnu.org. ##
11398 ## ------------------------------------ ##
11401 sed "s/^/$as_me: WARNING: /" >&2
11404 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11406 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11407 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11412 ## ------------------------------------ ##
11413 ## Report this to bug-autoconf@gnu.org. ##
11414 ## ------------------------------------ ##
11417 sed "s/^/$as_me: WARNING: /" >&2
11420 echo "$as_me:$LINENO: checking for $ac_header" >&5
11421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11423 echo $ECHO_N "(cached) $ECHO_C" >&6
11425 eval "$as_ac_Header=$ac_header_preproc"
11427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11432 cat >>confdefs.h
<<_ACEOF
11433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11443 for ac_header
in sys
/time.h unistd.h
11445 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11447 echo "$as_me:$LINENO: checking for $ac_header" >&5
11448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11450 echo $ECHO_N "(cached) $ECHO_C" >&6
11452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11455 # Is the header compilable?
11456 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11457 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11458 cat >conftest.
$ac_ext <<_ACEOF
11459 #line $LINENO "configure"
11462 cat confdefs.h
>>conftest.
$ac_ext
11463 cat >>conftest.
$ac_ext <<_ACEOF
11464 /* end confdefs.h. */
11465 $ac_includes_default
11466 #include <$ac_header>
11468 rm -f conftest.
$ac_objext
11469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11470 (eval $ac_compile) 2>&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } &&
11474 { ac_try
='test -s conftest.$ac_objext'
11475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11476 (eval $ac_try) 2>&5
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); }; }; then
11480 ac_header_compiler
=yes
11482 echo "$as_me: failed program was:" >&5
11483 sed 's/^/| /' conftest.
$ac_ext >&5
11485 ac_header_compiler
=no
11487 rm -f conftest.
$ac_objext conftest.
$ac_ext
11488 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11489 echo "${ECHO_T}$ac_header_compiler" >&6
11491 # Is the header present?
11492 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11493 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11494 cat >conftest.
$ac_ext <<_ACEOF
11495 #line $LINENO "configure"
11498 cat confdefs.h
>>conftest.
$ac_ext
11499 cat >>conftest.
$ac_ext <<_ACEOF
11500 /* end confdefs.h. */
11501 #include <$ac_header>
11503 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11504 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11506 grep -v '^ *+' conftest.er1
>conftest.err
11508 cat conftest.err
>&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); } >/dev
/null
; then
11511 if test -s conftest.err
; then
11512 ac_cpp_err
=$ac_c_preproc_warn_flag
11519 if test -z "$ac_cpp_err"; then
11520 ac_header_preproc
=yes
11522 echo "$as_me: failed program was:" >&5
11523 sed 's/^/| /' conftest.
$ac_ext >&5
11525 ac_header_preproc
=no
11527 rm -f conftest.err conftest.
$ac_ext
11528 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11529 echo "${ECHO_T}$ac_header_preproc" >&6
11531 # So? What about this header?
11532 case $ac_header_compiler:$ac_header_preproc in
11534 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11540 ## ------------------------------------ ##
11541 ## Report this to bug-autoconf@gnu.org. ##
11542 ## ------------------------------------ ##
11545 sed "s/^/$as_me: WARNING: /" >&2
11548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11551 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11556 ## ------------------------------------ ##
11557 ## Report this to bug-autoconf@gnu.org. ##
11558 ## ------------------------------------ ##
11561 sed "s/^/$as_me: WARNING: /" >&2
11564 echo "$as_me:$LINENO: checking for $ac_header" >&5
11565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11567 echo $ECHO_N "(cached) $ECHO_C" >&6
11569 eval "$as_ac_Header=$ac_header_preproc"
11571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11572 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11575 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11576 cat >>confdefs.h
<<_ACEOF
11577 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11585 for ac_func
in alarm
11587 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11588 echo "$as_me:$LINENO: checking for $ac_func" >&5
11589 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11590 if eval "test \"\${$as_ac_var+set}\" = set"; then
11591 echo $ECHO_N "(cached) $ECHO_C" >&6
11593 cat >conftest.
$ac_ext <<_ACEOF
11594 #line $LINENO "configure"
11597 cat confdefs.h
>>conftest.
$ac_ext
11598 cat >>conftest.
$ac_ext <<_ACEOF
11599 /* end confdefs.h. */
11600 /* System header to define __stub macros and hopefully few prototypes,
11601 which can conflict with char $ac_func (); below.
11602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11603 <limits.h> exists even on freestanding compilers. */
11605 # include <limits.h>
11607 # include <assert.h>
11609 /* Override any gcc2 internal prototype to avoid an error. */
11614 /* We use char because int might match the return type of a gcc2
11615 builtin and then its argument prototype would still apply. */
11617 /* The GNU C library defines this for functions which it implements
11618 to always fail with ENOSYS. Some functions are actually named
11619 something starting with __ and the normal name is an alias. */
11620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11623 char (*f) () = $ac_func;
11632 return f != $ac_func;
11637 rm -f conftest.
$ac_objext conftest
$ac_exeext
11638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11639 (eval $ac_link) 2>&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); } &&
11643 { ac_try
='test -s conftest$ac_exeext'
11644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645 (eval $ac_try) 2>&5
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); }; }; then
11649 eval "$as_ac_var=yes"
11651 echo "$as_me: failed program was:" >&5
11652 sed 's/^/| /' conftest.
$ac_ext >&5
11654 eval "$as_ac_var=no"
11656 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11659 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11660 if test `eval echo '${'$as_ac_var'}'` = yes; then
11661 cat >>confdefs.h
<<_ACEOF
11662 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11668 echo "$as_me:$LINENO: checking for working mktime" >&5
11669 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
11670 if test "${ac_cv_func_working_mktime+set}" = set; then
11671 echo $ECHO_N "(cached) $ECHO_C" >&6
11673 if test "$cross_compiling" = yes; then
11674 ac_cv_func_working_mktime
=no
11676 cat >conftest.
$ac_ext <<_ACEOF
11677 #line $LINENO "configure"
11680 cat confdefs.h
>>conftest.
$ac_ext
11681 cat >>conftest.
$ac_ext <<_ACEOF
11682 /* end confdefs.h. */
11683 /* Test program from Paul Eggert and Tony Leneis. */
11684 #if TIME_WITH_SYS_TIME
11685 # include <sys/time.h>
11688 # if HAVE_SYS_TIME_H
11689 # include <sys/time.h>
11696 # include <unistd.h>
11700 # define alarm(X) /* empty */
11703 /* Work around redefinition to rpl_putenv by other config tests. */
11706 static time_t time_t_max;
11708 /* Values we'll use to set the TZ environment variable. */
11709 static const char *const tz_strings[] = {
11710 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11711 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11713 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11715 /* Fail if mktime fails to convert a date in the spring-forward gap.
11716 Based on a problem report from Andreas Jaeger. */
11718 spring_forward_gap ()
11720 /* glibc (up to about 1998-10-07) failed this test. */
11723 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11724 instead of "TZ=America/Vancouver" in order to detect the bug even
11725 on systems that don't support the Olson extension, or don't have the
11726 full zoneinfo tables installed. */
11727 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11736 if (mktime (&tm) == (time_t)-1)
11745 if ((lt = localtime (&now)) && mktime (lt) != now)
11747 now = time_t_max - now;
11748 if ((lt = localtime (&now)) && mktime (lt) != now)
11755 /* Based on code from Ariel Faigon. */
11765 if (tm.tm_mon != 2 || tm.tm_mday != 31)
11775 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11776 now = mktime (&tm);
11777 if (now != (time_t) -1)
11779 struct tm *lt = localtime (&now);
11781 && lt->tm_year == tm.tm_year
11782 && lt->tm_mon == tm.tm_mon
11783 && lt->tm_mday == tm.tm_mday
11784 && lt->tm_hour == tm.tm_hour
11785 && lt->tm_min == tm.tm_min
11786 && lt->tm_sec == tm.tm_sec
11787 && lt->tm_yday == tm.tm_yday
11788 && lt->tm_wday == tm.tm_wday
11789 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11790 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11801 /* This test makes some buggy mktime implementations loop.
11802 Give up after 60 seconds; a mktime slower than that
11803 isn't worth using anyway. */
11806 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11809 delta = time_t_max / 997; /* a suitable prime number */
11810 for (i = 0; i < N_STRINGS; i++)
11813 putenv (tz_strings[i]);
11815 for (t = 0; t <= time_t_max - delta; t += delta)
11817 mktime_test ((time_t) 60 * 60);
11818 mktime_test ((time_t) 60 * 60 * 24);
11820 for (j = 1; 0 < j; j *= 2)
11822 bigtime_test (j - 1);
11825 spring_forward_gap ();
11829 rm -f conftest
$ac_exeext
11830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11831 (eval $ac_link) 2>&5
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11836 (eval $ac_try) 2>&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; }; then
11840 ac_cv_func_working_mktime
=yes
11842 echo "$as_me: program exited with status $ac_status" >&5
11843 echo "$as_me: failed program was:" >&5
11844 sed 's/^/| /' conftest.
$ac_ext >&5
11846 ( exit $ac_status )
11847 ac_cv_func_working_mktime
=no
11849 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11852 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11853 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
11854 if test $ac_cv_func_working_mktime = no
; then
11855 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
11858 if test "$ac_cv_func_working_mktime" = no
; then
11860 cat >>confdefs.h
<<\_ACEOF
11861 #define BROKEN_MKTIME 1
11866 ac_have_func
=no
# yes means we've found a way to get the load average.
11868 # Make sure getloadavg.c is where it belongs, at configure-time.
11869 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11870 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
11871 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
11872 { (exit 1); exit 1; }; }
11876 # Check for getloadavg, but be sure not to touch the cache variable.
11877 (echo "$as_me:$LINENO: checking for getloadavg" >&5
11878 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
11879 if test "${ac_cv_func_getloadavg+set}" = set; then
11880 echo $ECHO_N "(cached) $ECHO_C" >&6
11882 cat >conftest.
$ac_ext <<_ACEOF
11883 #line $LINENO "configure"
11886 cat confdefs.h
>>conftest.
$ac_ext
11887 cat >>conftest.
$ac_ext <<_ACEOF
11888 /* end confdefs.h. */
11889 /* System header to define __stub macros and hopefully few prototypes,
11890 which can conflict with char getloadavg (); below.
11891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11892 <limits.h> exists even on freestanding compilers. */
11894 # include <limits.h>
11896 # include <assert.h>
11898 /* Override any gcc2 internal prototype to avoid an error. */
11903 /* We use char because int might match the return type of a gcc2
11904 builtin and then its argument prototype would still apply. */
11905 char getloadavg ();
11906 /* The GNU C library defines this for functions which it implements
11907 to always fail with ENOSYS. Some functions are actually named
11908 something starting with __ and the normal name is an alias. */
11909 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
11912 char (*f) () = getloadavg;
11921 return f != getloadavg;
11926 rm -f conftest.
$ac_objext conftest
$ac_exeext
11927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11928 (eval $ac_link) 2>&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } &&
11932 { ac_try
='test -s conftest$ac_exeext'
11933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11934 (eval $ac_try) 2>&5
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); }; }; then
11938 ac_cv_func_getloadavg
=yes
11940 echo "$as_me: failed program was:" >&5
11941 sed 's/^/| /' conftest.
$ac_ext >&5
11943 ac_cv_func_getloadavg
=no
11945 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11947 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
11948 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
11949 if test $ac_cv_func_getloadavg = yes; then
11954 ) && ac_have_func
=yes
11956 # On HPUX9, an unprivileged user can get load averages through this function.
11958 for ac_func
in pstat_getdynamic
11960 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11961 echo "$as_me:$LINENO: checking for $ac_func" >&5
11962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11963 if eval "test \"\${$as_ac_var+set}\" = set"; then
11964 echo $ECHO_N "(cached) $ECHO_C" >&6
11966 cat >conftest.
$ac_ext <<_ACEOF
11967 #line $LINENO "configure"
11970 cat confdefs.h
>>conftest.
$ac_ext
11971 cat >>conftest.
$ac_ext <<_ACEOF
11972 /* end confdefs.h. */
11973 /* System header to define __stub macros and hopefully few prototypes,
11974 which can conflict with char $ac_func (); below.
11975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11976 <limits.h> exists even on freestanding compilers. */
11978 # include <limits.h>
11980 # include <assert.h>
11982 /* Override any gcc2 internal prototype to avoid an error. */
11987 /* We use char because int might match the return type of a gcc2
11988 builtin and then its argument prototype would still apply. */
11990 /* The GNU C library defines this for functions which it implements
11991 to always fail with ENOSYS. Some functions are actually named
11992 something starting with __ and the normal name is an alias. */
11993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11996 char (*f) () = $ac_func;
12005 return f != $ac_func;
12010 rm -f conftest.
$ac_objext conftest
$ac_exeext
12011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12012 (eval $ac_link) 2>&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); } &&
12016 { ac_try
='test -s conftest$ac_exeext'
12017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12018 (eval $ac_try) 2>&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; }; then
12022 eval "$as_ac_var=yes"
12024 echo "$as_me: failed program was:" >&5
12025 sed 's/^/| /' conftest.
$ac_ext >&5
12027 eval "$as_ac_var=no"
12029 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12032 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12033 if test `eval echo '${'$as_ac_var'}'` = yes; then
12034 cat >>confdefs.h
<<_ACEOF
12035 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12042 # Solaris has libkstat which does not require root.
12044 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
12045 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
12046 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
12047 echo $ECHO_N "(cached) $ECHO_C" >&6
12049 ac_check_lib_save_LIBS
=$LIBS
12050 LIBS
="-lkstat $LIBS"
12051 cat >conftest.
$ac_ext <<_ACEOF
12052 #line $LINENO "configure"
12055 cat confdefs.h
>>conftest.
$ac_ext
12056 cat >>conftest.
$ac_ext <<_ACEOF
12057 /* end confdefs.h. */
12059 /* Override any gcc2 internal prototype to avoid an error. */
12063 /* We use char because int might match the return type of a gcc2
12064 builtin and then its argument prototype would still apply. */
12065 char kstat_open ();
12074 rm -f conftest.
$ac_objext conftest
$ac_exeext
12075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12076 (eval $ac_link) 2>&5
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); } &&
12080 { ac_try
='test -s conftest$ac_exeext'
12081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12082 (eval $ac_try) 2>&5
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); }; }; then
12086 ac_cv_lib_kstat_kstat_open
=yes
12088 echo "$as_me: failed program was:" >&5
12089 sed 's/^/| /' conftest.
$ac_ext >&5
12091 ac_cv_lib_kstat_kstat_open
=no
12093 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12094 LIBS
=$ac_check_lib_save_LIBS
12096 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
12097 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
12098 if test $ac_cv_lib_kstat_kstat_open = yes; then
12099 cat >>confdefs.h
<<_ACEOF
12100 #define HAVE_LIBKSTAT 1
12103 LIBS
="-lkstat $LIBS"
12107 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
12109 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12110 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12111 # to get the right answer into the cache.
12112 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12113 if test $ac_have_func = no
; then
12114 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
12115 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
12116 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
12117 echo $ECHO_N "(cached) $ECHO_C" >&6
12119 ac_check_lib_save_LIBS
=$LIBS
12121 cat >conftest.
$ac_ext <<_ACEOF
12122 #line $LINENO "configure"
12125 cat confdefs.h
>>conftest.
$ac_ext
12126 cat >>conftest.
$ac_ext <<_ACEOF
12127 /* end confdefs.h. */
12129 /* Override any gcc2 internal prototype to avoid an error. */
12133 /* We use char because int might match the return type of a gcc2
12134 builtin and then its argument prototype would still apply. */
12144 rm -f conftest.
$ac_objext conftest
$ac_exeext
12145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12146 (eval $ac_link) 2>&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); } &&
12150 { ac_try
='test -s conftest$ac_exeext'
12151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12152 (eval $ac_try) 2>&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; }; then
12156 ac_cv_lib_elf_elf_begin
=yes
12158 echo "$as_me: failed program was:" >&5
12159 sed 's/^/| /' conftest.
$ac_ext >&5
12161 ac_cv_lib_elf_elf_begin
=no
12163 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12164 LIBS
=$ac_check_lib_save_LIBS
12166 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
12167 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
12168 if test $ac_cv_lib_elf_elf_begin = yes; then
12173 if test $ac_have_func = no
; then
12174 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
12175 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
12176 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
12177 echo $ECHO_N "(cached) $ECHO_C" >&6
12179 ac_check_lib_save_LIBS
=$LIBS
12181 cat >conftest.
$ac_ext <<_ACEOF
12182 #line $LINENO "configure"
12185 cat confdefs.h
>>conftest.
$ac_ext
12186 cat >>conftest.
$ac_ext <<_ACEOF
12187 /* end confdefs.h. */
12189 /* Override any gcc2 internal prototype to avoid an error. */
12193 /* We use char because int might match the return type of a gcc2
12194 builtin and then its argument prototype would still apply. */
12204 rm -f conftest.
$ac_objext conftest
$ac_exeext
12205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12206 (eval $ac_link) 2>&5
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); } &&
12210 { ac_try
='test -s conftest$ac_exeext'
12211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12212 (eval $ac_try) 2>&5
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); }; }; then
12216 ac_cv_lib_kvm_kvm_open
=yes
12218 echo "$as_me: failed program was:" >&5
12219 sed 's/^/| /' conftest.
$ac_ext >&5
12221 ac_cv_lib_kvm_kvm_open
=no
12223 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12224 LIBS
=$ac_check_lib_save_LIBS
12226 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
12227 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
12228 if test $ac_cv_lib_kvm_kvm_open = yes; then
12232 # Check for the 4.4BSD definition of getloadavg.
12233 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
12234 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
12235 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
12236 echo $ECHO_N "(cached) $ECHO_C" >&6
12238 ac_check_lib_save_LIBS
=$LIBS
12239 LIBS
="-lutil $LIBS"
12240 cat >conftest.
$ac_ext <<_ACEOF
12241 #line $LINENO "configure"
12244 cat confdefs.h
>>conftest.
$ac_ext
12245 cat >>conftest.
$ac_ext <<_ACEOF
12246 /* end confdefs.h. */
12248 /* Override any gcc2 internal prototype to avoid an error. */
12252 /* We use char because int might match the return type of a gcc2
12253 builtin and then its argument prototype would still apply. */
12254 char getloadavg ();
12263 rm -f conftest.
$ac_objext conftest
$ac_exeext
12264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12265 (eval $ac_link) 2>&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); } &&
12269 { ac_try
='test -s conftest$ac_exeext'
12270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12271 (eval $ac_try) 2>&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); }; }; then
12275 ac_cv_lib_util_getloadavg
=yes
12277 echo "$as_me: failed program was:" >&5
12278 sed 's/^/| /' conftest.
$ac_ext >&5
12280 ac_cv_lib_util_getloadavg
=no
12282 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12283 LIBS
=$ac_check_lib_save_LIBS
12285 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
12286 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
12287 if test $ac_cv_lib_util_getloadavg = yes; then
12288 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
12293 if test $ac_have_func = no
; then
12294 # There is a commonly available library for RS/6000 AIX.
12295 # Since it is not a standard part of AIX, it might be installed locally.
12296 ac_getloadavg_LIBS
=$LIBS
12297 LIBS
="-L/usr/local/lib $LIBS"
12298 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
12299 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
12300 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
12301 echo $ECHO_N "(cached) $ECHO_C" >&6
12303 ac_check_lib_save_LIBS
=$LIBS
12304 LIBS
="-lgetloadavg $LIBS"
12305 cat >conftest.
$ac_ext <<_ACEOF
12306 #line $LINENO "configure"
12309 cat confdefs.h
>>conftest.
$ac_ext
12310 cat >>conftest.
$ac_ext <<_ACEOF
12311 /* end confdefs.h. */
12313 /* Override any gcc2 internal prototype to avoid an error. */
12317 /* We use char because int might match the return type of a gcc2
12318 builtin and then its argument prototype would still apply. */
12319 char getloadavg ();
12328 rm -f conftest.
$ac_objext conftest
$ac_exeext
12329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12330 (eval $ac_link) 2>&5
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); } &&
12334 { ac_try
='test -s conftest$ac_exeext'
12335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12336 (eval $ac_try) 2>&5
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); }; }; then
12340 ac_cv_lib_getloadavg_getloadavg
=yes
12342 echo "$as_me: failed program was:" >&5
12343 sed 's/^/| /' conftest.
$ac_ext >&5
12345 ac_cv_lib_getloadavg_getloadavg
=no
12347 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12348 LIBS
=$ac_check_lib_save_LIBS
12350 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12351 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
12352 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
12353 LIBS
="-lgetloadavg $LIBS"
12355 LIBS
=$ac_getloadavg_LIBS
12360 # Make sure it is really in the library, if we think we found it,
12361 # otherwise set up the replacement function.
12363 for ac_func
in getloadavg
12365 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12366 echo "$as_me:$LINENO: checking for $ac_func" >&5
12367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12368 if eval "test \"\${$as_ac_var+set}\" = set"; then
12369 echo $ECHO_N "(cached) $ECHO_C" >&6
12371 cat >conftest.
$ac_ext <<_ACEOF
12372 #line $LINENO "configure"
12375 cat confdefs.h
>>conftest.
$ac_ext
12376 cat >>conftest.
$ac_ext <<_ACEOF
12377 /* end confdefs.h. */
12378 /* System header to define __stub macros and hopefully few prototypes,
12379 which can conflict with char $ac_func (); below.
12380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12381 <limits.h> exists even on freestanding compilers. */
12383 # include <limits.h>
12385 # include <assert.h>
12387 /* Override any gcc2 internal prototype to avoid an error. */
12392 /* We use char because int might match the return type of a gcc2
12393 builtin and then its argument prototype would still apply. */
12395 /* The GNU C library defines this for functions which it implements
12396 to always fail with ENOSYS. Some functions are actually named
12397 something starting with __ and the normal name is an alias. */
12398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12401 char (*f) () = $ac_func;
12410 return f != $ac_func;
12415 rm -f conftest.
$ac_objext conftest
$ac_exeext
12416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12417 (eval $ac_link) 2>&5
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); } &&
12421 { ac_try
='test -s conftest$ac_exeext'
12422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423 (eval $ac_try) 2>&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); }; }; then
12427 eval "$as_ac_var=yes"
12429 echo "$as_me: failed program was:" >&5
12430 sed 's/^/| /' conftest.
$ac_ext >&5
12432 eval "$as_ac_var=no"
12434 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12437 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12438 if test `eval echo '${'$as_ac_var'}'` = yes; then
12439 cat >>confdefs.h
<<_ACEOF
12440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12444 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
12446 cat >>confdefs.h
<<\_ACEOF
12447 #define C_GETLOADAVG 1
12450 # Figure out what our getloadavg.c needs.
12452 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12453 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12454 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12455 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12456 echo $ECHO_N "(cached) $ECHO_C" >&6
12458 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12459 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12461 # Is the header compilable?
12462 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
12463 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
12464 cat >conftest.
$ac_ext <<_ACEOF
12465 #line $LINENO "configure"
12468 cat confdefs.h
>>conftest.
$ac_ext
12469 cat >>conftest.
$ac_ext <<_ACEOF
12470 /* end confdefs.h. */
12471 $ac_includes_default
12472 #include <sys/dg_sys_info.h>
12474 rm -f conftest.
$ac_objext
12475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12476 (eval $ac_compile) 2>&5
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); } &&
12480 { ac_try
='test -s conftest.$ac_objext'
12481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12482 (eval $ac_try) 2>&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); }; }; then
12486 ac_header_compiler
=yes
12488 echo "$as_me: failed program was:" >&5
12489 sed 's/^/| /' conftest.
$ac_ext >&5
12491 ac_header_compiler
=no
12493 rm -f conftest.
$ac_objext conftest.
$ac_ext
12494 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12495 echo "${ECHO_T}$ac_header_compiler" >&6
12497 # Is the header present?
12498 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
12499 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
12500 cat >conftest.
$ac_ext <<_ACEOF
12501 #line $LINENO "configure"
12504 cat confdefs.h
>>conftest.
$ac_ext
12505 cat >>conftest.
$ac_ext <<_ACEOF
12506 /* end confdefs.h. */
12507 #include <sys/dg_sys_info.h>
12509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12510 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12512 grep -v '^ *+' conftest.er1
>conftest.err
12514 cat conftest.err
>&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } >/dev
/null
; then
12517 if test -s conftest.err
; then
12518 ac_cpp_err
=$ac_c_preproc_warn_flag
12525 if test -z "$ac_cpp_err"; then
12526 ac_header_preproc
=yes
12528 echo "$as_me: failed program was:" >&5
12529 sed 's/^/| /' conftest.
$ac_ext >&5
12531 ac_header_preproc
=no
12533 rm -f conftest.err conftest.
$ac_ext
12534 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12535 echo "${ECHO_T}$ac_header_preproc" >&6
12537 # So? What about this header?
12538 case $ac_header_compiler:$ac_header_preproc in
12540 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
12541 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12542 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12543 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12546 ## ------------------------------------ ##
12547 ## Report this to bug-autoconf@gnu.org. ##
12548 ## ------------------------------------ ##
12551 sed "s/^/$as_me: WARNING: /" >&2
12554 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
12555 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
12556 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
12557 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
12558 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12559 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12562 ## ------------------------------------ ##
12563 ## Report this to bug-autoconf@gnu.org. ##
12564 ## ------------------------------------ ##
12567 sed "s/^/$as_me: WARNING: /" >&2
12570 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12571 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12572 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12573 echo $ECHO_N "(cached) $ECHO_C" >&6
12575 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
12577 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12578 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12581 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
12584 cat >>confdefs.h
<<\_ACEOF
12589 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
12590 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
12591 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
12592 echo $ECHO_N "(cached) $ECHO_C" >&6
12594 ac_check_lib_save_LIBS
=$LIBS
12596 cat >conftest.
$ac_ext <<_ACEOF
12597 #line $LINENO "configure"
12600 cat confdefs.h
>>conftest.
$ac_ext
12601 cat >>conftest.
$ac_ext <<_ACEOF
12602 /* end confdefs.h. */
12604 /* Override any gcc2 internal prototype to avoid an error. */
12608 /* We use char because int might match the return type of a gcc2
12609 builtin and then its argument prototype would still apply. */
12610 char dg_sys_info ();
12619 rm -f conftest.
$ac_objext conftest
$ac_exeext
12620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12621 (eval $ac_link) 2>&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } &&
12625 { ac_try
='test -s conftest$ac_exeext'
12626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12627 (eval $ac_try) 2>&5
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); }; }; then
12631 ac_cv_lib_dgc_dg_sys_info
=yes
12633 echo "$as_me: failed program was:" >&5
12634 sed 's/^/| /' conftest.
$ac_ext >&5
12636 ac_cv_lib_dgc_dg_sys_info
=no
12638 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12639 LIBS
=$ac_check_lib_save_LIBS
12641 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12642 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
12643 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
12644 cat >>confdefs.h
<<_ACEOF
12645 #define HAVE_LIBDGC 1
12656 if test "${ac_cv_header_locale_h+set}" = set; then
12657 echo "$as_me:$LINENO: checking for locale.h" >&5
12658 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12659 if test "${ac_cv_header_locale_h+set}" = set; then
12660 echo $ECHO_N "(cached) $ECHO_C" >&6
12662 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12663 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12665 # Is the header compilable?
12666 echo "$as_me:$LINENO: checking locale.h usability" >&5
12667 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
12668 cat >conftest.
$ac_ext <<_ACEOF
12669 #line $LINENO "configure"
12672 cat confdefs.h
>>conftest.
$ac_ext
12673 cat >>conftest.
$ac_ext <<_ACEOF
12674 /* end confdefs.h. */
12675 $ac_includes_default
12676 #include <locale.h>
12678 rm -f conftest.
$ac_objext
12679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12680 (eval $ac_compile) 2>&5
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); } &&
12684 { ac_try
='test -s conftest.$ac_objext'
12685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12686 (eval $ac_try) 2>&5
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); }; }; then
12690 ac_header_compiler
=yes
12692 echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.
$ac_ext >&5
12695 ac_header_compiler
=no
12697 rm -f conftest.
$ac_objext conftest.
$ac_ext
12698 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12699 echo "${ECHO_T}$ac_header_compiler" >&6
12701 # Is the header present?
12702 echo "$as_me:$LINENO: checking locale.h presence" >&5
12703 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
12704 cat >conftest.
$ac_ext <<_ACEOF
12705 #line $LINENO "configure"
12708 cat confdefs.h
>>conftest.
$ac_ext
12709 cat >>conftest.
$ac_ext <<_ACEOF
12710 /* end confdefs.h. */
12711 #include <locale.h>
12713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12714 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12716 grep -v '^ *+' conftest.er1
>conftest.err
12718 cat conftest.err
>&5
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); } >/dev
/null
; then
12721 if test -s conftest.err
; then
12722 ac_cpp_err
=$ac_c_preproc_warn_flag
12729 if test -z "$ac_cpp_err"; then
12730 ac_header_preproc
=yes
12732 echo "$as_me: failed program was:" >&5
12733 sed 's/^/| /' conftest.
$ac_ext >&5
12735 ac_header_preproc
=no
12737 rm -f conftest.err conftest.
$ac_ext
12738 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12739 echo "${ECHO_T}$ac_header_preproc" >&6
12741 # So? What about this header?
12742 case $ac_header_compiler:$ac_header_preproc in
12744 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
12745 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12746 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12747 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12750 ## ------------------------------------ ##
12751 ## Report this to bug-autoconf@gnu.org. ##
12752 ## ------------------------------------ ##
12755 sed "s/^/$as_me: WARNING: /" >&2
12758 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
12759 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
12760 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
12761 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
12762 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12763 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12766 ## ------------------------------------ ##
12767 ## Report this to bug-autoconf@gnu.org. ##
12768 ## ------------------------------------ ##
12771 sed "s/^/$as_me: WARNING: /" >&2
12774 echo "$as_me:$LINENO: checking for locale.h" >&5
12775 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12776 if test "${ac_cv_header_locale_h+set}" = set; then
12777 echo $ECHO_N "(cached) $ECHO_C" >&6
12779 ac_cv_header_locale_h
=$ac_header_preproc
12781 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12782 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12788 for ac_func
in setlocale
12790 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12791 echo "$as_me:$LINENO: checking for $ac_func" >&5
12792 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12793 if eval "test \"\${$as_ac_var+set}\" = set"; then
12794 echo $ECHO_N "(cached) $ECHO_C" >&6
12796 cat >conftest.
$ac_ext <<_ACEOF
12797 #line $LINENO "configure"
12800 cat confdefs.h
>>conftest.
$ac_ext
12801 cat >>conftest.
$ac_ext <<_ACEOF
12802 /* end confdefs.h. */
12803 /* System header to define __stub macros and hopefully few prototypes,
12804 which can conflict with char $ac_func (); below.
12805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12806 <limits.h> exists even on freestanding compilers. */
12808 # include <limits.h>
12810 # include <assert.h>
12812 /* Override any gcc2 internal prototype to avoid an error. */
12817 /* We use char because int might match the return type of a gcc2
12818 builtin and then its argument prototype would still apply. */
12820 /* The GNU C library defines this for functions which it implements
12821 to always fail with ENOSYS. Some functions are actually named
12822 something starting with __ and the normal name is an alias. */
12823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12826 char (*f) () = $ac_func;
12835 return f != $ac_func;
12840 rm -f conftest.
$ac_objext conftest
$ac_exeext
12841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12842 (eval $ac_link) 2>&5
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); } &&
12846 { ac_try
='test -s conftest$ac_exeext'
12847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12848 (eval $ac_try) 2>&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); }; }; then
12852 eval "$as_ac_var=yes"
12854 echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.
$ac_ext >&5
12857 eval "$as_ac_var=no"
12859 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12862 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12863 if test `eval echo '${'$as_ac_var'}'` = yes; then
12864 cat >>confdefs.h
<<_ACEOF
12865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12872 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12873 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12874 # Irix 4.0.5F has the header but not the library.
12875 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
12878 cat >>confdefs.h
<<\_ACEOF
12884 if test $ac_have_func = no
; then
12885 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12886 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
12887 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
12888 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12889 echo $ECHO_N "(cached) $ECHO_C" >&6
12891 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
12892 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
12894 # Is the header compilable?
12895 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
12896 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
12897 cat >conftest.
$ac_ext <<_ACEOF
12898 #line $LINENO "configure"
12901 cat confdefs.h
>>conftest.
$ac_ext
12902 cat >>conftest.
$ac_ext <<_ACEOF
12903 /* end confdefs.h. */
12904 $ac_includes_default
12905 #include <inq_stats/cpustats.h>
12907 rm -f conftest.
$ac_objext
12908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12909 (eval $ac_compile) 2>&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } &&
12913 { ac_try
='test -s conftest.$ac_objext'
12914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915 (eval $ac_try) 2>&5
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); }; }; then
12919 ac_header_compiler
=yes
12921 echo "$as_me: failed program was:" >&5
12922 sed 's/^/| /' conftest.
$ac_ext >&5
12924 ac_header_compiler
=no
12926 rm -f conftest.
$ac_objext conftest.
$ac_ext
12927 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12928 echo "${ECHO_T}$ac_header_compiler" >&6
12930 # Is the header present?
12931 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
12932 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
12933 cat >conftest.
$ac_ext <<_ACEOF
12934 #line $LINENO "configure"
12937 cat confdefs.h
>>conftest.
$ac_ext
12938 cat >>conftest.
$ac_ext <<_ACEOF
12939 /* end confdefs.h. */
12940 #include <inq_stats/cpustats.h>
12942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12943 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12945 grep -v '^ *+' conftest.er1
>conftest.err
12947 cat conftest.err
>&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); } >/dev
/null
; then
12950 if test -s conftest.err
; then
12951 ac_cpp_err
=$ac_c_preproc_warn_flag
12958 if test -z "$ac_cpp_err"; then
12959 ac_header_preproc
=yes
12961 echo "$as_me: failed program was:" >&5
12962 sed 's/^/| /' conftest.
$ac_ext >&5
12964 ac_header_preproc
=no
12966 rm -f conftest.err conftest.
$ac_ext
12967 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12968 echo "${ECHO_T}$ac_header_preproc" >&6
12970 # So? What about this header?
12971 case $ac_header_compiler:$ac_header_preproc in
12973 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
12974 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12975 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
12976 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
12979 ## ------------------------------------ ##
12980 ## Report this to bug-autoconf@gnu.org. ##
12981 ## ------------------------------------ ##
12984 sed "s/^/$as_me: WARNING: /" >&2
12987 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
12988 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
12989 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
12990 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
12991 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
12992 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
12995 ## ------------------------------------ ##
12996 ## Report this to bug-autoconf@gnu.org. ##
12997 ## ------------------------------------ ##
13000 sed "s/^/$as_me: WARNING: /" >&2
13003 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13004 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13005 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13006 echo $ECHO_N "(cached) $ECHO_C" >&6
13008 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
13010 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13011 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13014 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
13017 cat >>confdefs.h
<<\_ACEOF
13022 cat >>confdefs.h
<<\_ACEOF
13031 if test $ac_have_func = no
; then
13032 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13033 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13034 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13035 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13036 echo $ECHO_N "(cached) $ECHO_C" >&6
13038 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13039 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13041 # Is the header compilable?
13042 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
13043 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
13044 cat >conftest.
$ac_ext <<_ACEOF
13045 #line $LINENO "configure"
13048 cat confdefs.h
>>conftest.
$ac_ext
13049 cat >>conftest.
$ac_ext <<_ACEOF
13050 /* end confdefs.h. */
13051 $ac_includes_default
13052 #include <sys/cpustats.h>
13054 rm -f conftest.
$ac_objext
13055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13056 (eval $ac_compile) 2>&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } &&
13060 { ac_try
='test -s conftest.$ac_objext'
13061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13062 (eval $ac_try) 2>&5
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); }; }; then
13066 ac_header_compiler
=yes
13068 echo "$as_me: failed program was:" >&5
13069 sed 's/^/| /' conftest.
$ac_ext >&5
13071 ac_header_compiler
=no
13073 rm -f conftest.
$ac_objext conftest.
$ac_ext
13074 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13075 echo "${ECHO_T}$ac_header_compiler" >&6
13077 # Is the header present?
13078 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
13079 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
13080 cat >conftest.
$ac_ext <<_ACEOF
13081 #line $LINENO "configure"
13084 cat confdefs.h
>>conftest.
$ac_ext
13085 cat >>conftest.
$ac_ext <<_ACEOF
13086 /* end confdefs.h. */
13087 #include <sys/cpustats.h>
13089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13090 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13092 grep -v '^ *+' conftest.er1
>conftest.err
13094 cat conftest.err
>&5
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); } >/dev
/null
; then
13097 if test -s conftest.err
; then
13098 ac_cpp_err
=$ac_c_preproc_warn_flag
13105 if test -z "$ac_cpp_err"; then
13106 ac_header_preproc
=yes
13108 echo "$as_me: failed program was:" >&5
13109 sed 's/^/| /' conftest.
$ac_ext >&5
13111 ac_header_preproc
=no
13113 rm -f conftest.err conftest.
$ac_ext
13114 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13115 echo "${ECHO_T}$ac_header_preproc" >&6
13117 # So? What about this header?
13118 case $ac_header_compiler:$ac_header_preproc in
13120 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13121 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13122 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13123 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13126 ## ------------------------------------ ##
13127 ## Report this to bug-autoconf@gnu.org. ##
13128 ## ------------------------------------ ##
13131 sed "s/^/$as_me: WARNING: /" >&2
13134 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
13135 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
13136 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
13137 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
13138 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13139 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13142 ## ------------------------------------ ##
13143 ## Report this to bug-autoconf@gnu.org. ##
13144 ## ------------------------------------ ##
13147 sed "s/^/$as_me: WARNING: /" >&2
13150 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13151 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13152 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13153 echo $ECHO_N "(cached) $ECHO_C" >&6
13155 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
13157 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13158 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13161 if test $ac_cv_header_sys_cpustats_h = yes; then
13162 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
13171 if test $ac_have_func = no
; then
13173 for ac_header
in mach
/mach.h
13175 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13177 echo "$as_me:$LINENO: checking for $ac_header" >&5
13178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13180 echo $ECHO_N "(cached) $ECHO_C" >&6
13182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13185 # Is the header compilable?
13186 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13188 cat >conftest.
$ac_ext <<_ACEOF
13189 #line $LINENO "configure"
13192 cat confdefs.h
>>conftest.
$ac_ext
13193 cat >>conftest.
$ac_ext <<_ACEOF
13194 /* end confdefs.h. */
13195 $ac_includes_default
13196 #include <$ac_header>
13198 rm -f conftest.
$ac_objext
13199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13200 (eval $ac_compile) 2>&5
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); } &&
13204 { ac_try
='test -s conftest.$ac_objext'
13205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13206 (eval $ac_try) 2>&5
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); }; }; then
13210 ac_header_compiler
=yes
13212 echo "$as_me: failed program was:" >&5
13213 sed 's/^/| /' conftest.
$ac_ext >&5
13215 ac_header_compiler
=no
13217 rm -f conftest.
$ac_objext conftest.
$ac_ext
13218 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13219 echo "${ECHO_T}$ac_header_compiler" >&6
13221 # Is the header present?
13222 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13223 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13224 cat >conftest.
$ac_ext <<_ACEOF
13225 #line $LINENO "configure"
13228 cat confdefs.h
>>conftest.
$ac_ext
13229 cat >>conftest.
$ac_ext <<_ACEOF
13230 /* end confdefs.h. */
13231 #include <$ac_header>
13233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13234 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13236 grep -v '^ *+' conftest.er1
>conftest.err
13238 cat conftest.err
>&5
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); } >/dev
/null
; then
13241 if test -s conftest.err
; then
13242 ac_cpp_err
=$ac_c_preproc_warn_flag
13249 if test -z "$ac_cpp_err"; then
13250 ac_header_preproc
=yes
13252 echo "$as_me: failed program was:" >&5
13253 sed 's/^/| /' conftest.
$ac_ext >&5
13255 ac_header_preproc
=no
13257 rm -f conftest.err conftest.
$ac_ext
13258 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13259 echo "${ECHO_T}$ac_header_preproc" >&6
13261 # So? What about this header?
13262 case $ac_header_compiler:$ac_header_preproc in
13264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13265 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13270 ## ------------------------------------ ##
13271 ## Report this to bug-autoconf@gnu.org. ##
13272 ## ------------------------------------ ##
13275 sed "s/^/$as_me: WARNING: /" >&2
13278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13281 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13286 ## ------------------------------------ ##
13287 ## Report this to bug-autoconf@gnu.org. ##
13288 ## ------------------------------------ ##
13291 sed "s/^/$as_me: WARNING: /" >&2
13294 echo "$as_me:$LINENO: checking for $ac_header" >&5
13295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13297 echo $ECHO_N "(cached) $ECHO_C" >&6
13299 eval "$as_ac_Header=$ac_header_preproc"
13301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13306 cat >>confdefs.h
<<_ACEOF
13307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13317 for ac_header
in nlist.h
13319 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13321 echo "$as_me:$LINENO: checking for $ac_header" >&5
13322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13324 echo $ECHO_N "(cached) $ECHO_C" >&6
13326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13329 # Is the header compilable?
13330 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13332 cat >conftest.
$ac_ext <<_ACEOF
13333 #line $LINENO "configure"
13336 cat confdefs.h
>>conftest.
$ac_ext
13337 cat >>conftest.
$ac_ext <<_ACEOF
13338 /* end confdefs.h. */
13339 $ac_includes_default
13340 #include <$ac_header>
13342 rm -f conftest.
$ac_objext
13343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13344 (eval $ac_compile) 2>&5
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); } &&
13348 { ac_try
='test -s conftest.$ac_objext'
13349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13350 (eval $ac_try) 2>&5
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); }; }; then
13354 ac_header_compiler
=yes
13356 echo "$as_me: failed program was:" >&5
13357 sed 's/^/| /' conftest.
$ac_ext >&5
13359 ac_header_compiler
=no
13361 rm -f conftest.
$ac_objext conftest.
$ac_ext
13362 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13363 echo "${ECHO_T}$ac_header_compiler" >&6
13365 # Is the header present?
13366 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13367 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13368 cat >conftest.
$ac_ext <<_ACEOF
13369 #line $LINENO "configure"
13372 cat confdefs.h
>>conftest.
$ac_ext
13373 cat >>conftest.
$ac_ext <<_ACEOF
13374 /* end confdefs.h. */
13375 #include <$ac_header>
13377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13378 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13380 grep -v '^ *+' conftest.er1
>conftest.err
13382 cat conftest.err
>&5
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); } >/dev
/null
; then
13385 if test -s conftest.err
; then
13386 ac_cpp_err
=$ac_c_preproc_warn_flag
13393 if test -z "$ac_cpp_err"; then
13394 ac_header_preproc
=yes
13396 echo "$as_me: failed program was:" >&5
13397 sed 's/^/| /' conftest.
$ac_ext >&5
13399 ac_header_preproc
=no
13401 rm -f conftest.err conftest.
$ac_ext
13402 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13403 echo "${ECHO_T}$ac_header_preproc" >&6
13405 # So? What about this header?
13406 case $ac_header_compiler:$ac_header_preproc in
13408 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13409 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13414 ## ------------------------------------ ##
13415 ## Report this to bug-autoconf@gnu.org. ##
13416 ## ------------------------------------ ##
13419 sed "s/^/$as_me: WARNING: /" >&2
13422 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13423 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13424 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13425 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13427 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13430 ## ------------------------------------ ##
13431 ## Report this to bug-autoconf@gnu.org. ##
13432 ## ------------------------------------ ##
13435 sed "s/^/$as_me: WARNING: /" >&2
13438 echo "$as_me:$LINENO: checking for $ac_header" >&5
13439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13441 echo $ECHO_N "(cached) $ECHO_C" >&6
13443 eval "$as_ac_Header=$ac_header_preproc"
13445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13450 cat >>confdefs.h
<<_ACEOF
13451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13453 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
13454 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
13455 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
13456 echo $ECHO_N "(cached) $ECHO_C" >&6
13458 cat >conftest.
$ac_ext <<_ACEOF
13459 #line $LINENO "configure"
13462 cat confdefs.h
>>conftest.
$ac_ext
13463 cat >>conftest.
$ac_ext <<_ACEOF
13464 /* end confdefs.h. */
13470 static struct nlist ac_aggr;
13471 if (ac_aggr.n_un.n_name)
13477 rm -f conftest.
$ac_objext
13478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13479 (eval $ac_compile) 2>&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); } &&
13483 { ac_try
='test -s conftest.$ac_objext'
13484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13485 (eval $ac_try) 2>&5
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); }; }; then
13489 ac_cv_member_struct_nlist_n_un_n_name
=yes
13491 echo "$as_me: failed program was:" >&5
13492 sed 's/^/| /' conftest.
$ac_ext >&5
13494 cat >conftest.
$ac_ext <<_ACEOF
13495 #line $LINENO "configure"
13498 cat confdefs.h
>>conftest.
$ac_ext
13499 cat >>conftest.
$ac_ext <<_ACEOF
13500 /* end confdefs.h. */
13506 static struct nlist ac_aggr;
13507 if (sizeof ac_aggr.n_un.n_name)
13513 rm -f conftest.
$ac_objext
13514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13515 (eval $ac_compile) 2>&5
13517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); } &&
13519 { ac_try
='test -s conftest.$ac_objext'
13520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13521 (eval $ac_try) 2>&5
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; }; then
13525 ac_cv_member_struct_nlist_n_un_n_name
=yes
13527 echo "$as_me: failed program was:" >&5
13528 sed 's/^/| /' conftest.
$ac_ext >&5
13530 ac_cv_member_struct_nlist_n_un_n_name
=no
13532 rm -f conftest.
$ac_objext conftest.
$ac_ext
13534 rm -f conftest.
$ac_objext conftest.
$ac_ext
13536 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
13537 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
13538 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
13540 cat >>confdefs.h
<<_ACEOF
13541 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13545 cat >>confdefs.h
<<\_ACEOF
13546 #define NLIST_NAME_UNION 1
13560 # Some definitions of getloadavg require that the program be installed setgid.
13561 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
13562 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
13563 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
13564 echo $ECHO_N "(cached) $ECHO_C" >&6
13566 cat >conftest.
$ac_ext <<_ACEOF
13567 #line $LINENO "configure"
13570 cat confdefs.h
>>conftest.
$ac_ext
13571 cat >>conftest.
$ac_ext <<_ACEOF
13572 /* end confdefs.h. */
13573 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13574 #ifdef LDAV_PRIVILEGED
13575 Yowza Am I SETGID yet
13578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13579 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
13580 ac_cv_func_getloadavg_setgid
=yes
13582 ac_cv_func_getloadavg_setgid
=no
13587 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
13588 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
13589 if test $ac_cv_func_getloadavg_setgid = yes; then
13592 cat >>confdefs.h
<<\_ACEOF
13593 #define GETLOADAVG_PRIVILEGED 1
13600 if test $ac_cv_func_getloadavg_setgid = yes; then
13601 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
13602 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
13603 if test "${ac_cv_group_kmem+set}" = set; then
13604 echo $ECHO_N "(cached) $ECHO_C" >&6
13606 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13607 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
13608 # If we got an error (system does not support symlinks), try without -L.
13609 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
13610 ac_cv_group_kmem
=`echo $ac_ls_output \
13611 | sed -ne 's/[ ][ ]*/ /g;
13612 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13616 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
13617 echo "${ECHO_T}$ac_cv_group_kmem" >&6
13618 KMEM_GROUP
=$ac_cv_group_kmem
13620 if test "x$ac_save_LIBS" = x
; then
13621 GETLOADAVG_LIBS
=$LIBS
13623 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
13629 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13630 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13631 if test "${ac_cv_sys_largefile_source+set}" = set; then
13632 echo $ECHO_N "(cached) $ECHO_C" >&6
13635 ac_cv_sys_largefile_source
=no
13636 cat >conftest.
$ac_ext <<_ACEOF
13637 #line $LINENO "configure"
13640 cat confdefs.h
>>conftest.
$ac_ext
13641 cat >>conftest.
$ac_ext <<_ACEOF
13642 /* end confdefs.h. */
13652 rm -f conftest.
$ac_objext
13653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13654 (eval $ac_compile) 2>&5
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); } &&
13658 { ac_try
='test -s conftest.$ac_objext'
13659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13660 (eval $ac_try) 2>&5
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }; }; then
13666 echo "$as_me: failed program was:" >&5
13667 sed 's/^/| /' conftest.
$ac_ext >&5
13670 rm -f conftest.
$ac_objext conftest.
$ac_ext
13671 cat >conftest.
$ac_ext <<_ACEOF
13672 #line $LINENO "configure"
13675 cat confdefs.h
>>conftest.
$ac_ext
13676 cat >>conftest.
$ac_ext <<_ACEOF
13677 /* end confdefs.h. */
13678 #define _LARGEFILE_SOURCE 1
13688 rm -f conftest.
$ac_objext
13689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13690 (eval $ac_compile) 2>&5
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); } &&
13694 { ac_try
='test -s conftest.$ac_objext'
13695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13696 (eval $ac_try) 2>&5
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); }; }; then
13700 ac_cv_sys_largefile_source
=1; break
13702 echo "$as_me: failed program was:" >&5
13703 sed 's/^/| /' conftest.
$ac_ext >&5
13706 rm -f conftest.
$ac_objext conftest.
$ac_ext
13710 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13711 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13712 if test "$ac_cv_sys_largefile_source" != no
; then
13714 cat >>confdefs.h
<<_ACEOF
13715 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13721 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13722 # in glibc 2.1.3, but that breaks too many other things.
13723 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13724 echo "$as_me:$LINENO: checking for fseeko" >&5
13725 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13726 if test "${ac_cv_func_fseeko+set}" = set; then
13727 echo $ECHO_N "(cached) $ECHO_C" >&6
13729 cat >conftest.
$ac_ext <<_ACEOF
13730 #line $LINENO "configure"
13733 cat confdefs.h
>>conftest.
$ac_ext
13734 cat >>conftest.
$ac_ext <<_ACEOF
13735 /* end confdefs.h. */
13740 return fseeko && fseeko (stdin, 0, 0);
13745 rm -f conftest.
$ac_objext conftest
$ac_exeext
13746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13747 (eval $ac_link) 2>&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } &&
13751 { ac_try
='test -s conftest$ac_exeext'
13752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13753 (eval $ac_try) 2>&5
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); }; }; then
13757 ac_cv_func_fseeko
=yes
13759 echo "$as_me: failed program was:" >&5
13760 sed 's/^/| /' conftest.
$ac_ext >&5
13762 ac_cv_func_fseeko
=no
13764 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13766 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13767 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13768 if test $ac_cv_func_fseeko = yes; then
13770 cat >>confdefs.h
<<\_ACEOF
13771 #define HAVE_FSEEKO 1
13777 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
13778 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
13779 if test "${ac_cv_func_getpgrp_void+set}" = set; then
13780 echo $ECHO_N "(cached) $ECHO_C" >&6
13782 # Use it with a single arg.
13783 cat >conftest.
$ac_ext <<_ACEOF
13784 #line $LINENO "configure"
13787 cat confdefs.h
>>conftest.
$ac_ext
13788 cat >>conftest.
$ac_ext <<_ACEOF
13789 /* end confdefs.h. */
13790 $ac_includes_default
13799 rm -f conftest.
$ac_objext
13800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13801 (eval $ac_compile) 2>&5
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); } &&
13805 { ac_try
='test -s conftest.$ac_objext'
13806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13807 (eval $ac_try) 2>&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); }; }; then
13811 ac_cv_func_getpgrp_void
=no
13813 echo "$as_me: failed program was:" >&5
13814 sed 's/^/| /' conftest.
$ac_ext >&5
13816 ac_cv_func_getpgrp_void
=yes
13818 rm -f conftest.
$ac_objext conftest.
$ac_ext
13821 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
13822 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
13823 if test $ac_cv_func_getpgrp_void = yes; then
13825 cat >>confdefs.h
<<\_ACEOF
13826 #define GETPGRP_VOID 1
13834 for ac_func
in grantpt
13836 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13837 echo "$as_me:$LINENO: checking for $ac_func" >&5
13838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13839 if eval "test \"\${$as_ac_var+set}\" = set"; then
13840 echo $ECHO_N "(cached) $ECHO_C" >&6
13842 cat >conftest.
$ac_ext <<_ACEOF
13843 #line $LINENO "configure"
13846 cat confdefs.h
>>conftest.
$ac_ext
13847 cat >>conftest.
$ac_ext <<_ACEOF
13848 /* end confdefs.h. */
13849 /* System header to define __stub macros and hopefully few prototypes,
13850 which can conflict with char $ac_func (); below.
13851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13852 <limits.h> exists even on freestanding compilers. */
13854 # include <limits.h>
13856 # include <assert.h>
13858 /* Override any gcc2 internal prototype to avoid an error. */
13863 /* We use char because int might match the return type of a gcc2
13864 builtin and then its argument prototype would still apply. */
13866 /* The GNU C library defines this for functions which it implements
13867 to always fail with ENOSYS. Some functions are actually named
13868 something starting with __ and the normal name is an alias. */
13869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13872 char (*f) () = $ac_func;
13881 return f != $ac_func;
13886 rm -f conftest.
$ac_objext conftest
$ac_exeext
13887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13888 (eval $ac_link) 2>&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); } &&
13892 { ac_try
='test -s conftest$ac_exeext'
13893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13894 (eval $ac_try) 2>&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); }; }; then
13898 eval "$as_ac_var=yes"
13900 echo "$as_me: failed program was:" >&5
13901 sed 's/^/| /' conftest.
$ac_ext >&5
13903 eval "$as_ac_var=no"
13905 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13908 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13909 if test `eval echo '${'$as_ac_var'}'` = yes; then
13910 cat >>confdefs.h
<<_ACEOF
13911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13918 # PTY-related GNU extensions.
13920 for ac_func
in getpt
13922 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13923 echo "$as_me:$LINENO: checking for $ac_func" >&5
13924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13925 if eval "test \"\${$as_ac_var+set}\" = set"; then
13926 echo $ECHO_N "(cached) $ECHO_C" >&6
13928 cat >conftest.
$ac_ext <<_ACEOF
13929 #line $LINENO "configure"
13932 cat confdefs.h
>>conftest.
$ac_ext
13933 cat >>conftest.
$ac_ext <<_ACEOF
13934 /* end confdefs.h. */
13935 /* System header to define __stub macros and hopefully few prototypes,
13936 which can conflict with char $ac_func (); below.
13937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13938 <limits.h> exists even on freestanding compilers. */
13940 # include <limits.h>
13942 # include <assert.h>
13944 /* Override any gcc2 internal prototype to avoid an error. */
13949 /* We use char because int might match the return type of a gcc2
13950 builtin and then its argument prototype would still apply. */
13952 /* The GNU C library defines this for functions which it implements
13953 to always fail with ENOSYS. Some functions are actually named
13954 something starting with __ and the normal name is an alias. */
13955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13958 char (*f) () = $ac_func;
13967 return f != $ac_func;
13972 rm -f conftest.
$ac_objext conftest
$ac_exeext
13973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13974 (eval $ac_link) 2>&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); } &&
13978 { ac_try
='test -s conftest$ac_exeext'
13979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980 (eval $ac_try) 2>&5
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); }; }; then
13984 eval "$as_ac_var=yes"
13986 echo "$as_me: failed program was:" >&5
13987 sed 's/^/| /' conftest.
$ac_ext >&5
13989 eval "$as_ac_var=no"
13991 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13994 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13995 if test `eval echo '${'$as_ac_var'}'` = yes; then
13996 cat >>confdefs.h
<<_ACEOF
13997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14004 # Check this now, so that we will NOT find the above functions in ncurses.
14005 # That is because we have not set up to link ncurses in lib-src.
14006 # It's better to believe a function is not available
14007 # than to expect to find it in ncurses.
14009 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
14010 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
14011 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
14012 echo $ECHO_N "(cached) $ECHO_C" >&6
14014 ac_check_lib_save_LIBS
=$LIBS
14015 LIBS
="-lncurses $LIBS"
14016 cat >conftest.
$ac_ext <<_ACEOF
14017 #line $LINENO "configure"
14020 cat confdefs.h
>>conftest.
$ac_ext
14021 cat >>conftest.
$ac_ext <<_ACEOF
14022 /* end confdefs.h. */
14024 /* Override any gcc2 internal prototype to avoid an error. */
14028 /* We use char because int might match the return type of a gcc2
14029 builtin and then its argument prototype would still apply. */
14039 rm -f conftest.
$ac_objext conftest
$ac_exeext
14040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14041 (eval $ac_link) 2>&5
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); } &&
14045 { ac_try
='test -s conftest$ac_exeext'
14046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14047 (eval $ac_try) 2>&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); }; }; then
14051 ac_cv_lib_ncurses_tparm
=yes
14053 echo "$as_me: failed program was:" >&5
14054 sed 's/^/| /' conftest.
$ac_ext >&5
14056 ac_cv_lib_ncurses_tparm
=no
14058 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14059 LIBS
=$ac_check_lib_save_LIBS
14061 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
14062 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
14063 if test $ac_cv_lib_ncurses_tparm = yes; then
14064 cat >>confdefs.h
<<_ACEOF
14065 #define HAVE_LIBNCURSES 1
14068 LIBS
="-lncurses $LIBS"
14073 # Do we need the Hesiod library to provide the support routines?
14074 if test "$with_hesiod" = yes ; then
14075 # Don't set $LIBS here -- see comments above.
14077 echo "$as_me:$LINENO: checking for res_send" >&5
14078 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
14079 if test "${ac_cv_func_res_send+set}" = set; then
14080 echo $ECHO_N "(cached) $ECHO_C" >&6
14082 cat >conftest.
$ac_ext <<_ACEOF
14083 #line $LINENO "configure"
14086 cat confdefs.h
>>conftest.
$ac_ext
14087 cat >>conftest.
$ac_ext <<_ACEOF
14088 /* end confdefs.h. */
14089 /* System header to define __stub macros and hopefully few prototypes,
14090 which can conflict with char res_send (); below.
14091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14092 <limits.h> exists even on freestanding compilers. */
14094 # include <limits.h>
14096 # include <assert.h>
14098 /* Override any gcc2 internal prototype to avoid an error. */
14103 /* We use char because int might match the return type of a gcc2
14104 builtin and then its argument prototype would still apply. */
14106 /* The GNU C library defines this for functions which it implements
14107 to always fail with ENOSYS. Some functions are actually named
14108 something starting with __ and the normal name is an alias. */
14109 #if defined (__stub_res_send) || defined (__stub___res_send)
14112 char (*f) () = res_send;
14121 return f != res_send;
14126 rm -f conftest.
$ac_objext conftest
$ac_exeext
14127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14128 (eval $ac_link) 2>&5
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); } &&
14132 { ac_try
='test -s conftest$ac_exeext'
14133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14134 (eval $ac_try) 2>&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); }; }; then
14138 ac_cv_func_res_send
=yes
14140 echo "$as_me: failed program was:" >&5
14141 sed 's/^/| /' conftest.
$ac_ext >&5
14143 ac_cv_func_res_send
=no
14145 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14147 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
14148 echo "${ECHO_T}$ac_cv_func_res_send" >&6
14149 if test $ac_cv_func_res_send = yes; then
14152 echo "$as_me:$LINENO: checking for __res_send" >&5
14153 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
14154 if test "${ac_cv_func___res_send+set}" = set; then
14155 echo $ECHO_N "(cached) $ECHO_C" >&6
14157 cat >conftest.
$ac_ext <<_ACEOF
14158 #line $LINENO "configure"
14161 cat confdefs.h
>>conftest.
$ac_ext
14162 cat >>conftest.
$ac_ext <<_ACEOF
14163 /* end confdefs.h. */
14164 /* System header to define __stub macros and hopefully few prototypes,
14165 which can conflict with char __res_send (); below.
14166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14167 <limits.h> exists even on freestanding compilers. */
14169 # include <limits.h>
14171 # include <assert.h>
14173 /* Override any gcc2 internal prototype to avoid an error. */
14178 /* We use char because int might match the return type of a gcc2
14179 builtin and then its argument prototype would still apply. */
14180 char __res_send ();
14181 /* The GNU C library defines this for functions which it implements
14182 to always fail with ENOSYS. Some functions are actually named
14183 something starting with __ and the normal name is an alias. */
14184 #if defined (__stub___res_send) || defined (__stub_____res_send)
14187 char (*f) () = __res_send;
14196 return f != __res_send;
14201 rm -f conftest.
$ac_objext conftest
$ac_exeext
14202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14203 (eval $ac_link) 2>&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); } &&
14207 { ac_try
='test -s conftest$ac_exeext'
14208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14209 (eval $ac_try) 2>&5
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); }; }; then
14213 ac_cv_func___res_send
=yes
14215 echo "$as_me: failed program was:" >&5
14216 sed 's/^/| /' conftest.
$ac_ext >&5
14218 ac_cv_func___res_send
=no
14220 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14222 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
14223 echo "${ECHO_T}$ac_cv_func___res_send" >&6
14224 if test $ac_cv_func___res_send = yes; then
14227 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
14228 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
14229 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
14230 echo $ECHO_N "(cached) $ECHO_C" >&6
14232 ac_check_lib_save_LIBS
=$LIBS
14233 LIBS
="-lresolv $LIBS"
14234 cat >conftest.
$ac_ext <<_ACEOF
14235 #line $LINENO "configure"
14238 cat confdefs.h
>>conftest.
$ac_ext
14239 cat >>conftest.
$ac_ext <<_ACEOF
14240 /* end confdefs.h. */
14242 /* Override any gcc2 internal prototype to avoid an error. */
14246 /* We use char because int might match the return type of a gcc2
14247 builtin and then its argument prototype would still apply. */
14257 rm -f conftest.
$ac_objext conftest
$ac_exeext
14258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14259 (eval $ac_link) 2>&5
14261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 (exit $ac_status); } &&
14263 { ac_try
='test -s conftest$ac_exeext'
14264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14265 (eval $ac_try) 2>&5
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); }; }; then
14269 ac_cv_lib_resolv_res_send
=yes
14271 echo "$as_me: failed program was:" >&5
14272 sed 's/^/| /' conftest.
$ac_ext >&5
14274 ac_cv_lib_resolv_res_send
=no
14276 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14277 LIBS
=$ac_check_lib_save_LIBS
14279 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
14280 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
14281 if test $ac_cv_lib_resolv_res_send = yes; then
14284 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
14285 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
14286 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
14287 echo $ECHO_N "(cached) $ECHO_C" >&6
14289 ac_check_lib_save_LIBS
=$LIBS
14290 LIBS
="-lresolv $LIBS"
14291 cat >conftest.
$ac_ext <<_ACEOF
14292 #line $LINENO "configure"
14295 cat confdefs.h
>>conftest.
$ac_ext
14296 cat >>conftest.
$ac_ext <<_ACEOF
14297 /* end confdefs.h. */
14299 /* Override any gcc2 internal prototype to avoid an error. */
14303 /* We use char because int might match the return type of a gcc2
14304 builtin and then its argument prototype would still apply. */
14305 char __res_send ();
14314 rm -f conftest.
$ac_objext conftest
$ac_exeext
14315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14316 (eval $ac_link) 2>&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); } &&
14320 { ac_try
='test -s conftest$ac_exeext'
14321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14322 (eval $ac_try) 2>&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); }; }; then
14326 ac_cv_lib_resolv___res_send
=yes
14328 echo "$as_me: failed program was:" >&5
14329 sed 's/^/| /' conftest.
$ac_ext >&5
14331 ac_cv_lib_resolv___res_send
=no
14333 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14334 LIBS
=$ac_check_lib_save_LIBS
14336 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
14337 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
14338 if test $ac_cv_lib_resolv___res_send = yes; then
14348 if test "$resolv" = yes ; then
14351 cat >>confdefs.h
<<\_ACEOF
14352 #define HAVE_LIBRESOLV 1
14358 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
14359 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
14360 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
14361 echo $ECHO_N "(cached) $ECHO_C" >&6
14363 cat >conftest.
$ac_ext <<_ACEOF
14364 #line $LINENO "configure"
14367 cat confdefs.h
>>conftest.
$ac_ext
14368 cat >>conftest.
$ac_ext <<_ACEOF
14369 /* end confdefs.h. */
14370 /* System header to define __stub macros and hopefully few prototypes,
14371 which can conflict with char hes_getmailhost (); below.
14372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14373 <limits.h> exists even on freestanding compilers. */
14375 # include <limits.h>
14377 # include <assert.h>
14379 /* Override any gcc2 internal prototype to avoid an error. */
14384 /* We use char because int might match the return type of a gcc2
14385 builtin and then its argument prototype would still apply. */
14386 char hes_getmailhost ();
14387 /* The GNU C library defines this for functions which it implements
14388 to always fail with ENOSYS. Some functions are actually named
14389 something starting with __ and the normal name is an alias. */
14390 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
14393 char (*f) () = hes_getmailhost;
14402 return f != hes_getmailhost;
14407 rm -f conftest.
$ac_objext conftest
$ac_exeext
14408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14409 (eval $ac_link) 2>&5
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); } &&
14413 { ac_try
='test -s conftest$ac_exeext'
14414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14415 (eval $ac_try) 2>&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); }; }; then
14419 ac_cv_func_hes_getmailhost
=yes
14421 echo "$as_me: failed program was:" >&5
14422 sed 's/^/| /' conftest.
$ac_ext >&5
14424 ac_cv_func_hes_getmailhost
=no
14426 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14428 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
14429 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
14430 if test $ac_cv_func_hes_getmailhost = yes; then
14433 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
14434 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
14435 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
14436 echo $ECHO_N "(cached) $ECHO_C" >&6
14438 ac_check_lib_save_LIBS
=$LIBS
14439 LIBS
="-lhesiod $RESOLVLIB $LIBS"
14440 cat >conftest.
$ac_ext <<_ACEOF
14441 #line $LINENO "configure"
14444 cat confdefs.h
>>conftest.
$ac_ext
14445 cat >>conftest.
$ac_ext <<_ACEOF
14446 /* end confdefs.h. */
14448 /* Override any gcc2 internal prototype to avoid an error. */
14452 /* We use char because int might match the return type of a gcc2
14453 builtin and then its argument prototype would still apply. */
14454 char hes_getmailhost ();
14458 hes_getmailhost ();
14463 rm -f conftest.
$ac_objext conftest
$ac_exeext
14464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14465 (eval $ac_link) 2>&5
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); } &&
14469 { ac_try
='test -s conftest$ac_exeext'
14470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14471 (eval $ac_try) 2>&5
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); }; }; then
14475 ac_cv_lib_hesiod_hes_getmailhost
=yes
14477 echo "$as_me: failed program was:" >&5
14478 sed 's/^/| /' conftest.
$ac_ext >&5
14480 ac_cv_lib_hesiod_hes_getmailhost
=no
14482 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14483 LIBS
=$ac_check_lib_save_LIBS
14485 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14486 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
14487 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
14489 cat >>confdefs.h
<<\_ACEOF
14490 #define HAVE_LIBHESIOD 1
14501 # These tell us which Kerberos-related libraries to use.
14502 if test "${with_kerberos+set}" = set; then
14504 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
14505 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
14506 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
14507 echo $ECHO_N "(cached) $ECHO_C" >&6
14509 ac_check_lib_save_LIBS
=$LIBS
14510 LIBS
="-lcom_err $LIBS"
14511 cat >conftest.
$ac_ext <<_ACEOF
14512 #line $LINENO "configure"
14515 cat confdefs.h
>>conftest.
$ac_ext
14516 cat >>conftest.
$ac_ext <<_ACEOF
14517 /* end confdefs.h. */
14519 /* Override any gcc2 internal prototype to avoid an error. */
14523 /* We use char because int might match the return type of a gcc2
14524 builtin and then its argument prototype would still apply. */
14534 rm -f conftest.
$ac_objext conftest
$ac_exeext
14535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14536 (eval $ac_link) 2>&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); } &&
14540 { ac_try
='test -s conftest$ac_exeext'
14541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14542 (eval $ac_try) 2>&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); }; }; then
14546 ac_cv_lib_com_err_com_err
=yes
14548 echo "$as_me: failed program was:" >&5
14549 sed 's/^/| /' conftest.
$ac_ext >&5
14551 ac_cv_lib_com_err_com_err
=no
14553 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14554 LIBS
=$ac_check_lib_save_LIBS
14556 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
14557 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
14558 if test $ac_cv_lib_com_err_com_err = yes; then
14559 cat >>confdefs.h
<<_ACEOF
14560 #define HAVE_LIBCOM_ERR 1
14563 LIBS
="-lcom_err $LIBS"
14568 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14569 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
14570 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
14571 echo $ECHO_N "(cached) $ECHO_C" >&6
14573 ac_check_lib_save_LIBS
=$LIBS
14574 LIBS
="-lk5crypto $LIBS"
14575 cat >conftest.
$ac_ext <<_ACEOF
14576 #line $LINENO "configure"
14579 cat confdefs.h
>>conftest.
$ac_ext
14580 cat >>conftest.
$ac_ext <<_ACEOF
14581 /* end confdefs.h. */
14583 /* Override any gcc2 internal prototype to avoid an error. */
14587 /* We use char because int might match the return type of a gcc2
14588 builtin and then its argument prototype would still apply. */
14589 char mit_des_cbc_encrypt ();
14593 mit_des_cbc_encrypt ();
14598 rm -f conftest.
$ac_objext conftest
$ac_exeext
14599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14600 (eval $ac_link) 2>&5
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); } &&
14604 { ac_try
='test -s conftest$ac_exeext'
14605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14606 (eval $ac_try) 2>&5
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); }; }; then
14610 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
14612 echo "$as_me: failed program was:" >&5
14613 sed 's/^/| /' conftest.
$ac_ext >&5
14615 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
14617 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14618 LIBS
=$ac_check_lib_save_LIBS
14620 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14621 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
14622 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
14623 cat >>confdefs.h
<<_ACEOF
14624 #define HAVE_LIBK5CRYPTO 1
14627 LIBS
="-lk5crypto $LIBS"
14632 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14633 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
14634 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
14635 echo $ECHO_N "(cached) $ECHO_C" >&6
14637 ac_check_lib_save_LIBS
=$LIBS
14638 LIBS
="-lcrypto $LIBS"
14639 cat >conftest.
$ac_ext <<_ACEOF
14640 #line $LINENO "configure"
14643 cat confdefs.h
>>conftest.
$ac_ext
14644 cat >>conftest.
$ac_ext <<_ACEOF
14645 /* end confdefs.h. */
14647 /* Override any gcc2 internal prototype to avoid an error. */
14651 /* We use char because int might match the return type of a gcc2
14652 builtin and then its argument prototype would still apply. */
14653 char mit_des_cbc_encrypt ();
14657 mit_des_cbc_encrypt ();
14662 rm -f conftest.
$ac_objext conftest
$ac_exeext
14663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14664 (eval $ac_link) 2>&5
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); } &&
14668 { ac_try
='test -s conftest$ac_exeext'
14669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14670 (eval $ac_try) 2>&5
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); }; }; then
14674 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
14676 echo "$as_me: failed program was:" >&5
14677 sed 's/^/| /' conftest.
$ac_ext >&5
14679 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
14681 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14682 LIBS
=$ac_check_lib_save_LIBS
14684 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14685 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
14686 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
14687 cat >>confdefs.h
<<_ACEOF
14688 #define HAVE_LIBCRYPTO 1
14691 LIBS
="-lcrypto $LIBS"
14696 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
14697 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
14698 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
14699 echo $ECHO_N "(cached) $ECHO_C" >&6
14701 ac_check_lib_save_LIBS
=$LIBS
14702 LIBS
="-lkrb5 $LIBS"
14703 cat >conftest.
$ac_ext <<_ACEOF
14704 #line $LINENO "configure"
14707 cat confdefs.h
>>conftest.
$ac_ext
14708 cat >>conftest.
$ac_ext <<_ACEOF
14709 /* end confdefs.h. */
14711 /* Override any gcc2 internal prototype to avoid an error. */
14715 /* We use char because int might match the return type of a gcc2
14716 builtin and then its argument prototype would still apply. */
14717 char krb5_init_context ();
14721 krb5_init_context ();
14726 rm -f conftest.
$ac_objext conftest
$ac_exeext
14727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14728 (eval $ac_link) 2>&5
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); } &&
14732 { ac_try
='test -s conftest$ac_exeext'
14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; }; then
14738 ac_cv_lib_krb5_krb5_init_context
=yes
14740 echo "$as_me: failed program was:" >&5
14741 sed 's/^/| /' conftest.
$ac_ext >&5
14743 ac_cv_lib_krb5_krb5_init_context
=no
14745 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14746 LIBS
=$ac_check_lib_save_LIBS
14748 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14749 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
14750 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
14751 cat >>confdefs.h
<<_ACEOF
14752 #define HAVE_LIBKRB5 1
14755 LIBS
="-lkrb5 $LIBS"
14759 if test "${with_kerberos5+set}" != set; then
14761 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
14762 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
14763 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
14764 echo $ECHO_N "(cached) $ECHO_C" >&6
14766 ac_check_lib_save_LIBS
=$LIBS
14767 LIBS
="-ldes425 $LIBS"
14768 cat >conftest.
$ac_ext <<_ACEOF
14769 #line $LINENO "configure"
14772 cat confdefs.h
>>conftest.
$ac_ext
14773 cat >>conftest.
$ac_ext <<_ACEOF
14774 /* end confdefs.h. */
14776 /* Override any gcc2 internal prototype to avoid an error. */
14780 /* We use char because int might match the return type of a gcc2
14781 builtin and then its argument prototype would still apply. */
14782 char des_cbc_encrypt ();
14786 des_cbc_encrypt ();
14791 rm -f conftest.
$ac_objext conftest
$ac_exeext
14792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14793 (eval $ac_link) 2>&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); } &&
14797 { ac_try
='test -s conftest$ac_exeext'
14798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14799 (eval $ac_try) 2>&5
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); }; }; then
14803 ac_cv_lib_des425_des_cbc_encrypt
=yes
14805 echo "$as_me: failed program was:" >&5
14806 sed 's/^/| /' conftest.
$ac_ext >&5
14808 ac_cv_lib_des425_des_cbc_encrypt
=no
14810 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14811 LIBS
=$ac_check_lib_save_LIBS
14813 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14814 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
14815 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
14816 cat >>confdefs.h
<<_ACEOF
14817 #define HAVE_LIBDES425 1
14820 LIBS
="-ldes425 $LIBS"
14824 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
14825 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
14826 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
14827 echo $ECHO_N "(cached) $ECHO_C" >&6
14829 ac_check_lib_save_LIBS
=$LIBS
14831 cat >conftest.
$ac_ext <<_ACEOF
14832 #line $LINENO "configure"
14835 cat confdefs.h
>>conftest.
$ac_ext
14836 cat >>conftest.
$ac_ext <<_ACEOF
14837 /* end confdefs.h. */
14839 /* Override any gcc2 internal prototype to avoid an error. */
14843 /* We use char because int might match the return type of a gcc2
14844 builtin and then its argument prototype would still apply. */
14845 char des_cbc_encrypt ();
14849 des_cbc_encrypt ();
14854 rm -f conftest.
$ac_objext conftest
$ac_exeext
14855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14856 (eval $ac_link) 2>&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); } &&
14860 { ac_try
='test -s conftest$ac_exeext'
14861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14862 (eval $ac_try) 2>&5
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); }; }; then
14866 ac_cv_lib_des_des_cbc_encrypt
=yes
14868 echo "$as_me: failed program was:" >&5
14869 sed 's/^/| /' conftest.
$ac_ext >&5
14871 ac_cv_lib_des_des_cbc_encrypt
=no
14873 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14874 LIBS
=$ac_check_lib_save_LIBS
14876 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14877 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
14878 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
14879 cat >>confdefs.h
<<_ACEOF
14880 #define HAVE_LIBDES 1
14890 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
14891 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
14892 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
14893 echo $ECHO_N "(cached) $ECHO_C" >&6
14895 ac_check_lib_save_LIBS
=$LIBS
14896 LIBS
="-lkrb4 $LIBS"
14897 cat >conftest.
$ac_ext <<_ACEOF
14898 #line $LINENO "configure"
14901 cat confdefs.h
>>conftest.
$ac_ext
14902 cat >>conftest.
$ac_ext <<_ACEOF
14903 /* end confdefs.h. */
14905 /* Override any gcc2 internal prototype to avoid an error. */
14909 /* We use char because int might match the return type of a gcc2
14910 builtin and then its argument prototype would still apply. */
14911 char krb_get_cred ();
14920 rm -f conftest.
$ac_objext conftest
$ac_exeext
14921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14922 (eval $ac_link) 2>&5
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); } &&
14926 { ac_try
='test -s conftest$ac_exeext'
14927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14928 (eval $ac_try) 2>&5
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931 (exit $ac_status); }; }; then
14932 ac_cv_lib_krb4_krb_get_cred
=yes
14934 echo "$as_me: failed program was:" >&5
14935 sed 's/^/| /' conftest.
$ac_ext >&5
14937 ac_cv_lib_krb4_krb_get_cred
=no
14939 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14940 LIBS
=$ac_check_lib_save_LIBS
14942 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14943 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
14944 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
14945 cat >>confdefs.h
<<_ACEOF
14946 #define HAVE_LIBKRB4 1
14949 LIBS
="-lkrb4 $LIBS"
14953 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
14954 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
14955 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
14956 echo $ECHO_N "(cached) $ECHO_C" >&6
14958 ac_check_lib_save_LIBS
=$LIBS
14960 cat >conftest.
$ac_ext <<_ACEOF
14961 #line $LINENO "configure"
14964 cat confdefs.h
>>conftest.
$ac_ext
14965 cat >>conftest.
$ac_ext <<_ACEOF
14966 /* end confdefs.h. */
14968 /* Override any gcc2 internal prototype to avoid an error. */
14972 /* We use char because int might match the return type of a gcc2
14973 builtin and then its argument prototype would still apply. */
14974 char krb_get_cred ();
14983 rm -f conftest.
$ac_objext conftest
$ac_exeext
14984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14985 (eval $ac_link) 2>&5
14987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988 (exit $ac_status); } &&
14989 { ac_try
='test -s conftest$ac_exeext'
14990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14991 (eval $ac_try) 2>&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); }; }; then
14995 ac_cv_lib_krb_krb_get_cred
=yes
14997 echo "$as_me: failed program was:" >&5
14998 sed 's/^/| /' conftest.
$ac_ext >&5
15000 ac_cv_lib_krb_krb_get_cred
=no
15002 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15003 LIBS
=$ac_check_lib_save_LIBS
15005 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
15006 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
15007 if test $ac_cv_lib_krb_krb_get_cred = yes; then
15008 cat >>confdefs.h
<<_ACEOF
15009 #define HAVE_LIBKRB 1
15020 if test "${with_kerberos5+set}" = set; then
15022 for ac_header
in krb5.h
15024 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15026 echo "$as_me:$LINENO: checking for $ac_header" >&5
15027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15029 echo $ECHO_N "(cached) $ECHO_C" >&6
15031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15034 # Is the header compilable?
15035 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15037 cat >conftest.
$ac_ext <<_ACEOF
15038 #line $LINENO "configure"
15041 cat confdefs.h
>>conftest.
$ac_ext
15042 cat >>conftest.
$ac_ext <<_ACEOF
15043 /* end confdefs.h. */
15044 $ac_includes_default
15045 #include <$ac_header>
15047 rm -f conftest.
$ac_objext
15048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15049 (eval $ac_compile) 2>&5
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); } &&
15053 { ac_try
='test -s conftest.$ac_objext'
15054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15055 (eval $ac_try) 2>&5
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); }; }; then
15059 ac_header_compiler
=yes
15061 echo "$as_me: failed program was:" >&5
15062 sed 's/^/| /' conftest.
$ac_ext >&5
15064 ac_header_compiler
=no
15066 rm -f conftest.
$ac_objext conftest.
$ac_ext
15067 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15068 echo "${ECHO_T}$ac_header_compiler" >&6
15070 # Is the header present?
15071 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15073 cat >conftest.
$ac_ext <<_ACEOF
15074 #line $LINENO "configure"
15077 cat confdefs.h
>>conftest.
$ac_ext
15078 cat >>conftest.
$ac_ext <<_ACEOF
15079 /* end confdefs.h. */
15080 #include <$ac_header>
15082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15083 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15085 grep -v '^ *+' conftest.er1
>conftest.err
15087 cat conftest.err
>&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); } >/dev
/null
; then
15090 if test -s conftest.err
; then
15091 ac_cpp_err
=$ac_c_preproc_warn_flag
15098 if test -z "$ac_cpp_err"; then
15099 ac_header_preproc
=yes
15101 echo "$as_me: failed program was:" >&5
15102 sed 's/^/| /' conftest.
$ac_ext >&5
15104 ac_header_preproc
=no
15106 rm -f conftest.err conftest.
$ac_ext
15107 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15108 echo "${ECHO_T}$ac_header_preproc" >&6
15110 # So? What about this header?
15111 case $ac_header_compiler:$ac_header_preproc in
15113 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15114 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15116 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15119 ## ------------------------------------ ##
15120 ## Report this to bug-autoconf@gnu.org. ##
15121 ## ------------------------------------ ##
15124 sed "s/^/$as_me: WARNING: /" >&2
15127 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15128 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15129 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15130 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15135 ## ------------------------------------ ##
15136 ## Report this to bug-autoconf@gnu.org. ##
15137 ## ------------------------------------ ##
15140 sed "s/^/$as_me: WARNING: /" >&2
15143 echo "$as_me:$LINENO: checking for $ac_header" >&5
15144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15146 echo $ECHO_N "(cached) $ECHO_C" >&6
15148 eval "$as_ac_Header=$ac_header_preproc"
15150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15155 cat >>confdefs.h
<<_ACEOF
15156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15165 for ac_header
in des.h
15167 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15169 echo "$as_me:$LINENO: checking for $ac_header" >&5
15170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15172 echo $ECHO_N "(cached) $ECHO_C" >&6
15174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15177 # Is the header compilable?
15178 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15179 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15180 cat >conftest.
$ac_ext <<_ACEOF
15181 #line $LINENO "configure"
15184 cat confdefs.h
>>conftest.
$ac_ext
15185 cat >>conftest.
$ac_ext <<_ACEOF
15186 /* end confdefs.h. */
15187 $ac_includes_default
15188 #include <$ac_header>
15190 rm -f conftest.
$ac_objext
15191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15192 (eval $ac_compile) 2>&5
15194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195 (exit $ac_status); } &&
15196 { ac_try
='test -s conftest.$ac_objext'
15197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15198 (eval $ac_try) 2>&5
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); }; }; then
15202 ac_header_compiler
=yes
15204 echo "$as_me: failed program was:" >&5
15205 sed 's/^/| /' conftest.
$ac_ext >&5
15207 ac_header_compiler
=no
15209 rm -f conftest.
$ac_objext conftest.
$ac_ext
15210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15211 echo "${ECHO_T}$ac_header_compiler" >&6
15213 # Is the header present?
15214 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15216 cat >conftest.
$ac_ext <<_ACEOF
15217 #line $LINENO "configure"
15220 cat confdefs.h
>>conftest.
$ac_ext
15221 cat >>conftest.
$ac_ext <<_ACEOF
15222 /* end confdefs.h. */
15223 #include <$ac_header>
15225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15226 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15228 grep -v '^ *+' conftest.er1
>conftest.err
15230 cat conftest.err
>&5
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); } >/dev
/null
; then
15233 if test -s conftest.err
; then
15234 ac_cpp_err
=$ac_c_preproc_warn_flag
15241 if test -z "$ac_cpp_err"; then
15242 ac_header_preproc
=yes
15244 echo "$as_me: failed program was:" >&5
15245 sed 's/^/| /' conftest.
$ac_ext >&5
15247 ac_header_preproc
=no
15249 rm -f conftest.err conftest.
$ac_ext
15250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15251 echo "${ECHO_T}$ac_header_preproc" >&6
15253 # So? What about this header?
15254 case $ac_header_compiler:$ac_header_preproc in
15256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15262 ## ------------------------------------ ##
15263 ## Report this to bug-autoconf@gnu.org. ##
15264 ## ------------------------------------ ##
15267 sed "s/^/$as_me: WARNING: /" >&2
15270 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15271 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15272 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15273 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15278 ## ------------------------------------ ##
15279 ## Report this to bug-autoconf@gnu.org. ##
15280 ## ------------------------------------ ##
15283 sed "s/^/$as_me: WARNING: /" >&2
15286 echo "$as_me:$LINENO: checking for $ac_header" >&5
15287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15289 echo $ECHO_N "(cached) $ECHO_C" >&6
15291 eval "$as_ac_Header=$ac_header_preproc"
15293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15298 cat >>confdefs.h
<<_ACEOF
15299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15304 for ac_header
in kerberosIV
/des.h
15306 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15308 echo "$as_me:$LINENO: checking for $ac_header" >&5
15309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15311 echo $ECHO_N "(cached) $ECHO_C" >&6
15313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15316 # Is the header compilable?
15317 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15319 cat >conftest.
$ac_ext <<_ACEOF
15320 #line $LINENO "configure"
15323 cat confdefs.h
>>conftest.
$ac_ext
15324 cat >>conftest.
$ac_ext <<_ACEOF
15325 /* end confdefs.h. */
15326 $ac_includes_default
15327 #include <$ac_header>
15329 rm -f conftest.
$ac_objext
15330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15331 (eval $ac_compile) 2>&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); } &&
15335 { ac_try
='test -s conftest.$ac_objext'
15336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15337 (eval $ac_try) 2>&5
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); }; }; then
15341 ac_header_compiler
=yes
15343 echo "$as_me: failed program was:" >&5
15344 sed 's/^/| /' conftest.
$ac_ext >&5
15346 ac_header_compiler
=no
15348 rm -f conftest.
$ac_objext conftest.
$ac_ext
15349 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15350 echo "${ECHO_T}$ac_header_compiler" >&6
15352 # Is the header present?
15353 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15354 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15355 cat >conftest.
$ac_ext <<_ACEOF
15356 #line $LINENO "configure"
15359 cat confdefs.h
>>conftest.
$ac_ext
15360 cat >>conftest.
$ac_ext <<_ACEOF
15361 /* end confdefs.h. */
15362 #include <$ac_header>
15364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15365 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15367 grep -v '^ *+' conftest.er1
>conftest.err
15369 cat conftest.err
>&5
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); } >/dev
/null
; then
15372 if test -s conftest.err
; then
15373 ac_cpp_err
=$ac_c_preproc_warn_flag
15380 if test -z "$ac_cpp_err"; then
15381 ac_header_preproc
=yes
15383 echo "$as_me: failed program was:" >&5
15384 sed 's/^/| /' conftest.
$ac_ext >&5
15386 ac_header_preproc
=no
15388 rm -f conftest.err conftest.
$ac_ext
15389 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15390 echo "${ECHO_T}$ac_header_preproc" >&6
15392 # So? What about this header?
15393 case $ac_header_compiler:$ac_header_preproc in
15395 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15396 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15398 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15401 ## ------------------------------------ ##
15402 ## Report this to bug-autoconf@gnu.org. ##
15403 ## ------------------------------------ ##
15406 sed "s/^/$as_me: WARNING: /" >&2
15409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15410 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15412 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15417 ## ------------------------------------ ##
15418 ## Report this to bug-autoconf@gnu.org. ##
15419 ## ------------------------------------ ##
15422 sed "s/^/$as_me: WARNING: /" >&2
15425 echo "$as_me:$LINENO: checking for $ac_header" >&5
15426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15428 echo $ECHO_N "(cached) $ECHO_C" >&6
15430 eval "$as_ac_Header=$ac_header_preproc"
15432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15437 cat >>confdefs.h
<<_ACEOF
15438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15443 for ac_header
in kerberos
/des.h
15445 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15447 echo "$as_me:$LINENO: checking for $ac_header" >&5
15448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15450 echo $ECHO_N "(cached) $ECHO_C" >&6
15452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15455 # Is the header compilable?
15456 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15457 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15458 cat >conftest.
$ac_ext <<_ACEOF
15459 #line $LINENO "configure"
15462 cat confdefs.h
>>conftest.
$ac_ext
15463 cat >>conftest.
$ac_ext <<_ACEOF
15464 /* end confdefs.h. */
15465 $ac_includes_default
15466 #include <$ac_header>
15468 rm -f conftest.
$ac_objext
15469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15470 (eval $ac_compile) 2>&5
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); } &&
15474 { ac_try
='test -s conftest.$ac_objext'
15475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15476 (eval $ac_try) 2>&5
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); }; }; then
15480 ac_header_compiler
=yes
15482 echo "$as_me: failed program was:" >&5
15483 sed 's/^/| /' conftest.
$ac_ext >&5
15485 ac_header_compiler
=no
15487 rm -f conftest.
$ac_objext conftest.
$ac_ext
15488 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15489 echo "${ECHO_T}$ac_header_compiler" >&6
15491 # Is the header present?
15492 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15493 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15494 cat >conftest.
$ac_ext <<_ACEOF
15495 #line $LINENO "configure"
15498 cat confdefs.h
>>conftest.
$ac_ext
15499 cat >>conftest.
$ac_ext <<_ACEOF
15500 /* end confdefs.h. */
15501 #include <$ac_header>
15503 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15504 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15506 grep -v '^ *+' conftest.er1
>conftest.err
15508 cat conftest.err
>&5
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); } >/dev
/null
; then
15511 if test -s conftest.err
; then
15512 ac_cpp_err
=$ac_c_preproc_warn_flag
15519 if test -z "$ac_cpp_err"; then
15520 ac_header_preproc
=yes
15522 echo "$as_me: failed program was:" >&5
15523 sed 's/^/| /' conftest.
$ac_ext >&5
15525 ac_header_preproc
=no
15527 rm -f conftest.err conftest.
$ac_ext
15528 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15529 echo "${ECHO_T}$ac_header_preproc" >&6
15531 # So? What about this header?
15532 case $ac_header_compiler:$ac_header_preproc in
15534 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15540 ## ------------------------------------ ##
15541 ## Report this to bug-autoconf@gnu.org. ##
15542 ## ------------------------------------ ##
15545 sed "s/^/$as_me: WARNING: /" >&2
15548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15551 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15556 ## ------------------------------------ ##
15557 ## Report this to bug-autoconf@gnu.org. ##
15558 ## ------------------------------------ ##
15561 sed "s/^/$as_me: WARNING: /" >&2
15564 echo "$as_me:$LINENO: checking for $ac_header" >&5
15565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15567 echo $ECHO_N "(cached) $ECHO_C" >&6
15569 eval "$as_ac_Header=$ac_header_preproc"
15571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15572 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15575 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15576 cat >>confdefs.h
<<_ACEOF
15577 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15593 for ac_header
in krb.h
15595 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15597 echo "$as_me:$LINENO: checking for $ac_header" >&5
15598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15600 echo $ECHO_N "(cached) $ECHO_C" >&6
15602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15605 # Is the header compilable?
15606 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15607 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15608 cat >conftest.
$ac_ext <<_ACEOF
15609 #line $LINENO "configure"
15612 cat confdefs.h
>>conftest.
$ac_ext
15613 cat >>conftest.
$ac_ext <<_ACEOF
15614 /* end confdefs.h. */
15615 $ac_includes_default
15616 #include <$ac_header>
15618 rm -f conftest.
$ac_objext
15619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15620 (eval $ac_compile) 2>&5
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); } &&
15624 { ac_try
='test -s conftest.$ac_objext'
15625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15626 (eval $ac_try) 2>&5
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); }; }; then
15630 ac_header_compiler
=yes
15632 echo "$as_me: failed program was:" >&5
15633 sed 's/^/| /' conftest.
$ac_ext >&5
15635 ac_header_compiler
=no
15637 rm -f conftest.
$ac_objext conftest.
$ac_ext
15638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15639 echo "${ECHO_T}$ac_header_compiler" >&6
15641 # Is the header present?
15642 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15643 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15644 cat >conftest.
$ac_ext <<_ACEOF
15645 #line $LINENO "configure"
15648 cat confdefs.h
>>conftest.
$ac_ext
15649 cat >>conftest.
$ac_ext <<_ACEOF
15650 /* end confdefs.h. */
15651 #include <$ac_header>
15653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15654 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15656 grep -v '^ *+' conftest.er1
>conftest.err
15658 cat conftest.err
>&5
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); } >/dev
/null
; then
15661 if test -s conftest.err
; then
15662 ac_cpp_err
=$ac_c_preproc_warn_flag
15669 if test -z "$ac_cpp_err"; then
15670 ac_header_preproc
=yes
15672 echo "$as_me: failed program was:" >&5
15673 sed 's/^/| /' conftest.
$ac_ext >&5
15675 ac_header_preproc
=no
15677 rm -f conftest.err conftest.
$ac_ext
15678 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15679 echo "${ECHO_T}$ac_header_preproc" >&6
15681 # So? What about this header?
15682 case $ac_header_compiler:$ac_header_preproc in
15684 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15685 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15687 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15690 ## ------------------------------------ ##
15691 ## Report this to bug-autoconf@gnu.org. ##
15692 ## ------------------------------------ ##
15695 sed "s/^/$as_me: WARNING: /" >&2
15698 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15699 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15700 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15701 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15706 ## ------------------------------------ ##
15707 ## Report this to bug-autoconf@gnu.org. ##
15708 ## ------------------------------------ ##
15711 sed "s/^/$as_me: WARNING: /" >&2
15714 echo "$as_me:$LINENO: checking for $ac_header" >&5
15715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15717 echo $ECHO_N "(cached) $ECHO_C" >&6
15719 eval "$as_ac_Header=$ac_header_preproc"
15721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15726 cat >>confdefs.h
<<_ACEOF
15727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15732 for ac_header
in kerberosIV
/krb.h
15734 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15736 echo "$as_me:$LINENO: checking for $ac_header" >&5
15737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15739 echo $ECHO_N "(cached) $ECHO_C" >&6
15741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15742 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15744 # Is the header compilable?
15745 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15746 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15747 cat >conftest.
$ac_ext <<_ACEOF
15748 #line $LINENO "configure"
15751 cat confdefs.h
>>conftest.
$ac_ext
15752 cat >>conftest.
$ac_ext <<_ACEOF
15753 /* end confdefs.h. */
15754 $ac_includes_default
15755 #include <$ac_header>
15757 rm -f conftest.
$ac_objext
15758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15759 (eval $ac_compile) 2>&5
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); } &&
15763 { ac_try
='test -s conftest.$ac_objext'
15764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15765 (eval $ac_try) 2>&5
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); }; }; then
15769 ac_header_compiler
=yes
15771 echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.
$ac_ext >&5
15774 ac_header_compiler
=no
15776 rm -f conftest.
$ac_objext conftest.
$ac_ext
15777 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15778 echo "${ECHO_T}$ac_header_compiler" >&6
15780 # Is the header present?
15781 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15782 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15783 cat >conftest.
$ac_ext <<_ACEOF
15784 #line $LINENO "configure"
15787 cat confdefs.h
>>conftest.
$ac_ext
15788 cat >>conftest.
$ac_ext <<_ACEOF
15789 /* end confdefs.h. */
15790 #include <$ac_header>
15792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15793 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15795 grep -v '^ *+' conftest.er1
>conftest.err
15797 cat conftest.err
>&5
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); } >/dev
/null
; then
15800 if test -s conftest.err
; then
15801 ac_cpp_err
=$ac_c_preproc_warn_flag
15808 if test -z "$ac_cpp_err"; then
15809 ac_header_preproc
=yes
15811 echo "$as_me: failed program was:" >&5
15812 sed 's/^/| /' conftest.
$ac_ext >&5
15814 ac_header_preproc
=no
15816 rm -f conftest.err conftest.
$ac_ext
15817 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15818 echo "${ECHO_T}$ac_header_preproc" >&6
15820 # So? What about this header?
15821 case $ac_header_compiler:$ac_header_preproc in
15823 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15824 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15829 ## ------------------------------------ ##
15830 ## Report this to bug-autoconf@gnu.org. ##
15831 ## ------------------------------------ ##
15834 sed "s/^/$as_me: WARNING: /" >&2
15837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15840 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15845 ## ------------------------------------ ##
15846 ## Report this to bug-autoconf@gnu.org. ##
15847 ## ------------------------------------ ##
15850 sed "s/^/$as_me: WARNING: /" >&2
15853 echo "$as_me:$LINENO: checking for $ac_header" >&5
15854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15856 echo $ECHO_N "(cached) $ECHO_C" >&6
15858 eval "$as_ac_Header=$ac_header_preproc"
15860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15865 cat >>confdefs.h
<<_ACEOF
15866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15871 for ac_header
in kerberos
/krb.h
15873 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15875 echo "$as_me:$LINENO: checking for $ac_header" >&5
15876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15878 echo $ECHO_N "(cached) $ECHO_C" >&6
15880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15883 # Is the header compilable?
15884 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15885 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15886 cat >conftest.
$ac_ext <<_ACEOF
15887 #line $LINENO "configure"
15890 cat confdefs.h
>>conftest.
$ac_ext
15891 cat >>conftest.
$ac_ext <<_ACEOF
15892 /* end confdefs.h. */
15893 $ac_includes_default
15894 #include <$ac_header>
15896 rm -f conftest.
$ac_objext
15897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15898 (eval $ac_compile) 2>&5
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); } &&
15902 { ac_try
='test -s conftest.$ac_objext'
15903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15904 (eval $ac_try) 2>&5
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); }; }; then
15908 ac_header_compiler
=yes
15910 echo "$as_me: failed program was:" >&5
15911 sed 's/^/| /' conftest.
$ac_ext >&5
15913 ac_header_compiler
=no
15915 rm -f conftest.
$ac_objext conftest.
$ac_ext
15916 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15917 echo "${ECHO_T}$ac_header_compiler" >&6
15919 # Is the header present?
15920 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15921 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15922 cat >conftest.
$ac_ext <<_ACEOF
15923 #line $LINENO "configure"
15926 cat confdefs.h
>>conftest.
$ac_ext
15927 cat >>conftest.
$ac_ext <<_ACEOF
15928 /* end confdefs.h. */
15929 #include <$ac_header>
15931 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15932 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15934 grep -v '^ *+' conftest.er1
>conftest.err
15936 cat conftest.err
>&5
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); } >/dev
/null
; then
15939 if test -s conftest.err
; then
15940 ac_cpp_err
=$ac_c_preproc_warn_flag
15947 if test -z "$ac_cpp_err"; then
15948 ac_header_preproc
=yes
15950 echo "$as_me: failed program was:" >&5
15951 sed 's/^/| /' conftest.
$ac_ext >&5
15953 ac_header_preproc
=no
15955 rm -f conftest.err conftest.
$ac_ext
15956 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15957 echo "${ECHO_T}$ac_header_preproc" >&6
15959 # So? What about this header?
15960 case $ac_header_compiler:$ac_header_preproc in
15962 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15963 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15968 ## ------------------------------------ ##
15969 ## Report this to bug-autoconf@gnu.org. ##
15970 ## ------------------------------------ ##
15973 sed "s/^/$as_me: WARNING: /" >&2
15976 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15977 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15978 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15979 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15981 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15984 ## ------------------------------------ ##
15985 ## Report this to bug-autoconf@gnu.org. ##
15986 ## ------------------------------------ ##
15989 sed "s/^/$as_me: WARNING: /" >&2
15992 echo "$as_me:$LINENO: checking for $ac_header" >&5
15993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15995 echo $ECHO_N "(cached) $ECHO_C" >&6
15997 eval "$as_ac_Header=$ac_header_preproc"
15999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16003 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16004 cat >>confdefs.h
<<_ACEOF
16005 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16022 for ac_header
in com_err.h
16024 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16026 echo "$as_me:$LINENO: checking for $ac_header" >&5
16027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16029 echo $ECHO_N "(cached) $ECHO_C" >&6
16031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16034 # Is the header compilable?
16035 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16037 cat >conftest.
$ac_ext <<_ACEOF
16038 #line $LINENO "configure"
16041 cat confdefs.h
>>conftest.
$ac_ext
16042 cat >>conftest.
$ac_ext <<_ACEOF
16043 /* end confdefs.h. */
16044 $ac_includes_default
16045 #include <$ac_header>
16047 rm -f conftest.
$ac_objext
16048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16049 (eval $ac_compile) 2>&5
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); } &&
16053 { ac_try
='test -s conftest.$ac_objext'
16054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055 (eval $ac_try) 2>&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); }; }; then
16059 ac_header_compiler
=yes
16061 echo "$as_me: failed program was:" >&5
16062 sed 's/^/| /' conftest.
$ac_ext >&5
16064 ac_header_compiler
=no
16066 rm -f conftest.
$ac_objext conftest.
$ac_ext
16067 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16068 echo "${ECHO_T}$ac_header_compiler" >&6
16070 # Is the header present?
16071 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16073 cat >conftest.
$ac_ext <<_ACEOF
16074 #line $LINENO "configure"
16077 cat confdefs.h
>>conftest.
$ac_ext
16078 cat >>conftest.
$ac_ext <<_ACEOF
16079 /* end confdefs.h. */
16080 #include <$ac_header>
16082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16083 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16085 grep -v '^ *+' conftest.er1
>conftest.err
16087 cat conftest.err
>&5
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); } >/dev
/null
; then
16090 if test -s conftest.err
; then
16091 ac_cpp_err
=$ac_c_preproc_warn_flag
16098 if test -z "$ac_cpp_err"; then
16099 ac_header_preproc
=yes
16101 echo "$as_me: failed program was:" >&5
16102 sed 's/^/| /' conftest.
$ac_ext >&5
16104 ac_header_preproc
=no
16106 rm -f conftest.err conftest.
$ac_ext
16107 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16108 echo "${ECHO_T}$ac_header_preproc" >&6
16110 # So? What about this header?
16111 case $ac_header_compiler:$ac_header_preproc in
16113 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16114 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16116 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16119 ## ------------------------------------ ##
16120 ## Report this to bug-autoconf@gnu.org. ##
16121 ## ------------------------------------ ##
16124 sed "s/^/$as_me: WARNING: /" >&2
16127 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16128 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16129 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16130 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16135 ## ------------------------------------ ##
16136 ## Report this to bug-autoconf@gnu.org. ##
16137 ## ------------------------------------ ##
16140 sed "s/^/$as_me: WARNING: /" >&2
16143 echo "$as_me:$LINENO: checking for $ac_header" >&5
16144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16146 echo $ECHO_N "(cached) $ECHO_C" >&6
16148 eval "$as_ac_Header=$ac_header_preproc"
16150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16155 cat >>confdefs.h
<<_ACEOF
16156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16165 # Solaris requires -lintl if you want strerror (which calls dgettext)
16166 # to return localized messages.
16168 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
16169 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
16170 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
16171 echo $ECHO_N "(cached) $ECHO_C" >&6
16173 ac_check_lib_save_LIBS
=$LIBS
16174 LIBS
="-lintl $LIBS"
16175 cat >conftest.
$ac_ext <<_ACEOF
16176 #line $LINENO "configure"
16179 cat confdefs.h
>>conftest.
$ac_ext
16180 cat >>conftest.
$ac_ext <<_ACEOF
16181 /* end confdefs.h. */
16183 /* Override any gcc2 internal prototype to avoid an error. */
16187 /* We use char because int might match the return type of a gcc2
16188 builtin and then its argument prototype would still apply. */
16198 rm -f conftest.
$ac_objext conftest
$ac_exeext
16199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16200 (eval $ac_link) 2>&5
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); } &&
16204 { ac_try
='test -s conftest$ac_exeext'
16205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16206 (eval $ac_try) 2>&5
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; }; then
16210 ac_cv_lib_intl_dgettext
=yes
16212 echo "$as_me: failed program was:" >&5
16213 sed 's/^/| /' conftest.
$ac_ext >&5
16215 ac_cv_lib_intl_dgettext
=no
16217 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16218 LIBS
=$ac_check_lib_save_LIBS
16220 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
16221 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
16222 if test $ac_cv_lib_intl_dgettext = yes; then
16223 cat >>confdefs.h
<<_ACEOF
16224 #define HAVE_LIBINTL 1
16227 LIBS
="-lintl $LIBS"
16232 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
16233 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
16234 if test "${emacs_cv_localtime_cache+set}" = set; then
16235 echo $ECHO_N "(cached) $ECHO_C" >&6
16237 if test x
$ac_cv_func_tzset = xyes
; then
16238 if test "$cross_compiling" = yes; then
16239 # If we have tzset, assume the worst when cross-compiling.
16240 emacs_cv_localtime_cache
=yes
16242 cat >conftest.
$ac_ext <<_ACEOF
16243 #line $LINENO "configure"
16246 cat confdefs.h
>>conftest.
$ac_ext
16247 cat >>conftest.
$ac_ext <<_ACEOF
16248 /* end confdefs.h. */
16250 extern char **environ;
16254 for (to = from = environ; (*to = *from); from++)
16255 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
16258 char TZ_GMT0[] = "TZ=GMT0";
16259 char TZ_PST8[] = "TZ=PST8";
16262 time_t now = time ((time_t *) 0);
16263 int hour_GMT0, hour_unset;
16264 if (putenv (TZ_GMT0) != 0)
16266 hour_GMT0 = localtime (&now)->tm_hour;
16268 hour_unset = localtime (&now)->tm_hour;
16269 if (putenv (TZ_PST8) != 0)
16271 if (localtime (&now)->tm_hour == hour_GMT0)
16274 if (localtime (&now)->tm_hour != hour_unset)
16279 rm -f conftest
$ac_exeext
16280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16281 (eval $ac_link) 2>&5
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16286 (eval $ac_try) 2>&5
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); }; }; then
16290 emacs_cv_localtime_cache
=no
16292 echo "$as_me: program exited with status $ac_status" >&5
16293 echo "$as_me: failed program was:" >&5
16294 sed 's/^/| /' conftest.
$ac_ext >&5
16296 ( exit $ac_status )
16297 emacs_cv_localtime_cache
=yes
16299 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16302 # If we lack tzset, report that localtime does not cache TZ,
16303 # since we can't invalidate the cache if we don't have tzset.
16304 emacs_cv_localtime_cache
=no
16307 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
16308 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
16309 if test $emacs_cv_localtime_cache = yes; then
16311 cat >>confdefs.h
<<\_ACEOF
16312 #define LOCALTIME_CACHE 1
16317 if test "x$HAVE_TIMEVAL" = xyes
; then
16319 for ac_func
in gettimeofday
16321 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16322 echo "$as_me:$LINENO: checking for $ac_func" >&5
16323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16324 if eval "test \"\${$as_ac_var+set}\" = set"; then
16325 echo $ECHO_N "(cached) $ECHO_C" >&6
16327 cat >conftest.
$ac_ext <<_ACEOF
16328 #line $LINENO "configure"
16331 cat confdefs.h
>>conftest.
$ac_ext
16332 cat >>conftest.
$ac_ext <<_ACEOF
16333 /* end confdefs.h. */
16334 /* System header to define __stub macros and hopefully few prototypes,
16335 which can conflict with char $ac_func (); below.
16336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16337 <limits.h> exists even on freestanding compilers. */
16339 # include <limits.h>
16341 # include <assert.h>
16343 /* Override any gcc2 internal prototype to avoid an error. */
16348 /* We use char because int might match the return type of a gcc2
16349 builtin and then its argument prototype would still apply. */
16351 /* The GNU C library defines this for functions which it implements
16352 to always fail with ENOSYS. Some functions are actually named
16353 something starting with __ and the normal name is an alias. */
16354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16357 char (*f) () = $ac_func;
16366 return f != $ac_func;
16371 rm -f conftest.
$ac_objext conftest
$ac_exeext
16372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16373 (eval $ac_link) 2>&5
16375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 (exit $ac_status); } &&
16377 { ac_try
='test -s conftest$ac_exeext'
16378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16379 (eval $ac_try) 2>&5
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); }; }; then
16383 eval "$as_ac_var=yes"
16385 echo "$as_me: failed program was:" >&5
16386 sed 's/^/| /' conftest.
$ac_ext >&5
16388 eval "$as_ac_var=no"
16390 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16393 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16394 if test `eval echo '${'$as_ac_var'}'` = yes; then
16395 cat >>confdefs.h
<<_ACEOF
16396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16402 if test $ac_cv_func_gettimeofday = yes; then
16403 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
16404 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
16405 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
16406 echo $ECHO_N "(cached) $ECHO_C" >&6
16408 cat >conftest.
$ac_ext <<_ACEOF
16409 #line $LINENO "configure"
16412 cat confdefs.h
>>conftest.
$ac_ext
16413 cat >>conftest.
$ac_ext <<_ACEOF
16414 /* end confdefs.h. */
16416 #ifdef TIME_WITH_SYS_TIME
16417 #include <sys/time.h>
16420 #ifdef HAVE_SYS_TIME_H
16421 #include <sys/time.h>
16429 struct timeval time;
16430 gettimeofday (&time, 0);
16435 rm -f conftest.
$ac_objext
16436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16437 (eval $ac_compile) 2>&5
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); } &&
16441 { ac_try
='test -s conftest.$ac_objext'
16442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16443 (eval $ac_try) 2>&5
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); }; }; then
16447 emacs_cv_gettimeofday_two_arguments
=yes
16449 echo "$as_me: failed program was:" >&5
16450 sed 's/^/| /' conftest.
$ac_ext >&5
16452 emacs_cv_gettimeofday_two_arguments
=no
16454 rm -f conftest.
$ac_objext conftest.
$ac_ext
16456 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
16457 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
16458 if test $emacs_cv_gettimeofday_two_arguments = no
; then
16460 cat >>confdefs.h
<<\_ACEOF
16461 #define GETTIMEOFDAY_ONE_ARGUMENT 1
16468 if test "$ac_cv_func_gettimeofday" = yes; then
16469 echo "$as_me:$LINENO: checking for struct timezone" >&5
16470 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
16471 if test "${emacs_cv_struct_timezone+set}" = set; then
16472 echo $ECHO_N "(cached) $ECHO_C" >&6
16474 cat >conftest.
$ac_ext <<_ACEOF
16475 #line $LINENO "configure"
16478 cat confdefs.h
>>conftest.
$ac_ext
16479 cat >>conftest.
$ac_ext <<_ACEOF
16480 /* end confdefs.h. */
16481 #include <sys/time.h>
16485 struct timezone tz;
16490 rm -f conftest.
$ac_objext
16491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16492 (eval $ac_compile) 2>&5
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); } &&
16496 { ac_try
='test -s conftest.$ac_objext'
16497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498 (eval $ac_try) 2>&5
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; }; then
16502 if test "$cross_compiling" = yes; then
16503 emacs_cv_struct_timezone
=yes
16505 cat >conftest.
$ac_ext <<_ACEOF
16506 #line $LINENO "configure"
16509 cat confdefs.h
>>conftest.
$ac_ext
16510 cat >>conftest.
$ac_ext <<_ACEOF
16511 /* end confdefs.h. */
16513 #ifdef TIME_WITH_SYS_TIME
16514 #include <sys/time.h>
16517 #ifdef HAVE_SYS_TIME_H
16518 #include <sys/time.h>
16524 struct timeval time;
16525 struct timezone dummy;
16526 exit (gettimeofday (&time, &dummy));
16529 rm -f conftest
$ac_exeext
16530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16531 (eval $ac_link) 2>&5
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16536 (eval $ac_try) 2>&5
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); }; }; then
16540 emacs_cv_struct_timezone
=yes
16542 echo "$as_me: program exited with status $ac_status" >&5
16543 echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.
$ac_ext >&5
16546 ( exit $ac_status )
16547 emacs_cv_struct_timezone
=no
16549 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16552 echo "$as_me: failed program was:" >&5
16553 sed 's/^/| /' conftest.
$ac_ext >&5
16555 emacs_cv_struct_timezone
=no
16557 rm -f conftest.
$ac_objext conftest.
$ac_ext
16559 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
16560 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
16564 echo "$as_me:$LINENO: checking for socket" >&5
16565 echo $ECHO_N "checking for socket... $ECHO_C" >&6
16566 if test "${ac_cv_func_socket+set}" = set; then
16567 echo $ECHO_N "(cached) $ECHO_C" >&6
16569 cat >conftest.
$ac_ext <<_ACEOF
16570 #line $LINENO "configure"
16573 cat confdefs.h
>>conftest.
$ac_ext
16574 cat >>conftest.
$ac_ext <<_ACEOF
16575 /* end confdefs.h. */
16576 /* System header to define __stub macros and hopefully few prototypes,
16577 which can conflict with char socket (); below.
16578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16579 <limits.h> exists even on freestanding compilers. */
16581 # include <limits.h>
16583 # include <assert.h>
16585 /* Override any gcc2 internal prototype to avoid an error. */
16590 /* We use char because int might match the return type of a gcc2
16591 builtin and then its argument prototype would still apply. */
16593 /* The GNU C library defines this for functions which it implements
16594 to always fail with ENOSYS. Some functions are actually named
16595 something starting with __ and the normal name is an alias. */
16596 #if defined (__stub_socket) || defined (__stub___socket)
16599 char (*f) () = socket;
16608 return f != socket;
16613 rm -f conftest.
$ac_objext conftest
$ac_exeext
16614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16615 (eval $ac_link) 2>&5
16617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618 (exit $ac_status); } &&
16619 { ac_try
='test -s conftest$ac_exeext'
16620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16621 (eval $ac_try) 2>&5
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); }; }; then
16625 ac_cv_func_socket
=yes
16627 echo "$as_me: failed program was:" >&5
16628 sed 's/^/| /' conftest.
$ac_ext >&5
16630 ac_cv_func_socket
=no
16632 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16634 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16635 echo "${ECHO_T}$ac_cv_func_socket" >&6
16636 if test $ac_cv_func_socket = yes; then
16642 if test $ok_so_far = yes; then
16643 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16644 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
16645 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
16646 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16647 echo $ECHO_N "(cached) $ECHO_C" >&6
16649 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
16650 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
16652 # Is the header compilable?
16653 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
16654 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
16655 cat >conftest.
$ac_ext <<_ACEOF
16656 #line $LINENO "configure"
16659 cat confdefs.h
>>conftest.
$ac_ext
16660 cat >>conftest.
$ac_ext <<_ACEOF
16661 /* end confdefs.h. */
16662 $ac_includes_default
16663 #include <netinet/in.h>
16665 rm -f conftest.
$ac_objext
16666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16667 (eval $ac_compile) 2>&5
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); } &&
16671 { ac_try
='test -s conftest.$ac_objext'
16672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16673 (eval $ac_try) 2>&5
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); }; }; then
16677 ac_header_compiler
=yes
16679 echo "$as_me: failed program was:" >&5
16680 sed 's/^/| /' conftest.
$ac_ext >&5
16682 ac_header_compiler
=no
16684 rm -f conftest.
$ac_objext conftest.
$ac_ext
16685 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16686 echo "${ECHO_T}$ac_header_compiler" >&6
16688 # Is the header present?
16689 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
16690 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
16691 cat >conftest.
$ac_ext <<_ACEOF
16692 #line $LINENO "configure"
16695 cat confdefs.h
>>conftest.
$ac_ext
16696 cat >>conftest.
$ac_ext <<_ACEOF
16697 /* end confdefs.h. */
16698 #include <netinet/in.h>
16700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16701 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16703 grep -v '^ *+' conftest.er1
>conftest.err
16705 cat conftest.err
>&5
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); } >/dev
/null
; then
16708 if test -s conftest.err
; then
16709 ac_cpp_err
=$ac_c_preproc_warn_flag
16716 if test -z "$ac_cpp_err"; then
16717 ac_header_preproc
=yes
16719 echo "$as_me: failed program was:" >&5
16720 sed 's/^/| /' conftest.
$ac_ext >&5
16722 ac_header_preproc
=no
16724 rm -f conftest.err conftest.
$ac_ext
16725 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16726 echo "${ECHO_T}$ac_header_preproc" >&6
16728 # So? What about this header?
16729 case $ac_header_compiler:$ac_header_preproc in
16731 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
16732 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16733 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
16734 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
16737 ## ------------------------------------ ##
16738 ## Report this to bug-autoconf@gnu.org. ##
16739 ## ------------------------------------ ##
16742 sed "s/^/$as_me: WARNING: /" >&2
16745 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
16746 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
16747 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
16748 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
16749 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
16750 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
16753 ## ------------------------------------ ##
16754 ## Report this to bug-autoconf@gnu.org. ##
16755 ## ------------------------------------ ##
16758 sed "s/^/$as_me: WARNING: /" >&2
16761 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
16762 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
16763 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16764 echo $ECHO_N "(cached) $ECHO_C" >&6
16766 ac_cv_header_netinet_in_h
=$ac_header_preproc
16768 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
16769 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
16772 if test $ac_cv_header_netinet_in_h = yes; then
16780 if test $ok_so_far = yes; then
16781 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16782 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
16783 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
16784 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16785 echo $ECHO_N "(cached) $ECHO_C" >&6
16787 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
16788 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
16790 # Is the header compilable?
16791 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
16792 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
16793 cat >conftest.
$ac_ext <<_ACEOF
16794 #line $LINENO "configure"
16797 cat confdefs.h
>>conftest.
$ac_ext
16798 cat >>conftest.
$ac_ext <<_ACEOF
16799 /* end confdefs.h. */
16800 $ac_includes_default
16801 #include <arpa/inet.h>
16803 rm -f conftest.
$ac_objext
16804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16805 (eval $ac_compile) 2>&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); } &&
16809 { ac_try
='test -s conftest.$ac_objext'
16810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16811 (eval $ac_try) 2>&5
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); }; }; then
16815 ac_header_compiler
=yes
16817 echo "$as_me: failed program was:" >&5
16818 sed 's/^/| /' conftest.
$ac_ext >&5
16820 ac_header_compiler
=no
16822 rm -f conftest.
$ac_objext conftest.
$ac_ext
16823 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16824 echo "${ECHO_T}$ac_header_compiler" >&6
16826 # Is the header present?
16827 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
16828 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
16829 cat >conftest.
$ac_ext <<_ACEOF
16830 #line $LINENO "configure"
16833 cat confdefs.h
>>conftest.
$ac_ext
16834 cat >>conftest.
$ac_ext <<_ACEOF
16835 /* end confdefs.h. */
16836 #include <arpa/inet.h>
16838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16839 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16841 grep -v '^ *+' conftest.er1
>conftest.err
16843 cat conftest.err
>&5
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); } >/dev
/null
; then
16846 if test -s conftest.err
; then
16847 ac_cpp_err
=$ac_c_preproc_warn_flag
16854 if test -z "$ac_cpp_err"; then
16855 ac_header_preproc
=yes
16857 echo "$as_me: failed program was:" >&5
16858 sed 's/^/| /' conftest.
$ac_ext >&5
16860 ac_header_preproc
=no
16862 rm -f conftest.err conftest.
$ac_ext
16863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16864 echo "${ECHO_T}$ac_header_preproc" >&6
16866 # So? What about this header?
16867 case $ac_header_compiler:$ac_header_preproc in
16869 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
16870 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16871 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
16872 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
16875 ## ------------------------------------ ##
16876 ## Report this to bug-autoconf@gnu.org. ##
16877 ## ------------------------------------ ##
16880 sed "s/^/$as_me: WARNING: /" >&2
16883 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
16884 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
16885 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
16886 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
16887 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
16888 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
16891 ## ------------------------------------ ##
16892 ## Report this to bug-autoconf@gnu.org. ##
16893 ## ------------------------------------ ##
16896 sed "s/^/$as_me: WARNING: /" >&2
16899 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
16900 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
16901 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16902 echo $ECHO_N "(cached) $ECHO_C" >&6
16904 ac_cv_header_arpa_inet_h
=$ac_header_preproc
16906 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
16907 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
16910 if test $ac_cv_header_arpa_inet_h = yes; then
16918 if test $ok_so_far = yes; then
16920 cat >>confdefs.h
<<\_ACEOF
16921 #define HAVE_INET_SOCKETS 1
16926 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
16928 cat >>confdefs.h
<<\_ACEOF
16929 #define HAVE_AIX_SMT_EXP 1
16934 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
16935 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
16936 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
16937 echo "$as_me:$LINENO: result: yes" >&5
16938 echo "${ECHO_T}yes" >&6
16940 cat >>confdefs.h
<<\_ACEOF
16941 #define HAVE_DEV_PTMX 1
16945 echo "$as_me:$LINENO: result: no" >&5
16946 echo "${ECHO_T}no" >&6
16949 echo "$as_me:$LINENO: checking for pid_t" >&5
16950 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16951 if test "${ac_cv_type_pid_t+set}" = set; then
16952 echo $ECHO_N "(cached) $ECHO_C" >&6
16954 cat >conftest.
$ac_ext <<_ACEOF
16955 #line $LINENO "configure"
16958 cat confdefs.h
>>conftest.
$ac_ext
16959 cat >>conftest.
$ac_ext <<_ACEOF
16960 /* end confdefs.h. */
16961 $ac_includes_default
16967 if (sizeof (pid_t))
16973 rm -f conftest.
$ac_objext
16974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16975 (eval $ac_compile) 2>&5
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); } &&
16979 { ac_try
='test -s conftest.$ac_objext'
16980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16981 (eval $ac_try) 2>&5
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); }; }; then
16985 ac_cv_type_pid_t
=yes
16987 echo "$as_me: failed program was:" >&5
16988 sed 's/^/| /' conftest.
$ac_ext >&5
16990 ac_cv_type_pid_t
=no
16992 rm -f conftest.
$ac_objext conftest.
$ac_ext
16994 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16995 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
16996 if test $ac_cv_type_pid_t = yes; then
17000 cat >>confdefs.h
<<_ACEOF
17008 for ac_header
in unistd.h vfork.h
17010 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17012 echo "$as_me:$LINENO: checking for $ac_header" >&5
17013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17015 echo $ECHO_N "(cached) $ECHO_C" >&6
17017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17020 # Is the header compilable?
17021 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17023 cat >conftest.
$ac_ext <<_ACEOF
17024 #line $LINENO "configure"
17027 cat confdefs.h
>>conftest.
$ac_ext
17028 cat >>conftest.
$ac_ext <<_ACEOF
17029 /* end confdefs.h. */
17030 $ac_includes_default
17031 #include <$ac_header>
17033 rm -f conftest.
$ac_objext
17034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17035 (eval $ac_compile) 2>&5
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); } &&
17039 { ac_try
='test -s conftest.$ac_objext'
17040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17041 (eval $ac_try) 2>&5
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); }; }; then
17045 ac_header_compiler
=yes
17047 echo "$as_me: failed program was:" >&5
17048 sed 's/^/| /' conftest.
$ac_ext >&5
17050 ac_header_compiler
=no
17052 rm -f conftest.
$ac_objext conftest.
$ac_ext
17053 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17054 echo "${ECHO_T}$ac_header_compiler" >&6
17056 # Is the header present?
17057 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17059 cat >conftest.
$ac_ext <<_ACEOF
17060 #line $LINENO "configure"
17063 cat confdefs.h
>>conftest.
$ac_ext
17064 cat >>conftest.
$ac_ext <<_ACEOF
17065 /* end confdefs.h. */
17066 #include <$ac_header>
17068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17069 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17071 grep -v '^ *+' conftest.er1
>conftest.err
17073 cat conftest.err
>&5
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); } >/dev
/null
; then
17076 if test -s conftest.err
; then
17077 ac_cpp_err
=$ac_c_preproc_warn_flag
17084 if test -z "$ac_cpp_err"; then
17085 ac_header_preproc
=yes
17087 echo "$as_me: failed program was:" >&5
17088 sed 's/^/| /' conftest.
$ac_ext >&5
17090 ac_header_preproc
=no
17092 rm -f conftest.err conftest.
$ac_ext
17093 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17094 echo "${ECHO_T}$ac_header_preproc" >&6
17096 # So? What about this header?
17097 case $ac_header_compiler:$ac_header_preproc in
17099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17102 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17105 ## ------------------------------------ ##
17106 ## Report this to bug-autoconf@gnu.org. ##
17107 ## ------------------------------------ ##
17110 sed "s/^/$as_me: WARNING: /" >&2
17113 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17114 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17115 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17116 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17121 ## ------------------------------------ ##
17122 ## Report this to bug-autoconf@gnu.org. ##
17123 ## ------------------------------------ ##
17126 sed "s/^/$as_me: WARNING: /" >&2
17129 echo "$as_me:$LINENO: checking for $ac_header" >&5
17130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17132 echo $ECHO_N "(cached) $ECHO_C" >&6
17134 eval "$as_ac_Header=$ac_header_preproc"
17136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17141 cat >>confdefs.h
<<_ACEOF
17142 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17151 for ac_func
in fork vfork
17153 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17154 echo "$as_me:$LINENO: checking for $ac_func" >&5
17155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17156 if eval "test \"\${$as_ac_var+set}\" = set"; then
17157 echo $ECHO_N "(cached) $ECHO_C" >&6
17159 cat >conftest.
$ac_ext <<_ACEOF
17160 #line $LINENO "configure"
17163 cat confdefs.h
>>conftest.
$ac_ext
17164 cat >>conftest.
$ac_ext <<_ACEOF
17165 /* end confdefs.h. */
17166 /* System header to define __stub macros and hopefully few prototypes,
17167 which can conflict with char $ac_func (); below.
17168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17169 <limits.h> exists even on freestanding compilers. */
17171 # include <limits.h>
17173 # include <assert.h>
17175 /* Override any gcc2 internal prototype to avoid an error. */
17180 /* We use char because int might match the return type of a gcc2
17181 builtin and then its argument prototype would still apply. */
17183 /* The GNU C library defines this for functions which it implements
17184 to always fail with ENOSYS. Some functions are actually named
17185 something starting with __ and the normal name is an alias. */
17186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17189 char (*f) () = $ac_func;
17198 return f != $ac_func;
17203 rm -f conftest.
$ac_objext conftest
$ac_exeext
17204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17205 (eval $ac_link) 2>&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); } &&
17209 { ac_try
='test -s conftest$ac_exeext'
17210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17211 (eval $ac_try) 2>&5
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); }; }; then
17215 eval "$as_ac_var=yes"
17217 echo "$as_me: failed program was:" >&5
17218 sed 's/^/| /' conftest.
$ac_ext >&5
17220 eval "$as_ac_var=no"
17222 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17225 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17226 if test `eval echo '${'$as_ac_var'}'` = yes; then
17227 cat >>confdefs.h
<<_ACEOF
17228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17234 if test "x$ac_cv_func_fork" = xyes
; then
17235 echo "$as_me:$LINENO: checking for working fork" >&5
17236 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17237 if test "${ac_cv_func_fork_works+set}" = set; then
17238 echo $ECHO_N "(cached) $ECHO_C" >&6
17240 if test "$cross_compiling" = yes; then
17241 ac_cv_func_fork_works
=cross
17243 cat >conftest.
$ac_ext <<_ACEOF
17244 /* By Ruediger Kuhlmann. */
17245 #include <sys/types.h>
17247 # include <unistd.h>
17249 /* Some systems only have a dummy stub for fork() */
17257 rm -f conftest
$ac_exeext
17258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17259 (eval $ac_link) 2>&5
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17264 (eval $ac_try) 2>&5
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); }; }; then
17268 ac_cv_func_fork_works
=yes
17270 echo "$as_me: program exited with status $ac_status" >&5
17271 echo "$as_me: failed program was:" >&5
17272 sed 's/^/| /' conftest.
$ac_ext >&5
17274 ( exit $ac_status )
17275 ac_cv_func_fork_works
=no
17277 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17280 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
17281 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17284 ac_cv_func_fork_works
=$ac_cv_func_fork
17286 if test "x$ac_cv_func_fork_works" = xcross
; then
17288 *-*-amigaos* |
*-*-msdosdjgpp*)
17289 # Override, as these systems have only a dummy fork() stub
17290 ac_cv_func_fork_works
=no
17293 ac_cv_func_fork_works
=yes
17296 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17297 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17299 ac_cv_func_vfork_works
=$ac_cv_func_vfork
17300 if test "x$ac_cv_func_vfork" = xyes
; then
17301 echo "$as_me:$LINENO: checking for working vfork" >&5
17302 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17303 if test "${ac_cv_func_vfork_works+set}" = set; then
17304 echo $ECHO_N "(cached) $ECHO_C" >&6
17306 if test "$cross_compiling" = yes; then
17307 ac_cv_func_vfork_works
=cross
17309 cat >conftest.
$ac_ext <<_ACEOF
17310 #line $LINENO "configure"
17313 cat confdefs.h
>>conftest.
$ac_ext
17314 cat >>conftest.
$ac_ext <<_ACEOF
17315 /* end confdefs.h. */
17316 /* Thanks to Paul Eggert for this test. */
17318 #include <stdlib.h>
17319 #include <sys/types.h>
17320 #include <sys/stat.h>
17321 #include <sys/wait.h>
17323 # include <unistd.h>
17326 # include <vfork.h>
17328 /* On some sparc systems, changes by the child to local and incoming
17329 argument registers are propagated back to the parent. The compiler
17330 is told about this with #include <vfork.h>, but some compilers
17331 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17332 static variable whose address is put into a register that is
17333 clobbered by the vfork. */
17336 sparc_address_test (int arg)
17338 sparc_address_test (arg) int arg;
17341 static pid_t child;
17359 pid_t parent = getpid ();
17362 sparc_address_test (0);
17367 /* Here is another test for sparc vfork register problems. This
17368 test uses lots of local variables, at least as many local
17369 variables as main has allocated so far including compiler
17370 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17371 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17372 reuse the register of parent for one of the local variables,
17373 since it will think that parent can't possibly be used any more
17374 in this routine. Assigning to the local variable will thus
17375 munge parent in the parent process. */
17377 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17378 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17379 /* Convince the compiler that p..p7 are live; otherwise, it might
17380 use the same hardware register for all 8 local variables. */
17381 if (p != p1 || p != p2 || p != p3 || p != p4
17382 || p != p5 || p != p6 || p != p7)
17385 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17386 from child file descriptors. If the child closes a descriptor
17387 before it execs or exits, this munges the parent's descriptor
17388 as well. Test for this by closing stdout in the child. */
17389 _exit(close(fileno(stdout)) != 0);
17394 while (wait(&status) != child)
17397 /* Was there some problem with vforking? */
17400 /* Did the child fail? (This shouldn't happen.) */
17403 /* Did the vfork/compiler bug occur? */
17404 || parent != getpid()
17406 /* Did the file descriptor bug occur? */
17407 || fstat(fileno(stdout), &st) != 0
17412 rm -f conftest
$ac_exeext
17413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17414 (eval $ac_link) 2>&5
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17419 (eval $ac_try) 2>&5
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); }; }; then
17423 ac_cv_func_vfork_works
=yes
17425 echo "$as_me: program exited with status $ac_status" >&5
17426 echo "$as_me: failed program was:" >&5
17427 sed 's/^/| /' conftest.
$ac_ext >&5
17429 ( exit $ac_status )
17430 ac_cv_func_vfork_works
=no
17432 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17435 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
17436 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17439 if test "x$ac_cv_func_fork_works" = xcross
; then
17440 ac_cv_func_vfork_works
=ac_cv_func_vfork
17441 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17442 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17445 if test "x$ac_cv_func_vfork_works" = xyes
; then
17447 cat >>confdefs.h
<<\_ACEOF
17448 #define HAVE_WORKING_VFORK 1
17453 cat >>confdefs.h
<<\_ACEOF
17458 if test "x$ac_cv_func_fork_works" = xyes
; then
17460 cat >>confdefs.h
<<\_ACEOF
17461 #define HAVE_WORKING_FORK 1
17467 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17468 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17469 if test "${emacs_cv_langinfo_codeset+set}" = set; then
17470 echo $ECHO_N "(cached) $ECHO_C" >&6
17472 cat >conftest.
$ac_ext <<_ACEOF
17473 #line $LINENO "configure"
17476 cat confdefs.h
>>conftest.
$ac_ext
17477 cat >>conftest.
$ac_ext <<_ACEOF
17478 /* end confdefs.h. */
17479 #include <langinfo.h>
17483 char* cs = nl_langinfo(CODESET);
17488 rm -f conftest.
$ac_objext conftest
$ac_exeext
17489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17490 (eval $ac_link) 2>&5
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); } &&
17494 { ac_try
='test -s conftest$ac_exeext'
17495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17496 (eval $ac_try) 2>&5
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); }; }; then
17500 emacs_cv_langinfo_codeset
=yes
17502 echo "$as_me: failed program was:" >&5
17503 sed 's/^/| /' conftest.
$ac_ext >&5
17505 emacs_cv_langinfo_codeset
=no
17507 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17510 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
17511 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
17512 if test $emacs_cv_langinfo_codeset = yes; then
17514 cat >>confdefs.h
<<\_ACEOF
17515 #define HAVE_LANGINFO_CODESET 1
17520 echo "$as_me:$LINENO: checking for size_t" >&5
17521 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17522 if test "${ac_cv_type_size_t+set}" = set; then
17523 echo $ECHO_N "(cached) $ECHO_C" >&6
17525 cat >conftest.
$ac_ext <<_ACEOF
17526 #line $LINENO "configure"
17529 cat confdefs.h
>>conftest.
$ac_ext
17530 cat >>conftest.
$ac_ext <<_ACEOF
17531 /* end confdefs.h. */
17532 $ac_includes_default
17538 if (sizeof (size_t))
17544 rm -f conftest.
$ac_objext
17545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17546 (eval $ac_compile) 2>&5
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); } &&
17550 { ac_try
='test -s conftest.$ac_objext'
17551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17552 (eval $ac_try) 2>&5
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }; }; then
17556 ac_cv_type_size_t
=yes
17558 echo "$as_me: failed program was:" >&5
17559 sed 's/^/| /' conftest.
$ac_ext >&5
17561 ac_cv_type_size_t
=no
17563 rm -f conftest.
$ac_objext conftest.
$ac_ext
17565 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17566 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17567 if test $ac_cv_type_size_t = yes; then
17569 cat >>confdefs.h
<<_ACEOF
17570 #define HAVE_SIZE_T 1
17577 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
17578 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
17579 if test "${emacs_cv_c_restrict+set}" = set; then
17580 echo $ECHO_N "(cached) $ECHO_C" >&6
17582 cat >conftest.
$ac_ext <<_ACEOF
17583 #line $LINENO "configure"
17586 cat confdefs.h
>>conftest.
$ac_ext
17587 cat >>conftest.
$ac_ext <<_ACEOF
17588 /* end confdefs.h. */
17589 void fred (int *restrict x);
17598 rm -f conftest.
$ac_objext
17599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17600 (eval $ac_compile) 2>&5
17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); } &&
17604 { ac_try
='test -s conftest.$ac_objext'
17605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17606 (eval $ac_try) 2>&5
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); }; }; then
17610 emacs_cv_c_restrict
=yes
17612 echo "$as_me: failed program was:" >&5
17613 sed 's/^/| /' conftest.
$ac_ext >&5
17615 cat >conftest.
$ac_ext <<_ACEOF
17616 #line $LINENO "configure"
17619 cat confdefs.h
>>conftest.
$ac_ext
17620 cat >>conftest.
$ac_ext <<_ACEOF
17621 /* end confdefs.h. */
17622 void fred (int *__restrict x);
17631 rm -f conftest.
$ac_objext
17632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17633 (eval $ac_compile) 2>&5
17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); } &&
17637 { ac_try
='test -s conftest.$ac_objext'
17638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17639 (eval $ac_try) 2>&5
17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); }; }; then
17643 emacs_cv_c_restrict
=__restrict
17645 echo "$as_me: failed program was:" >&5
17646 sed 's/^/| /' conftest.
$ac_ext >&5
17648 emacs_cv_c_restrict
=no
17650 rm -f conftest.
$ac_objext conftest.
$ac_ext
17652 rm -f conftest.
$ac_objext conftest.
$ac_ext
17654 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
17655 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
17656 case "$emacs_cv_c_restrict" in
17657 yes) emacs_restrict
=restrict
;;
17658 no
) emacs_restrict
="";;
17659 *) emacs_restrict
="$emacs_cv_c_restrict";;
17661 if test "$emacs_restrict" != __restrict
; then
17663 cat >>confdefs.h
<<_ACEOF
17664 #define __restrict $emacs_restrict
17669 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
17670 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
17671 if test "${emacs_cv_c_restrict_arr+set}" = set; then
17672 echo $ECHO_N "(cached) $ECHO_C" >&6
17674 cat >conftest.
$ac_ext <<_ACEOF
17675 #line $LINENO "configure"
17678 cat confdefs.h
>>conftest.
$ac_ext
17679 cat >>conftest.
$ac_ext <<_ACEOF
17680 /* end confdefs.h. */
17681 void fred (int x[__restrict]);
17690 rm -f conftest.
$ac_objext
17691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17692 (eval $ac_compile) 2>&5
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); } &&
17696 { ac_try
='test -s conftest.$ac_objext'
17697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17698 (eval $ac_try) 2>&5
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); }; }; then
17702 emacs_cv_c_restrict_arr
=yes
17704 echo "$as_me: failed program was:" >&5
17705 sed 's/^/| /' conftest.
$ac_ext >&5
17707 emacs_cv_c_restrict_arr
=no
17709 rm -f conftest.
$ac_objext conftest.
$ac_ext
17711 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
17712 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
17713 if test "$emacs_cv_c_restrict_arr" = yes; then
17715 cat >>confdefs.h
<<\_ACEOF
17716 #define __restrict_arr __restrict
17722 for ac_header
in nlist.h
17724 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17726 echo "$as_me:$LINENO: checking for $ac_header" >&5
17727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17729 echo $ECHO_N "(cached) $ECHO_C" >&6
17731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17734 # Is the header compilable?
17735 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17736 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17737 cat >conftest.
$ac_ext <<_ACEOF
17738 #line $LINENO "configure"
17741 cat confdefs.h
>>conftest.
$ac_ext
17742 cat >>conftest.
$ac_ext <<_ACEOF
17743 /* end confdefs.h. */
17744 $ac_includes_default
17745 #include <$ac_header>
17747 rm -f conftest.
$ac_objext
17748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17749 (eval $ac_compile) 2>&5
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); } &&
17753 { ac_try
='test -s conftest.$ac_objext'
17754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17755 (eval $ac_try) 2>&5
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); }; }; then
17759 ac_header_compiler
=yes
17761 echo "$as_me: failed program was:" >&5
17762 sed 's/^/| /' conftest.
$ac_ext >&5
17764 ac_header_compiler
=no
17766 rm -f conftest.
$ac_objext conftest.
$ac_ext
17767 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17768 echo "${ECHO_T}$ac_header_compiler" >&6
17770 # Is the header present?
17771 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17772 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17773 cat >conftest.
$ac_ext <<_ACEOF
17774 #line $LINENO "configure"
17777 cat confdefs.h
>>conftest.
$ac_ext
17778 cat >>conftest.
$ac_ext <<_ACEOF
17779 /* end confdefs.h. */
17780 #include <$ac_header>
17782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17783 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17785 grep -v '^ *+' conftest.er1
>conftest.err
17787 cat conftest.err
>&5
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); } >/dev
/null
; then
17790 if test -s conftest.err
; then
17791 ac_cpp_err
=$ac_c_preproc_warn_flag
17798 if test -z "$ac_cpp_err"; then
17799 ac_header_preproc
=yes
17801 echo "$as_me: failed program was:" >&5
17802 sed 's/^/| /' conftest.
$ac_ext >&5
17804 ac_header_preproc
=no
17806 rm -f conftest.err conftest.
$ac_ext
17807 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17808 echo "${ECHO_T}$ac_header_preproc" >&6
17810 # So? What about this header?
17811 case $ac_header_compiler:$ac_header_preproc in
17813 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17819 ## ------------------------------------ ##
17820 ## Report this to bug-autoconf@gnu.org. ##
17821 ## ------------------------------------ ##
17824 sed "s/^/$as_me: WARNING: /" >&2
17827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17835 ## ------------------------------------ ##
17836 ## Report this to bug-autoconf@gnu.org. ##
17837 ## ------------------------------------ ##
17840 sed "s/^/$as_me: WARNING: /" >&2
17843 echo "$as_me:$LINENO: checking for $ac_header" >&5
17844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17846 echo $ECHO_N "(cached) $ECHO_C" >&6
17848 eval "$as_ac_Header=$ac_header_preproc"
17850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17855 cat >>confdefs.h
<<_ACEOF
17856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17859 cat >>confdefs.h
<<\_ACEOF
17860 #define NLIST_STRUCT 1
17870 # Set up the CFLAGS for real compilation, so we can substitute it.
17871 CFLAGS
="$REAL_CFLAGS"
17872 CPPFLAGS
="$REAL_CPPFLAGS"
17874 #### Find out which version of Emacs this is.
17875 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
17876 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
17877 if test x
"${version}" = x
; then
17878 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
17879 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
17880 { (exit 1); exit 1; }; }
17883 ### Specify what sort of things we'll be editing into Makefile and config.h.
17884 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17920 cat >>confdefs.h
<<_ACEOF
17921 #define EMACS_CONFIGURATION "${canonical}"
17925 cat >>confdefs.h
<<_ACEOF
17926 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
17930 cat >>confdefs.h
<<_ACEOF
17931 #define config_machfile "${machfile}"
17935 cat >>confdefs.h
<<_ACEOF
17936 #define config_opsysfile "${opsysfile}"
17940 cat >>confdefs.h
<<_ACEOF
17941 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
17945 cat >>confdefs.h
<<_ACEOF
17946 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
17950 cat >>confdefs.h
<<_ACEOF
17951 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
17955 cat >>confdefs.h
<<_ACEOF
17956 #define UNEXEC_SRC ${UNEXEC_SRC}
17960 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17962 cat >>confdefs.h
<<\_ACEOF
17963 #define HAVE_X_WINDOWS 1
17967 if test "${USE_X_TOOLKIT}" != "none" ; then
17969 cat >>confdefs.h
<<\_ACEOF
17970 #define USE_X_TOOLKIT 1
17974 if test "${HAVE_X11}" = "yes" ; then
17976 cat >>confdefs.h
<<\_ACEOF
17981 if test "${HAVE_XFREE386}" = "yes" ; then
17983 cat >>confdefs.h
<<\_ACEOF
17984 #define HAVE_XFREE386 1
17988 if test "${HAVE_MENUS}" = "yes" ; then
17990 cat >>confdefs.h
<<\_ACEOF
17991 #define HAVE_MENUS 1
17995 if test "${GNU_MALLOC}" = "yes" ; then
17997 cat >>confdefs.h
<<\_ACEOF
17998 #define GNU_MALLOC 1
18002 if test "${REL_ALLOC}" = "yes" ; then
18004 cat >>confdefs.h
<<\_ACEOF
18005 #define REL_ALLOC 1
18014 #### Report on what we decided to do.
18015 #### Report GTK as a toolkit, even if it doesn't use Xt.
18016 #### It makes printing result more understandable as using GTK sets
18017 #### toolkit_scroll_bars to yes by default.
18018 if test "${HAVE_GTK}" = "yes"; then
18023 Configured for \`${canonical}'.
18025 Where should the build process find the source code? ${srcdir}
18026 What operating system and machine description files should Emacs use?
18027 \`${opsysfile}' and \`${machfile}'
18028 What compiler should emacs be built with? ${CC} ${CFLAGS}
18029 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
18030 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
18031 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
18032 What window system should Emacs use? ${window_system}
18033 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
18035 if test -n "${x_includes}"; then
18036 echo " Where do we find X Windows header files? ${x_includes}"
18038 echo " Where do we find X Windows header files? Standard dirs"
18040 if test -n "${x_libraries}"; then
18041 echo " Where do we find X Windows libraries? ${x_libraries}"
18043 echo " Where do we find X Windows libraries? Standard dirs"
18046 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
18047 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
18048 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
18049 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
18050 echo " Does Emacs use -lungif? ${HAVE_GIF}"
18051 echo " Does Emacs use -lpng? ${HAVE_PNG}"
18052 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
18055 # Remove any trailing slashes in these variables.
18056 test "${prefix}" != NONE
&&
18057 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
18058 test "${exec_prefix}" != NONE
&&
18059 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
18061 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
18062 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
18063 ## from Makefile.c can correctly provide the arg `-traditional' to the
18066 cat >conftest.
$ac_ext <<_ACEOF
18067 #line $LINENO "configure"
18070 cat confdefs.h
>>conftest.
$ac_ext
18071 cat >>conftest.
$ac_ext <<_ACEOF
18072 /* end confdefs.h. */
18075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18076 $EGREP "yes..yes" >/dev
/null
2>&1; then
18077 CPP_NEED_TRADITIONAL
=no
18079 CPP_NEED_TRADITIONAL
=yes
18084 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"
18085 ac_config_commands
="$ac_config_commands default"
18086 cat >confcache
<<\_ACEOF
18087 # This file is a shell script that caches the results of configure
18088 # tests run on this system so they can be shared between configure
18089 # scripts and configure runs, see configure's option --config-cache.
18090 # It is not useful on other systems. If it contains results you don't
18091 # want to keep, you may remove or edit it.
18093 # config.status only pays attention to the cache file if you give it
18094 # the --recheck option to rerun configure.
18096 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18097 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18098 # following values.
18102 # The following way of writing the cache mishandles newlines in values,
18103 # but we know of no workaround that is simple, portable, and efficient.
18104 # So, don't put newlines in cache variables' values.
18105 # Ultrix sh set writes to stderr and can't be redirected directly,
18106 # and sets the high bit in the cache file unless we assign to the vars.
18109 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18111 # `set' does not quote correctly, so add quotes (double-quote
18112 # substitution turns \\\\ into \\, and sed turns \\ into \).
18115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18118 # `set' quotes correctly as required by POSIX, so do not add quotes.
18120 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18127 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18129 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18131 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
18132 if test -w $cache_file; then
18133 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18134 cat confcache
>$cache_file
18136 echo "not updating unwritable cache $cache_file"
18141 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
18142 # Let make expand exec_prefix.
18143 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
18145 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18146 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18147 # trailing colons and then remove the whole line if VPATH becomes empty
18148 # (actually we leave an empty line to preserve line numbers).
18149 if test "x$srcdir" = x.
; then
18150 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
18151 s/:*\$(srcdir):*/:/;
18152 s/:*\${srcdir}:*/:/;
18154 s/^\([^=]*=[ ]*\):*/\1/;
18160 DEFS
=-DHAVE_CONFIG_H
18164 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
18165 # 1. Remove the extension, and $U if already installed.
18166 ac_i
=`echo "$ac_i" |
18167 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18169 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
18170 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
18172 LIBOBJS
=$ac_libobjs
18174 LTLIBOBJS
=$ac_ltlibobjs
18178 : ${CONFIG_STATUS=./config.status}
18179 ac_clean_files_save
=$ac_clean_files
18180 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
18181 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18182 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18183 cat >$CONFIG_STATUS <<_ACEOF
18185 # Generated by $as_me.
18186 # Run this file to recreate the current configuration.
18187 # Compiler output produced by configure, useful for debugging
18188 # configure, is in config.log if it exists.
18191 ac_cs_recheck=false
18193 SHELL=\${CONFIG_SHELL-$SHELL}
18196 cat >>$CONFIG_STATUS <<\_ACEOF
18197 ## --------------------- ##
18198 ## M4sh Initialization. ##
18199 ## --------------------- ##
18201 # Be Bourne compatible
18202 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18205 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18206 # is contrary to our usage. Disable this feature.
18207 alias -g '${1+"$@"}'='"$@"'
18208 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
18212 # Support unset when possible.
18213 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
18220 # Work around bugs in pre-3.0 UWIN ksh.
18221 $as_unset ENV MAIL MAILPATH
18228 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18229 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18230 LC_TELEPHONE LC_TIME
18232 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18233 eval $as_var=C
; export $as_var
18239 # Required to use basename.
18240 if expr a
: '\(a\)' >/dev
/null
2>&1; then
18246 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
18247 as_basename
=basename
18253 # Name of the executable.
18254 as_me
=`$as_basename "$0" ||
18255 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18256 X"$0" : 'X\(//\)$' \| \
18257 X"$0" : 'X\(/\)$' \| \
18258 . : '\(.\)' 2>/dev/null ||
18260 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18261 /^X\/\(\/\/\)$/{ s//\1/; q; }
18262 /^X\/\(\/\).*/{ s//\1/; q; }
18266 # PATH needs CR, and LINENO needs CR and PATH.
18267 # Avoid depending upon Character Ranges.
18268 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18269 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18270 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18271 as_cr_digits
='0123456789'
18272 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18274 # The user is always right.
18275 if test "${PATH_SEPARATOR+set}" != set; then
18276 echo "#! /bin/sh" >conf$$.sh
18277 echo "exit 0" >>conf$$.sh
18279 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
18288 as_lineno_1
=$LINENO
18289 as_lineno_2
=$LINENO
18290 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
18291 test "x$as_lineno_1" != "x$as_lineno_2" &&
18292 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
18293 # Find who we are. Look in the path if we contain no path at all
18296 *[\\/]* ) as_myself
=$0 ;;
18297 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18298 for as_dir
in $PATH
18301 test -z "$as_dir" && as_dir
=.
18302 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
18307 # We did not find ourselves, most probably we were run as `sh COMMAND'
18308 # in which case we are not to be found in the path.
18309 if test "x$as_myself" = x
; then
18312 if test ! -f "$as_myself"; then
18313 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18314 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18315 { (exit 1); exit 1; }; }
18317 case $CONFIG_SHELL in
18319 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18320 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
18323 test -z "$as_dir" && as_dir
=.
18324 for as_base
in sh bash ksh sh5
; do
18327 if ("$as_dir/$as_base" -c '
18328 as_lineno_1=$LINENO
18329 as_lineno_2=$LINENO
18330 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18331 test "x$as_lineno_1" != "x$as_lineno_2" &&
18332 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
18333 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
18334 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
18335 CONFIG_SHELL
=$as_dir/$as_base
18336 export CONFIG_SHELL
18337 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18345 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18346 # uniformly replaced by the line number. The first 'sed' inserts a
18347 # line-number line before each line; the second 'sed' does the real
18348 # work. The second script uses 'N' to pair each line-number line
18349 # with the numbered line, and appends trailing '-' during
18350 # substitution so that $LINENO is not a special case at line end.
18351 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18352 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18353 sed '=' <$as_myself |
18358 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18361 s,^['$as_cr_digits']*\n,,
18362 ' >$as_me.lineno
&&
18363 chmod +x
$as_me.lineno ||
18364 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18365 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18366 { (exit 1); exit 1; }; }
18368 # Don't try to exec as it changes $[0], causing all sort of problems
18369 # (the dirname of $[0] is not the place where we might find the
18370 # original and so on. Autoconf is especially sensible to this).
18372 # Exit status is that of the last command.
18377 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18378 *c
*,-n*) ECHO_N
= ECHO_C
='
18380 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
18381 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
18384 if expr a
: '\(a\)' >/dev
/null
2>&1; then
18390 rm -f conf$$ conf$$.exe conf$$.
file
18392 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18393 # We could just check for DJGPP; but this test a) works b) is more generic
18394 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18395 if test -f conf$$.exe
; then
18396 # Don't use ln at all; we don't have any links
18401 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18406 rm -f conf$$ conf$$.exe conf$$.
file
18408 if mkdir
-p .
2>/dev
/null
; then
18414 as_executable_p
="test -f"
18416 # Sed expression to map a string onto a valid CPP name.
18417 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18419 # Sed expression to map a string onto a valid variable name.
18420 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18424 # We need space, tab and new line, in precisely that order.
18434 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18435 # report actual input values of CONFIG_FILES etc. instead of their
18436 # values after options handling. Logging --version etc. is OK.
18440 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18441 ## Running $as_me. ##
18446 This file was extended by $as_me, which was
18447 generated by GNU Autoconf 2.57. Invocation command line was
18449 CONFIG_FILES = $CONFIG_FILES
18450 CONFIG_HEADERS = $CONFIG_HEADERS
18451 CONFIG_LINKS = $CONFIG_LINKS
18452 CONFIG_COMMANDS = $CONFIG_COMMANDS
18456 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18460 # Files that config.status was made for.
18461 if test -n "$ac_config_files"; then
18462 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18465 if test -n "$ac_config_headers"; then
18466 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18469 if test -n "$ac_config_links"; then
18470 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18473 if test -n "$ac_config_commands"; then
18474 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18477 cat >>$CONFIG_STATUS <<\_ACEOF
18480 \`$as_me' instantiates files from templates according to the
18481 current configuration.
18483 Usage: $0 [OPTIONS] [FILE]...
18485 -h, --help print this help, then exit
18486 -V, --version print version number, then exit
18487 -q, --quiet do not print progress messages
18488 -d, --debug don't remove temporary files
18489 --recheck update $as_me by reconfiguring in the same conditions
18490 --file=FILE[:TEMPLATE]
18491 instantiate the configuration file FILE
18492 --header=FILE[:TEMPLATE]
18493 instantiate the configuration header FILE
18495 Configuration files:
18498 Configuration headers:
18501 Configuration commands:
18504 Report bugs to <bug-autoconf@gnu.org>."
18507 cat >>$CONFIG_STATUS <<_ACEOF
18510 configured by $0, generated by GNU Autoconf 2.57,
18511 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18513 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18514 Free Software Foundation, Inc.
18515 This config.status script is free software; the Free Software Foundation
18516 gives unlimited permission to copy, distribute and modify it."
18521 cat >>$CONFIG_STATUS <<\_ACEOF
18522 # If no file are specified by the user, then we need to provide default
18523 # value. By we need to know if files were specified by the user.
18529 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
18530 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
18538 *) # This is not an option, so the user has probably given explicit
18541 ac_need_defaults
=false
;;
18545 # Handling of the options.
18547 cat >>$CONFIG_STATUS <<\_ACEOF
18548 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18550 --version |
--vers* |
-V )
18551 echo "$ac_cs_version"; exit 0 ;;
18553 # Conflict between --help and --header
18554 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18555 Try \`$0 --help' for more information." >&5
18556 echo "$as_me: error: ambiguous option: $1
18557 Try \`$0 --help' for more information." >&2;}
18558 { (exit 1); exit 1; }; };;
18559 --help |
--hel |
-h )
18560 echo "$ac_cs_usage"; exit 0 ;;
18561 --debug |
--d* |
-d )
18563 --file |
--fil |
--fi |
--f )
18565 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
18566 ac_need_defaults
=false
;;
18567 --header |
--heade |
--head |
--hea )
18569 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
18570 ac_need_defaults
=false
;;
18571 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18572 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18575 # This is an error.
18576 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18577 Try \`$0 --help' for more information." >&5
18578 echo "$as_me: error: unrecognized option: $1
18579 Try \`$0 --help' for more information." >&2;}
18580 { (exit 1); exit 1; }; } ;;
18582 *) ac_config_targets
="$ac_config_targets $1" ;;
18588 ac_configure_extra_args
=
18590 if $ac_cs_silent; then
18592 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18596 cat >>$CONFIG_STATUS <<_ACEOF
18597 if \$ac_cs_recheck; then
18598 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18599 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18604 cat >>$CONFIG_STATUS <<_ACEOF
18606 # INIT-COMMANDS section.
18609 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
18615 cat >>$CONFIG_STATUS <<\_ACEOF
18616 for ac_config_target
in $ac_config_targets
18618 case "$ac_config_target" in
18619 # Handling of arguments.
18620 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18621 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
18622 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
18623 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
18624 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
18625 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
18626 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
18627 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
18628 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
18629 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
18630 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
18631 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18632 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18633 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18634 { (exit 1); exit 1; }; };;
18638 # If the user did not use the arguments to specify the items to instantiate,
18639 # then the envvar interface is used. Set only those that are not.
18640 # We use the long form for the default assignment because of an extremely
18641 # bizarre bug on SunOS 4.1.3.
18642 if $ac_need_defaults; then
18643 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18644 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18645 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18648 # Have a temporary directory for convenience. Make it in the build tree
18649 # simply because there is no reason to put it here, and in addition,
18650 # creating and moving files from /tmp can sometimes cause problems.
18651 # Create a temporary directory, and hook for its removal unless debugging.
18654 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18655 trap '{ (exit 1); exit 1; }' 1 2 13 15
18658 # Create a (secure) tmp directory for tmp files.
18661 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18662 test -n "$tmp" && test -d "$tmp"
18665 tmp
=.
/confstat$$
-$RANDOM
18666 (umask 077 && mkdir
$tmp)
18669 echo "$me: cannot create a temporary directory in ." >&2
18670 { (exit 1); exit 1; }
18675 cat >>$CONFIG_STATUS <<_ACEOF
18678 # CONFIG_FILES section.
18681 # No need to generate the scripts if there are no CONFIG_FILES.
18682 # This happens for instance when ./config.status config.h
18683 if test -n "\$CONFIG_FILES"; then
18684 # Protect against being on the right side of a sed subst in config.status.
18685 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18686 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18687 s,@SHELL@,$SHELL,;t t
18688 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18689 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18690 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18691 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18692 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18693 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18694 s,@exec_prefix@,$exec_prefix,;t t
18695 s,@prefix@,$prefix,;t t
18696 s,@program_transform_name@,$program_transform_name,;t t
18697 s,@bindir@,$bindir,;t t
18698 s,@sbindir@,$sbindir,;t t
18699 s,@libexecdir@,$libexecdir,;t t
18700 s,@datadir@,$datadir,;t t
18701 s,@sysconfdir@,$sysconfdir,;t t
18702 s,@sharedstatedir@,$sharedstatedir,;t t
18703 s,@localstatedir@,$localstatedir,;t t
18704 s,@libdir@,$libdir,;t t
18705 s,@includedir@,$includedir,;t t
18706 s,@oldincludedir@,$oldincludedir,;t t
18707 s,@infodir@,$infodir,;t t
18708 s,@mandir@,$mandir,;t t
18709 s,@build_alias@,$build_alias,;t t
18710 s,@host_alias@,$host_alias,;t t
18711 s,@target_alias@,$target_alias,;t t
18712 s,@DEFS@,$DEFS,;t t
18713 s,@ECHO_C@,$ECHO_C,;t t
18714 s,@ECHO_N@,$ECHO_N,;t t
18715 s,@ECHO_T@,$ECHO_T,;t t
18716 s,@LIBS@,$LIBS,;t t
18717 s,@build@,$build,;t t
18718 s,@build_cpu@,$build_cpu,;t t
18719 s,@build_vendor@,$build_vendor,;t t
18720 s,@build_os@,$build_os,;t t
18721 s,@host@,$host,;t t
18722 s,@host_cpu@,$host_cpu,;t t
18723 s,@host_vendor@,$host_vendor,;t t
18724 s,@host_os@,$host_os,;t t
18726 s,@CFLAGS@,$CFLAGS,;t t
18727 s,@LDFLAGS@,$LDFLAGS,;t t
18728 s,@CPPFLAGS@,$CPPFLAGS,;t t
18729 s,@ac_ct_CC@,$ac_ct_CC,;t t
18730 s,@EXEEXT@,$EXEEXT,;t t
18731 s,@OBJEXT@,$OBJEXT,;t t
18732 s,@LN_S@,$LN_S,;t t
18734 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18735 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18736 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18737 s,@RANLIB@,$RANLIB,;t t
18738 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18739 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
18740 s,@EGREP@,$EGREP,;t t
18741 s,@LIBSOUND@,$LIBSOUND,;t t
18742 s,@SET_MAKE@,$SET_MAKE,;t t
18743 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
18744 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
18745 s,@GTK_LIBS@,$GTK_LIBS,;t t
18746 s,@ALLOCA@,$ALLOCA,;t t
18747 s,@liblockfile@,$liblockfile,;t t
18748 s,@LIBOBJS@,$LIBOBJS,;t t
18749 s,@NEED_SETGID@,$NEED_SETGID,;t t
18750 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
18751 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
18752 s,@version@,$version,;t t
18753 s,@configuration@,$configuration,;t t
18754 s,@canonical@,$canonical,;t t
18755 s,@srcdir@,$srcdir,;t t
18756 s,@lispdir@,$lispdir,;t t
18757 s,@locallisppath@,$locallisppath,;t t
18758 s,@lisppath@,$lisppath,;t t
18759 s,@x_default_search_path@,$x_default_search_path,;t t
18760 s,@etcdir@,$etcdir,;t t
18761 s,@archlibdir@,$archlibdir,;t t
18762 s,@docdir@,$docdir,;t t
18763 s,@bitmapdir@,$bitmapdir,;t t
18764 s,@gamedir@,$gamedir,;t t
18765 s,@gameuser@,$gameuser,;t t
18766 s,@c_switch_system@,$c_switch_system,;t t
18767 s,@c_switch_machine@,$c_switch_machine,;t t
18768 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
18769 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
18770 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
18771 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
18772 s,@machfile@,$machfile,;t t
18773 s,@opsysfile@,$opsysfile,;t t
18774 s,@carbon_appdir@,$carbon_appdir,;t t
18775 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18780 cat >>$CONFIG_STATUS <<\_ACEOF
18781 # Split the substitutions into bite-sized pieces for seds with
18782 # small command number limits, like on Digital OSF/1 and HP-UX.
18783 ac_max_sed_lines
=48
18784 ac_sed_frag
=1 # Number of current file.
18785 ac_beg
=1 # First line for current file.
18786 ac_end
=$ac_max_sed_lines # Line after last line for current file.
18789 while $ac_more_lines; do
18790 if test $ac_beg -gt 1; then
18791 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
18793 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
18795 if test ! -s $tmp/subs.frag
; then
18796 ac_more_lines
=false
18798 # The purpose of the label and of the branching condition is to
18799 # speed up the sed processing (if there are no `@' at all, there
18800 # is no need to browse any of the substitutions).
18801 # These are the two extra sed commands mentioned above.
18803 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
18804 if test -z "$ac_sed_cmds"; then
18805 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
18807 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18809 ac_sed_frag
=`expr $ac_sed_frag + 1`
18811 ac_end
=`expr $ac_end + $ac_max_sed_lines`
18814 if test -z "$ac_sed_cmds"; then
18817 fi # test -n "$CONFIG_FILES"
18820 cat >>$CONFIG_STATUS <<\_ACEOF
18821 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
18822 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18824 - |
*:- |
*:-:* ) # input from stdin
18826 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18827 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18828 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18829 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18830 * ) ac_file_in
=$ac_file.
in ;;
18833 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18834 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
18835 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18836 X"$ac_file" : 'X\(//\)[^/]' \| \
18837 X"$ac_file" : 'X\(//\)$' \| \
18838 X"$ac_file" : 'X\(/\)' \| \
18839 . : '\(.\)' 2>/dev/null ||
18841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18842 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18843 /^X\(\/\/\)$/{ s//\1/; q; }
18844 /^X\(\/\).*/{ s//\1/; q; }
18846 { if $as_mkdir_p; then
18851 while test ! -d "$as_dir"; do
18852 as_dirs
="$as_dir $as_dirs"
18853 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
18854 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18855 X"$as_dir" : 'X\(//\)[^/]' \| \
18856 X"$as_dir" : 'X\(//\)$' \| \
18857 X"$as_dir" : 'X\(/\)' \| \
18858 . : '\(.\)' 2>/dev/null ||
18860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18861 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18862 /^X\(\/\/\)$/{ s//\1/; q; }
18863 /^X\(\/\).*/{ s//\1/; q; }
18866 test ! -n "$as_dirs" || mkdir
$as_dirs
18867 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18868 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18869 { (exit 1); exit 1; }; }; }
18873 if test "$ac_dir" != .
; then
18874 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18875 # A "../" for each directory in $ac_dir_suffix.
18876 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18878 ac_dir_suffix
= ac_top_builddir
=
18882 .
) # No --srcdir option. We are building in place.
18884 if test -z "$ac_top_builddir"; then
18887 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
18889 [\\/]* | ?
:[\\/]* ) # Absolute path.
18890 ac_srcdir
=$srcdir$ac_dir_suffix;
18891 ac_top_srcdir
=$srcdir ;;
18892 *) # Relative path.
18893 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
18894 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
18896 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18898 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
18899 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18900 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18901 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18905 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18906 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
18909 if test x
"$ac_file" != x-
; then
18910 { echo "$as_me:$LINENO: creating $ac_file" >&5
18911 echo "$as_me: creating $ac_file" >&6;}
18914 # Let's still pretend it is `configure' which instantiates (i.e., don't
18915 # use $as_me), people would be surprised to read:
18916 # /* config.h. Generated by config.status. */
18917 if test x
"$ac_file" = x-
; then
18920 configure_input
="$ac_file. "
18922 configure_input
=$configure_input"Generated from `echo $ac_file_in |
18923 sed 's,.*/,,'` by configure."
18925 # First look for the input files in the build tree, otherwise in the
18927 ac_file_inputs
=`IFS=:
18928 for f in $ac_file_in; do
18930 -) echo $tmp/stdin ;;
18932 # Absolute (can't be DOS-style, as IFS=:)
18933 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18934 echo "$as_me: error: cannot find input file: $f" >&2;}
18935 { (exit 1); exit 1; }; }
18938 if test -f "$f"; then
18941 elif test -f "$srcdir/$f"; then
18946 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18947 echo "$as_me: error: cannot find input file: $f" >&2;}
18948 { (exit 1); exit 1; }; }
18951 done` ||
{ (exit 1); exit 1; }
18953 cat >>$CONFIG_STATUS <<_ACEOF
18957 cat >>$CONFIG_STATUS <<\_ACEOF
18959 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18960 s
,@configure_input@
,$configure_input,;t t
18961 s
,@srcdir@
,$ac_srcdir,;t t
18962 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
18963 s
,@top_srcdir@
,$ac_top_srcdir,;t t
18964 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
18965 s
,@builddir@
,$ac_builddir,;t t
18966 s
,@abs_builddir@
,$ac_abs_builddir,;t t
18967 s
,@top_builddir@
,$ac_top_builddir,;t t
18968 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
18969 s
,@INSTALL@
,$ac_INSTALL,;t t
18970 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18972 if test x"$ac_file" != x-; then
18973 mv $tmp/out $ac_file
18981 cat >>$CONFIG_STATUS <<\_ACEOF
18984 # CONFIG_HEADER section.
18987 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
18988 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18990 # ac_d sets the value in "#define NAME VALUE" lines.
18991 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18992 ac_dB
='[ ].*$,\1#\2'
18995 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18996 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18997 ac_uB
='$,\1#\2define\3'
19001 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
19002 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19004 - |
*:- |
*:-:* ) # input from stdin
19006 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19007 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19008 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19009 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19010 * ) ac_file_in
=$ac_file.
in ;;
19013 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
19014 echo "$as_me: creating $ac_file" >&6;}
19016 # First look for the input files in the build tree, otherwise in the
19018 ac_file_inputs
=`IFS=:
19019 for f in $ac_file_in; do
19021 -) echo $tmp/stdin ;;
19023 # Absolute (can't be DOS-style, as IFS=:)
19024 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19025 echo "$as_me: error: cannot find input file: $f" >&2;}
19026 { (exit 1); exit 1; }; }
19029 if test -f "$f"; then
19032 elif test -f "$srcdir/$f"; then
19037 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19038 echo "$as_me: error: cannot find input file: $f" >&2;}
19039 { (exit 1); exit 1; }; }
19042 done` ||
{ (exit 1); exit 1; }
19043 # Remove the trailing spaces.
19044 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19048 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19049 # `conftest.undefs', that substitutes the proper values into
19050 # config.h.in to produce config.h. The first handles `#define'
19051 # templates, and the second `#undef' templates.
19052 # And first: Protect against being on the right side of a sed subst in
19053 # config.status. Protect against being in an unquoted here document
19054 # in config.status.
19055 rm -f conftest.defines conftest.undefs
19056 # Using a here document instead of a string reduces the quoting nightmare.
19057 # Putting comments in sed scripts is not portable.
19059 # `end' is used to avoid that the second main sed command (meant for
19060 # 0-ary CPP macros) applies to n-ary macro definitions.
19061 # See the Autoconf documentation for `clear'.
19062 cat >confdef2sed.
sed <<\_ACEOF
19067 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19069 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19072 # If some macros were called several times there might be several times
19073 # the same #defines, which is useless. Nevertheless, we may not want to
19074 # sort them, since we want the *last* AC-DEFINE to be honored.
19075 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19076 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19077 rm -f confdef2sed.sed
19079 # This sed command replaces #undef with comments. This is necessary, for
19080 # example, in the case of _POSIX_SOURCE, which is predefined and required
19081 # on some systems where configure will not decide to define it.
19082 cat >>conftest.undefs <<\_ACEOF
19083 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19086 # Break up conftest.defines because some shells have a limit on the size
19087 # of here documents, and old seds have small limits too (100 cmds).
19088 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19089 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19090 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19091 echo ' :' >>$CONFIG_STATUS
19092 rm -f conftest.tail
19093 while grep . conftest.defines >/dev/null
19095 # Write a limited-size here document to $tmp/defines.sed.
19096 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19097 # Speed up: don't consider the non `#define' lines.
19098 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19099 # Work around the forget-to-reset-the-flag bug.
19100 echo 't clr' >>$CONFIG_STATUS
19101 echo ': clr' >>$CONFIG_STATUS
19102 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
19104 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19106 mv $tmp/out $tmp/in
19108 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
19109 rm -f conftest.defines
19110 mv conftest.
tail conftest.defines
19112 rm -f conftest.defines
19113 echo ' fi # grep' >>$CONFIG_STATUS
19114 echo >>$CONFIG_STATUS
19116 # Break up conftest.undefs because some shells have a limit on the size
19117 # of here documents, and old seds have small limits too (100 cmds).
19118 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19119 rm -f conftest.
tail
19120 while grep . conftest.undefs
>/dev
/null
19122 # Write a limited-size here document to $tmp/undefs.sed.
19123 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19124 # Speed up: don't consider the non
`#undef'
19125 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19126 # Work around the forget-to-reset-the-flag bug.
19127 echo 't clr' >>$CONFIG_STATUS
19128 echo ': clr' >>$CONFIG_STATUS
19129 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19131 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19133 mv $tmp/out $tmp/in
19135 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19136 rm -f conftest.undefs
19137 mv conftest.tail conftest.undefs
19139 rm -f conftest.undefs
19141 cat >>$CONFIG_STATUS <<\_ACEOF
19142 # Let's still pretend it is `configure
' which instantiates (i.e., don't
19143 # use $as_me), people would be surprised to read:
19144 # /* config.h. Generated by config.status. */
19145 if test x
"$ac_file" = x-
; then
19146 echo "/* Generated by configure. */" >$tmp/config.h
19148 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19150 cat $tmp/in >>$tmp/config.h
19152 if test x
"$ac_file" != x-
; then
19153 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
19154 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19155 echo "$as_me: $ac_file is unchanged" >&6;}
19157 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
19158 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19159 X"$ac_file" : 'X\(//\)[^/]' \| \
19160 X"$ac_file" : 'X\(//\)$' \| \
19161 X"$ac_file" : 'X\(/\)' \| \
19162 . : '\(.\)' 2>/dev/null ||
19164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19165 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19166 /^X\(\/\/\)$/{ s//\1/; q; }
19167 /^X\(\/\).*/{ s//\1/; q; }
19169 { if $as_mkdir_p; then
19174 while test ! -d "$as_dir"; do
19175 as_dirs
="$as_dir $as_dirs"
19176 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
19177 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19178 X"$as_dir" : 'X\(//\)[^/]' \| \
19179 X"$as_dir" : 'X\(//\)$' \| \
19180 X"$as_dir" : 'X\(/\)' \| \
19181 . : '\(.\)' 2>/dev/null ||
19183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19184 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19185 /^X\(\/\/\)$/{ s//\1/; q; }
19186 /^X\(\/\).*/{ s//\1/; q; }
19189 test ! -n "$as_dirs" || mkdir
$as_dirs
19190 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19191 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19192 { (exit 1); exit 1; }; }; }
19195 mv $tmp/config.h
$ac_file
19199 rm -f $tmp/config.h
19203 cat >>$CONFIG_STATUS <<\_ACEOF
19206 # CONFIG_COMMANDS section.
19208 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
19209 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
19210 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19211 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
19212 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19213 X"$ac_dest" : 'X\(//\)[^/]' \| \
19214 X"$ac_dest" : 'X\(//\)$' \| \
19215 X"$ac_dest" : 'X\(/\)' \| \
19216 . : '\(.\)' 2>/dev/null ||
19218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19219 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19220 /^X\(\/\/\)$/{ s//\1/; q; }
19221 /^X\(\/\).*/{ s//\1/; q; }
19225 if test "$ac_dir" != .
; then
19226 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19227 # A "../" for each directory in $ac_dir_suffix.
19228 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19230 ac_dir_suffix
= ac_top_builddir
=
19234 .
) # No --srcdir option. We are building in place.
19236 if test -z "$ac_top_builddir"; then
19239 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
19241 [\\/]* | ?
:[\\/]* ) # Absolute path.
19242 ac_srcdir
=$srcdir$ac_dir_suffix;
19243 ac_top_srcdir
=$srcdir ;;
19244 *) # Relative path.
19245 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
19246 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
19248 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19250 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
19251 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19252 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19253 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19256 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19257 echo "$as_me: executing $ac_dest commands" >&6;}
19261 ### Make the necessary directories, if they don't exist.
19262 for dir
in etc lisp
; do
19263 test -d ${dir} || mkdir
${dir}
19266 # Build src/Makefile from ${srcdir}/src/Makefile.c
19267 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
19268 # This must be done after src/config.h is built, since we rely on that file.
19270 # Now get this: Some word that is part of the ${srcdir} directory name
19271 # or the ${configuration} value might, just might, happen to be an
19272 # identifier like `sun4' or `i386' or something, and be predefined by
19273 # the C preprocessor to some helpful value like 1, or maybe the empty
19274 # string. Needless to say consequent macro substitutions are less
19275 # than conducive to the makefile finding the correct directory.
19276 undefs
="`echo $top_srcdir $configuration $canonical |
19277 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
19278 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
19281 echo creating src
/epaths.h
19282 ${MAKE-make} epaths-force
19284 # As of 2000-11-19, newest development versions of GNU cpp preprocess
19285 # `..' to `. .' unless invoked with -traditional
19287 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
19288 CPPFLAGS
="$CPPFLAGS -traditional"
19291 echo creating lib-src
/Makefile
19293 rm -f junk.c junk1.c junk2.c
19294 sed -e '/start of cpp stuff/q' \
19295 < Makefile.c
> junk1.c
19296 sed -e '1,/start of cpp stuff/d'\
19297 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19298 < Makefile.c
> junk.c
19299 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
19300 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19301 cat junk1.c junk2.c
> Makefile.new
19302 rm -f junk.c junk1.c junk2.c
19303 chmod 444 Makefile.new
19304 mv -f Makefile.new Makefile
19307 echo creating src
/Makefile
19309 rm -f junk.c junk1.c junk2.c
19310 sed -e '/start of cpp stuff/q' \
19311 < Makefile.c
> junk1.c
19312 sed -e '1,/start of cpp stuff/d'\
19313 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19314 < Makefile.c
> junk.c
19315 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
19316 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19317 cat junk1.c junk2.c
> Makefile.new
19318 rm -f junk.c junk1.c junk2.c
19319 chmod 444 Makefile.new
19320 mv -f Makefile.new Makefile
19323 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
19324 echo creating src
/.gdbinit
19325 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
19328 # This is how we know whether to re-run configure in certain cases.
19329 touch src
/config.stamp
19336 cat >>$CONFIG_STATUS <<\_ACEOF
19338 { (exit 0); exit 0; }
19340 chmod +x
$CONFIG_STATUS
19341 ac_clean_files
=$ac_clean_files_save
19344 # configure is writing to config.log, and then calls config.status.
19345 # config.status does its own redirection, appending to config.log.
19346 # Unfortunately, on DOS this fails, as config.log is still kept open
19347 # by configure, so config.status won't be able to write to it; its
19348 # output is simply discarded. So we exec the FD to /dev/null,
19349 # effectively closing config.log, so it can be properly (re)opened and
19350 # appended to by config.status. When coming back to configure, we
19351 # need to make the FD available again.
19352 if test "$no_create" != yes; then
19354 ac_config_status_args
=
19355 test "$silent" = yes &&
19356 ac_config_status_args
="$ac_config_status_args --quiet"
19358 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19360 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19361 # would make configure fail if this is the last instruction.
19362 $ac_cs_success ||
{ (exit 1); exit 1; }