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 m88k
1894 m88k-motorola-sysv4
* )
1895 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1896 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1897 # I hope there are not other 4.0 versions for this machine
1898 # which really need usg5-4 instead.
1899 machine
=delta88k opsys
=usg5-4-2
1901 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1902 machine
=delta88k opsys
=usg5-3
1907 machine
=dual opsys
=usg5-2
1909 m68
*-dual-uniplus* )
1910 machine
=dual opsys
=unipl5-2
1915 machine
=elxsi opsys
=usg5-2
1920 machine
=ns16000 opsys
=umax
1923 ## The GEC 63 - apparently, this port isn't really finished yet.
1924 # I'm sure we finished off the last of the machines, though. -- fx
1926 ## Gould Power Node and NP1
1928 machine
=gould opsys
=bsd4-2
1931 machine
=gould opsys
=bsd4-3
1934 machine
=gould-np1 opsys
=bsd4-3
1937 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1938 ## as far as Emacs is concerned).
1940 # Build needs to be different on 7.0 and later releases
1941 case "`uname -r`" in
1942 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1943 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1945 NON_GNU_CPP
="/lib/cpp"
1947 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1949 machine
=nh3000 opsys
=cxux
1951 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1952 powerpc-harris-powerunix
)
1953 machine
=nh6000 opsys
=powerunix
1954 NON_GNU_CPP
="cc -Xo -E -P"
1956 ## SR2001/SR2201 running HI-UX/MPP
1957 hppa1.1
-hitachi-hiuxmpp* )
1958 machine
=sr2k opsys
=hiuxmpp
1960 hppa1.1
-hitachi-hiuxwe2* )
1961 machine
=sr2k opsys
=hiuxwe2
1964 xps
*-honeywell-sysv* )
1965 machine
=xps100 opsys
=usg5-2
1968 ## HP 9000 series 200 or 300
1970 machine
=hp9000s300 opsys
=bsd4-3
1972 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1974 case "`uname -r`" in
1975 ## Someone's system reports A.B8.05 for this.
1976 ## I wonder what other possibilities there are.
1977 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1978 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1979 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
1980 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
1981 *) machine
=hp9000s300 opsys
=hpux
;;
1985 ## HP 9000 series 700 and 800, running HP/UX
1987 machine
=hp800 opsys
=hpux
1990 machine
=hp800 opsys
=hpux8
1992 hppa
*-hp-hpux9shr* )
1993 machine
=hp800 opsys
=hpux9shr
1996 machine
=hp800 opsys
=hpux9
1999 machine
=hp800 opsys
=hpux10
2001 hppa
*-hp-hpux1[1-9]* )
2002 machine
=hp800 opsys
=hpux11
2005 hppa
*-*-linux-gnu* )
2006 machine
=hp800 opsys
=gnu-linux
2009 ## HP 9000 series 700 and 800, running HP/UX
2011 ## Cross-compilation? Nah!
2012 case "`uname -r`" in
2013 ## Someone's system reports A.B8.05 for this.
2014 ## I wonder what other possibilities there are.
2015 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2016 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2017 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2018 *) machine
=hp800 opsys
=hpux10
;;
2022 machine
=hp800 opsys
=nextstep
2027 machine
=orion opsys
=bsd4-2
2029 clipper-orion-bsd
* )
2030 machine
=orion105 opsys
=bsd4-2
2034 i
[3456]86-ibm-aix1.1
* )
2035 machine
=ibmps2-aix opsys
=usg5-2-2
2037 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2038 machine
=ibmps2-aix opsys
=usg5-3
2041 machine
=ibm370aix opsys
=usg5-3
2044 machine
=ibms390 opsys
=gnu-linux
2046 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2047 machine
=ibmrs6000 opsys
=aix3-1
2049 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2050 machine
=ibmrs6000 opsys
=aix3-2-5
2052 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2053 machine
=ibmrs6000 opsys
=aix4-1
2055 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2056 machine
=ibmrs6000 opsys
=aix4-2
2058 rs6000-ibm-aix5.1
* | powerpc-ibm-aix5.1
* )
2059 machine
=ibmrs6000 opsys
=aix4-2
2061 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2062 machine
=ibmrs6000 opsys
=aix4
2064 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2065 machine
=ibmrs6000 opsys
=aix4-1
2067 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2068 machine
=ibmrs6000 opsys
=aix3-2
2071 machine
=ibmrt opsys
=bsd4-3
2074 machine
=ibmrt opsys
=bsd4-2
2077 machine
=ibmrt opsys
=bsd4-3
2080 machine
=ibmrt opsys
=bsd4-2
2083 machine
=ibmrt opsys
=bsd4-3
2086 machine
=ibmrt opsys
=bsd4-3
2089 machine
=ibmrt-aix opsys
=usg5-2-2
2092 ## Integrated Solutions `Optimum V'
2094 machine
=isi-ov opsys
=bsd4-2
2097 machine
=isi-ov opsys
=bsd4-3
2100 ## Intel 386 machines where we do care about the manufacturer
2101 i
[3456]86-intsys-sysv* )
2102 machine
=is386 opsys
=usg5-2-2
2106 i
[3456]86-prime-sysv* )
2107 machine
=i386 opsys
=usg5-3
2110 ## Sequent Symmetry running Dynix
2111 i
[3456]86-sequent-bsd* )
2112 machine
=symmetry opsys
=bsd4-3
2115 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2116 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2117 machine
=sequent-ptx opsys
=ptx4
2118 NON_GNU_CPP
=/lib
/cpp
2121 ## Sequent Symmetry running DYNIX/ptx
2122 ## Use the old cpp rather than the newer ANSI one.
2123 i
[3456]86-sequent-ptx* )
2124 machine
=sequent-ptx opsys
=ptx
2125 NON_GNU_CPP
="/lib/cpp"
2128 ## ncr machine running svr4.3.
2129 i
[3456]86-ncr-sysv4.3
)
2130 machine
=ncr386 opsys
=usg5-4-3
2133 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2134 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2135 i
[3456]86-ncr-sysv* )
2136 machine
=ncr386 opsys
=usg5-4-2
2139 ## Intel Paragon OSF/1
2141 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2146 machine
=i860 opsys
=usg5-4
2147 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2148 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2151 ## Macintosh PowerPC
2152 powerpc
*-*-linux-gnu* )
2153 machine
=macppc opsys
=gnu-linux
2156 ## Masscomp machines
2157 m68
*-masscomp-rtu* )
2158 machine
=masscomp opsys
=rtu
2161 ## Megatest machines
2162 m68
*-megatest-bsd* )
2163 machine
=mega68 opsys
=bsd4-2
2166 ## Workstations sold by MIPS
2167 ## This is not necessarily all workstations using the MIPS processor -
2168 ## Irises are produced by SGI, and DECstations by DEC.
2170 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2171 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2172 ## it gives for choosing between the alternatives seems to be "Use
2173 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2174 ## the BSD world." I'll assume that these are instructions for
2175 ## handling two odd situations, and that every other situation
2176 ## should use mips.h and usg5-2-2, they being listed first.
2179 ## Fall through to the general code at the bottom to decide on the OS.
2181 mips-mips-riscos4
* )
2182 machine
=mips4 opsys
=bsd4-3
2183 NON_GNU_CC
="cc -systype bsd43"
2184 NON_GNU_CPP
="cc -systype bsd43 -E"
2186 mips-mips-riscos5
* )
2187 machine
=mips4 opsys
=riscos5
2188 NON_GNU_CC
="cc -systype bsd43"
2189 NON_GNU_CPP
="cc -systype bsd43 -E"
2192 machine
=mips opsys
=bsd4-3
2195 machine
=mips opsys
=usg5-2-2
2199 m68
*-next-* | m68k-
*-nextstep* )
2200 machine
=m68k opsys
=nextstep
2203 ## The complete machine from National Semiconductor
2205 machine
=ns32000 opsys
=usg5-2
2209 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2210 machine
=tower32 opsys
=usg5-2-2
2212 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2213 machine
=tower32v3 opsys
=usg5-3
2218 machine
=ews4800 opsys
=ux4800
2221 ## Nixdorf Targon 31
2222 m68
*-nixdorf-sysv* )
2223 machine
=targon31 opsys
=usg5-2-2
2228 machine
=nu opsys
=usg5-2
2233 machine
=plexus opsys
=usg5-2
2237 ## I don't really have any idea what sort of processor the Pyramid has,
2238 ## so I'm assuming it is its own architecture.
2239 pyramid-pyramid-bsd
* )
2240 machine
=pyramid opsys
=bsd4-2
2244 ns32k-sequent-bsd4.2
* )
2245 machine
=sequent opsys
=bsd4-2
2247 ns32k-sequent-bsd4.3
* )
2248 machine
=sequent opsys
=bsd4-3
2252 mips-siemens-sysv
* | mips-sni-sysv
*)
2253 machine
=mips-siemens opsys
=usg5-4
2254 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2255 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2258 ## Silicon Graphics machines
2259 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2261 machine
=irist opsys
=iris3-5
2263 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2264 machine
=irist opsys
=iris3-6
2268 machine
=iris4d opsys
=irix3-3
2271 machine
=iris4d opsys
=irix4-0
2274 machine
=iris4d opsys
=irix6-5
2275 # Without defining _LANGUAGE_C, things get masked out in the headers
2276 # so that, for instance, grepping for `free' in stdlib.h fails and
2277 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2278 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2279 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2282 machine
=iris4d opsys
=irix6-0
2283 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2284 # but presumably it does no harm.
2285 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2286 # -32 probably isn't necessary in later v.6s -- anyone know which?
2287 NON_GCC_TEST_OPTIONS
=-32
2289 mips-sgi-irix5.
[01]* )
2290 machine
=iris4d opsys
=irix5-0
2292 mips-sgi-irix5
* | mips-sgi-irix
* )
2293 machine
=iris4d opsys
=irix5-2
2298 machine
=news opsys
=bsd4-2
2301 machine
=news opsys
=bsd4-3
2303 m68
*-sony-newsos3* | m68
*-sony-news3*)
2304 machine
=news opsys
=bsd4-3
2306 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2307 machine
=news-risc opsys
=bsd4-3
2309 mips-sony-newsos6
* )
2310 machine
=news-r6 opsys
=newsos6
2313 machine
=news-risc opsys
=newsos5
2318 machine
=stride opsys
=usg5-2
2322 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2323 machine
=sparc opsys
=gnu-linux
2326 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2327 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2328 | rs6000-
*-solaris2*)
2329 case "${canonical}" in
2330 m68
*-sunos1* ) machine
=sun1
;;
2331 m68
*-sunos2* ) machine
=sun2
;;
2332 m68
* ) machine
=sun3
;;
2333 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2334 i
[3456]86-*-* ) machine
=intel386
;;
2335 powerpcle
* ) machine
=powerpcle
;;
2336 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2337 sparc
* ) machine
=sparc
;;
2340 case "${canonical}" in
2341 ## The Sun386 didn't get past 4.0.
2342 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2343 *-sunos4.0
* ) opsys
=sunos4-0
;;
2344 *-sunos4.1.
[3-9]*noshare
)
2345 ## This name is sunos413 instead of sunos4-1-3
2346 ## to avoid a file name conflict on MSDOS.
2348 NON_GNU_CPP
=/usr
/lib
/cpp
2349 NON_GCC_TEST_OPTIONS
=-Bstatic
2350 GCC_TEST_OPTIONS
=-static
2352 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2354 NON_GNU_CPP
=/usr
/lib
/cpp
2356 *-sunos4* |
*-sunos )
2358 NON_GCC_TEST_OPTIONS
=-Bstatic
2359 GCC_TEST_OPTIONS
=-static
2361 *-sunos5.3
* |
*-solaris2.3
* )
2363 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2365 *-sunos5.4
* |
*-solaris2.4
* )
2367 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2370 *-sunos5.5
* |
*-solaris2.5
* )
2372 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2375 *-sunos5.6
* |
*-solaris2.6
* )
2377 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2380 *-sunos5* |
*-solaris* )
2382 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2386 ## Watch out for a compiler that we know will not work.
2387 case "${canonical}" in
2388 *-solaris* |
*-sunos5* )
2389 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2390 ## /usr/ucb/cc doesn't work;
2391 ## we should find some other compiler that does work.
2399 machine
=sparc opsys
=nextstep
2403 m68
*-tadpole-sysv* )
2404 machine
=tad68k opsys
=usg5-3
2408 tahoe-tahoe-bsd4.2
* )
2409 machine
=tahoe opsys
=bsd4-2
2411 tahoe-tahoe-bsd4.3
* )
2412 machine
=tahoe opsys
=bsd4-3
2415 ## Tandem Integrity S2
2417 machine
=tandem-s2 opsys
=usg5-3
2421 m88k-tektronix-sysv3
* )
2422 machine
=tekxd88 opsys
=usg5-3
2425 ## Tektronix 16000 box (6130?)
2426 ns16k-tektronix-bsd
* )
2427 machine
=ns16000 opsys
=bsd4-2
2430 ## src/m/tek4300.h hints that this is a m68k machine.
2431 m68
*-tektronix-bsd* )
2432 machine
=tek4300 opsys
=bsd4-3
2436 ## We seem to have lost the machine-description file titan.h!
2438 machine
=titan opsys
=usg5-3
2441 ## Ustation E30 (SS5E)
2442 m68
*-unisys-uniplus* )
2443 machine
=ustation opsystem
=unipl5-2
2449 case "${canonical}" in
2450 *-bsd4.1
* ) opsys
=bsd4-1
;;
2451 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2452 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2453 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2454 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2455 *-vms* ) opsys
=vms
;;
2461 ns16k-whitechapel-
* )
2463 ## We don't know what sort of OS runs on these; we'll let the
2464 ## operating system guessing code below try.
2469 machine
=wicat opsys
=usg5-2
2474 machine
=ia64 opsys
=gnu-linux
2477 ## Intel 386 machines where we don't care about the manufacturer
2480 case "${canonical}" in
2481 *-lynxos* ) opsys
=lynxos
;;
2482 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2483 *-isc2.2
* ) opsys
=isc2-2
;;
2484 *-isc4.0
* ) opsys
=isc4-0
;;
2485 *-isc4.
* ) opsys
=isc4-1
2486 GCC_TEST_OPTIONS
=-posix
2487 NON_GCC_TEST_OPTIONS
=-Xp
2489 *-isc* ) opsys
=isc3-0
;;
2490 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2491 *-esix* ) opsys
=esix
;;
2492 *-xenix* ) opsys
=xenix
;;
2493 *-linux-gnu* ) opsys
=gnu-linux
;;
2494 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2495 *-sco3.2v5
* ) opsys
=sco5
2496 NON_GNU_CPP
=/lib
/cpp
2497 # Prevent -belf from being passed to $CPP.
2498 # /lib/cpp does not accept it.
2499 OVERRIDE_CPPFLAGS
=" "
2501 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2502 *-386bsd* ) opsys
=386bsd
;;
2503 *-nextstep* ) opsys
=nextstep
;;
2504 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2508 ## m68k Linux-based GNU system
2510 machine
=m68k opsys
=gnu-linux
2513 ## Mips Linux-based GNU system
2514 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2515 machine
=mips opsys
=gnu-linux
2519 sparc-fujitsu-sysv4
* )
2520 machine
=sparc opsys
=uxpds
2521 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2526 f301-fujitsu-uxpv4.1
)
2527 machine
=f301 opsys
=uxpv
2530 ## Darwin / Mac OS X
2531 powerpc-apple-darwin
* )
2532 machine
=powermac opsys
=darwin
2533 # Define CPP as follows to make autoconf work correctly.
2534 CPP
="cc -E -traditional-cpp"
2537 ## AMD x86-64 Linux-based GNU system
2538 x86_64-
*-linux-gnu* )
2539 machine
=amdx86-64 opsys
=gnu-linux
2547 ### If the code above didn't choose an operating system, just choose
2548 ### an operating system based on the configuration name. You really
2549 ### only want to use this when you have no idea what the right
2550 ### operating system is; if you know what operating systems a machine
2551 ### runs, it's cleaner to make it explicit in the case statement
2553 if test x
"${opsys}" = x
; then
2554 case "${canonical}" in
2555 *-gnu* ) opsys
=gnu
;;
2556 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2557 *-bsd4.2
) opsys
=bsd4-2
;;
2558 *-bsd4.3
) opsys
=bsd4-3
;;
2559 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2560 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2561 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2562 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2563 *-sysv4.2uw
* ) opsys
=unixware
;;
2564 *-sysv4.1
* |
*-sysvr4.1
* )
2565 NON_GNU_CPP
=/usr
/lib
/cpp
2567 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2568 if [ x
$NON_GNU_CPP = x
]; then
2569 if [ -f /usr
/ccs
/lib
/cpp
]; then
2570 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2572 NON_GNU_CPP
=/lib
/cpp
2576 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2585 if test $unported = yes; then
2586 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2587 Check \`etc/MACHINES' for recognized configuration names." >&5
2588 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2589 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2590 { (exit 1); exit 1; }; }
2593 machfile
="m/${machine}.h"
2594 opsysfile
="s/${opsys}.h"
2597 #### Choose a compiler.
2598 test -n "$CC" && cc_specified
=yes
2600 # Save the value of CFLAGS that the user specified.
2601 SPECIFIED_CFLAGS
="$CFLAGS"
2604 "yes" ) CC
="gcc" GCC
=yes ;;
2605 "no" ) : ${CC=cc} ;;
2609 ac_cpp
='$CPP $CPPFLAGS'
2610 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2611 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2612 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2613 if test -n "$ac_tool_prefix"; then
2614 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2615 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2616 echo "$as_me:$LINENO: checking for $ac_word" >&5
2617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2618 if test "${ac_cv_prog_CC+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2621 if test -n "$CC"; then
2622 ac_cv_prog_CC
="$CC" # Let the user override the test.
2624 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2628 test -z "$as_dir" && as_dir
=.
2629 for ac_exec_ext
in '' $ac_executable_extensions; do
2630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2631 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2641 if test -n "$CC"; then
2642 echo "$as_me:$LINENO: result: $CC" >&5
2643 echo "${ECHO_T}$CC" >&6
2645 echo "$as_me:$LINENO: result: no" >&5
2646 echo "${ECHO_T}no" >&6
2650 if test -z "$ac_cv_prog_CC"; then
2652 # Extract the first word of "gcc", so it can be a program name with args.
2653 set dummy gcc
; ac_word
=$2
2654 echo "$as_me:$LINENO: checking for $ac_word" >&5
2655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2656 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2657 echo $ECHO_N "(cached) $ECHO_C" >&6
2659 if test -n "$ac_ct_CC"; then
2660 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2662 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2666 test -z "$as_dir" && as_dir
=.
2667 for ac_exec_ext
in '' $ac_executable_extensions; do
2668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2669 ac_cv_prog_ac_ct_CC
="gcc"
2670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2678 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2679 if test -n "$ac_ct_CC"; then
2680 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2681 echo "${ECHO_T}$ac_ct_CC" >&6
2683 echo "$as_me:$LINENO: result: no" >&5
2684 echo "${ECHO_T}no" >&6
2692 if test -z "$CC"; then
2693 if test -n "$ac_tool_prefix"; then
2694 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2695 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2696 echo "$as_me:$LINENO: checking for $ac_word" >&5
2697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2698 if test "${ac_cv_prog_CC+set}" = set; then
2699 echo $ECHO_N "(cached) $ECHO_C" >&6
2701 if test -n "$CC"; then
2702 ac_cv_prog_CC
="$CC" # Let the user override the test.
2704 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2708 test -z "$as_dir" && as_dir
=.
2709 for ac_exec_ext
in '' $ac_executable_extensions; do
2710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2711 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 if test -n "$CC"; then
2722 echo "$as_me:$LINENO: result: $CC" >&5
2723 echo "${ECHO_T}$CC" >&6
2725 echo "$as_me:$LINENO: result: no" >&5
2726 echo "${ECHO_T}no" >&6
2730 if test -z "$ac_cv_prog_CC"; then
2732 # Extract the first word of "cc", so it can be a program name with args.
2733 set dummy cc
; ac_word
=$2
2734 echo "$as_me:$LINENO: checking for $ac_word" >&5
2735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2736 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
2739 if test -n "$ac_ct_CC"; then
2740 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2742 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2746 test -z "$as_dir" && as_dir
=.
2747 for ac_exec_ext
in '' $ac_executable_extensions; do
2748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2749 ac_cv_prog_ac_ct_CC
="cc"
2750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2759 if test -n "$ac_ct_CC"; then
2760 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2761 echo "${ECHO_T}$ac_ct_CC" >&6
2763 echo "$as_me:$LINENO: result: no" >&5
2764 echo "${ECHO_T}no" >&6
2773 if test -z "$CC"; then
2774 # Extract the first word of "cc", so it can be a program name with args.
2775 set dummy cc
; ac_word
=$2
2776 echo "$as_me:$LINENO: checking for $ac_word" >&5
2777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2778 if test "${ac_cv_prog_CC+set}" = set; then
2779 echo $ECHO_N "(cached) $ECHO_C" >&6
2781 if test -n "$CC"; then
2782 ac_cv_prog_CC
="$CC" # Let the user override the test.
2785 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2789 test -z "$as_dir" && as_dir
=.
2790 for ac_exec_ext
in '' $ac_executable_extensions; do
2791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2792 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2793 ac_prog_rejected
=yes
2797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 if test $ac_prog_rejected = yes; then
2804 # We found a bogon in the path, so make sure we never use it.
2805 set dummy
$ac_cv_prog_CC
2807 if test $# != 0; then
2808 # We chose a different compiler from the bogus one.
2809 # However, it has the same basename, so the bogon will be chosen
2810 # first if we set CC to just the basename; use the full file name.
2812 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2818 if test -n "$CC"; then
2819 echo "$as_me:$LINENO: result: $CC" >&5
2820 echo "${ECHO_T}$CC" >&6
2822 echo "$as_me:$LINENO: result: no" >&5
2823 echo "${ECHO_T}no" >&6
2827 if test -z "$CC"; then
2828 if test -n "$ac_tool_prefix"; then
2831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2832 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2833 echo "$as_me:$LINENO: checking for $ac_word" >&5
2834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2835 if test "${ac_cv_prog_CC+set}" = set; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2838 if test -n "$CC"; then
2839 ac_cv_prog_CC
="$CC" # Let the user override the test.
2841 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2845 test -z "$as_dir" && as_dir
=.
2846 for ac_exec_ext
in '' $ac_executable_extensions; do
2847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2848 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2858 if test -n "$CC"; then
2859 echo "$as_me:$LINENO: result: $CC" >&5
2860 echo "${ECHO_T}$CC" >&6
2862 echo "$as_me:$LINENO: result: no" >&5
2863 echo "${ECHO_T}no" >&6
2866 test -n "$CC" && break
2869 if test -z "$CC"; then
2873 # Extract the first word of "$ac_prog", so it can be a program name with args.
2874 set dummy
$ac_prog; ac_word
=$2
2875 echo "$as_me:$LINENO: checking for $ac_word" >&5
2876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2877 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 if test -n "$ac_ct_CC"; then
2881 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2883 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2887 test -z "$as_dir" && as_dir
=.
2888 for ac_exec_ext
in '' $ac_executable_extensions; do
2889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2890 ac_cv_prog_ac_ct_CC
="$ac_prog"
2891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2899 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2900 if test -n "$ac_ct_CC"; then
2901 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2902 echo "${ECHO_T}$ac_ct_CC" >&6
2904 echo "$as_me:$LINENO: result: no" >&5
2905 echo "${ECHO_T}no" >&6
2908 test -n "$ac_ct_CC" && break
2917 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2918 See \`config.log' for more details." >&5
2919 echo "$as_me: error: no acceptable C compiler found in \$PATH
2920 See \`config.log' for more details." >&2;}
2921 { (exit 1); exit 1; }; }
2923 # Provide some information about the compiler.
2924 echo "$as_me:$LINENO:" \
2925 "checking for C compiler version" >&5
2926 ac_compiler
=`set X $ac_compile; echo $2`
2927 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2928 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }
2932 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2933 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }
2937 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2938 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }
2943 cat >conftest.
$ac_ext <<_ACEOF
2944 #line $LINENO "configure"
2947 cat confdefs.h
>>conftest.
$ac_ext
2948 cat >>conftest.
$ac_ext <<_ACEOF
2949 /* end confdefs.h. */
2959 ac_clean_files_save
=$ac_clean_files
2960 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2961 # Try to create an executable without -o first, disregard a.out.
2962 # It will help us diagnose broken compilers, and finding out an intuition
2964 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2965 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2966 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2967 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2968 (eval $ac_link_default) 2>&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; then
2972 # Find the output, starting from the most likely. This scheme is
2973 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2976 # Be careful to initialize this variable, since it used to be cached.
2977 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2979 # b.out is created by i960 compilers.
2980 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2982 test -f "$ac_file" ||
continue
2984 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2987 # This is the source file.
2990 # We found the default executable, but exeext='' is most
2994 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2995 # FIXME: I believe we export ac_cv_exeext for Libtool,
2996 # but it would be cool to find out if it's true. Does anybody
2997 # maintain Libtool? --akim.
3005 echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.
$ac_ext >&5
3008 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3009 See \`config.log' for more details." >&5
3010 echo "$as_me: error: C compiler cannot create executables
3011 See \`config.log' for more details." >&2;}
3012 { (exit 77); exit 77; }; }
3015 ac_exeext
=$ac_cv_exeext
3016 echo "$as_me:$LINENO: result: $ac_file" >&5
3017 echo "${ECHO_T}$ac_file" >&6
3019 # Check the compiler produces executables we can run. If not, either
3020 # the compiler is broken, or we cross compile.
3021 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3022 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3023 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3024 # If not cross compiling, check that we can run a simple program.
3025 if test "$cross_compiling" != yes; then
3026 if { ac_try
='./$ac_file'
3027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }; }; then
3034 if test "$cross_compiling" = maybe
; then
3037 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3038 If you meant to cross compile, use \`--host'.
3039 See \`config.log' for more details." >&5
3040 echo "$as_me: error: cannot run C compiled programs.
3041 If you meant to cross compile, use \`--host'.
3042 See \`config.log' for more details." >&2;}
3043 { (exit 1); exit 1; }; }
3047 echo "$as_me:$LINENO: result: yes" >&5
3048 echo "${ECHO_T}yes" >&6
3050 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3051 ac_clean_files
=$ac_clean_files_save
3052 # Check the compiler produces executables we can run. If not, either
3053 # the compiler is broken, or we cross compile.
3054 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3055 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3056 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3057 echo "${ECHO_T}$cross_compiling" >&6
3059 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3060 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3062 (eval $ac_link) 2>&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); }; then
3066 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3067 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3068 # work properly (i.e., refer to `conftest.exe'), while it won't with
3070 for ac_file
in conftest.exe conftest conftest.
*; do
3071 test -f "$ac_file" ||
continue
3073 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3074 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3081 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3082 See \`config.log' for more details." >&5
3083 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3084 See \`config.log' for more details." >&2;}
3085 { (exit 1); exit 1; }; }
3088 rm -f conftest
$ac_cv_exeext
3089 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3090 echo "${ECHO_T}$ac_cv_exeext" >&6
3092 rm -f conftest.
$ac_ext
3093 EXEEXT
=$ac_cv_exeext
3095 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3096 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3097 if test "${ac_cv_objext+set}" = set; then
3098 echo $ECHO_N "(cached) $ECHO_C" >&6
3100 cat >conftest.
$ac_ext <<_ACEOF
3101 #line $LINENO "configure"
3104 cat confdefs.h
>>conftest.
$ac_ext
3105 cat >>conftest.
$ac_ext <<_ACEOF
3106 /* end confdefs.h. */
3116 rm -f conftest.o conftest.obj
3117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3118 (eval $ac_compile) 2>&5
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); }; then
3122 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3124 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3125 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3130 echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.
$ac_ext >&5
3133 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3134 See \`config.log' for more details." >&5
3135 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3136 See \`config.log' for more details." >&2;}
3137 { (exit 1); exit 1; }; }
3140 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3142 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3143 echo "${ECHO_T}$ac_cv_objext" >&6
3144 OBJEXT
=$ac_cv_objext
3146 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3147 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3148 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3149 echo $ECHO_N "(cached) $ECHO_C" >&6
3151 cat >conftest.
$ac_ext <<_ACEOF
3152 #line $LINENO "configure"
3155 cat confdefs.h
>>conftest.
$ac_ext
3156 cat >>conftest.
$ac_ext <<_ACEOF
3157 /* end confdefs.h. */
3170 rm -f conftest.
$ac_objext
3171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3172 (eval $ac_compile) 2>&5
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); } &&
3176 { ac_try
='test -s conftest.$ac_objext'
3177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }; }; then
3184 echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.
$ac_ext >&5
3189 rm -f conftest.
$ac_objext conftest.
$ac_ext
3190 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3193 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3194 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3195 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3196 ac_test_CFLAGS
=${CFLAGS+set}
3197 ac_save_CFLAGS
=$CFLAGS
3199 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3200 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3201 if test "${ac_cv_prog_cc_g+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 cat >conftest.
$ac_ext <<_ACEOF
3205 #line $LINENO "configure"
3208 cat confdefs.h
>>conftest.
$ac_ext
3209 cat >>conftest.
$ac_ext <<_ACEOF
3210 /* end confdefs.h. */
3220 rm -f conftest.
$ac_objext
3221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3222 (eval $ac_compile) 2>&5
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); } &&
3226 { ac_try
='test -s conftest.$ac_objext'
3227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); }; }; then
3234 echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.
$ac_ext >&5
3239 rm -f conftest.
$ac_objext conftest.
$ac_ext
3241 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3242 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3243 if test "$ac_test_CFLAGS" = set; then
3244 CFLAGS
=$ac_save_CFLAGS
3245 elif test $ac_cv_prog_cc_g = yes; then
3246 if test "$GCC" = yes; then
3252 if test "$GCC" = yes; then
3258 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3259 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3260 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3263 ac_cv_prog_cc_stdc
=no
3265 cat >conftest.
$ac_ext <<_ACEOF
3266 #line $LINENO "configure"
3269 cat confdefs.h
>>conftest.
$ac_ext
3270 cat >>conftest.
$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3274 #include <sys/types.h>
3275 #include <sys/stat.h>
3276 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3277 struct buf { int x; };
3278 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3279 static char *e (p, i)
3285 static char *f (char * (*g) (char **, int), char **p, ...)
3290 s = g (p, va_arg (v,int));
3294 int test (int i, double x);
3295 struct s1 {int (*f) (int a);};
3296 struct s2 {int (*f) (double a);};
3297 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3303 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3308 # Don't try gcc -ansi; that turns off useful extensions and
3309 # breaks some systems' header files.
3310 # AIX -qlanglvl=ansi
3311 # Ultrix and OSF/1 -std1
3312 # HP-UX 10.20 and later -Ae
3313 # HP-UX older versions -Aa -D_HPUX_SOURCE
3314 # SVR4 -Xc -D__EXTENSIONS__
3315 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3317 CC
="$ac_save_CC $ac_arg"
3318 rm -f conftest.
$ac_objext
3319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3320 (eval $ac_compile) 2>&5
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); } &&
3324 { ac_try
='test -s conftest.$ac_objext'
3325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); }; }; then
3330 ac_cv_prog_cc_stdc
=$ac_arg
3333 echo "$as_me: failed program was:" >&5
3334 sed 's/^/| /' conftest.
$ac_ext >&5
3337 rm -f conftest.
$ac_objext
3339 rm -f conftest.
$ac_ext conftest.
$ac_objext
3344 case "x$ac_cv_prog_cc_stdc" in
3346 echo "$as_me:$LINENO: result: none needed" >&5
3347 echo "${ECHO_T}none needed" >&6 ;;
3349 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3350 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3351 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3354 # Some people use a C++ compiler to compile C. Since we use `exit',
3355 # in C++ we need to declare it. In case someone uses the same compiler
3356 # for both compiling C and C++ we need to have the C++ compiler decide
3357 # the declaration of exit, since it's the most demanding environment.
3358 cat >conftest.
$ac_ext <<_ACEOF
3363 rm -f conftest.
$ac_objext
3364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3365 (eval $ac_compile) 2>&5
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } &&
3369 { ac_try
='test -s conftest.$ac_objext'
3370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); }; }; then
3375 for ac_declaration
in \
3377 '#include <stdlib.h>' \
3378 'extern "C" void std::exit (int) throw (); using std::exit;' \
3379 'extern "C" void std::exit (int); using std::exit;' \
3380 'extern "C" void exit (int) throw ();' \
3381 'extern "C" void exit (int);' \
3384 cat >conftest.
$ac_ext <<_ACEOF
3385 #line $LINENO "configure"
3388 cat confdefs.h
>>conftest.
$ac_ext
3389 cat >>conftest.
$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3401 rm -f conftest.
$ac_objext
3402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3403 (eval $ac_compile) 2>&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); } &&
3407 { ac_try
='test -s conftest.$ac_objext'
3408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }; }; then
3415 echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.
$ac_ext >&5
3420 rm -f conftest.
$ac_objext conftest.
$ac_ext
3421 cat >conftest.
$ac_ext <<_ACEOF
3422 #line $LINENO "configure"
3425 cat confdefs.h
>>conftest.
$ac_ext
3426 cat >>conftest.
$ac_ext <<_ACEOF
3427 /* end confdefs.h. */
3437 rm -f conftest.
$ac_objext
3438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3439 (eval $ac_compile) 2>&5
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); } &&
3443 { ac_try
='test -s conftest.$ac_objext'
3444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); }; }; then
3451 echo "$as_me: failed program was:" >&5
3452 sed 's/^/| /' conftest.
$ac_ext >&5
3455 rm -f conftest.
$ac_objext conftest.
$ac_ext
3458 if test -n "$ac_declaration"; then
3459 echo '#ifdef __cplusplus' >>confdefs.h
3460 echo $ac_declaration >>confdefs.h
3461 echo '#endif' >>confdefs.h
3465 echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.
$ac_ext >&5
3469 rm -f conftest.
$ac_objext conftest.
$ac_ext
3471 ac_cpp
='$CPP $CPPFLAGS'
3472 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3473 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3474 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3477 # On Suns, sometimes $CPP names a directory.
3478 if test -n "$CPP" && test -d "$CPP"; then
3482 #### Some systems specify a CPP to use unless we are using GCC.
3483 #### Now that we know whether we are using GCC, we can decide whether
3484 #### to use that one.
3485 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3490 #### Some systems specify a CC to use unless we are using GCC.
3491 #### Now that we know whether we are using GCC, we can decide whether
3492 #### to use that one.
3493 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3494 test x
$cc_specified != xyes
3499 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3501 CC
="$CC $GCC_TEST_OPTIONS"
3504 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3506 CC
="$CC $NON_GCC_TEST_OPTIONS"
3509 #### Some other nice autoconf tests.
3511 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3512 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3514 if test "$LN_S" = "ln -s"; then
3515 echo "$as_me:$LINENO: result: yes" >&5
3516 echo "${ECHO_T}yes" >&6
3518 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3519 echo "${ECHO_T}no, using $LN_S" >&6
3523 ac_cpp
='$CPP $CPPFLAGS'
3524 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3525 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3526 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3527 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3528 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3529 # On Suns, sometimes $CPP names a directory.
3530 if test -n "$CPP" && test -d "$CPP"; then
3533 if test -z "$CPP"; then
3534 if test "${ac_cv_prog_CPP+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 # Double quotes because CPP needs to be expanded
3538 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3541 for ac_c_preproc_warn_flag
in '' yes
3543 # Use a header file that comes with gcc, so configuring glibc
3544 # with a fresh cross-compiler works.
3545 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3546 # <limits.h> exists even on freestanding compilers.
3547 # On the NeXT, cc -E runs the code through the compiler's parser,
3548 # not just through cpp. "Syntax error" is here to catch this case.
3549 cat >conftest.
$ac_ext <<_ACEOF
3550 #line $LINENO "configure"
3553 cat confdefs.h
>>conftest.
$ac_ext
3554 cat >>conftest.
$ac_ext <<_ACEOF
3555 /* end confdefs.h. */
3557 # include <limits.h>
3559 # include <assert.h>
3563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3564 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3566 grep -v '^ *+' conftest.er1
>conftest.err
3568 cat conftest.err
>&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); } >/dev
/null
; then
3571 if test -s conftest.err
; then
3572 ac_cpp_err
=$ac_c_preproc_warn_flag
3579 if test -z "$ac_cpp_err"; then
3582 echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.
$ac_ext >&5
3585 # Broken: fails on valid input.
3588 rm -f conftest.err conftest.
$ac_ext
3590 # OK, works on sane cases. Now check whether non-existent headers
3591 # can be detected and how.
3592 cat >conftest.
$ac_ext <<_ACEOF
3593 #line $LINENO "configure"
3596 cat confdefs.h
>>conftest.
$ac_ext
3597 cat >>conftest.
$ac_ext <<_ACEOF
3598 /* end confdefs.h. */
3599 #include <ac_nonexistent.h>
3601 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3602 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3604 grep -v '^ *+' conftest.er1
>conftest.err
3606 cat conftest.err
>&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } >/dev
/null
; then
3609 if test -s conftest.err
; then
3610 ac_cpp_err
=$ac_c_preproc_warn_flag
3617 if test -z "$ac_cpp_err"; then
3618 # Broken: success on invalid input.
3621 echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.
$ac_ext >&5
3624 # Passes both tests.
3628 rm -f conftest.err conftest.
$ac_ext
3631 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3632 rm -f conftest.err conftest.
$ac_ext
3633 if $ac_preproc_ok; then
3645 echo "$as_me:$LINENO: result: $CPP" >&5
3646 echo "${ECHO_T}$CPP" >&6
3648 for ac_c_preproc_warn_flag
in '' yes
3650 # Use a header file that comes with gcc, so configuring glibc
3651 # with a fresh cross-compiler works.
3652 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3653 # <limits.h> exists even on freestanding compilers.
3654 # On the NeXT, cc -E runs the code through the compiler's parser,
3655 # not just through cpp. "Syntax error" is here to catch this case.
3656 cat >conftest.
$ac_ext <<_ACEOF
3657 #line $LINENO "configure"
3660 cat confdefs.h
>>conftest.
$ac_ext
3661 cat >>conftest.
$ac_ext <<_ACEOF
3662 /* end confdefs.h. */
3664 # include <limits.h>
3666 # include <assert.h>
3670 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3671 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3673 grep -v '^ *+' conftest.er1
>conftest.err
3675 cat conftest.err
>&5
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); } >/dev
/null
; then
3678 if test -s conftest.err
; then
3679 ac_cpp_err
=$ac_c_preproc_warn_flag
3686 if test -z "$ac_cpp_err"; then
3689 echo "$as_me: failed program was:" >&5
3690 sed 's/^/| /' conftest.
$ac_ext >&5
3692 # Broken: fails on valid input.
3695 rm -f conftest.err conftest.
$ac_ext
3697 # OK, works on sane cases. Now check whether non-existent headers
3698 # can be detected and how.
3699 cat >conftest.
$ac_ext <<_ACEOF
3700 #line $LINENO "configure"
3703 cat confdefs.h
>>conftest.
$ac_ext
3704 cat >>conftest.
$ac_ext <<_ACEOF
3705 /* end confdefs.h. */
3706 #include <ac_nonexistent.h>
3708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3709 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3711 grep -v '^ *+' conftest.er1
>conftest.err
3713 cat conftest.err
>&5
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); } >/dev
/null
; then
3716 if test -s conftest.err
; then
3717 ac_cpp_err
=$ac_c_preproc_warn_flag
3724 if test -z "$ac_cpp_err"; then
3725 # Broken: success on invalid input.
3728 echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.
$ac_ext >&5
3731 # Passes both tests.
3735 rm -f conftest.err conftest.
$ac_ext
3738 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3739 rm -f conftest.err conftest.
$ac_ext
3740 if $ac_preproc_ok; then
3743 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3744 See \`config.log' for more details." >&5
3745 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3746 See \`config.log' for more details." >&2;}
3747 { (exit 1); exit 1; }; }
3751 ac_cpp
='$CPP $CPPFLAGS'
3752 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3753 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3754 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3756 # Find a good install program. We prefer a C program (faster),
3757 # so one script is as good as another. But avoid the broken or
3758 # incompatible versions:
3759 # SysV /etc/install, /usr/sbin/install
3760 # SunOS /usr/etc/install
3761 # IRIX /sbin/install
3763 # AmigaOS /C/install, which installs bootblocks on floppy discs
3764 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3765 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3766 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3767 # ./install, which can be erroneously created by make from ./install.sh.
3768 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3769 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3770 if test -z "$INSTALL"; then
3771 if test "${ac_cv_path_install+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3778 test -z "$as_dir" && as_dir
=.
3779 # Account for people who put trailing slashes in PATH elements.
3781 .
/ | .
// |
/cC
/* | \
3782 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3785 # OSF1 and SCO ODT 3.0 have their own names for install.
3786 # Don't use installbsd from OSF since it installs stuff as root
3788 for ac_prog
in ginstall scoinst
install; do
3789 for ac_exec_ext
in '' $ac_executable_extensions; do
3790 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3791 if test $ac_prog = install &&
3792 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3793 # AIX install. It has an incompatible calling convention.
3795 elif test $ac_prog = install &&
3796 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3797 # program-specific install script used by HP pwplus--don't use.
3800 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3812 if test "${ac_cv_path_install+set}" = set; then
3813 INSTALL
=$ac_cv_path_install
3815 # As a last resort, use the slow shell script. We don't cache a
3816 # path for INSTALL within a source directory, because that will
3817 # break other packages using the cache if that directory is
3818 # removed, or if the path is relative.
3819 INSTALL
=$ac_install_sh
3822 echo "$as_me:$LINENO: result: $INSTALL" >&5
3823 echo "${ECHO_T}$INSTALL" >&6
3825 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3826 # It thinks the first close brace ends the variable substitution.
3827 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3829 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3831 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3833 if test "x$RANLIB" = x
; then
3834 if test -n "$ac_tool_prefix"; then
3835 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3836 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3837 echo "$as_me:$LINENO: checking for $ac_word" >&5
3838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3839 if test "${ac_cv_prog_RANLIB+set}" = set; then
3840 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 if test -n "$RANLIB"; then
3843 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3845 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3849 test -z "$as_dir" && as_dir
=.
3850 for ac_exec_ext
in '' $ac_executable_extensions; do
3851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3852 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3861 RANLIB
=$ac_cv_prog_RANLIB
3862 if test -n "$RANLIB"; then
3863 echo "$as_me:$LINENO: result: $RANLIB" >&5
3864 echo "${ECHO_T}$RANLIB" >&6
3866 echo "$as_me:$LINENO: result: no" >&5
3867 echo "${ECHO_T}no" >&6
3871 if test -z "$ac_cv_prog_RANLIB"; then
3872 ac_ct_RANLIB
=$RANLIB
3873 # Extract the first word of "ranlib", so it can be a program name with args.
3874 set dummy ranlib
; ac_word
=$2
3875 echo "$as_me:$LINENO: checking for $ac_word" >&5
3876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3877 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 if test -n "$ac_ct_RANLIB"; then
3881 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3883 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3887 test -z "$as_dir" && as_dir
=.
3888 for ac_exec_ext
in '' $ac_executable_extensions; do
3889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3890 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3897 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3900 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3901 if test -n "$ac_ct_RANLIB"; then
3902 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3903 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3905 echo "$as_me:$LINENO: result: no" >&5
3906 echo "${ECHO_T}no" >&6
3909 RANLIB
=$ac_ct_RANLIB
3911 RANLIB
="$ac_cv_prog_RANLIB"
3915 # Extract the first word of "install-info", so it can be a program name with args.
3916 set dummy install-info
; ac_word
=$2
3917 echo "$as_me:$LINENO: checking for $ac_word" >&5
3918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3919 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3922 case $INSTALL_INFO in
3924 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
3927 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3931 test -z "$as_dir" && as_dir
=.
3932 for ac_exec_ext
in '' $ac_executable_extensions; do
3933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3934 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
3935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3944 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
3946 if test -n "$INSTALL_INFO"; then
3947 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3948 echo "${ECHO_T}$INSTALL_INFO" >&6
3950 echo "$as_me:$LINENO: result: no" >&5
3951 echo "${ECHO_T}no" >&6
3954 # Extract the first word of "install-info", so it can be a program name with args.
3955 set dummy install-info
; ac_word
=$2
3956 echo "$as_me:$LINENO: checking for $ac_word" >&5
3957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3958 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3961 case $INSTALL_INFO in
3963 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
3966 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3967 for as_dir
in /usr
/sbin
3970 test -z "$as_dir" && as_dir
=.
3971 for ac_exec_ext
in '' $ac_executable_extensions; do
3972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3973 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
3974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3983 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
3985 if test -n "$INSTALL_INFO"; then
3986 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3987 echo "${ECHO_T}$INSTALL_INFO" >&6
3989 echo "$as_me:$LINENO: result: no" >&5
3990 echo "${ECHO_T}no" >&6
3993 # Extract the first word of "install-info", so it can be a program name with args.
3994 set dummy install-info
; ac_word
=$2
3995 echo "$as_me:$LINENO: checking for $ac_word" >&5
3996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3997 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3998 echo $ECHO_N "(cached) $ECHO_C" >&6
4000 case $INSTALL_INFO in
4002 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4005 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4009 test -z "$as_dir" && as_dir
=.
4010 for ac_exec_ext
in '' $ac_executable_extensions; do
4011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4012 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4019 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4023 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4025 if test -n "$INSTALL_INFO"; then
4026 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4027 echo "${ECHO_T}$INSTALL_INFO" >&6
4029 echo "$as_me:$LINENO: result: no" >&5
4030 echo "${ECHO_T}no" >&6
4035 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4037 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4040 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4042 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4047 echo "$as_me:$LINENO: checking for egrep" >&5
4048 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4049 if test "${ac_cv_prog_egrep+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4053 then ac_cv_prog_egrep
='grep -E'
4054 else ac_cv_prog_egrep
='egrep'
4057 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4058 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4059 EGREP
=$ac_cv_prog_egrep
4063 echo "$as_me:$LINENO: checking for AIX" >&5
4064 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4065 cat >conftest.
$ac_ext <<_ACEOF
4066 #line $LINENO "configure"
4069 cat confdefs.h
>>conftest.
$ac_ext
4070 cat >>conftest.
$ac_ext <<_ACEOF
4071 /* end confdefs.h. */
4077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4078 $EGREP "yes" >/dev
/null
2>&1; then
4079 echo "$as_me:$LINENO: result: yes" >&5
4080 echo "${ECHO_T}yes" >&6
4081 cat >>confdefs.h
<<\_ACEOF
4082 #define _ALL_SOURCE 1
4086 echo "$as_me:$LINENO: result: no" >&5
4087 echo "${ECHO_T}no" >&6
4093 #### Extract some information from the operating system and machine files.
4095 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4096 - which libraries the lib-src programs will want, and
4097 - whether the GNU malloc routines are usable..." >&5
4098 echo "$as_me: checking the machine- and system-dependent files to find out
4099 - which libraries the lib-src programs will want, and
4100 - whether the GNU malloc routines are usable..." >&6;}
4102 ### First figure out CFLAGS (which we use for running the compiler here)
4103 ### and REAL_CFLAGS (which we use for real compilation).
4104 ### The two are the same except on a few systems, where they are made
4105 ### different to work around various lossages. For example,
4106 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4107 ### as implying static linking.
4109 ### If the CFLAGS env var is specified, we use that value
4110 ### instead of the default.
4112 ### It's not important that this name contain the PID; you can't run
4113 ### two configures in the same directory and have anything work
4115 tempcname
="conftest.c"
4118 #include "'${srcdir}'/src/'${opsysfile}'"
4119 #include "'${srcdir}'/src/'${machfile}'"
4120 #ifndef LIBS_MACHINE
4121 #define LIBS_MACHINE
4126 #ifndef C_SWITCH_SYSTEM
4127 #define C_SWITCH_SYSTEM
4129 #ifndef C_SWITCH_MACHINE
4130 #define C_SWITCH_MACHINE
4132 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4133 configure___ c_switch_system=C_SWITCH_SYSTEM
4134 configure___ c_switch_machine=C_SWITCH_MACHINE
4137 #define LIB_X11_LIB -lX11
4140 #ifndef LIBX11_MACHINE
4141 #define LIBX11_MACHINE
4144 #ifndef LIBX11_SYSTEM
4145 #define LIBX11_SYSTEM
4147 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4150 configure___ unexec=UNEXEC
4152 configure___ unexec=unexec.o
4155 #ifdef SYSTEM_MALLOC
4156 configure___ system_malloc=yes
4158 configure___ system_malloc=no
4161 #ifdef USE_MMAP_FOR_BUFFERS
4162 configure___ use_mmap_for_buffers=yes
4164 configure___ use_mmap_for_buffers=no
4167 #ifndef C_DEBUG_SWITCH
4168 #define C_DEBUG_SWITCH -g
4171 #ifndef C_OPTIMIZE_SWITCH
4173 #define C_OPTIMIZE_SWITCH -O2
4175 #define C_OPTIMIZE_SWITCH -O
4179 #ifndef LD_SWITCH_MACHINE
4180 #define LD_SWITCH_MACHINE
4183 #ifndef LD_SWITCH_SYSTEM
4184 #define LD_SWITCH_SYSTEM
4187 #ifndef LD_SWITCH_X_SITE_AUX
4188 #define LD_SWITCH_X_SITE_AUX
4191 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4192 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4194 #ifdef THIS_IS_CONFIGURE
4196 /* Get the CFLAGS for tests in configure. */
4198 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4200 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4203 #else /* not THIS_IS_CONFIGURE */
4205 /* Get the CFLAGS for real compilation. */
4207 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4209 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4212 #endif /* not THIS_IS_CONFIGURE */
4215 # The value of CPP is a quoted variable reference, so we need to do this
4216 # to get its actual value...
4217 CPP
=`eval "echo $CPP"`
4218 eval `${CPP} -Isrc ${tempcname} \
4219 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4220 if test "x$SPECIFIED_CFLAGS" = x
; then
4221 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4222 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4224 REAL_CFLAGS
="$CFLAGS"
4228 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4230 ### Make sure subsequent tests use flags consistent with the build flags.
4232 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4233 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4235 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4241 cat >>confdefs.h
<<\_ACEOF
4242 #define _GNU_SOURCE 1
4247 # Check whether --enable-largefile or --disable-largefile was given.
4248 if test "${enable_largefile+set}" = set; then
4249 enableval
="$enable_largefile"
4252 if test "$enable_largefile" != no
; then
4254 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4255 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4256 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4257 echo $ECHO_N "(cached) $ECHO_C" >&6
4259 ac_cv_sys_largefile_CC
=no
4260 if test "$GCC" != yes; then
4263 # IRIX 6.2 and later do not support large files by default,
4264 # so use the C compiler's -n32 option if that helps.
4265 cat >conftest.
$ac_ext <<_ACEOF
4266 #line $LINENO "configure"
4269 cat confdefs.h
>>conftest.
$ac_ext
4270 cat >>conftest.
$ac_ext <<_ACEOF
4271 /* end confdefs.h. */
4272 #include <sys/types.h>
4273 /* Check that off_t can represent 2**63 - 1 correctly.
4274 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4275 since some C++ compilers masquerading as C compilers
4276 incorrectly reject 9223372036854775807. */
4277 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4278 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4279 && LARGE_OFF_T % 2147483647 == 1)
4289 rm -f conftest.
$ac_objext
4290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4291 (eval $ac_compile) 2>&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); } &&
4295 { ac_try
='test -s conftest.$ac_objext'
4296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; }; then
4303 echo "$as_me: failed program was:" >&5
4304 sed 's/^/| /' conftest.
$ac_ext >&5
4307 rm -f conftest.
$ac_objext
4309 rm -f conftest.
$ac_objext
4310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4311 (eval $ac_compile) 2>&5
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); } &&
4315 { ac_try
='test -s conftest.$ac_objext'
4316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); }; }; then
4321 ac_cv_sys_largefile_CC
=' -n32'; break
4323 echo "$as_me: failed program was:" >&5
4324 sed 's/^/| /' conftest.
$ac_ext >&5
4327 rm -f conftest.
$ac_objext
4331 rm -f conftest.
$ac_ext
4334 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4335 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4336 if test "$ac_cv_sys_largefile_CC" != no
; then
4337 CC
=$CC$ac_cv_sys_largefile_CC
4340 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4341 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4342 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4346 ac_cv_sys_file_offset_bits
=no
4347 cat >conftest.
$ac_ext <<_ACEOF
4348 #line $LINENO "configure"
4351 cat confdefs.h
>>conftest.
$ac_ext
4352 cat >>conftest.
$ac_ext <<_ACEOF
4353 /* end confdefs.h. */
4354 #include <sys/types.h>
4355 /* Check that off_t can represent 2**63 - 1 correctly.
4356 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4357 since some C++ compilers masquerading as C compilers
4358 incorrectly reject 9223372036854775807. */
4359 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4360 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4361 && LARGE_OFF_T % 2147483647 == 1)
4371 rm -f conftest.
$ac_objext
4372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4373 (eval $ac_compile) 2>&5
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); } &&
4377 { ac_try
='test -s conftest.$ac_objext'
4378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; }; then
4385 echo "$as_me: failed program was:" >&5
4386 sed 's/^/| /' conftest.
$ac_ext >&5
4389 rm -f conftest.
$ac_objext conftest.
$ac_ext
4390 cat >conftest.
$ac_ext <<_ACEOF
4391 #line $LINENO "configure"
4394 cat confdefs.h
>>conftest.
$ac_ext
4395 cat >>conftest.
$ac_ext <<_ACEOF
4396 /* end confdefs.h. */
4397 #define _FILE_OFFSET_BITS 64
4398 #include <sys/types.h>
4399 /* Check that off_t can represent 2**63 - 1 correctly.
4400 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4401 since some C++ compilers masquerading as C compilers
4402 incorrectly reject 9223372036854775807. */
4403 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4404 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4405 && LARGE_OFF_T % 2147483647 == 1)
4415 rm -f conftest.
$ac_objext
4416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4417 (eval $ac_compile) 2>&5
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); } &&
4421 { ac_try
='test -s conftest.$ac_objext'
4422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); }; }; then
4427 ac_cv_sys_file_offset_bits
=64; break
4429 echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.
$ac_ext >&5
4433 rm -f conftest.
$ac_objext conftest.
$ac_ext
4437 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4438 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4439 if test "$ac_cv_sys_file_offset_bits" != no
; then
4441 cat >>confdefs.h
<<_ACEOF
4442 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4447 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4448 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4449 if test "${ac_cv_sys_large_files+set}" = set; then
4450 echo $ECHO_N "(cached) $ECHO_C" >&6
4453 ac_cv_sys_large_files
=no
4454 cat >conftest.
$ac_ext <<_ACEOF
4455 #line $LINENO "configure"
4458 cat confdefs.h
>>conftest.
$ac_ext
4459 cat >>conftest.
$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4461 #include <sys/types.h>
4462 /* Check that off_t can represent 2**63 - 1 correctly.
4463 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4464 since some C++ compilers masquerading as C compilers
4465 incorrectly reject 9223372036854775807. */
4466 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4467 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4468 && LARGE_OFF_T % 2147483647 == 1)
4478 rm -f conftest.
$ac_objext
4479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4480 (eval $ac_compile) 2>&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); } &&
4484 { ac_try
='test -s conftest.$ac_objext'
4485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); }; }; then
4492 echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.
$ac_ext >&5
4496 rm -f conftest.
$ac_objext conftest.
$ac_ext
4497 cat >conftest.
$ac_ext <<_ACEOF
4498 #line $LINENO "configure"
4501 cat confdefs.h
>>conftest.
$ac_ext
4502 cat >>conftest.
$ac_ext <<_ACEOF
4503 /* end confdefs.h. */
4504 #define _LARGE_FILES 1
4505 #include <sys/types.h>
4506 /* Check that off_t can represent 2**63 - 1 correctly.
4507 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4508 since some C++ compilers masquerading as C compilers
4509 incorrectly reject 9223372036854775807. */
4510 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4511 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4512 && LARGE_OFF_T % 2147483647 == 1)
4522 rm -f conftest.
$ac_objext
4523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4524 (eval $ac_compile) 2>&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); } &&
4528 { ac_try
='test -s conftest.$ac_objext'
4529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; }; then
4534 ac_cv_sys_large_files
=1; break
4536 echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.
$ac_ext >&5
4540 rm -f conftest.
$ac_objext conftest.
$ac_ext
4544 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4545 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4546 if test "$ac_cv_sys_large_files" != no
; then
4548 cat >>confdefs.h
<<_ACEOF
4549 #define _LARGE_FILES $ac_cv_sys_large_files
4557 if test "${with_sound}" != "no"; then
4558 # Sound support for GNU/Linux and the free BSDs.
4559 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4560 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4561 if test "${ac_cv_header_stdc+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 cat >conftest.
$ac_ext <<_ACEOF
4565 #line $LINENO "configure"
4568 cat confdefs.h
>>conftest.
$ac_ext
4569 cat >>conftest.
$ac_ext <<_ACEOF
4570 /* end confdefs.h. */
4584 rm -f conftest.
$ac_objext
4585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4586 (eval $ac_compile) 2>&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); } &&
4590 { ac_try
='test -s conftest.$ac_objext'
4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }; }; then
4596 ac_cv_header_stdc
=yes
4598 echo "$as_me: failed program was:" >&5
4599 sed 's/^/| /' conftest.
$ac_ext >&5
4601 ac_cv_header_stdc
=no
4603 rm -f conftest.
$ac_objext conftest.
$ac_ext
4605 if test $ac_cv_header_stdc = yes; then
4606 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4607 cat >conftest.
$ac_ext <<_ACEOF
4608 #line $LINENO "configure"
4611 cat confdefs.h
>>conftest.
$ac_ext
4612 cat >>conftest.
$ac_ext <<_ACEOF
4613 /* end confdefs.h. */
4617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4618 $EGREP "memchr" >/dev
/null
2>&1; then
4621 ac_cv_header_stdc
=no
4627 if test $ac_cv_header_stdc = yes; then
4628 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4629 cat >conftest.
$ac_ext <<_ACEOF
4630 #line $LINENO "configure"
4633 cat confdefs.h
>>conftest.
$ac_ext
4634 cat >>conftest.
$ac_ext <<_ACEOF
4635 /* end confdefs.h. */
4639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4640 $EGREP "free" >/dev
/null
2>&1; then
4643 ac_cv_header_stdc
=no
4649 if test $ac_cv_header_stdc = yes; then
4650 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4651 if test "$cross_compiling" = yes; then
4654 cat >conftest.
$ac_ext <<_ACEOF
4655 #line $LINENO "configure"
4658 cat confdefs.h
>>conftest.
$ac_ext
4659 cat >>conftest.
$ac_ext <<_ACEOF
4660 /* end confdefs.h. */
4662 #if ((' ' & 0x0FF) == 0x020)
4663 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4664 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4666 # define ISLOWER(c) \
4667 (('a' <= (c) && (c) <= 'i') \
4668 || ('j' <= (c) && (c) <= 'r') \
4669 || ('s' <= (c) && (c) <= 'z'))
4670 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4673 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4678 for (i = 0; i < 256; i++)
4679 if (XOR (islower (i), ISLOWER (i))
4680 || toupper (i) != TOUPPER (i))
4685 rm -f conftest
$ac_exeext
4686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4687 (eval $ac_link) 2>&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; }; then
4698 echo "$as_me: program exited with status $ac_status" >&5
4699 echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.
$ac_ext >&5
4703 ac_cv_header_stdc
=no
4705 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4709 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4710 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4711 if test $ac_cv_header_stdc = yes; then
4713 cat >>confdefs.h
<<\_ACEOF
4714 #define STDC_HEADERS 1
4719 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4729 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4730 inttypes.h stdint.h unistd.h
4732 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4733 echo "$as_me:$LINENO: checking for $ac_header" >&5
4734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4738 cat >conftest.
$ac_ext <<_ACEOF
4739 #line $LINENO "configure"
4742 cat confdefs.h
>>conftest.
$ac_ext
4743 cat >>conftest.
$ac_ext <<_ACEOF
4744 /* end confdefs.h. */
4745 $ac_includes_default
4747 #include <$ac_header>
4749 rm -f conftest.
$ac_objext
4750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4751 (eval $ac_compile) 2>&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); } &&
4755 { ac_try
='test -s conftest.$ac_objext'
4756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); }; }; then
4761 eval "$as_ac_Header=yes"
4763 echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.
$ac_ext >&5
4766 eval "$as_ac_Header=no"
4768 rm -f conftest.
$ac_objext conftest.
$ac_ext
4770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4771 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4773 cat >>confdefs.h
<<_ACEOF
4774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4785 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
4787 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4789 echo "$as_me:$LINENO: checking for $ac_header" >&5
4790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4797 # Is the header compilable?
4798 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4800 cat >conftest.
$ac_ext <<_ACEOF
4801 #line $LINENO "configure"
4804 cat confdefs.h
>>conftest.
$ac_ext
4805 cat >>conftest.
$ac_ext <<_ACEOF
4806 /* end confdefs.h. */
4807 $ac_includes_default
4808 #include <$ac_header>
4810 rm -f conftest.
$ac_objext
4811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4812 (eval $ac_compile) 2>&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } &&
4816 { ac_try
='test -s conftest.$ac_objext'
4817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); }; }; then
4822 ac_header_compiler
=yes
4824 echo "$as_me: failed program was:" >&5
4825 sed 's/^/| /' conftest.
$ac_ext >&5
4827 ac_header_compiler
=no
4829 rm -f conftest.
$ac_objext conftest.
$ac_ext
4830 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4831 echo "${ECHO_T}$ac_header_compiler" >&6
4833 # Is the header present?
4834 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4836 cat >conftest.
$ac_ext <<_ACEOF
4837 #line $LINENO "configure"
4840 cat confdefs.h
>>conftest.
$ac_ext
4841 cat >>conftest.
$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4843 #include <$ac_header>
4845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4846 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4848 grep -v '^ *+' conftest.er1
>conftest.err
4850 cat conftest.err
>&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } >/dev
/null
; then
4853 if test -s conftest.err
; then
4854 ac_cpp_err
=$ac_c_preproc_warn_flag
4861 if test -z "$ac_cpp_err"; then
4862 ac_header_preproc
=yes
4864 echo "$as_me: failed program was:" >&5
4865 sed 's/^/| /' conftest.
$ac_ext >&5
4867 ac_header_preproc
=no
4869 rm -f conftest.err conftest.
$ac_ext
4870 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4871 echo "${ECHO_T}$ac_header_preproc" >&6
4873 # So? What about this header?
4874 case $ac_header_compiler:$ac_header_preproc in
4876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4882 ## ------------------------------------ ##
4883 ## Report this to bug-autoconf@gnu.org. ##
4884 ## ------------------------------------ ##
4887 sed "s/^/$as_me: WARNING: /" >&2
4890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4893 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4898 ## ------------------------------------ ##
4899 ## Report this to bug-autoconf@gnu.org. ##
4900 ## ------------------------------------ ##
4903 sed "s/^/$as_me: WARNING: /" >&2
4906 echo "$as_me:$LINENO: checking for $ac_header" >&5
4907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4909 echo $ECHO_N "(cached) $ECHO_C" >&6
4911 eval "$as_ac_Header=$ac_header_preproc"
4913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4918 cat >>confdefs.h
<<_ACEOF
4919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4926 # Emulation library used on NetBSD.
4927 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4928 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4929 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4930 echo $ECHO_N "(cached) $ECHO_C" >&6
4932 ac_check_lib_save_LIBS
=$LIBS
4933 LIBS
="-lossaudio $LIBS"
4934 cat >conftest.
$ac_ext <<_ACEOF
4935 #line $LINENO "configure"
4938 cat confdefs.h
>>conftest.
$ac_ext
4939 cat >>conftest.
$ac_ext <<_ACEOF
4940 /* end confdefs.h. */
4942 /* Override any gcc2 internal prototype to avoid an error. */
4946 /* We use char because int might match the return type of a gcc2
4947 builtin and then its argument prototype would still apply. */
4957 rm -f conftest.
$ac_objext conftest
$ac_exeext
4958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4959 (eval $ac_link) 2>&5
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); } &&
4963 { ac_try
='test -s conftest$ac_exeext'
4964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); }; }; then
4969 ac_cv_lib_ossaudio__oss_ioctl
=yes
4971 echo "$as_me: failed program was:" >&5
4972 sed 's/^/| /' conftest.
$ac_ext >&5
4974 ac_cv_lib_ossaudio__oss_ioctl
=no
4976 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4977 LIBS
=$ac_check_lib_save_LIBS
4979 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4980 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4981 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5012 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5013 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5014 termcap.h stdio_ext.h fcntl.h term.h
strings.h coff.h pty.h sys
/mman.h \
5015 sys
/param.h sys
/vlimit.h sys
/resource.h
5017 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5019 echo "$as_me:$LINENO: checking for $ac_header" >&5
5020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5027 # Is the header compilable?
5028 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5029 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5030 cat >conftest.
$ac_ext <<_ACEOF
5031 #line $LINENO "configure"
5034 cat confdefs.h
>>conftest.
$ac_ext
5035 cat >>conftest.
$ac_ext <<_ACEOF
5036 /* end confdefs.h. */
5037 $ac_includes_default
5038 #include <$ac_header>
5040 rm -f conftest.
$ac_objext
5041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5042 (eval $ac_compile) 2>&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); } &&
5046 { ac_try
='test -s conftest.$ac_objext'
5047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); }; }; then
5052 ac_header_compiler
=yes
5054 echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.
$ac_ext >&5
5057 ac_header_compiler
=no
5059 rm -f conftest.
$ac_objext conftest.
$ac_ext
5060 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5061 echo "${ECHO_T}$ac_header_compiler" >&6
5063 # Is the header present?
5064 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5065 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5066 cat >conftest.
$ac_ext <<_ACEOF
5067 #line $LINENO "configure"
5070 cat confdefs.h
>>conftest.
$ac_ext
5071 cat >>conftest.
$ac_ext <<_ACEOF
5072 /* end confdefs.h. */
5073 #include <$ac_header>
5075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5076 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5078 grep -v '^ *+' conftest.er1
>conftest.err
5080 cat conftest.err
>&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } >/dev
/null
; then
5083 if test -s conftest.err
; then
5084 ac_cpp_err
=$ac_c_preproc_warn_flag
5091 if test -z "$ac_cpp_err"; then
5092 ac_header_preproc
=yes
5094 echo "$as_me: failed program was:" >&5
5095 sed 's/^/| /' conftest.
$ac_ext >&5
5097 ac_header_preproc
=no
5099 rm -f conftest.err conftest.
$ac_ext
5100 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5101 echo "${ECHO_T}$ac_header_preproc" >&6
5103 # So? What about this header?
5104 case $ac_header_compiler:$ac_header_preproc in
5106 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5107 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5112 ## ------------------------------------ ##
5113 ## Report this to bug-autoconf@gnu.org. ##
5114 ## ------------------------------------ ##
5117 sed "s/^/$as_me: WARNING: /" >&2
5120 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5122 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5123 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5128 ## ------------------------------------ ##
5129 ## Report this to bug-autoconf@gnu.org. ##
5130 ## ------------------------------------ ##
5133 sed "s/^/$as_me: WARNING: /" >&2
5136 echo "$as_me:$LINENO: checking for $ac_header" >&5
5137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5141 eval "$as_ac_Header=$ac_header_preproc"
5143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5148 cat >>confdefs.h
<<_ACEOF
5149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5157 for ac_header
in term.h
5159 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5160 echo "$as_me:$LINENO: checking for $ac_header" >&5
5161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 cat >conftest.
$ac_ext <<_ACEOF
5166 #line $LINENO "configure"
5169 cat confdefs.h
>>conftest.
$ac_ext
5170 cat >>conftest.
$ac_ext <<_ACEOF
5171 /* end confdefs.h. */
5172 #include <$ac_header>
5174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5175 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5177 grep -v '^ *+' conftest.er1
>conftest.err
5179 cat conftest.err
>&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); } >/dev
/null
; then
5182 if test -s conftest.err
; then
5183 ac_cpp_err
=$ac_c_preproc_warn_flag
5190 if test -z "$ac_cpp_err"; then
5191 eval "$as_ac_Header=yes"
5193 echo "$as_me: failed program was:" >&5
5194 sed 's/^/| /' conftest.
$ac_ext >&5
5196 eval "$as_ac_Header=no"
5198 rm -f conftest.err conftest.
$ac_ext
5200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5203 cat >>confdefs.h
<<_ACEOF
5204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5211 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5212 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5213 if test "${ac_cv_header_stdc+set}" = set; then
5214 echo $ECHO_N "(cached) $ECHO_C" >&6
5216 cat >conftest.
$ac_ext <<_ACEOF
5217 #line $LINENO "configure"
5220 cat confdefs.h
>>conftest.
$ac_ext
5221 cat >>conftest.
$ac_ext <<_ACEOF
5222 /* end confdefs.h. */
5236 rm -f conftest.
$ac_objext
5237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5238 (eval $ac_compile) 2>&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); } &&
5242 { ac_try
='test -s conftest.$ac_objext'
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; }; then
5248 ac_cv_header_stdc
=yes
5250 echo "$as_me: failed program was:" >&5
5251 sed 's/^/| /' conftest.
$ac_ext >&5
5253 ac_cv_header_stdc
=no
5255 rm -f conftest.
$ac_objext conftest.
$ac_ext
5257 if test $ac_cv_header_stdc = yes; then
5258 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5259 cat >conftest.
$ac_ext <<_ACEOF
5260 #line $LINENO "configure"
5263 cat confdefs.h
>>conftest.
$ac_ext
5264 cat >>conftest.
$ac_ext <<_ACEOF
5265 /* end confdefs.h. */
5269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5270 $EGREP "memchr" >/dev
/null
2>&1; then
5273 ac_cv_header_stdc
=no
5279 if test $ac_cv_header_stdc = yes; then
5280 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5281 cat >conftest.
$ac_ext <<_ACEOF
5282 #line $LINENO "configure"
5285 cat confdefs.h
>>conftest.
$ac_ext
5286 cat >>conftest.
$ac_ext <<_ACEOF
5287 /* end confdefs.h. */
5291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5292 $EGREP "free" >/dev
/null
2>&1; then
5295 ac_cv_header_stdc
=no
5301 if test $ac_cv_header_stdc = yes; then
5302 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5303 if test "$cross_compiling" = yes; then
5306 cat >conftest.
$ac_ext <<_ACEOF
5307 #line $LINENO "configure"
5310 cat confdefs.h
>>conftest.
$ac_ext
5311 cat >>conftest.
$ac_ext <<_ACEOF
5312 /* end confdefs.h. */
5314 #if ((' ' & 0x0FF) == 0x020)
5315 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5316 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5318 # define ISLOWER(c) \
5319 (('a' <= (c) && (c) <= 'i') \
5320 || ('j' <= (c) && (c) <= 'r') \
5321 || ('s' <= (c) && (c) <= 'z'))
5322 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5325 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5330 for (i = 0; i < 256; i++)
5331 if (XOR (islower (i), ISLOWER (i))
5332 || toupper (i) != TOUPPER (i))
5337 rm -f conftest
$ac_exeext
5338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5339 (eval $ac_link) 2>&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; }; then
5350 echo "$as_me: program exited with status $ac_status" >&5
5351 echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.
$ac_ext >&5
5355 ac_cv_header_stdc
=no
5357 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5361 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5362 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5363 if test $ac_cv_header_stdc = yes; then
5365 cat >>confdefs.h
<<\_ACEOF
5366 #define STDC_HEADERS 1
5371 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5372 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5373 if test "${ac_cv_header_time+set}" = set; then
5374 echo $ECHO_N "(cached) $ECHO_C" >&6
5376 cat >conftest.
$ac_ext <<_ACEOF
5377 #line $LINENO "configure"
5380 cat confdefs.h
>>conftest.
$ac_ext
5381 cat >>conftest.
$ac_ext <<_ACEOF
5382 /* end confdefs.h. */
5383 #include <sys/types.h>
5384 #include <sys/time.h>
5390 if ((struct tm *) 0)
5396 rm -f conftest.
$ac_objext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5398 (eval $ac_compile) 2>&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } &&
5402 { ac_try
='test -s conftest.$ac_objext'
5403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); }; }; then
5408 ac_cv_header_time
=yes
5410 echo "$as_me: failed program was:" >&5
5411 sed 's/^/| /' conftest.
$ac_ext >&5
5413 ac_cv_header_time
=no
5415 rm -f conftest.
$ac_objext conftest.
$ac_ext
5417 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5418 echo "${ECHO_T}$ac_cv_header_time" >&6
5419 if test $ac_cv_header_time = yes; then
5421 cat >>confdefs.h
<<\_ACEOF
5422 #define TIME_WITH_SYS_TIME 1
5427 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5428 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5429 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5432 cat >conftest.
$ac_ext <<_ACEOF
5433 #line $LINENO "configure"
5436 cat confdefs.h
>>conftest.
$ac_ext
5437 cat >>conftest.
$ac_ext <<_ACEOF
5438 /* end confdefs.h. */
5439 $ac_includes_default
5444 char *p = (char *) sys_siglist;
5451 rm -f conftest.
$ac_objext
5452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5453 (eval $ac_compile) 2>&5
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); } &&
5457 { ac_try
='test -s conftest.$ac_objext'
5458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); }; }; then
5463 ac_cv_have_decl_sys_siglist
=yes
5465 echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.
$ac_ext >&5
5468 ac_cv_have_decl_sys_siglist
=no
5470 rm -f conftest.
$ac_objext conftest.
$ac_ext
5472 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5473 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5474 if test $ac_cv_have_decl_sys_siglist = yes; then
5476 cat >>confdefs.h
<<_ACEOF
5477 #define HAVE_DECL_SYS_SIGLIST 1
5482 cat >>confdefs.h
<<_ACEOF
5483 #define HAVE_DECL_SYS_SIGLIST 0
5490 if test $ac_cv_have_decl_sys_siglist != yes; then
5491 # For Tru64, at least:
5492 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5493 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5494 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5495 echo $ECHO_N "(cached) $ECHO_C" >&6
5497 cat >conftest.
$ac_ext <<_ACEOF
5498 #line $LINENO "configure"
5501 cat confdefs.h
>>conftest.
$ac_ext
5502 cat >>conftest.
$ac_ext <<_ACEOF
5503 /* end confdefs.h. */
5504 $ac_includes_default
5508 #ifndef __sys_siglist
5509 char *p = (char *) __sys_siglist;
5516 rm -f conftest.
$ac_objext
5517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5518 (eval $ac_compile) 2>&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); } &&
5522 { ac_try
='test -s conftest.$ac_objext'
5523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); }; }; then
5528 ac_cv_have_decl___sys_siglist
=yes
5530 echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.
$ac_ext >&5
5533 ac_cv_have_decl___sys_siglist
=no
5535 rm -f conftest.
$ac_objext conftest.
$ac_ext
5537 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5538 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5539 if test $ac_cv_have_decl___sys_siglist = yes; then
5541 cat >>confdefs.h
<<_ACEOF
5542 #define HAVE_DECL___SYS_SIGLIST 1
5547 cat >>confdefs.h
<<_ACEOF
5548 #define HAVE_DECL___SYS_SIGLIST 0
5555 if test $ac_cv_have_decl___sys_siglist = yes; then
5557 cat >>confdefs.h
<<\_ACEOF
5558 #define sys_siglist __sys_siglist
5563 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5564 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5565 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5568 cat >conftest.
$ac_ext <<_ACEOF
5569 #line $LINENO "configure"
5572 cat confdefs.h
>>conftest.
$ac_ext
5573 cat >>conftest.
$ac_ext <<_ACEOF
5574 /* end confdefs.h. */
5575 #include <sys/types.h>
5576 #include <sys/wait.h>
5578 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5581 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5589 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5594 rm -f conftest.
$ac_objext
5595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5596 (eval $ac_compile) 2>&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } &&
5600 { ac_try
='test -s conftest.$ac_objext'
5601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; }; then
5606 ac_cv_header_sys_wait_h
=yes
5608 echo "$as_me: failed program was:" >&5
5609 sed 's/^/| /' conftest.
$ac_ext >&5
5611 ac_cv_header_sys_wait_h
=no
5613 rm -f conftest.
$ac_objext conftest.
$ac_ext
5615 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5616 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5617 if test $ac_cv_header_sys_wait_h = yes; then
5619 cat >>confdefs.h
<<\_ACEOF
5620 #define HAVE_SYS_WAIT_H 1
5626 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5627 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5628 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5631 cat >conftest.
$ac_ext <<_ACEOF
5632 #line $LINENO "configure"
5635 cat confdefs.h
>>conftest.
$ac_ext
5636 cat >>conftest.
$ac_ext <<_ACEOF
5637 /* end confdefs.h. */
5638 #ifdef TIME_WITH_SYS_TIME
5639 #include <sys/time.h>
5642 #ifdef HAVE_SYS_TIME_H
5643 #include <sys/time.h>
5654 static struct utimbuf x; x.actime = x.modtime;
5659 rm -f conftest.
$ac_objext
5660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5661 (eval $ac_compile) 2>&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); } &&
5665 { ac_try
='test -s conftest.$ac_objext'
5666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); }; }; then
5671 emacs_cv_struct_utimbuf
=yes
5673 echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.
$ac_ext >&5
5676 emacs_cv_struct_utimbuf
=no
5678 rm -f conftest.
$ac_objext conftest.
$ac_ext
5680 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5681 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5682 if test $emacs_cv_struct_utimbuf = yes; then
5684 cat >>confdefs.h
<<\_ACEOF
5685 #define HAVE_STRUCT_UTIMBUF 1
5690 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5691 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5692 if test "${ac_cv_type_signal+set}" = set; then
5693 echo $ECHO_N "(cached) $ECHO_C" >&6
5695 cat >conftest.
$ac_ext <<_ACEOF
5696 #line $LINENO "configure"
5699 cat confdefs.h
>>conftest.
$ac_ext
5700 cat >>conftest.
$ac_ext <<_ACEOF
5701 /* end confdefs.h. */
5702 #include <sys/types.h>
5708 extern "C" void (*signal (int, void (*)(int)))(int);
5710 void (*signal ()) ();
5721 rm -f conftest.
$ac_objext
5722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5723 (eval $ac_compile) 2>&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); } &&
5727 { ac_try
='test -s conftest.$ac_objext'
5728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; }; then
5733 ac_cv_type_signal
=void
5735 echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.
$ac_ext >&5
5738 ac_cv_type_signal
=int
5740 rm -f conftest.
$ac_objext conftest.
$ac_ext
5742 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5743 echo "${ECHO_T}$ac_cv_type_signal" >&6
5745 cat >>confdefs.h
<<_ACEOF
5746 #define RETSIGTYPE $ac_cv_type_signal
5751 echo "$as_me:$LINENO: checking for speed_t" >&5
5752 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5753 if test "${emacs_cv_speed_t+set}" = set; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5756 cat >conftest.
$ac_ext <<_ACEOF
5757 #line $LINENO "configure"
5760 cat confdefs.h
>>conftest.
$ac_ext
5761 cat >>conftest.
$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5763 #include <termios.h>
5772 rm -f conftest.
$ac_objext
5773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5774 (eval $ac_compile) 2>&5
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); } &&
5778 { ac_try
='test -s conftest.$ac_objext'
5779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; }; then
5784 emacs_cv_speed_t
=yes
5786 echo "$as_me: failed program was:" >&5
5787 sed 's/^/| /' conftest.
$ac_ext >&5
5791 rm -f conftest.
$ac_objext conftest.
$ac_ext
5793 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5794 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5795 if test $emacs_cv_speed_t = yes; then
5797 cat >>confdefs.h
<<\_ACEOF
5798 #define HAVE_SPEED_T 1
5803 echo "$as_me:$LINENO: checking for struct timeval" >&5
5804 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5805 if test "${emacs_cv_struct_timeval+set}" = set; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 cat >conftest.
$ac_ext <<_ACEOF
5809 #line $LINENO "configure"
5812 cat confdefs.h
>>conftest.
$ac_ext
5813 cat >>conftest.
$ac_ext <<_ACEOF
5814 /* end confdefs.h. */
5815 #ifdef TIME_WITH_SYS_TIME
5816 #include <sys/time.h>
5819 #ifdef HAVE_SYS_TIME_H
5820 #include <sys/time.h>
5828 static struct timeval x; x.tv_sec = x.tv_usec;
5833 rm -f conftest.
$ac_objext
5834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5835 (eval $ac_compile) 2>&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); } &&
5839 { ac_try
='test -s conftest.$ac_objext'
5840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); }; }; then
5845 emacs_cv_struct_timeval
=yes
5847 echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.
$ac_ext >&5
5850 emacs_cv_struct_timeval
=no
5852 rm -f conftest.
$ac_objext conftest.
$ac_ext
5854 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5855 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5856 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
5857 if test $emacs_cv_struct_timeval = yes; then
5859 cat >>confdefs.h
<<\_ACEOF
5860 #define HAVE_TIMEVAL 1
5865 echo "$as_me:$LINENO: checking for struct exception" >&5
5866 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5867 if test "${emacs_cv_struct_exception+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5870 cat >conftest.
$ac_ext <<_ACEOF
5871 #line $LINENO "configure"
5874 cat confdefs.h
>>conftest.
$ac_ext
5875 cat >>conftest.
$ac_ext <<_ACEOF
5876 /* end confdefs.h. */
5881 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5886 rm -f conftest.
$ac_objext
5887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5888 (eval $ac_compile) 2>&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); } &&
5892 { ac_try
='test -s conftest.$ac_objext'
5893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); }; }; then
5898 emacs_cv_struct_exception
=yes
5900 echo "$as_me: failed program was:" >&5
5901 sed 's/^/| /' conftest.
$ac_ext >&5
5903 emacs_cv_struct_exception
=no
5905 rm -f conftest.
$ac_objext conftest.
$ac_ext
5907 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5908 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5909 HAVE_EXCEPTION
=$emacs_cv_struct_exception
5910 if test $emacs_cv_struct_exception != yes; then
5912 cat >>confdefs.h
<<\_ACEOF
5913 #define NO_MATHERR 1
5918 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5919 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5920 if test "${ac_cv_struct_tm+set}" = set; then
5921 echo $ECHO_N "(cached) $ECHO_C" >&6
5923 cat >conftest.
$ac_ext <<_ACEOF
5924 #line $LINENO "configure"
5927 cat confdefs.h
>>conftest.
$ac_ext
5928 cat >>conftest.
$ac_ext <<_ACEOF
5929 /* end confdefs.h. */
5930 #include <sys/types.h>
5936 struct tm *tp; tp->tm_sec;
5941 rm -f conftest.
$ac_objext
5942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5943 (eval $ac_compile) 2>&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } &&
5947 { ac_try
='test -s conftest.$ac_objext'
5948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; }; then
5953 ac_cv_struct_tm
=time.h
5955 echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.
$ac_ext >&5
5958 ac_cv_struct_tm
=sys
/time.h
5960 rm -f conftest.
$ac_objext conftest.
$ac_ext
5962 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5963 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5964 if test $ac_cv_struct_tm = sys
/time.h
; then
5966 cat >>confdefs.h
<<\_ACEOF
5967 #define TM_IN_SYS_TIME 1
5972 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5973 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5974 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5977 cat >conftest.
$ac_ext <<_ACEOF
5978 #line $LINENO "configure"
5981 cat confdefs.h
>>conftest.
$ac_ext
5982 cat >>conftest.
$ac_ext <<_ACEOF
5983 /* end confdefs.h. */
5984 #include <sys/types.h>
5985 #include <$ac_cv_struct_tm>
5991 static struct tm ac_aggr;
5992 if (ac_aggr.tm_zone)
5998 rm -f conftest.
$ac_objext
5999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6000 (eval $ac_compile) 2>&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } &&
6004 { ac_try
='test -s conftest.$ac_objext'
6005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; }; then
6010 ac_cv_member_struct_tm_tm_zone
=yes
6012 echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.
$ac_ext >&5
6015 cat >conftest.
$ac_ext <<_ACEOF
6016 #line $LINENO "configure"
6019 cat confdefs.h
>>conftest.
$ac_ext
6020 cat >>conftest.
$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6022 #include <sys/types.h>
6023 #include <$ac_cv_struct_tm>
6029 static struct tm ac_aggr;
6030 if (sizeof ac_aggr.tm_zone)
6036 rm -f conftest.
$ac_objext
6037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6038 (eval $ac_compile) 2>&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); } &&
6042 { ac_try
='test -s conftest.$ac_objext'
6043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); }; }; then
6048 ac_cv_member_struct_tm_tm_zone
=yes
6050 echo "$as_me: failed program was:" >&5
6051 sed 's/^/| /' conftest.
$ac_ext >&5
6053 ac_cv_member_struct_tm_tm_zone
=no
6055 rm -f conftest.
$ac_objext conftest.
$ac_ext
6057 rm -f conftest.
$ac_objext conftest.
$ac_ext
6059 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6060 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6061 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6063 cat >>confdefs.h
<<_ACEOF
6064 #define HAVE_STRUCT_TM_TM_ZONE 1
6070 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6072 cat >>confdefs.h
<<\_ACEOF
6073 #define HAVE_TM_ZONE 1
6077 echo "$as_me:$LINENO: checking for tzname" >&5
6078 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6079 if test "${ac_cv_var_tzname+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 cat >conftest.
$ac_ext <<_ACEOF
6083 #line $LINENO "configure"
6086 cat confdefs.h
>>conftest.
$ac_ext
6087 cat >>conftest.
$ac_ext <<_ACEOF
6088 /* end confdefs.h. */
6090 #ifndef tzname /* For SGI. */
6091 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6102 rm -f conftest.
$ac_objext conftest
$ac_exeext
6103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6104 (eval $ac_link) 2>&5
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); } &&
6108 { ac_try
='test -s conftest$ac_exeext'
6109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); }; }; then
6114 ac_cv_var_tzname
=yes
6116 echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.
$ac_ext >&5
6121 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6123 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6124 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6125 if test $ac_cv_var_tzname = yes; then
6127 cat >>confdefs.h
<<\_ACEOF
6128 #define HAVE_TZNAME 1
6134 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6135 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6136 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6137 echo $ECHO_N "(cached) $ECHO_C" >&6
6139 cat >conftest.
$ac_ext <<_ACEOF
6140 #line $LINENO "configure"
6143 cat confdefs.h
>>conftest.
$ac_ext
6144 cat >>conftest.
$ac_ext <<_ACEOF
6145 /* end confdefs.h. */
6151 static struct tm ac_aggr;
6152 if (ac_aggr.tm_gmtoff)
6158 rm -f conftest.
$ac_objext
6159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6160 (eval $ac_compile) 2>&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } &&
6164 { ac_try
='test -s conftest.$ac_objext'
6165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; }; then
6170 ac_cv_member_struct_tm_tm_gmtoff
=yes
6172 echo "$as_me: failed program was:" >&5
6173 sed 's/^/| /' conftest.
$ac_ext >&5
6175 cat >conftest.
$ac_ext <<_ACEOF
6176 #line $LINENO "configure"
6179 cat confdefs.h
>>conftest.
$ac_ext
6180 cat >>conftest.
$ac_ext <<_ACEOF
6181 /* end confdefs.h. */
6187 static struct tm ac_aggr;
6188 if (sizeof ac_aggr.tm_gmtoff)
6194 rm -f conftest.
$ac_objext
6195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6196 (eval $ac_compile) 2>&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); } &&
6200 { ac_try
='test -s conftest.$ac_objext'
6201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); }; }; then
6206 ac_cv_member_struct_tm_tm_gmtoff
=yes
6208 echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.
$ac_ext >&5
6211 ac_cv_member_struct_tm_tm_gmtoff
=no
6213 rm -f conftest.
$ac_objext conftest.
$ac_ext
6215 rm -f conftest.
$ac_objext conftest.
$ac_ext
6217 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6218 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6219 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6221 cat >>confdefs.h
<<\_ACEOF
6222 #define HAVE_TM_GMTOFF 1
6229 echo "$as_me:$LINENO: checking for function prototypes" >&5
6230 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6231 if test "$ac_cv_prog_cc_stdc" != no
; then
6232 echo "$as_me:$LINENO: result: yes" >&5
6233 echo "${ECHO_T}yes" >&6
6235 cat >>confdefs.h
<<\_ACEOF
6236 #define PROTOTYPES 1
6240 cat >>confdefs.h
<<\_ACEOF
6241 #define __PROTOTYPES 1
6245 echo "$as_me:$LINENO: result: no" >&5
6246 echo "${ECHO_T}no" >&6
6249 echo "$as_me:$LINENO: checking for working volatile" >&5
6250 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6251 if test "${ac_cv_c_volatile+set}" = set; then
6252 echo $ECHO_N "(cached) $ECHO_C" >&6
6254 cat >conftest.
$ac_ext <<_ACEOF
6255 #line $LINENO "configure"
6258 cat confdefs.h
>>conftest.
$ac_ext
6259 cat >>conftest.
$ac_ext <<_ACEOF
6260 /* end confdefs.h. */
6272 rm -f conftest.
$ac_objext
6273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6274 (eval $ac_compile) 2>&5
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); } &&
6278 { ac_try
='test -s conftest.$ac_objext'
6279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); }; }; then
6284 ac_cv_c_volatile
=yes
6286 echo "$as_me: failed program was:" >&5
6287 sed 's/^/| /' conftest.
$ac_ext >&5
6291 rm -f conftest.
$ac_objext conftest.
$ac_ext
6293 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6294 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6295 if test $ac_cv_c_volatile = no
; then
6297 cat >>confdefs.h
<<\_ACEOF
6303 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6304 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6305 if test "${ac_cv_c_const+set}" = set; then
6306 echo $ECHO_N "(cached) $ECHO_C" >&6
6308 cat >conftest.
$ac_ext <<_ACEOF
6309 #line $LINENO "configure"
6312 cat confdefs.h
>>conftest.
$ac_ext
6313 cat >>conftest.
$ac_ext <<_ACEOF
6314 /* end confdefs.h. */
6319 /* FIXME: Include the comments suggested by Paul. */
6321 /* Ultrix mips cc rejects this. */
6322 typedef int charset[2];
6324 /* SunOS 4.1.1 cc rejects this. */
6325 char const *const *ccp;
6327 /* NEC SVR4.0.2 mips cc rejects this. */
6328 struct point {int x, y;};
6329 static struct point const zero = {0,0};
6330 /* AIX XL C 1.02.0.0 rejects this.
6331 It does not let you subtract one const X* pointer from another in
6332 an arm of an if-expression whose if-part is not a constant
6334 const char *g = "string";
6335 ccp = &g + (g ? g-g : 0);
6336 /* HPUX 7.0 cc rejects these. */
6339 ccp = (char const *const *) p;
6340 { /* SCO 3.2v4 cc rejects this. */
6342 char const *s = 0 ? (char *) 0 : (char const *) 0;
6346 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6348 const int *foo = &x[0];
6351 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6352 typedef const int *iptr;
6356 { /* AIX XL C 1.02.0.0 rejects this saying
6357 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6358 struct s { int j; const int *ap[3]; };
6359 struct s *b; b->j = 5;
6361 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6370 rm -f conftest.
$ac_objext
6371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6372 (eval $ac_compile) 2>&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); } &&
6376 { ac_try
='test -s conftest.$ac_objext'
6377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); }; }; then
6384 echo "$as_me: failed program was:" >&5
6385 sed 's/^/| /' conftest.
$ac_ext >&5
6389 rm -f conftest.
$ac_objext conftest.
$ac_ext
6391 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6392 echo "${ECHO_T}$ac_cv_c_const" >&6
6393 if test $ac_cv_c_const = no
; then
6395 cat >>confdefs.h
<<\_ACEOF
6401 echo "$as_me:$LINENO: checking for void * support" >&5
6402 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
6403 if test "${emacs_cv_void_star+set}" = set; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6406 cat >conftest.
$ac_ext <<_ACEOF
6407 #line $LINENO "configure"
6410 cat confdefs.h
>>conftest.
$ac_ext
6411 cat >>conftest.
$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6422 rm -f conftest.
$ac_objext
6423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6424 (eval $ac_compile) 2>&5
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); } &&
6428 { ac_try
='test -s conftest.$ac_objext'
6429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); }; }; then
6434 emacs_cv_void_star
=yes
6436 echo "$as_me: failed program was:" >&5
6437 sed 's/^/| /' conftest.
$ac_ext >&5
6439 emacs_cv_void_star
=no
6441 rm -f conftest.
$ac_objext conftest.
$ac_ext
6443 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6444 echo "${ECHO_T}$emacs_cv_void_star" >&6
6445 if test $emacs_cv_void_star = yes; then
6446 cat >>confdefs.h
<<\_ACEOF
6447 #define POINTER_TYPE void
6451 cat >>confdefs.h
<<\_ACEOF
6452 #define POINTER_TYPE char
6459 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6460 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6461 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
6462 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6465 cat >conftest.
make <<\_ACEOF
6467 @
echo 'ac_maketemp="$(MAKE)"'
6469 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6470 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6471 if test -n "$ac_maketemp"; then
6472 eval ac_cv_prog_make_
${ac_make}_set
=yes
6474 eval ac_cv_prog_make_
${ac_make}_set
=no
6478 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6479 echo "$as_me:$LINENO: result: yes" >&5
6480 echo "${ECHO_T}yes" >&6
6483 echo "$as_me:$LINENO: result: no" >&5
6484 echo "${ECHO_T}no" >&6
6485 SET_MAKE
="MAKE=${MAKE-make}"
6489 echo "$as_me:$LINENO: checking for long file names" >&5
6490 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
6491 if test "${ac_cv_sys_long_file_names+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6494 ac_cv_sys_long_file_names
=yes
6495 # Test for long file names in all the places we know might matter:
6496 # . the current directory, where building will happen
6497 # $prefix/lib where we will be installing things
6498 # $exec_prefix/lib likewise
6499 # eval it to expand exec_prefix.
6500 # $TMPDIR if set, where it might want to write temporary files
6501 # if $TMPDIR is not set:
6502 # /tmp where it might want to write temporary files
6505 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6508 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
6510 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6511 test -d $ac_dir ||
continue
6512 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
6513 ac_xdir
=$ac_dir/cf$$
6514 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
6515 ac_tf1
=$ac_xdir/conftest9012345
6516 ac_tf2
=$ac_xdir/conftest9012346
6517 (echo 1 >$ac_tf1) 2>/dev
/null
6518 (echo 2 >$ac_tf2) 2>/dev
/null
6519 ac_val
=`cat $ac_tf1 2>/dev/null`
6520 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
6521 ac_cv_sys_long_file_names
=no
6522 rm -rf $ac_xdir 2>/dev
/null
6525 rm -rf $ac_xdir 2>/dev
/null
6528 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6529 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6530 if test $ac_cv_sys_long_file_names = yes; then
6532 cat >>confdefs.h
<<\_ACEOF
6533 #define HAVE_LONG_FILE_NAMES 1
6539 #### Choose a window system.
6541 echo "$as_me:$LINENO: checking for X" >&5
6542 echo $ECHO_N "checking for X... $ECHO_C" >&6
6545 # Check whether --with-x or --without-x was given.
6546 if test "${with_x+set}" = set; then
6550 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6551 if test "x$with_x" = xno
; then
6552 # The user explicitly disabled X.
6555 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
6556 # Both variables are already set.
6559 if test "${ac_cv_have_x+set}" = set; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6562 # One or both of the vars are not set, and there is no cached value.
6563 ac_x_includes
=no ac_x_libraries
=no
6565 if mkdir conftest.dir
; then
6567 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6568 cat >Imakefile
<<'_ACEOF'
6570 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6572 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6573 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6574 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6575 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6576 for ac_extension
in a so sl
; do
6577 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
6578 test -f $ac_im_libdir/libX11.
$ac_extension; then
6579 ac_im_usrlibdir
=$ac_im_libdir; break
6582 # Screen out bogus values from the imake configuration. They are
6583 # bogus both because they are the default anyway, and because
6584 # using them would break gcc on systems where it needs fixed includes.
6585 case $ac_im_incroot in
6587 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6589 case $ac_im_usrlibdir in
6591 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6598 # Standard set of common directories for X headers.
6599 # Check X11 before X11Rn because it is often a symlink to the current release.
6611 /usr/local/X11/include
6612 /usr/local/X11R6/include
6613 /usr/local/X11R5/include
6614 /usr/local/X11R4/include
6616 /usr/local/include/X11
6617 /usr/local/include/X11R6
6618 /usr/local/include/X11R5
6619 /usr/local/include/X11R4
6623 /usr/XFree86/include/X11
6627 /usr/unsupported/include
6629 /usr/local/x11r5/include
6630 /usr/lpp/Xamples/include
6632 /usr/openwin/include
6633 /usr/openwin/share/include'
6635 if test "$ac_x_includes" = no
; then
6636 # Guess where to find include files, by looking for Intrinsic.h.
6637 # First, try using that file with no special directory specified.
6638 cat >conftest.
$ac_ext <<_ACEOF
6639 #line $LINENO "configure"
6642 cat confdefs.h
>>conftest.
$ac_ext
6643 cat >>conftest.
$ac_ext <<_ACEOF
6644 /* end confdefs.h. */
6645 #include <X11/Intrinsic.h>
6647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6648 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6650 grep -v '^ *+' conftest.er1
>conftest.err
6652 cat conftest.err
>&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); } >/dev
/null
; then
6655 if test -s conftest.err
; then
6656 ac_cpp_err
=$ac_c_preproc_warn_flag
6663 if test -z "$ac_cpp_err"; then
6664 # We can compile using X headers with no special include directory.
6667 echo "$as_me: failed program was:" >&5
6668 sed 's/^/| /' conftest.
$ac_ext >&5
6670 for ac_dir
in $ac_x_header_dirs; do
6671 if test -r "$ac_dir/X11/Intrinsic.h"; then
6672 ac_x_includes
=$ac_dir
6677 rm -f conftest.err conftest.
$ac_ext
6678 fi # $ac_x_includes = no
6680 if test "$ac_x_libraries" = no
; then
6681 # Check for the libraries.
6682 # See if we find them without any special options.
6683 # Don't add to $LIBS permanently.
6686 cat >conftest.
$ac_ext <<_ACEOF
6687 #line $LINENO "configure"
6690 cat confdefs.h
>>conftest.
$ac_ext
6691 cat >>conftest.
$ac_ext <<_ACEOF
6692 /* end confdefs.h. */
6693 #include <X11/Intrinsic.h>
6702 rm -f conftest.
$ac_objext conftest
$ac_exeext
6703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6704 (eval $ac_link) 2>&5
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); } &&
6708 { ac_try
='test -s conftest$ac_exeext'
6709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); }; }; then
6715 # We can link X programs with no special library path.
6718 echo "$as_me: failed program was:" >&5
6719 sed 's/^/| /' conftest.
$ac_ext >&5
6722 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6724 # Don't even attempt the hair of trying to link an X program!
6725 for ac_extension
in a so sl
; do
6726 if test -r $ac_dir/libXt.
$ac_extension; then
6727 ac_x_libraries
=$ac_dir
6733 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6734 fi # $ac_x_libraries = no
6736 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
6737 # Didn't find X anywhere. Cache the known absence of X.
6738 ac_cv_have_x
="have_x=no"
6740 # Record where we found X for the cache.
6741 ac_cv_have_x
="have_x=yes \
6742 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6747 eval "$ac_cv_have_x"
6750 if test "$have_x" != yes; then
6751 echo "$as_me:$LINENO: result: $have_x" >&5
6752 echo "${ECHO_T}$have_x" >&6
6755 # If each of the values was on the command line, it overrides each guess.
6756 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6757 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6758 # Update the cache value to reflect the command line values.
6759 ac_cv_have_x
="have_x=yes \
6760 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6761 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6762 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6765 if test "$no_x" = yes; then
6771 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
6772 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6773 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6774 x_default_search_path
=""
6775 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6777 ${x_library}/X11/%L/%T/%N%C%S:\
6778 ${x_library}/X11/%l/%T/%N%C%S:\
6779 ${x_library}/X11/%T/%N%C%S:\
6780 ${x_library}/X11/%L/%T/%N%S:\
6781 ${x_library}/X11/%l/%T/%N%S:\
6782 ${x_library}/X11/%T/%N%S"
6783 if test x
"${x_default_search_path}" = x
; then
6784 x_default_search_path
=${x_search_path}
6786 x_default_search_path
="${x_search_path}:${x_default_search_path}"
6790 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
6791 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6794 if test x
"${x_includes}" = x
; then
6795 bitmapdir
=/usr
/include
/X11
/bitmaps
6797 # accumulate include directories that have X11 bitmap subdirectories
6799 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6800 if test -d "${bmd}/X11/bitmaps"; then
6801 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
6803 if test -d "${bmd}/bitmaps"; then
6804 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
6807 if test ${bmd_acc} != "dummyval"; then
6808 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6812 case "${window_system}" in
6816 case "${with_x_toolkit}" in
6817 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
6818 motif
) USE_X_TOOLKIT
=MOTIF
;;
6820 USE_X_TOOLKIT
=none
;;
6821 no
) USE_X_TOOLKIT
=none
;;
6822 * ) USE_X_TOOLKIT
=maybe
;;
6832 ### If we're using X11, we should use the X menu package.
6835 yes ) HAVE_MENUS
=yes ;;
6838 if test "${opsys}" = "hpux9"; then
6839 case "${x_libraries}" in
6841 opsysfile
="s/hpux9-x11r4.h"
6846 if test "${opsys}" = "hpux9shr"; then
6847 case "${x_libraries}" in
6849 opsysfile
="s/hpux9shxr4.h"
6854 ### Compute the unexec source name from the object name.
6855 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
6857 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6858 # Assume not, until told otherwise.
6861 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6862 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6863 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6866 cat >conftest.
$ac_ext <<_ACEOF
6867 #line $LINENO "configure"
6870 cat confdefs.h
>>conftest.
$ac_ext
6871 cat >>conftest.
$ac_ext <<_ACEOF
6872 /* end confdefs.h. */
6873 /* System header to define __stub macros and hopefully few prototypes,
6874 which can conflict with char malloc_get_state (); below.
6875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6876 <limits.h> exists even on freestanding compilers. */
6878 # include <limits.h>
6880 # include <assert.h>
6882 /* Override any gcc2 internal prototype to avoid an error. */
6887 /* We use char because int might match the return type of a gcc2
6888 builtin and then its argument prototype would still apply. */
6889 char malloc_get_state ();
6890 /* The GNU C library defines this for functions which it implements
6891 to always fail with ENOSYS. Some functions are actually named
6892 something starting with __ and the normal name is an alias. */
6893 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6896 char (*f) () = malloc_get_state;
6905 return f != malloc_get_state;
6910 rm -f conftest.
$ac_objext conftest
$ac_exeext
6911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6912 (eval $ac_link) 2>&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); } &&
6916 { ac_try
='test -s conftest$ac_exeext'
6917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); }; }; then
6922 ac_cv_func_malloc_get_state
=yes
6924 echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.
$ac_ext >&5
6927 ac_cv_func_malloc_get_state
=no
6929 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6931 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6932 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6933 if test $ac_cv_func_malloc_get_state = yes; then
6939 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6940 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6941 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
6944 cat >conftest.
$ac_ext <<_ACEOF
6945 #line $LINENO "configure"
6948 cat confdefs.h
>>conftest.
$ac_ext
6949 cat >>conftest.
$ac_ext <<_ACEOF
6950 /* end confdefs.h. */
6951 /* System header to define __stub macros and hopefully few prototypes,
6952 which can conflict with char malloc_set_state (); below.
6953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6954 <limits.h> exists even on freestanding compilers. */
6956 # include <limits.h>
6958 # include <assert.h>
6960 /* Override any gcc2 internal prototype to avoid an error. */
6965 /* We use char because int might match the return type of a gcc2
6966 builtin and then its argument prototype would still apply. */
6967 char malloc_set_state ();
6968 /* The GNU C library defines this for functions which it implements
6969 to always fail with ENOSYS. Some functions are actually named
6970 something starting with __ and the normal name is an alias. */
6971 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
6974 char (*f) () = malloc_set_state;
6983 return f != malloc_set_state;
6988 rm -f conftest.
$ac_objext conftest
$ac_exeext
6989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6990 (eval $ac_link) 2>&5
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); } &&
6994 { ac_try
='test -s conftest$ac_exeext'
6995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); }; }; then
7000 ac_cv_func_malloc_set_state
=yes
7002 echo "$as_me: failed program was:" >&5
7003 sed 's/^/| /' conftest.
$ac_ext >&5
7005 ac_cv_func_malloc_set_state
=no
7007 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7009 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
7010 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
7011 if test $ac_cv_func_malloc_set_state = yes; then
7017 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7018 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
7019 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7022 cat >conftest.
$ac_ext <<_ACEOF
7023 #line $LINENO "configure"
7026 cat confdefs.h
>>conftest.
$ac_ext
7027 cat >>conftest.
$ac_ext <<_ACEOF
7028 /* end confdefs.h. */
7029 extern void (* __after_morecore_hook)();
7033 __after_morecore_hook = 0
7038 rm -f conftest.
$ac_objext conftest
$ac_exeext
7039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7040 (eval $ac_link) 2>&5
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); } &&
7044 { ac_try
='test -s conftest$ac_exeext'
7045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); }; }; then
7050 emacs_cv_var___after_morecore_hook
=yes
7052 echo "$as_me: failed program was:" >&5
7053 sed 's/^/| /' conftest.
$ac_ext >&5
7055 emacs_cv_var___after_morecore_hook
=no
7057 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7059 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7060 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
7061 if test $emacs_cv_var___after_morecore_hook = no
; then
7064 if test "${system_malloc}" = "yes"; then
7067 (The GNU allocators don't work with this system configuration.)"
7069 if test "$doug_lea_malloc" = "yes" ; then
7070 if test "$GNU_MALLOC" = yes ; then
7072 (Using Doug Lea's new malloc from the GNU C Library.)"
7075 cat >>confdefs.h
<<\_ACEOF
7076 #define DOUG_LEA_MALLOC 1
7081 if test x
"${REL_ALLOC}" = x
; then
7082 REL_ALLOC
=${GNU_MALLOC}
7088 for ac_header
in stdlib.h unistd.h
7090 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7092 echo "$as_me:$LINENO: checking for $ac_header" >&5
7093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7095 echo $ECHO_N "(cached) $ECHO_C" >&6
7097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7100 # Is the header compilable?
7101 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7103 cat >conftest.
$ac_ext <<_ACEOF
7104 #line $LINENO "configure"
7107 cat confdefs.h
>>conftest.
$ac_ext
7108 cat >>conftest.
$ac_ext <<_ACEOF
7109 /* end confdefs.h. */
7110 $ac_includes_default
7111 #include <$ac_header>
7113 rm -f conftest.
$ac_objext
7114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7115 (eval $ac_compile) 2>&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); } &&
7119 { ac_try
='test -s conftest.$ac_objext'
7120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); }; }; then
7125 ac_header_compiler
=yes
7127 echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.
$ac_ext >&5
7130 ac_header_compiler
=no
7132 rm -f conftest.
$ac_objext conftest.
$ac_ext
7133 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7134 echo "${ECHO_T}$ac_header_compiler" >&6
7136 # Is the header present?
7137 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7139 cat >conftest.
$ac_ext <<_ACEOF
7140 #line $LINENO "configure"
7143 cat confdefs.h
>>conftest.
$ac_ext
7144 cat >>conftest.
$ac_ext <<_ACEOF
7145 /* end confdefs.h. */
7146 #include <$ac_header>
7148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7149 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7151 grep -v '^ *+' conftest.er1
>conftest.err
7153 cat conftest.err
>&5
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); } >/dev
/null
; then
7156 if test -s conftest.err
; then
7157 ac_cpp_err
=$ac_c_preproc_warn_flag
7164 if test -z "$ac_cpp_err"; then
7165 ac_header_preproc
=yes
7167 echo "$as_me: failed program was:" >&5
7168 sed 's/^/| /' conftest.
$ac_ext >&5
7170 ac_header_preproc
=no
7172 rm -f conftest.err conftest.
$ac_ext
7173 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7174 echo "${ECHO_T}$ac_header_preproc" >&6
7176 # So? What about this header?
7177 case $ac_header_compiler:$ac_header_preproc in
7179 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7180 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7185 ## ------------------------------------ ##
7186 ## Report this to bug-autoconf@gnu.org. ##
7187 ## ------------------------------------ ##
7190 sed "s/^/$as_me: WARNING: /" >&2
7193 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7194 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7195 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7196 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7198 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7201 ## ------------------------------------ ##
7202 ## Report this to bug-autoconf@gnu.org. ##
7203 ## ------------------------------------ ##
7206 sed "s/^/$as_me: WARNING: /" >&2
7209 echo "$as_me:$LINENO: checking for $ac_header" >&5
7210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7212 echo $ECHO_N "(cached) $ECHO_C" >&6
7214 eval "$as_ac_Header=$ac_header_preproc"
7216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7221 cat >>confdefs.h
<<_ACEOF
7222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7230 for ac_func
in getpagesize
7232 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7233 echo "$as_me:$LINENO: checking for $ac_func" >&5
7234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7235 if eval "test \"\${$as_ac_var+set}\" = set"; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
7238 cat >conftest.
$ac_ext <<_ACEOF
7239 #line $LINENO "configure"
7242 cat confdefs.h
>>conftest.
$ac_ext
7243 cat >>conftest.
$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7245 /* System header to define __stub macros and hopefully few prototypes,
7246 which can conflict with char $ac_func (); below.
7247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7248 <limits.h> exists even on freestanding compilers. */
7250 # include <limits.h>
7252 # include <assert.h>
7254 /* Override any gcc2 internal prototype to avoid an error. */
7259 /* We use char because int might match the return type of a gcc2
7260 builtin and then its argument prototype would still apply. */
7262 /* The GNU C library defines this for functions which it implements
7263 to always fail with ENOSYS. Some functions are actually named
7264 something starting with __ and the normal name is an alias. */
7265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7268 char (*f) () = $ac_func;
7277 return f != $ac_func;
7282 rm -f conftest.
$ac_objext conftest
$ac_exeext
7283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7284 (eval $ac_link) 2>&5
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); } &&
7288 { ac_try
='test -s conftest$ac_exeext'
7289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); }; }; then
7294 eval "$as_ac_var=yes"
7296 echo "$as_me: failed program was:" >&5
7297 sed 's/^/| /' conftest.
$ac_ext >&5
7299 eval "$as_ac_var=no"
7301 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7304 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7305 if test `eval echo '${'$as_ac_var'}'` = yes; then
7306 cat >>confdefs.h
<<_ACEOF
7307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7313 echo "$as_me:$LINENO: checking for working mmap" >&5
7314 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7315 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7316 echo $ECHO_N "(cached) $ECHO_C" >&6
7318 if test "$cross_compiling" = yes; then
7319 ac_cv_func_mmap_fixed_mapped
=no
7321 cat >conftest.
$ac_ext <<_ACEOF
7322 #line $LINENO "configure"
7325 cat confdefs.h
>>conftest.
$ac_ext
7326 cat >>conftest.
$ac_ext <<_ACEOF
7327 /* end confdefs.h. */
7328 $ac_includes_default
7329 /* malloc might have been renamed as rpl_malloc. */
7332 /* Thanks to Mike Haertel and Jim Avera for this test.
7333 Here is a matrix of mmap possibilities:
7334 mmap private not fixed
7335 mmap private fixed at somewhere currently unmapped
7336 mmap private fixed at somewhere already mapped
7337 mmap shared not fixed
7338 mmap shared fixed at somewhere currently unmapped
7339 mmap shared fixed at somewhere already mapped
7340 For private mappings, we should verify that changes cannot be read()
7341 back from the file, nor mmap's back from the file at a different
7342 address. (There have been systems where private was not correctly
7343 implemented like the infamous i386 svr4.0, and systems where the
7344 VM page cache was not coherent with the file system buffer cache
7345 like early versions of FreeBSD and possibly contemporary NetBSD.)
7346 For shared mappings, we should conversely verify that changes get
7347 propagated back to all the places they're supposed to be.
7349 Grep wants private fixed already mapped.
7350 The main things grep needs to know about mmap are:
7351 * does it exist and is it safe to write into the mmap'd area
7352 * how to use it (BSD variants) */
7355 #include <sys/mman.h>
7357 #if !STDC_HEADERS && !HAVE_STDLIB_H
7361 /* This mess was copied from the GNU getpagesize.h. */
7362 #if !HAVE_GETPAGESIZE
7363 /* Assume that all systems that can run configure have sys/param.h. */
7364 # if !HAVE_SYS_PARAM_H
7365 # define HAVE_SYS_PARAM_H 1
7368 # ifdef _SC_PAGESIZE
7369 # define getpagesize() sysconf(_SC_PAGESIZE)
7370 # else /* no _SC_PAGESIZE */
7371 # if HAVE_SYS_PARAM_H
7372 # include <sys/param.h>
7373 # ifdef EXEC_PAGESIZE
7374 # define getpagesize() EXEC_PAGESIZE
7375 # else /* no EXEC_PAGESIZE */
7377 # define getpagesize() NBPG * CLSIZE
7380 # endif /* no CLSIZE */
7381 # else /* no NBPG */
7383 # define getpagesize() NBPC
7384 # else /* no NBPC */
7386 # define getpagesize() PAGESIZE
7387 # endif /* PAGESIZE */
7388 # endif /* no NBPC */
7389 # endif /* no NBPG */
7390 # endif /* no EXEC_PAGESIZE */
7391 # else /* no HAVE_SYS_PARAM_H */
7392 # define getpagesize() 8192 /* punt totally */
7393 # endif /* no HAVE_SYS_PARAM_H */
7394 # endif /* no _SC_PAGESIZE */
7396 #endif /* no HAVE_GETPAGESIZE */
7401 char *data, *data2, *data3;
7405 pagesize = getpagesize ();
7407 /* First, make a file with some known garbage in it. */
7408 data = (char *) malloc (pagesize);
7411 for (i = 0; i < pagesize; ++i)
7412 *(data + i) = rand ();
7414 fd = creat ("conftest.mmap", 0600);
7417 if (write (fd, data, pagesize) != pagesize)
7421 /* Next, try to mmap the file at a fixed address which already has
7422 something else allocated at it. If we can, also make sure that
7423 we see the same garbage. */
7424 fd = open ("conftest.mmap", O_RDWR);
7427 data2 = (char *) malloc (2 * pagesize);
7430 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7431 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7432 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7434 for (i = 0; i < pagesize; ++i)
7435 if (*(data + i) != *(data2 + i))
7438 /* Finally, make sure that changes to the mapped area do not
7439 percolate back to the file as seen by read(). (This is a bug on
7440 some variants of i386 svr4.0.) */
7441 for (i = 0; i < pagesize; ++i)
7442 *(data2 + i) = *(data2 + i) + 1;
7443 data3 = (char *) malloc (pagesize);
7446 if (read (fd, data3, pagesize) != pagesize)
7448 for (i = 0; i < pagesize; ++i)
7449 if (*(data + i) != *(data3 + i))
7455 rm -f conftest
$ac_exeext
7456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7457 (eval $ac_link) 2>&5
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); }; }; then
7466 ac_cv_func_mmap_fixed_mapped
=yes
7468 echo "$as_me: program exited with status $ac_status" >&5
7469 echo "$as_me: failed program was:" >&5
7470 sed 's/^/| /' conftest.
$ac_ext >&5
7473 ac_cv_func_mmap_fixed_mapped
=no
7475 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7478 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7479 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7480 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7482 cat >>confdefs.h
<<\_ACEOF
7489 if test $use_mmap_for_buffers = yes; then
7493 LIBS
="$libsrc_libs $LIBS"
7496 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7497 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7498 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7501 ac_check_lib_save_LIBS
=$LIBS
7503 cat >conftest.
$ac_ext <<_ACEOF
7504 #line $LINENO "configure"
7507 cat confdefs.h
>>conftest.
$ac_ext
7508 cat >>conftest.
$ac_ext <<_ACEOF
7509 /* end confdefs.h. */
7511 /* Override any gcc2 internal prototype to avoid an error. */
7515 /* We use char because int might match the return type of a gcc2
7516 builtin and then its argument prototype would still apply. */
7526 rm -f conftest.
$ac_objext conftest
$ac_exeext
7527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7528 (eval $ac_link) 2>&5
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); } &&
7532 { ac_try
='test -s conftest$ac_exeext'
7533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537 (exit $ac_status); }; }; then
7538 ac_cv_lib_dnet_dnet_ntoa
=yes
7540 echo "$as_me: failed program was:" >&5
7541 sed 's/^/| /' conftest.
$ac_ext >&5
7543 ac_cv_lib_dnet_dnet_ntoa
=no
7545 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7546 LIBS
=$ac_check_lib_save_LIBS
7548 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7549 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7550 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7551 cat >>confdefs.h
<<_ACEOF
7552 #define HAVE_LIBDNET 1
7560 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7561 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
7562 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7563 echo $ECHO_N "(cached) $ECHO_C" >&6
7565 ac_check_lib_save_LIBS
=$LIBS
7567 cat >conftest.
$ac_ext <<_ACEOF
7568 #line $LINENO "configure"
7571 cat confdefs.h
>>conftest.
$ac_ext
7572 cat >>conftest.
$ac_ext <<_ACEOF
7573 /* end confdefs.h. */
7584 rm -f conftest.
$ac_objext conftest
$ac_exeext
7585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7586 (eval $ac_link) 2>&5
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); } &&
7590 { ac_try
='test -s conftest$ac_exeext'
7591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); }; }; then
7596 ac_cv_lib_Xbsd_main
=yes
7598 echo "$as_me: failed program was:" >&5
7599 sed 's/^/| /' conftest.
$ac_ext >&5
7601 ac_cv_lib_Xbsd_main
=no
7603 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7604 LIBS
=$ac_check_lib_save_LIBS
7606 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7607 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7608 if test $ac_cv_lib_Xbsd_main = yes; then
7609 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
7614 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7615 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7616 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
7619 ac_check_lib_save_LIBS
=$LIBS
7620 LIBS
="-lpthreads $LIBS"
7621 cat >conftest.
$ac_ext <<_ACEOF
7622 #line $LINENO "configure"
7625 cat confdefs.h
>>conftest.
$ac_ext
7626 cat >>conftest.
$ac_ext <<_ACEOF
7627 /* end confdefs.h. */
7629 /* Override any gcc2 internal prototype to avoid an error. */
7633 /* We use char because int might match the return type of a gcc2
7634 builtin and then its argument prototype would still apply. */
7644 rm -f conftest.
$ac_objext conftest
$ac_exeext
7645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7646 (eval $ac_link) 2>&5
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); } &&
7650 { ac_try
='test -s conftest$ac_exeext'
7651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); }; }; then
7656 ac_cv_lib_pthreads_cma_open
=yes
7658 echo "$as_me: failed program was:" >&5
7659 sed 's/^/| /' conftest.
$ac_ext >&5
7661 ac_cv_lib_pthreads_cma_open
=no
7663 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7664 LIBS
=$ac_check_lib_save_LIBS
7666 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7667 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7668 if test $ac_cv_lib_pthreads_cma_open = yes; then
7669 cat >>confdefs.h
<<_ACEOF
7670 #define HAVE_LIBPTHREADS 1
7673 LIBS
="-lpthreads $LIBS"
7678 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7679 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7680 if test -d /usr
/X386
/include
; then
7682 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7686 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7687 echo "${ECHO_T}$HAVE_XFREE386" >&6
7689 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7690 # used for the tests that follow. We set them back to REAL_CFLAGS and
7691 # REAL_CPPFLAGS later on.
7693 REAL_CPPFLAGS
="$CPPFLAGS"
7695 if test "${HAVE_X11}" = "yes"; then
7696 DEFS
="$C_SWITCH_X_SITE $DEFS"
7697 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
7699 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
7700 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
7702 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7703 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7704 # but it's more convenient here to set LD_RUN_PATH
7705 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7706 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
7707 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7711 if test "${opsys}" = "gnu-linux"; then
7712 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7713 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7714 cat >conftest.
$ac_ext <<_ACEOF
7715 #line $LINENO "configure"
7718 cat confdefs.h
>>conftest.
$ac_ext
7719 cat >>conftest.
$ac_ext <<_ACEOF
7720 /* end confdefs.h. */
7725 XOpenDisplay ("foo");
7730 rm -f conftest.
$ac_objext conftest
$ac_exeext
7731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7732 (eval $ac_link) 2>&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); } &&
7736 { ac_try
='test -s conftest$ac_exeext'
7737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; }; then
7742 xlinux_first_failure
=no
7744 echo "$as_me: failed program was:" >&5
7745 sed 's/^/| /' conftest.
$ac_ext >&5
7747 xlinux_first_failure
=yes
7749 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7750 if test "${xlinux_first_failure}" = "yes"; then
7751 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
7752 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
7753 OLD_CPPFLAGS
="$CPPFLAGS"
7755 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
7756 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
7757 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
7758 LIBS
="$LIBS -b i486-linuxaout"
7759 cat >conftest.
$ac_ext <<_ACEOF
7760 #line $LINENO "configure"
7763 cat confdefs.h
>>conftest.
$ac_ext
7764 cat >>conftest.
$ac_ext <<_ACEOF
7765 /* end confdefs.h. */
7770 XOpenDisplay ("foo");
7775 rm -f conftest.
$ac_objext conftest
$ac_exeext
7776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7777 (eval $ac_link) 2>&5
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); } &&
7781 { ac_try
='test -s conftest$ac_exeext'
7782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); }; }; then
7787 xlinux_second_failure
=no
7789 echo "$as_me: failed program was:" >&5
7790 sed 's/^/| /' conftest.
$ac_ext >&5
7792 xlinux_second_failure
=yes
7794 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7795 if test "${xlinux_second_failure}" = "yes"; then
7796 # If we get the same failure with -b, there is no use adding -b.
7797 # So take it out. This plays safe.
7798 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
7799 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
7800 CPPFLAGS
="$OLD_CPPFLAGS"
7802 echo "$as_me:$LINENO: result: no" >&5
7803 echo "${ECHO_T}no" >&6
7805 echo "$as_me:$LINENO: result: yes" >&5
7806 echo "${ECHO_T}yes" >&6
7809 echo "$as_me:$LINENO: result: no" >&5
7810 echo "${ECHO_T}no" >&6
7814 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7815 # header files included from there.
7816 echo "$as_me:$LINENO: checking for Xkb" >&5
7817 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7818 cat >conftest.
$ac_ext <<_ACEOF
7819 #line $LINENO "configure"
7822 cat confdefs.h
>>conftest.
$ac_ext
7823 cat >>conftest.
$ac_ext <<_ACEOF
7824 /* end confdefs.h. */
7825 #include <X11/Xlib.h>
7826 #include <X11/XKBlib.h>
7830 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7835 rm -f conftest.
$ac_objext conftest
$ac_exeext
7836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7837 (eval $ac_link) 2>&5
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); } &&
7841 { ac_try
='test -s conftest$ac_exeext'
7842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); }; }; then
7849 echo "$as_me: failed program was:" >&5
7850 sed 's/^/| /' conftest.
$ac_ext >&5
7854 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7855 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7856 echo "${ECHO_T}$emacs_xkb" >&6
7857 if test $emacs_xkb = yes; then
7859 cat >>confdefs.h
<<\_ACEOF
7860 #define HAVE_XKBGETKEYBOARD 1
7869 for ac_func
in XrmSetDatabase XScreenResourceString \
7870 XScreenNumberOfScreen XSetWMProtocols
7872 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7873 echo "$as_me:$LINENO: checking for $ac_func" >&5
7874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7875 if eval "test \"\${$as_ac_var+set}\" = set"; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
7878 cat >conftest.
$ac_ext <<_ACEOF
7879 #line $LINENO "configure"
7882 cat confdefs.h
>>conftest.
$ac_ext
7883 cat >>conftest.
$ac_ext <<_ACEOF
7884 /* end confdefs.h. */
7885 /* System header to define __stub macros and hopefully few prototypes,
7886 which can conflict with char $ac_func (); below.
7887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7888 <limits.h> exists even on freestanding compilers. */
7890 # include <limits.h>
7892 # include <assert.h>
7894 /* Override any gcc2 internal prototype to avoid an error. */
7899 /* We use char because int might match the return type of a gcc2
7900 builtin and then its argument prototype would still apply. */
7902 /* The GNU C library defines this for functions which it implements
7903 to always fail with ENOSYS. Some functions are actually named
7904 something starting with __ and the normal name is an alias. */
7905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7908 char (*f) () = $ac_func;
7917 return f != $ac_func;
7922 rm -f conftest.
$ac_objext conftest
$ac_exeext
7923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7924 (eval $ac_link) 2>&5
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); } &&
7928 { ac_try
='test -s conftest$ac_exeext'
7929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); }; }; then
7934 eval "$as_ac_var=yes"
7936 echo "$as_me: failed program was:" >&5
7937 sed 's/^/| /' conftest.
$ac_ext >&5
7939 eval "$as_ac_var=no"
7941 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7944 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7945 if test `eval echo '${'$as_ac_var'}'` = yes; then
7946 cat >>confdefs.h
<<_ACEOF
7947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7955 if test "${window_system}" = "x11"; then
7956 echo "$as_me:$LINENO: checking X11 version 6" >&5
7957 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
7958 if test "${emacs_cv_x11_version_6+set}" = set; then
7959 echo $ECHO_N "(cached) $ECHO_C" >&6
7961 cat >conftest.
$ac_ext <<_ACEOF
7962 #line $LINENO "configure"
7965 cat confdefs.h
>>conftest.
$ac_ext
7966 cat >>conftest.
$ac_ext <<_ACEOF
7967 /* end confdefs.h. */
7968 #include <X11/Xlib.h>
7972 #if XlibSpecificationRelease < 6
7980 rm -f conftest.
$ac_objext conftest
$ac_exeext
7981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7982 (eval $ac_link) 2>&5
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); } &&
7986 { ac_try
='test -s conftest$ac_exeext'
7987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); }; }; then
7992 emacs_cv_x11_version_6
=yes
7994 echo "$as_me: failed program was:" >&5
7995 sed 's/^/| /' conftest.
$ac_ext >&5
7997 emacs_cv_x11_version_6
=no
7999 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8002 if test $emacs_cv_x11_version_6 = yes; then
8003 echo "$as_me:$LINENO: result: 6 or newer" >&5
8004 echo "${ECHO_T}6 or newer" >&6
8006 cat >>confdefs.h
<<\_ACEOF
8007 #define HAVE_X11R6 1
8011 echo "$as_me:$LINENO: result: before 6" >&5
8012 echo "${ECHO_T}before 6" >&6
8016 if test "${window_system}" = "x11"; then
8017 echo "$as_me:$LINENO: checking X11 version 5" >&5
8018 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
8019 if test "${emacs_cv_x11_version_5+set}" = set; then
8020 echo $ECHO_N "(cached) $ECHO_C" >&6
8022 cat >conftest.
$ac_ext <<_ACEOF
8023 #line $LINENO "configure"
8026 cat confdefs.h
>>conftest.
$ac_ext
8027 cat >>conftest.
$ac_ext <<_ACEOF
8028 /* end confdefs.h. */
8029 #include <X11/Xlib.h>
8033 #if XlibSpecificationRelease < 5
8041 rm -f conftest.
$ac_objext conftest
$ac_exeext
8042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8043 (eval $ac_link) 2>&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); } &&
8047 { ac_try
='test -s conftest$ac_exeext'
8048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); }; }; then
8053 emacs_cv_x11_version_5
=yes
8055 echo "$as_me: failed program was:" >&5
8056 sed 's/^/| /' conftest.
$ac_ext >&5
8058 emacs_cv_x11_version_5
=no
8060 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8063 if test $emacs_cv_x11_version_5 = yes; then
8064 echo "$as_me:$LINENO: result: 5 or newer" >&5
8065 echo "${ECHO_T}5 or newer" >&6
8068 cat >>confdefs.h
<<\_ACEOF
8069 #define HAVE_X11R5 1
8074 echo "$as_me:$LINENO: result: before 5" >&5
8075 echo "${ECHO_T}before 5" >&6
8082 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
8083 if test "$USE_X_TOOLKIT" != "none"; then
8084 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
8085 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
8086 { (exit 1); exit 1; }; };
8090 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8092 if test "X${with_pkg_config_prog}" != X
; then
8093 PKG_CONFIG
="${with_pkg_config_prog}"
8098 if test -z "$PKG_CONFIG"; then
8099 # Extract the first word of "pkg-config", so it can be a program name with args.
8100 set dummy pkg-config
; ac_word
=$2
8101 echo "$as_me:$LINENO: checking for $ac_word" >&5
8102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8103 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8104 echo $ECHO_N "(cached) $ECHO_C" >&6
8108 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8111 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8115 test -z "$as_dir" && as_dir
=.
8116 for ac_exec_ext
in '' $ac_executable_extensions; do
8117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8118 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8125 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8129 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8131 if test -n "$PKG_CONFIG"; then
8132 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8133 echo "${ECHO_T}$PKG_CONFIG" >&6
8135 echo "$as_me:$LINENO: result: no" >&5
8136 echo "${ECHO_T}no" >&6
8141 if test "$PKG_CONFIG" = "no" ; then
8142 echo "*** The pkg-config script could not be found. Make sure it is"
8143 echo "*** in your path, or give the full path to pkg-config with"
8144 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
8145 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8147 PKG_CONFIG_MIN_VERSION
=0.9.0
8148 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8149 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
8150 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
8152 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
8153 echo "$as_me:$LINENO: result: yes" >&5
8154 echo "${ECHO_T}yes" >&6
8157 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
8158 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
8159 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
8160 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
8161 echo "${ECHO_T}$GTK_CFLAGS" >&6
8163 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
8164 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
8165 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
8166 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
8167 echo "${ECHO_T}$GTK_LIBS" >&6
8171 ## If we have a custom action on failure, don't print errors, but
8172 ## do set a variable so people can do so.
8173 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8174 echo $GTK_PKG_ERRORS
8180 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8181 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8185 if test $succeeded = yes; then
8188 { { 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
8189 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;}
8190 { (exit 1); exit 1; }; }
8195 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
8198 cat >>confdefs.h
<<\_ACEOF
8204 with_toolkit_scroll_bars
=yes
8207 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
8208 if test x
"${HAVE_X11R5}" = xyes
; then
8209 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
8210 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
8211 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
8212 echo $ECHO_N "(cached) $ECHO_C" >&6
8214 cat >conftest.
$ac_ext <<_ACEOF
8215 #line $LINENO "configure"
8218 cat confdefs.h
>>conftest.
$ac_ext
8219 cat >>conftest.
$ac_ext <<_ACEOF
8220 /* end confdefs.h. */
8222 #include <X11/Intrinsic.h>
8223 #include <X11/Xaw/Simple.h>
8232 rm -f conftest.
$ac_objext conftest
$ac_exeext
8233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8234 (eval $ac_link) 2>&5
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); } &&
8238 { ac_try
='test -s conftest$ac_exeext'
8239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); }; }; then
8244 emacs_cv_x11_version_5_with_xaw
=yes
8246 echo "$as_me: failed program was:" >&5
8247 sed 's/^/| /' conftest.
$ac_ext >&5
8249 emacs_cv_x11_version_5_with_xaw
=no
8251 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8254 if test $emacs_cv_x11_version_5_with_xaw = yes; then
8255 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
8256 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
8259 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
8260 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
8268 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
8270 if test "${USE_X_TOOLKIT}" != "none"; then
8271 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8272 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
8273 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8274 echo $ECHO_N "(cached) $ECHO_C" >&6
8276 cat >conftest.
$ac_ext <<_ACEOF
8277 #line $LINENO "configure"
8280 cat confdefs.h
>>conftest.
$ac_ext
8281 cat >>conftest.
$ac_ext <<_ACEOF
8282 /* end confdefs.h. */
8283 #include <X11/Intrinsic.h>
8287 #if XtSpecificationRelease < 6
8295 rm -f conftest.
$ac_objext conftest
$ac_exeext
8296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8297 (eval $ac_link) 2>&5
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); } &&
8301 { ac_try
='test -s conftest$ac_exeext'
8302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); }; }; then
8307 emacs_cv_x11_toolkit_version_6
=yes
8309 echo "$as_me: failed program was:" >&5
8310 sed 's/^/| /' conftest.
$ac_ext >&5
8312 emacs_cv_x11_toolkit_version_6
=no
8314 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8317 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
8318 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8319 echo "$as_me:$LINENO: result: 6 or newer" >&5
8320 echo "${ECHO_T}6 or newer" >&6
8322 cat >>confdefs.h
<<\_ACEOF
8323 #define HAVE_X11XTR6 1
8327 echo "$as_me:$LINENO: result: before 6" >&5
8328 echo "${ECHO_T}before 6" >&6
8332 if test x
$HAVE_X11XTR6 = xyes
; then
8333 LIBS
="-lXt -lSM -lICE $LIBS"
8338 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
8339 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
8340 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
8343 ac_check_lib_save_LIBS
=$LIBS
8345 cat >conftest.
$ac_ext <<_ACEOF
8346 #line $LINENO "configure"
8349 cat confdefs.h
>>conftest.
$ac_ext
8350 cat >>conftest.
$ac_ext <<_ACEOF
8351 /* end confdefs.h. */
8353 /* Override any gcc2 internal prototype to avoid an error. */
8357 /* We use char because int might match the return type of a gcc2
8358 builtin and then its argument prototype would still apply. */
8359 char XmuConvertStandardSelection ();
8363 XmuConvertStandardSelection ();
8368 rm -f conftest.
$ac_objext conftest
$ac_exeext
8369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8370 (eval $ac_link) 2>&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } &&
8374 { ac_try
='test -s conftest$ac_exeext'
8375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); }; }; then
8380 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
8382 echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.
$ac_ext >&5
8385 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
8387 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8388 LIBS
=$ac_check_lib_save_LIBS
8390 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8391 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
8392 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
8393 cat >>confdefs.h
<<_ACEOF
8394 #define HAVE_LIBXMU 1
8401 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
8404 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8405 if test "${HAVE_X11}" = "yes"; then
8406 if test "${USE_X_TOOLKIT}" != "none"; then
8408 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8409 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8410 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8413 ac_check_lib_save_LIBS
=$LIBS
8415 cat >conftest.
$ac_ext <<_ACEOF
8416 #line $LINENO "configure"
8419 cat confdefs.h
>>conftest.
$ac_ext
8420 cat >>conftest.
$ac_ext <<_ACEOF
8421 /* end confdefs.h. */
8423 /* Override any gcc2 internal prototype to avoid an error. */
8427 /* We use char because int might match the return type of a gcc2
8428 builtin and then its argument prototype would still apply. */
8429 char XShapeQueryExtension ();
8433 XShapeQueryExtension ();
8438 rm -f conftest.
$ac_objext conftest
$ac_exeext
8439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8440 (eval $ac_link) 2>&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); } &&
8444 { ac_try
='test -s conftest$ac_exeext'
8445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); }; }; then
8450 ac_cv_lib_Xext_XShapeQueryExtension
=yes
8452 echo "$as_me: failed program was:" >&5
8453 sed 's/^/| /' conftest.
$ac_ext >&5
8455 ac_cv_lib_Xext_XShapeQueryExtension
=no
8457 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8458 LIBS
=$ac_check_lib_save_LIBS
8460 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8461 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8462 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8463 cat >>confdefs.h
<<_ACEOF
8464 #define HAVE_LIBXEXT 1
8474 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8475 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
8476 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
8477 if test "${emacs_cv_lesstif+set}" = set; then
8478 echo $ECHO_N "(cached) $ECHO_C" >&6
8480 # We put this in CFLAGS temporarily to precede other -I options
8481 # that might be in CFLAGS temporarily.
8482 # We put this in CPPFLAGS where it precedes the other -I options.
8483 OLD_CPPFLAGS
=$CPPFLAGS
8485 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8486 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8487 cat >conftest.
$ac_ext <<_ACEOF
8488 #line $LINENO "configure"
8491 cat confdefs.h
>>conftest.
$ac_ext
8492 cat >>conftest.
$ac_ext <<_ACEOF
8493 /* end confdefs.h. */
8494 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8503 rm -f conftest.
$ac_objext
8504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8505 (eval $ac_compile) 2>&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); } &&
8509 { ac_try
='test -s conftest.$ac_objext'
8510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); }; }; then
8515 emacs_cv_lesstif
=yes
8517 echo "$as_me: failed program was:" >&5
8518 sed 's/^/| /' conftest.
$ac_ext >&5
8522 rm -f conftest.
$ac_objext conftest.
$ac_ext
8524 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
8525 echo "${ECHO_T}$emacs_cv_lesstif" >&6
8526 if test $emacs_cv_lesstif = yes; then
8527 # Make sure this -I option remains in CPPFLAGS after it is set
8528 # back to REAL_CPPFLAGS.
8529 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8530 # have those other -I options anyway. Ultimately, having this
8531 # directory ultimately in CPPFLAGS will be enough.
8532 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8533 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
8536 CPPFLAGS
=$OLD_CPPFLAGS
8538 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
8539 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
8540 if test "${emacs_cv_motif_version_2_1+set}" = set; then
8541 echo $ECHO_N "(cached) $ECHO_C" >&6
8543 cat >conftest.
$ac_ext <<_ACEOF
8544 #line $LINENO "configure"
8547 cat confdefs.h
>>conftest.
$ac_ext
8548 cat >>conftest.
$ac_ext <<_ACEOF
8549 /* end confdefs.h. */
8554 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8557 Motif version prior to 2.1.
8563 rm -f conftest.
$ac_objext
8564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8565 (eval $ac_compile) 2>&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); } &&
8569 { ac_try
='test -s conftest.$ac_objext'
8570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); }; }; then
8575 emacs_cv_motif_version_2_1
=yes
8577 echo "$as_me: failed program was:" >&5
8578 sed 's/^/| /' conftest.
$ac_ext >&5
8580 emacs_cv_motif_version_2_1
=no
8582 rm -f conftest.
$ac_objext conftest.
$ac_ext
8584 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
8585 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
8586 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
8587 if test $emacs_cv_motif_version_2_1 = yes; then
8590 cat >>confdefs.h
<<\_ACEOF
8591 #define HAVE_MOTIF_2_1 1
8594 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
8595 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
8596 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
8597 echo $ECHO_N "(cached) $ECHO_C" >&6
8599 ac_check_lib_save_LIBS
=$LIBS
8601 cat >conftest.
$ac_ext <<_ACEOF
8602 #line $LINENO "configure"
8605 cat confdefs.h
>>conftest.
$ac_ext
8606 cat >>conftest.
$ac_ext <<_ACEOF
8607 /* end confdefs.h. */
8609 /* Override any gcc2 internal prototype to avoid an error. */
8613 /* We use char because int might match the return type of a gcc2
8614 builtin and then its argument prototype would still apply. */
8615 char XpCreateContext ();
8624 rm -f conftest.
$ac_objext conftest
$ac_exeext
8625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8626 (eval $ac_link) 2>&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); } &&
8630 { ac_try
='test -s conftest$ac_exeext'
8631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); }; }; then
8636 ac_cv_lib_Xp_XpCreateContext
=yes
8638 echo "$as_me: failed program was:" >&5
8639 sed 's/^/| /' conftest.
$ac_ext >&5
8641 ac_cv_lib_Xp_XpCreateContext
=no
8643 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8644 LIBS
=$ac_check_lib_save_LIBS
8646 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8647 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
8648 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
8652 if test ${HAVE_LIBXP} = yes; then
8654 cat >>confdefs.h
<<\_ACEOF
8655 #define HAVE_LIBXP 1
8662 ### Is -lXaw3d available?
8664 if test "${HAVE_X11}" = "yes"; then
8665 if test "${USE_X_TOOLKIT}" != "none"; then
8666 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
8667 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
8668 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8669 echo $ECHO_N "(cached) $ECHO_C" >&6
8671 cat >conftest.
$ac_ext <<_ACEOF
8672 #line $LINENO "configure"
8675 cat confdefs.h
>>conftest.
$ac_ext
8676 cat >>conftest.
$ac_ext <<_ACEOF
8677 /* end confdefs.h. */
8678 #include <X11/Xaw3d/Scrollbar.h>
8680 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8681 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8683 grep -v '^ *+' conftest.er1
>conftest.err
8685 cat conftest.err
>&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); } >/dev
/null
; then
8688 if test -s conftest.err
; then
8689 ac_cpp_err
=$ac_c_preproc_warn_flag
8696 if test -z "$ac_cpp_err"; then
8697 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
8699 echo "$as_me: failed program was:" >&5
8700 sed 's/^/| /' conftest.
$ac_ext >&5
8702 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
8704 rm -f conftest.err conftest.
$ac_ext
8706 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8707 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8708 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8709 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8710 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8711 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8712 echo $ECHO_N "(cached) $ECHO_C" >&6
8714 ac_check_lib_save_LIBS
=$LIBS
8715 LIBS
="-lXaw3d $LIBS"
8716 cat >conftest.
$ac_ext <<_ACEOF
8717 #line $LINENO "configure"
8720 cat confdefs.h
>>conftest.
$ac_ext
8721 cat >>conftest.
$ac_ext <<_ACEOF
8722 /* end confdefs.h. */
8724 /* Override any gcc2 internal prototype to avoid an error. */
8728 /* We use char because int might match the return type of a gcc2
8729 builtin and then its argument prototype would still apply. */
8730 char XawScrollbarSetThumb ();
8734 XawScrollbarSetThumb ();
8739 rm -f conftest.
$ac_objext conftest
$ac_exeext
8740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8741 (eval $ac_link) 2>&5
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); } &&
8745 { ac_try
='test -s conftest$ac_exeext'
8746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); }; }; then
8751 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
8753 echo "$as_me: failed program was:" >&5
8754 sed 's/^/| /' conftest.
$ac_ext >&5
8756 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
8758 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8759 LIBS
=$ac_check_lib_save_LIBS
8761 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8762 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8763 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8770 if test "${HAVE_XAW3D}" = "yes"; then
8772 cat >>confdefs.h
<<\_ACEOF
8773 #define HAVE_XAW3D 1
8782 USE_TOOLKIT_SCROLL_BARS
=no
8783 if test "${with_toolkit_scroll_bars}" != "no"; then
8784 if test "${USE_X_TOOLKIT}" != "none"; then
8785 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8786 cat >>confdefs.h
<<\_ACEOF
8787 #define USE_TOOLKIT_SCROLL_BARS 1
8791 USE_TOOLKIT_SCROLL_BARS
=yes
8792 elif test "${HAVE_XAW3D}" = "yes"; then
8793 cat >>confdefs.h
<<\_ACEOF
8794 #define USE_TOOLKIT_SCROLL_BARS 1
8797 USE_TOOLKIT_SCROLL_BARS
=yes
8799 elif test "${HAVE_GTK}" = "yes"; then
8800 cat >>confdefs.h
<<\_ACEOF
8801 #define USE_TOOLKIT_SCROLL_BARS 1
8804 USE_TOOLKIT_SCROLL_BARS
=yes
8809 if test "${with_xim}" != "no"; then
8811 cat >>confdefs.h
<<\_ACEOF
8817 ### Use -lXpm if available, unless `--with-xpm=no'.
8819 if test "${HAVE_X11}" = "yes"; then
8820 if test "${with_xpm}" != "no"; then
8821 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8822 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8823 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8824 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8825 echo $ECHO_N "(cached) $ECHO_C" >&6
8827 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8828 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8830 # Is the header compilable?
8831 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
8832 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
8833 cat >conftest.
$ac_ext <<_ACEOF
8834 #line $LINENO "configure"
8837 cat confdefs.h
>>conftest.
$ac_ext
8838 cat >>conftest.
$ac_ext <<_ACEOF
8839 /* end confdefs.h. */
8840 $ac_includes_default
8841 #include <X11/xpm.h>
8843 rm -f conftest.
$ac_objext
8844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8845 (eval $ac_compile) 2>&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); } &&
8849 { ac_try
='test -s conftest.$ac_objext'
8850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); }; }; then
8855 ac_header_compiler
=yes
8857 echo "$as_me: failed program was:" >&5
8858 sed 's/^/| /' conftest.
$ac_ext >&5
8860 ac_header_compiler
=no
8862 rm -f conftest.
$ac_objext conftest.
$ac_ext
8863 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8864 echo "${ECHO_T}$ac_header_compiler" >&6
8866 # Is the header present?
8867 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
8868 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
8869 cat >conftest.
$ac_ext <<_ACEOF
8870 #line $LINENO "configure"
8873 cat confdefs.h
>>conftest.
$ac_ext
8874 cat >>conftest.
$ac_ext <<_ACEOF
8875 /* end confdefs.h. */
8876 #include <X11/xpm.h>
8878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8879 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8881 grep -v '^ *+' conftest.er1
>conftest.err
8883 cat conftest.err
>&5
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); } >/dev
/null
; then
8886 if test -s conftest.err
; then
8887 ac_cpp_err
=$ac_c_preproc_warn_flag
8894 if test -z "$ac_cpp_err"; then
8895 ac_header_preproc
=yes
8897 echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.
$ac_ext >&5
8900 ac_header_preproc
=no
8902 rm -f conftest.err conftest.
$ac_ext
8903 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8904 echo "${ECHO_T}$ac_header_preproc" >&6
8906 # So? What about this header?
8907 case $ac_header_compiler:$ac_header_preproc in
8909 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8910 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8911 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8912 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
8915 ## ------------------------------------ ##
8916 ## Report this to bug-autoconf@gnu.org. ##
8917 ## ------------------------------------ ##
8920 sed "s/^/$as_me: WARNING: /" >&2
8923 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
8924 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
8925 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
8926 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
8927 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8928 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
8931 ## ------------------------------------ ##
8932 ## Report this to bug-autoconf@gnu.org. ##
8933 ## ------------------------------------ ##
8936 sed "s/^/$as_me: WARNING: /" >&2
8939 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8940 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8941 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8942 echo $ECHO_N "(cached) $ECHO_C" >&6
8944 ac_cv_header_X11_xpm_h
=$ac_header_preproc
8946 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8947 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8950 if test $ac_cv_header_X11_xpm_h = yes; then
8951 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
8952 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
8953 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
8954 echo $ECHO_N "(cached) $ECHO_C" >&6
8956 ac_check_lib_save_LIBS
=$LIBS
8957 LIBS
="-lXpm -lX11 $LIBS"
8958 cat >conftest.
$ac_ext <<_ACEOF
8959 #line $LINENO "configure"
8962 cat confdefs.h
>>conftest.
$ac_ext
8963 cat >>conftest.
$ac_ext <<_ACEOF
8964 /* end confdefs.h. */
8966 /* Override any gcc2 internal prototype to avoid an error. */
8970 /* We use char because int might match the return type of a gcc2
8971 builtin and then its argument prototype would still apply. */
8972 char XpmReadFileToPixmap ();
8976 XpmReadFileToPixmap ();
8981 rm -f conftest.
$ac_objext conftest
$ac_exeext
8982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8983 (eval $ac_link) 2>&5
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); } &&
8987 { ac_try
='test -s conftest$ac_exeext'
8988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); }; }; then
8993 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
8995 echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.
$ac_ext >&5
8998 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
9000 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9001 LIBS
=$ac_check_lib_save_LIBS
9003 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9004 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
9005 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9012 if test "${HAVE_XPM}" = "yes"; then
9013 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9014 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
9015 cat >conftest.
$ac_ext <<_ACEOF
9016 #line $LINENO "configure"
9019 cat confdefs.h
>>conftest.
$ac_ext
9020 cat >>conftest.
$ac_ext <<_ACEOF
9021 /* end confdefs.h. */
9022 #include "X11/xpm.h"
9023 #ifndef XpmReturnAllocPixels
9024 no_return_alloc_pixels
9028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9029 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
9037 if test "${HAVE_XPM}" = "yes"; then
9038 echo "$as_me:$LINENO: result: yes" >&5
9039 echo "${ECHO_T}yes" >&6
9041 echo "$as_me:$LINENO: result: no" >&5
9042 echo "${ECHO_T}no" >&6
9047 if test "${HAVE_XPM}" = "yes"; then
9049 cat >>confdefs.h
<<\_ACEOF
9056 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9058 if test "${HAVE_X11}" = "yes"; then
9059 if test "${with_jpeg}" != "no"; then
9060 if test "${ac_cv_header_jerror_h+set}" = set; then
9061 echo "$as_me:$LINENO: checking for jerror.h" >&5
9062 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9063 if test "${ac_cv_header_jerror_h+set}" = set; then
9064 echo $ECHO_N "(cached) $ECHO_C" >&6
9066 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9067 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9069 # Is the header compilable?
9070 echo "$as_me:$LINENO: checking jerror.h usability" >&5
9071 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
9072 cat >conftest.
$ac_ext <<_ACEOF
9073 #line $LINENO "configure"
9076 cat confdefs.h
>>conftest.
$ac_ext
9077 cat >>conftest.
$ac_ext <<_ACEOF
9078 /* end confdefs.h. */
9079 $ac_includes_default
9082 rm -f conftest.
$ac_objext
9083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9084 (eval $ac_compile) 2>&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); } &&
9088 { ac_try
='test -s conftest.$ac_objext'
9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; }; then
9094 ac_header_compiler
=yes
9096 echo "$as_me: failed program was:" >&5
9097 sed 's/^/| /' conftest.
$ac_ext >&5
9099 ac_header_compiler
=no
9101 rm -f conftest.
$ac_objext conftest.
$ac_ext
9102 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9103 echo "${ECHO_T}$ac_header_compiler" >&6
9105 # Is the header present?
9106 echo "$as_me:$LINENO: checking jerror.h presence" >&5
9107 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
9108 cat >conftest.
$ac_ext <<_ACEOF
9109 #line $LINENO "configure"
9112 cat confdefs.h
>>conftest.
$ac_ext
9113 cat >>conftest.
$ac_ext <<_ACEOF
9114 /* end confdefs.h. */
9117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9118 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9120 grep -v '^ *+' conftest.er1
>conftest.err
9122 cat conftest.err
>&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } >/dev
/null
; then
9125 if test -s conftest.err
; then
9126 ac_cpp_err
=$ac_c_preproc_warn_flag
9133 if test -z "$ac_cpp_err"; then
9134 ac_header_preproc
=yes
9136 echo "$as_me: failed program was:" >&5
9137 sed 's/^/| /' conftest.
$ac_ext >&5
9139 ac_header_preproc
=no
9141 rm -f conftest.err conftest.
$ac_ext
9142 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9143 echo "${ECHO_T}$ac_header_preproc" >&6
9145 # So? What about this header?
9146 case $ac_header_compiler:$ac_header_preproc in
9148 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
9149 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9150 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9151 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9154 ## ------------------------------------ ##
9155 ## Report this to bug-autoconf@gnu.org. ##
9156 ## ------------------------------------ ##
9159 sed "s/^/$as_me: WARNING: /" >&2
9162 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
9163 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
9164 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
9165 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
9166 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9167 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9170 ## ------------------------------------ ##
9171 ## Report this to bug-autoconf@gnu.org. ##
9172 ## ------------------------------------ ##
9175 sed "s/^/$as_me: WARNING: /" >&2
9178 echo "$as_me:$LINENO: checking for jerror.h" >&5
9179 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9180 if test "${ac_cv_header_jerror_h+set}" = set; then
9181 echo $ECHO_N "(cached) $ECHO_C" >&6
9183 ac_cv_header_jerror_h
=$ac_header_preproc
9185 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9186 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9189 if test $ac_cv_header_jerror_h = yes; then
9190 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9191 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
9192 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9193 echo $ECHO_N "(cached) $ECHO_C" >&6
9195 ac_check_lib_save_LIBS
=$LIBS
9197 cat >conftest.
$ac_ext <<_ACEOF
9198 #line $LINENO "configure"
9201 cat confdefs.h
>>conftest.
$ac_ext
9202 cat >>conftest.
$ac_ext <<_ACEOF
9203 /* end confdefs.h. */
9205 /* Override any gcc2 internal prototype to avoid an error. */
9209 /* We use char because int might match the return type of a gcc2
9210 builtin and then its argument prototype would still apply. */
9211 char jpeg_destroy_compress ();
9215 jpeg_destroy_compress ();
9220 rm -f conftest.
$ac_objext conftest
$ac_exeext
9221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9222 (eval $ac_link) 2>&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } &&
9226 { ac_try
='test -s conftest$ac_exeext'
9227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); }; }; then
9232 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
9234 echo "$as_me: failed program was:" >&5
9235 sed 's/^/| /' conftest.
$ac_ext >&5
9237 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
9239 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9240 LIBS
=$ac_check_lib_save_LIBS
9242 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9243 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
9244 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
9254 if test "${HAVE_JPEG}" = "yes"; then
9255 cat >>confdefs.h
<<\_ACEOF
9259 cat >conftest.
$ac_ext <<_ACEOF
9260 #line $LINENO "configure"
9263 cat confdefs.h
>>conftest.
$ac_ext
9264 cat >>conftest.
$ac_ext <<_ACEOF
9265 /* end confdefs.h. */
9266 #include <jpeglib.h>
9267 version=JPEG_LIB_VERSION
9270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9271 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
9272 cat >>confdefs.h
<<\_ACEOF
9277 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
9278 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9286 ### Use -lpng if available, unless `--with-png=no'.
9288 if test "${HAVE_X11}" = "yes"; then
9289 if test "${with_png}" != "no"; then
9290 if test "${ac_cv_header_png_h+set}" = set; then
9291 echo "$as_me:$LINENO: checking for png.h" >&5
9292 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9293 if test "${ac_cv_header_png_h+set}" = set; then
9294 echo $ECHO_N "(cached) $ECHO_C" >&6
9296 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9297 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9299 # Is the header compilable?
9300 echo "$as_me:$LINENO: checking png.h usability" >&5
9301 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
9302 cat >conftest.
$ac_ext <<_ACEOF
9303 #line $LINENO "configure"
9306 cat confdefs.h
>>conftest.
$ac_ext
9307 cat >>conftest.
$ac_ext <<_ACEOF
9308 /* end confdefs.h. */
9309 $ac_includes_default
9312 rm -f conftest.
$ac_objext
9313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9314 (eval $ac_compile) 2>&5
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); } &&
9318 { ac_try
='test -s conftest.$ac_objext'
9319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; }; then
9324 ac_header_compiler
=yes
9326 echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.
$ac_ext >&5
9329 ac_header_compiler
=no
9331 rm -f conftest.
$ac_objext conftest.
$ac_ext
9332 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9333 echo "${ECHO_T}$ac_header_compiler" >&6
9335 # Is the header present?
9336 echo "$as_me:$LINENO: checking png.h presence" >&5
9337 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
9338 cat >conftest.
$ac_ext <<_ACEOF
9339 #line $LINENO "configure"
9342 cat confdefs.h
>>conftest.
$ac_ext
9343 cat >>conftest.
$ac_ext <<_ACEOF
9344 /* end confdefs.h. */
9347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9348 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9350 grep -v '^ *+' conftest.er1
>conftest.err
9352 cat conftest.err
>&5
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); } >/dev
/null
; then
9355 if test -s conftest.err
; then
9356 ac_cpp_err
=$ac_c_preproc_warn_flag
9363 if test -z "$ac_cpp_err"; then
9364 ac_header_preproc
=yes
9366 echo "$as_me: failed program was:" >&5
9367 sed 's/^/| /' conftest.
$ac_ext >&5
9369 ac_header_preproc
=no
9371 rm -f conftest.err conftest.
$ac_ext
9372 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9373 echo "${ECHO_T}$ac_header_preproc" >&6
9375 # So? What about this header?
9376 case $ac_header_compiler:$ac_header_preproc in
9378 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
9379 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9380 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9381 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9384 ## ------------------------------------ ##
9385 ## Report this to bug-autoconf@gnu.org. ##
9386 ## ------------------------------------ ##
9389 sed "s/^/$as_me: WARNING: /" >&2
9392 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
9393 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
9394 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
9395 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
9396 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9397 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9400 ## ------------------------------------ ##
9401 ## Report this to bug-autoconf@gnu.org. ##
9402 ## ------------------------------------ ##
9405 sed "s/^/$as_me: WARNING: /" >&2
9408 echo "$as_me:$LINENO: checking for png.h" >&5
9409 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9410 if test "${ac_cv_header_png_h+set}" = set; then
9411 echo $ECHO_N "(cached) $ECHO_C" >&6
9413 ac_cv_header_png_h
=$ac_header_preproc
9415 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9416 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9419 if test $ac_cv_header_png_h = yes; then
9420 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
9421 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
9422 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
9423 echo $ECHO_N "(cached) $ECHO_C" >&6
9425 ac_check_lib_save_LIBS
=$LIBS
9426 LIBS
="-lpng -lz -lm $LIBS"
9427 cat >conftest.
$ac_ext <<_ACEOF
9428 #line $LINENO "configure"
9431 cat confdefs.h
>>conftest.
$ac_ext
9432 cat >>conftest.
$ac_ext <<_ACEOF
9433 /* end confdefs.h. */
9435 /* Override any gcc2 internal prototype to avoid an error. */
9439 /* We use char because int might match the return type of a gcc2
9440 builtin and then its argument prototype would still apply. */
9441 char png_get_channels ();
9445 png_get_channels ();
9450 rm -f conftest.
$ac_objext conftest
$ac_exeext
9451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9452 (eval $ac_link) 2>&5
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); } &&
9456 { ac_try
='test -s conftest$ac_exeext'
9457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); }; }; then
9462 ac_cv_lib_png_png_get_channels
=yes
9464 echo "$as_me: failed program was:" >&5
9465 sed 's/^/| /' conftest.
$ac_ext >&5
9467 ac_cv_lib_png_png_get_channels
=no
9469 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9470 LIBS
=$ac_check_lib_save_LIBS
9472 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
9473 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
9474 if test $ac_cv_lib_png_png_get_channels = yes; then
9483 if test "${HAVE_PNG}" = "yes"; then
9485 cat >>confdefs.h
<<\_ACEOF
9492 ### Use -ltiff if available, unless `--with-tiff=no'.
9494 if test "${HAVE_X11}" = "yes"; then
9495 if test "${with_tiff}" != "no"; then
9496 if test "${ac_cv_header_tiffio_h+set}" = set; then
9497 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9498 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9499 if test "${ac_cv_header_tiffio_h+set}" = set; then
9500 echo $ECHO_N "(cached) $ECHO_C" >&6
9502 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9503 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9505 # Is the header compilable?
9506 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
9507 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
9508 cat >conftest.
$ac_ext <<_ACEOF
9509 #line $LINENO "configure"
9512 cat confdefs.h
>>conftest.
$ac_ext
9513 cat >>conftest.
$ac_ext <<_ACEOF
9514 /* end confdefs.h. */
9515 $ac_includes_default
9518 rm -f conftest.
$ac_objext
9519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9520 (eval $ac_compile) 2>&5
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); } &&
9524 { ac_try
='test -s conftest.$ac_objext'
9525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); }; }; then
9530 ac_header_compiler
=yes
9532 echo "$as_me: failed program was:" >&5
9533 sed 's/^/| /' conftest.
$ac_ext >&5
9535 ac_header_compiler
=no
9537 rm -f conftest.
$ac_objext conftest.
$ac_ext
9538 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9539 echo "${ECHO_T}$ac_header_compiler" >&6
9541 # Is the header present?
9542 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
9543 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
9544 cat >conftest.
$ac_ext <<_ACEOF
9545 #line $LINENO "configure"
9548 cat confdefs.h
>>conftest.
$ac_ext
9549 cat >>conftest.
$ac_ext <<_ACEOF
9550 /* end confdefs.h. */
9553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9554 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9556 grep -v '^ *+' conftest.er1
>conftest.err
9558 cat conftest.err
>&5
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); } >/dev
/null
; then
9561 if test -s conftest.err
; then
9562 ac_cpp_err
=$ac_c_preproc_warn_flag
9569 if test -z "$ac_cpp_err"; then
9570 ac_header_preproc
=yes
9572 echo "$as_me: failed program was:" >&5
9573 sed 's/^/| /' conftest.
$ac_ext >&5
9575 ac_header_preproc
=no
9577 rm -f conftest.err conftest.
$ac_ext
9578 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9579 echo "${ECHO_T}$ac_header_preproc" >&6
9581 # So? What about this header?
9582 case $ac_header_compiler:$ac_header_preproc in
9584 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9585 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9586 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9587 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9590 ## ------------------------------------ ##
9591 ## Report this to bug-autoconf@gnu.org. ##
9592 ## ------------------------------------ ##
9595 sed "s/^/$as_me: WARNING: /" >&2
9598 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
9599 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
9600 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
9601 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
9602 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9603 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9606 ## ------------------------------------ ##
9607 ## Report this to bug-autoconf@gnu.org. ##
9608 ## ------------------------------------ ##
9611 sed "s/^/$as_me: WARNING: /" >&2
9614 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9615 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9616 if test "${ac_cv_header_tiffio_h+set}" = set; then
9617 echo $ECHO_N "(cached) $ECHO_C" >&6
9619 ac_cv_header_tiffio_h
=$ac_header_preproc
9621 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9622 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9625 if test $ac_cv_header_tiffio_h = yes; then
9627 # At least one tiff package requires the jpeg library.
9628 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
9629 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
9630 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
9631 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
9632 echo $ECHO_N "(cached) $ECHO_C" >&6
9634 ac_check_lib_save_LIBS
=$LIBS
9635 LIBS
="-ltiff $tifflibs $LIBS"
9636 cat >conftest.
$ac_ext <<_ACEOF
9637 #line $LINENO "configure"
9640 cat confdefs.h
>>conftest.
$ac_ext
9641 cat >>conftest.
$ac_ext <<_ACEOF
9642 /* end confdefs.h. */
9644 /* Override any gcc2 internal prototype to avoid an error. */
9648 /* We use char because int might match the return type of a gcc2
9649 builtin and then its argument prototype would still apply. */
9650 char TIFFGetVersion ();
9659 rm -f conftest.
$ac_objext conftest
$ac_exeext
9660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9661 (eval $ac_link) 2>&5
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); } &&
9665 { ac_try
='test -s conftest$ac_exeext'
9666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); }; }; then
9671 ac_cv_lib_tiff_TIFFGetVersion
=yes
9673 echo "$as_me: failed program was:" >&5
9674 sed 's/^/| /' conftest.
$ac_ext >&5
9676 ac_cv_lib_tiff_TIFFGetVersion
=no
9678 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9679 LIBS
=$ac_check_lib_save_LIBS
9681 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9682 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
9683 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
9692 if test "${HAVE_TIFF}" = "yes"; then
9694 cat >>confdefs.h
<<\_ACEOF
9701 ### Use -lgif if available, unless `--with-gif=no'.
9703 if test "${HAVE_X11}" = "yes"; then
9704 if test "${with_gif}" != "no"; then
9705 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9706 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9707 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9708 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9709 echo $ECHO_N "(cached) $ECHO_C" >&6
9711 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9712 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9714 # Is the header compilable?
9715 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
9716 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
9717 cat >conftest.
$ac_ext <<_ACEOF
9718 #line $LINENO "configure"
9721 cat confdefs.h
>>conftest.
$ac_ext
9722 cat >>conftest.
$ac_ext <<_ACEOF
9723 /* end confdefs.h. */
9724 $ac_includes_default
9725 #include <gif_lib.h>
9727 rm -f conftest.
$ac_objext
9728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9729 (eval $ac_compile) 2>&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } &&
9733 { ac_try
='test -s conftest.$ac_objext'
9734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); }; }; then
9739 ac_header_compiler
=yes
9741 echo "$as_me: failed program was:" >&5
9742 sed 's/^/| /' conftest.
$ac_ext >&5
9744 ac_header_compiler
=no
9746 rm -f conftest.
$ac_objext conftest.
$ac_ext
9747 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9748 echo "${ECHO_T}$ac_header_compiler" >&6
9750 # Is the header present?
9751 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
9752 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
9753 cat >conftest.
$ac_ext <<_ACEOF
9754 #line $LINENO "configure"
9757 cat confdefs.h
>>conftest.
$ac_ext
9758 cat >>conftest.
$ac_ext <<_ACEOF
9759 /* end confdefs.h. */
9760 #include <gif_lib.h>
9762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9763 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9765 grep -v '^ *+' conftest.er1
>conftest.err
9767 cat conftest.err
>&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); } >/dev
/null
; then
9770 if test -s conftest.err
; then
9771 ac_cpp_err
=$ac_c_preproc_warn_flag
9778 if test -z "$ac_cpp_err"; then
9779 ac_header_preproc
=yes
9781 echo "$as_me: failed program was:" >&5
9782 sed 's/^/| /' conftest.
$ac_ext >&5
9784 ac_header_preproc
=no
9786 rm -f conftest.err conftest.
$ac_ext
9787 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9788 echo "${ECHO_T}$ac_header_preproc" >&6
9790 # So? What about this header?
9791 case $ac_header_compiler:$ac_header_preproc in
9793 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9794 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9795 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9796 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9799 ## ------------------------------------ ##
9800 ## Report this to bug-autoconf@gnu.org. ##
9801 ## ------------------------------------ ##
9804 sed "s/^/$as_me: WARNING: /" >&2
9807 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
9808 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
9809 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
9810 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
9811 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9812 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9815 ## ------------------------------------ ##
9816 ## Report this to bug-autoconf@gnu.org. ##
9817 ## ------------------------------------ ##
9820 sed "s/^/$as_me: WARNING: /" >&2
9823 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9824 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9825 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9826 echo $ECHO_N "(cached) $ECHO_C" >&6
9828 ac_cv_header_gif_lib_h
=$ac_header_preproc
9830 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9831 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9834 if test $ac_cv_header_gif_lib_h = yes; then
9835 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9836 # Earlier versions can crash Emacs.
9837 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
9838 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
9839 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9842 ac_check_lib_save_LIBS
=$LIBS
9843 LIBS
="-lungif $LIBS"
9844 cat >conftest.
$ac_ext <<_ACEOF
9845 #line $LINENO "configure"
9848 cat confdefs.h
>>conftest.
$ac_ext
9849 cat >>conftest.
$ac_ext <<_ACEOF
9850 /* end confdefs.h. */
9852 /* Override any gcc2 internal prototype to avoid an error. */
9856 /* We use char because int might match the return type of a gcc2
9857 builtin and then its argument prototype would still apply. */
9858 char EGifPutExtensionLast ();
9862 EGifPutExtensionLast ();
9867 rm -f conftest.
$ac_objext conftest
$ac_exeext
9868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9869 (eval $ac_link) 2>&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); } &&
9873 { ac_try
='test -s conftest$ac_exeext'
9874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; }; then
9879 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
9881 echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.
$ac_ext >&5
9884 ac_cv_lib_ungif_EGifPutExtensionLast
=no
9886 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9887 LIBS
=$ac_check_lib_save_LIBS
9889 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
9890 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
9891 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
9900 if test "${HAVE_GIF}" = "yes"; then
9902 cat >>confdefs.h
<<\_ACEOF
9909 ### Use Mac OS X Carbon API to implement GUI.
9911 if test "${with_carbon}" != "no"; then
9912 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9913 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9914 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9915 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9916 echo $ECHO_N "(cached) $ECHO_C" >&6
9918 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9919 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
9921 # Is the header compilable?
9922 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9923 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
9924 cat >conftest.
$ac_ext <<_ACEOF
9925 #line $LINENO "configure"
9928 cat confdefs.h
>>conftest.
$ac_ext
9929 cat >>conftest.
$ac_ext <<_ACEOF
9930 /* end confdefs.h. */
9931 $ac_includes_default
9932 #include <Carbon/Carbon.h>
9934 rm -f conftest.
$ac_objext
9935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9936 (eval $ac_compile) 2>&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); } &&
9940 { ac_try
='test -s conftest.$ac_objext'
9941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); }; }; then
9946 ac_header_compiler
=yes
9948 echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.
$ac_ext >&5
9951 ac_header_compiler
=no
9953 rm -f conftest.
$ac_objext conftest.
$ac_ext
9954 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9955 echo "${ECHO_T}$ac_header_compiler" >&6
9957 # Is the header present?
9958 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9959 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
9960 cat >conftest.
$ac_ext <<_ACEOF
9961 #line $LINENO "configure"
9964 cat confdefs.h
>>conftest.
$ac_ext
9965 cat >>conftest.
$ac_ext <<_ACEOF
9966 /* end confdefs.h. */
9967 #include <Carbon/Carbon.h>
9969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9970 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9972 grep -v '^ *+' conftest.er1
>conftest.err
9974 cat conftest.err
>&5
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); } >/dev
/null
; then
9977 if test -s conftest.err
; then
9978 ac_cpp_err
=$ac_c_preproc_warn_flag
9985 if test -z "$ac_cpp_err"; then
9986 ac_header_preproc
=yes
9988 echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.
$ac_ext >&5
9991 ac_header_preproc
=no
9993 rm -f conftest.err conftest.
$ac_ext
9994 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9995 echo "${ECHO_T}$ac_header_preproc" >&6
9997 # So? What about this header?
9998 case $ac_header_compiler:$ac_header_preproc in
10000 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
10001 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10002 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10003 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10006 ## ------------------------------------ ##
10007 ## Report this to bug-autoconf@gnu.org. ##
10008 ## ------------------------------------ ##
10011 sed "s/^/$as_me: WARNING: /" >&2
10014 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
10015 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
10016 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
10017 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
10018 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10019 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10022 ## ------------------------------------ ##
10023 ## Report this to bug-autoconf@gnu.org. ##
10024 ## ------------------------------------ ##
10027 sed "s/^/$as_me: WARNING: /" >&2
10030 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10031 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10032 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10033 echo $ECHO_N "(cached) $ECHO_C" >&6
10035 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
10037 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10038 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10041 if test $ac_cv_header_Carbon_Carbon_h = yes; then
10048 if test "${HAVE_CARBON}" = "yes"; then
10050 cat >>confdefs.h
<<\_ACEOF
10051 #define HAVE_CARBON 1
10055 ## Specify the install directory
10057 if test "${carbon_appdir_x}" != ""; then
10058 case ${carbon_appdir_x} in
10059 y | ye |
yes) carbon_appdir
=/Applications
;;
10060 * ) carbon_appdir
=${carbon_appdir_x} ;;
10065 ### Use session management (-lSM -lICE) if available
10067 if test "${HAVE_X11}" = "yes"; then
10068 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10069 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10070 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10071 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10072 echo $ECHO_N "(cached) $ECHO_C" >&6
10074 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10075 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10077 # Is the header compilable?
10078 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
10079 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
10080 cat >conftest.
$ac_ext <<_ACEOF
10081 #line $LINENO "configure"
10084 cat confdefs.h
>>conftest.
$ac_ext
10085 cat >>conftest.
$ac_ext <<_ACEOF
10086 /* end confdefs.h. */
10087 $ac_includes_default
10088 #include <X11/SM/SMlib.h>
10090 rm -f conftest.
$ac_objext
10091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10092 (eval $ac_compile) 2>&5
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); } &&
10096 { ac_try
='test -s conftest.$ac_objext'
10097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098 (eval $ac_try) 2>&5
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; }; then
10102 ac_header_compiler
=yes
10104 echo "$as_me: failed program was:" >&5
10105 sed 's/^/| /' conftest.
$ac_ext >&5
10107 ac_header_compiler
=no
10109 rm -f conftest.
$ac_objext conftest.
$ac_ext
10110 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10111 echo "${ECHO_T}$ac_header_compiler" >&6
10113 # Is the header present?
10114 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
10115 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
10116 cat >conftest.
$ac_ext <<_ACEOF
10117 #line $LINENO "configure"
10120 cat confdefs.h
>>conftest.
$ac_ext
10121 cat >>conftest.
$ac_ext <<_ACEOF
10122 /* end confdefs.h. */
10123 #include <X11/SM/SMlib.h>
10125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10126 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10128 grep -v '^ *+' conftest.er1
>conftest.err
10130 cat conftest.err
>&5
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); } >/dev
/null
; then
10133 if test -s conftest.err
; then
10134 ac_cpp_err
=$ac_c_preproc_warn_flag
10141 if test -z "$ac_cpp_err"; then
10142 ac_header_preproc
=yes
10144 echo "$as_me: failed program was:" >&5
10145 sed 's/^/| /' conftest.
$ac_ext >&5
10147 ac_header_preproc
=no
10149 rm -f conftest.err conftest.
$ac_ext
10150 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10151 echo "${ECHO_T}$ac_header_preproc" >&6
10153 # So? What about this header?
10154 case $ac_header_compiler:$ac_header_preproc in
10156 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10157 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10158 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10159 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10162 ## ------------------------------------ ##
10163 ## Report this to bug-autoconf@gnu.org. ##
10164 ## ------------------------------------ ##
10167 sed "s/^/$as_me: WARNING: /" >&2
10170 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
10171 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
10172 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
10173 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
10174 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10175 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10178 ## ------------------------------------ ##
10179 ## Report this to bug-autoconf@gnu.org. ##
10180 ## ------------------------------------ ##
10183 sed "s/^/$as_me: WARNING: /" >&2
10186 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10187 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10188 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10189 echo $ECHO_N "(cached) $ECHO_C" >&6
10191 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
10193 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10194 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10197 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
10198 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10199 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
10200 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10201 echo $ECHO_N "(cached) $ECHO_C" >&6
10203 ac_check_lib_save_LIBS
=$LIBS
10205 cat >conftest.
$ac_ext <<_ACEOF
10206 #line $LINENO "configure"
10209 cat confdefs.h
>>conftest.
$ac_ext
10210 cat >>conftest.
$ac_ext <<_ACEOF
10211 /* end confdefs.h. */
10213 /* Override any gcc2 internal prototype to avoid an error. */
10217 /* We use char because int might match the return type of a gcc2
10218 builtin and then its argument prototype would still apply. */
10219 char SmcOpenConnection ();
10223 SmcOpenConnection ();
10228 rm -f conftest.
$ac_objext conftest
$ac_exeext
10229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10230 (eval $ac_link) 2>&5
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); } &&
10234 { ac_try
='test -s conftest$ac_exeext'
10235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10236 (eval $ac_try) 2>&5
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); }; }; then
10240 ac_cv_lib_SM_SmcOpenConnection
=yes
10242 echo "$as_me: failed program was:" >&5
10243 sed 's/^/| /' conftest.
$ac_ext >&5
10245 ac_cv_lib_SM_SmcOpenConnection
=no
10247 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10248 LIBS
=$ac_check_lib_save_LIBS
10250 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10251 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
10252 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
10262 if test "${HAVE_X_SM}" = "yes"; then
10264 cat >>confdefs.h
<<\_ACEOF
10265 #define HAVE_X_SM 1
10270 *) LIBS
="-lSM -lICE $LIBS" ;;
10275 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10276 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
10277 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
10278 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
10281 cat >conftest.
$ac_ext <<_ACEOF
10282 #line $LINENO "configure"
10285 cat confdefs.h
>>conftest.
$ac_ext
10286 cat >>conftest.
$ac_ext <<_ACEOF
10287 /* end confdefs.h. */
10297 rm -f conftest.
$ac_objext conftest
$ac_exeext
10298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10299 (eval $ac_link) 2>&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); } &&
10303 { ac_try
='test -s conftest$ac_exeext'
10304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10305 (eval $ac_try) 2>&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); }; }; then
10309 emacs_cv_netdb_declares_h_errno
=yes
10311 echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.
$ac_ext >&5
10314 emacs_cv_netdb_declares_h_errno
=no
10316 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10318 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
10319 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
10320 if test $emacs_cv_netdb_declares_h_errno = yes; then
10322 cat >>confdefs.h
<<\_ACEOF
10323 #define HAVE_H_ERRNO 1
10328 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10329 # for constant arguments. Useless!
10330 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10331 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10332 if test "${ac_cv_working_alloca_h+set}" = set; then
10333 echo $ECHO_N "(cached) $ECHO_C" >&6
10335 cat >conftest.
$ac_ext <<_ACEOF
10336 #line $LINENO "configure"
10339 cat confdefs.h
>>conftest.
$ac_ext
10340 cat >>conftest.
$ac_ext <<_ACEOF
10341 /* end confdefs.h. */
10342 #include <alloca.h>
10346 char *p = (char *) alloca (2 * sizeof (int));
10351 rm -f conftest.
$ac_objext conftest
$ac_exeext
10352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10353 (eval $ac_link) 2>&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); } &&
10357 { ac_try
='test -s conftest$ac_exeext'
10358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10359 (eval $ac_try) 2>&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); }; }; then
10363 ac_cv_working_alloca_h
=yes
10365 echo "$as_me: failed program was:" >&5
10366 sed 's/^/| /' conftest.
$ac_ext >&5
10368 ac_cv_working_alloca_h
=no
10370 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10372 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10373 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10374 if test $ac_cv_working_alloca_h = yes; then
10376 cat >>confdefs.h
<<\_ACEOF
10377 #define HAVE_ALLOCA_H 1
10382 echo "$as_me:$LINENO: checking for alloca" >&5
10383 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10384 if test "${ac_cv_func_alloca_works+set}" = set; then
10385 echo $ECHO_N "(cached) $ECHO_C" >&6
10387 cat >conftest.
$ac_ext <<_ACEOF
10388 #line $LINENO "configure"
10391 cat confdefs.h
>>conftest.
$ac_ext
10392 cat >>conftest.
$ac_ext <<_ACEOF
10393 /* end confdefs.h. */
10395 # define alloca __builtin_alloca
10398 # include <malloc.h>
10399 # define alloca _alloca
10402 # include <alloca.h>
10407 # ifndef alloca /* predefined by HP cc +Olibcalls */
10418 char *p = (char *) alloca (1);
10423 rm -f conftest.
$ac_objext conftest
$ac_exeext
10424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10425 (eval $ac_link) 2>&5
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); } &&
10429 { ac_try
='test -s conftest$ac_exeext'
10430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10431 (eval $ac_try) 2>&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }; }; then
10435 ac_cv_func_alloca_works
=yes
10437 echo "$as_me: failed program was:" >&5
10438 sed 's/^/| /' conftest.
$ac_ext >&5
10440 ac_cv_func_alloca_works
=no
10442 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10444 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10445 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10447 if test $ac_cv_func_alloca_works = yes; then
10449 cat >>confdefs.h
<<\_ACEOF
10450 #define HAVE_ALLOCA 1
10454 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10455 # that cause trouble. Some versions do not even contain alloca or
10456 # contain a buggy version. If you still want to use their alloca,
10457 # use ar to extract alloca.o from them instead of compiling alloca.c.
10459 ALLOCA
=alloca.
$ac_objext
10461 cat >>confdefs.h
<<\_ACEOF
10466 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10467 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10468 if test "${ac_cv_os_cray+set}" = set; then
10469 echo $ECHO_N "(cached) $ECHO_C" >&6
10471 cat >conftest.
$ac_ext <<_ACEOF
10472 #line $LINENO "configure"
10475 cat confdefs.h
>>conftest.
$ac_ext
10476 cat >>conftest.
$ac_ext <<_ACEOF
10477 /* end confdefs.h. */
10478 #if defined(CRAY) && ! defined(CRAY2)
10485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10486 $EGREP "webecray" >/dev
/null
2>&1; then
10494 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10495 echo "${ECHO_T}$ac_cv_os_cray" >&6
10496 if test $ac_cv_os_cray = yes; then
10497 for ac_func
in _getb67 GETB67 getb67
; do
10498 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10499 echo "$as_me:$LINENO: checking for $ac_func" >&5
10500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10501 if eval "test \"\${$as_ac_var+set}\" = set"; then
10502 echo $ECHO_N "(cached) $ECHO_C" >&6
10504 cat >conftest.
$ac_ext <<_ACEOF
10505 #line $LINENO "configure"
10508 cat confdefs.h
>>conftest.
$ac_ext
10509 cat >>conftest.
$ac_ext <<_ACEOF
10510 /* end confdefs.h. */
10511 /* System header to define __stub macros and hopefully few prototypes,
10512 which can conflict with char $ac_func (); below.
10513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10514 <limits.h> exists even on freestanding compilers. */
10516 # include <limits.h>
10518 # include <assert.h>
10520 /* Override any gcc2 internal prototype to avoid an error. */
10525 /* We use char because int might match the return type of a gcc2
10526 builtin and then its argument prototype would still apply. */
10528 /* The GNU C library defines this for functions which it implements
10529 to always fail with ENOSYS. Some functions are actually named
10530 something starting with __ and the normal name is an alias. */
10531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10534 char (*f) () = $ac_func;
10543 return f != $ac_func;
10548 rm -f conftest.
$ac_objext conftest
$ac_exeext
10549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10550 (eval $ac_link) 2>&5
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); } &&
10554 { ac_try
='test -s conftest$ac_exeext'
10555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556 (eval $ac_try) 2>&5
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); }; }; then
10560 eval "$as_ac_var=yes"
10562 echo "$as_me: failed program was:" >&5
10563 sed 's/^/| /' conftest.
$ac_ext >&5
10565 eval "$as_ac_var=no"
10567 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10570 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10571 if test `eval echo '${'$as_ac_var'}'` = yes; then
10573 cat >>confdefs.h
<<_ACEOF
10574 #define CRAY_STACKSEG_END $ac_func
10583 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10584 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10585 if test "${ac_cv_c_stack_direction+set}" = set; then
10586 echo $ECHO_N "(cached) $ECHO_C" >&6
10588 if test "$cross_compiling" = yes; then
10589 ac_cv_c_stack_direction
=0
10591 cat >conftest.
$ac_ext <<_ACEOF
10592 #line $LINENO "configure"
10595 cat confdefs.h
>>conftest.
$ac_ext
10596 cat >>conftest.
$ac_ext <<_ACEOF
10597 /* end confdefs.h. */
10599 find_stack_direction ()
10601 static char *addr = 0;
10606 return find_stack_direction ();
10609 return (&dummy > addr) ? 1 : -1;
10615 exit (find_stack_direction () < 0);
10618 rm -f conftest
$ac_exeext
10619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10620 (eval $ac_link) 2>&5
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10625 (eval $ac_try) 2>&5
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); }; }; then
10629 ac_cv_c_stack_direction
=1
10631 echo "$as_me: program exited with status $ac_status" >&5
10632 echo "$as_me: failed program was:" >&5
10633 sed 's/^/| /' conftest.
$ac_ext >&5
10635 ( exit $ac_status )
10636 ac_cv_c_stack_direction
=-1
10638 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10641 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10642 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10644 cat >>confdefs.h
<<_ACEOF
10645 #define STACK_DIRECTION $ac_cv_c_stack_direction
10652 # fmod, logb, and frexp are found in -lm on most systems.
10653 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10655 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10656 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
10657 if test "${ac_cv_lib_m_sqrt+set}" = set; then
10658 echo $ECHO_N "(cached) $ECHO_C" >&6
10660 ac_check_lib_save_LIBS
=$LIBS
10662 cat >conftest.
$ac_ext <<_ACEOF
10663 #line $LINENO "configure"
10666 cat confdefs.h
>>conftest.
$ac_ext
10667 cat >>conftest.
$ac_ext <<_ACEOF
10668 /* end confdefs.h. */
10670 /* Override any gcc2 internal prototype to avoid an error. */
10674 /* We use char because int might match the return type of a gcc2
10675 builtin and then its argument prototype would still apply. */
10685 rm -f conftest.
$ac_objext conftest
$ac_exeext
10686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10687 (eval $ac_link) 2>&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); } &&
10691 { ac_try
='test -s conftest$ac_exeext'
10692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10693 (eval $ac_try) 2>&5
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); }; }; then
10697 ac_cv_lib_m_sqrt
=yes
10699 echo "$as_me: failed program was:" >&5
10700 sed 's/^/| /' conftest.
$ac_ext >&5
10702 ac_cv_lib_m_sqrt
=no
10704 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10705 LIBS
=$ac_check_lib_save_LIBS
10707 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10708 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
10709 if test $ac_cv_lib_m_sqrt = yes; then
10710 cat >>confdefs.h
<<_ACEOF
10711 #define HAVE_LIBM 1
10719 # Check for mail-locking functions in a "mail" library
10721 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10722 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
10723 if test "${ac_cv_lib_mail_maillock+set}" = set; then
10724 echo $ECHO_N "(cached) $ECHO_C" >&6
10726 ac_check_lib_save_LIBS
=$LIBS
10727 LIBS
="-lmail $LIBS"
10728 cat >conftest.
$ac_ext <<_ACEOF
10729 #line $LINENO "configure"
10732 cat confdefs.h
>>conftest.
$ac_ext
10733 cat >>conftest.
$ac_ext <<_ACEOF
10734 /* end confdefs.h. */
10736 /* Override any gcc2 internal prototype to avoid an error. */
10740 /* We use char because int might match the return type of a gcc2
10741 builtin and then its argument prototype would still apply. */
10751 rm -f conftest.
$ac_objext conftest
$ac_exeext
10752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10753 (eval $ac_link) 2>&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } &&
10757 { ac_try
='test -s conftest$ac_exeext'
10758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10759 (eval $ac_try) 2>&5
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); }; }; then
10763 ac_cv_lib_mail_maillock
=yes
10765 echo "$as_me: failed program was:" >&5
10766 sed 's/^/| /' conftest.
$ac_ext >&5
10768 ac_cv_lib_mail_maillock
=no
10770 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10771 LIBS
=$ac_check_lib_save_LIBS
10773 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
10774 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
10775 if test $ac_cv_lib_mail_maillock = yes; then
10776 cat >>confdefs.h
<<_ACEOF
10777 #define HAVE_LIBMAIL 1
10780 LIBS
="-lmail $LIBS"
10785 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
10786 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
10787 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
10788 echo $ECHO_N "(cached) $ECHO_C" >&6
10790 ac_check_lib_save_LIBS
=$LIBS
10791 LIBS
="-llockfile $LIBS"
10792 cat >conftest.
$ac_ext <<_ACEOF
10793 #line $LINENO "configure"
10796 cat confdefs.h
>>conftest.
$ac_ext
10797 cat >>conftest.
$ac_ext <<_ACEOF
10798 /* end confdefs.h. */
10800 /* Override any gcc2 internal prototype to avoid an error. */
10804 /* We use char because int might match the return type of a gcc2
10805 builtin and then its argument prototype would still apply. */
10815 rm -f conftest.
$ac_objext conftest
$ac_exeext
10816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10817 (eval $ac_link) 2>&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); } &&
10821 { ac_try
='test -s conftest$ac_exeext'
10822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10823 (eval $ac_try) 2>&5
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); }; }; then
10827 ac_cv_lib_lockfile_maillock
=yes
10829 echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.
$ac_ext >&5
10832 ac_cv_lib_lockfile_maillock
=no
10834 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10835 LIBS
=$ac_check_lib_save_LIBS
10837 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
10838 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
10839 if test $ac_cv_lib_lockfile_maillock = yes; then
10840 cat >>confdefs.h
<<_ACEOF
10841 #define HAVE_LIBLOCKFILE 1
10844 LIBS
="-llockfile $LIBS"
10848 # If we have the shared liblockfile, assume we must use it for mail
10849 # locking (e.g. Debian). If we couldn't link against liblockfile
10850 # (no liblockfile.a installed), ensure that we don't need to.
10851 if test "$ac_cv_lib_lockfile_maillock" = no
; then
10852 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10853 set dummy liblockfile.so
; ac_word
=$2
10854 echo "$as_me:$LINENO: checking for $ac_word" >&5
10855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10856 if test "${ac_cv_prog_liblockfile+set}" = set; then
10857 echo $ECHO_N "(cached) $ECHO_C" >&6
10859 if test -n "$liblockfile"; then
10860 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
10862 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10863 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10864 for as_dir
in $as_dummy
10867 test -z "$as_dir" && as_dir
=.
10868 for ac_exec_ext
in '' $ac_executable_extensions; do
10869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10870 ac_cv_prog_liblockfile
="yes"
10871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10877 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
10880 liblockfile
=$ac_cv_prog_liblockfile
10881 if test -n "$liblockfile"; then
10882 echo "$as_me:$LINENO: result: $liblockfile" >&5
10883 echo "${ECHO_T}$liblockfile" >&6
10885 echo "$as_me:$LINENO: result: no" >&5
10886 echo "${ECHO_T}no" >&6
10889 if test $ac_cv_prog_liblockfile = yes; then
10890 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
10891 This probably means that movemail could lose mail.
10892 There may be a \`development' package to install containing liblockfile." >&5
10893 echo "$as_me: error: Shared liblockfile found but can't link against it.
10894 This probably means that movemail could lose mail.
10895 There may be a \`development' package to install containing liblockfile." >&2;}
10896 { (exit 1); exit 1; }; }
10898 cat >>confdefs.h
<<\_ACEOF
10899 #define LIBMAIL -llockfile
10906 for ac_func
in touchlock
10908 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10909 echo "$as_me:$LINENO: checking for $ac_func" >&5
10910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10911 if eval "test \"\${$as_ac_var+set}\" = set"; then
10912 echo $ECHO_N "(cached) $ECHO_C" >&6
10914 cat >conftest.
$ac_ext <<_ACEOF
10915 #line $LINENO "configure"
10918 cat confdefs.h
>>conftest.
$ac_ext
10919 cat >>conftest.
$ac_ext <<_ACEOF
10920 /* end confdefs.h. */
10921 /* System header to define __stub macros and hopefully few prototypes,
10922 which can conflict with char $ac_func (); below.
10923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10924 <limits.h> exists even on freestanding compilers. */
10926 # include <limits.h>
10928 # include <assert.h>
10930 /* Override any gcc2 internal prototype to avoid an error. */
10935 /* We use char because int might match the return type of a gcc2
10936 builtin and then its argument prototype would still apply. */
10938 /* The GNU C library defines this for functions which it implements
10939 to always fail with ENOSYS. Some functions are actually named
10940 something starting with __ and the normal name is an alias. */
10941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10944 char (*f) () = $ac_func;
10953 return f != $ac_func;
10958 rm -f conftest.
$ac_objext conftest
$ac_exeext
10959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10960 (eval $ac_link) 2>&5
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); } &&
10964 { ac_try
='test -s conftest$ac_exeext'
10965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10966 (eval $ac_try) 2>&5
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); }; }; then
10970 eval "$as_ac_var=yes"
10972 echo "$as_me: failed program was:" >&5
10973 sed 's/^/| /' conftest.
$ac_ext >&5
10975 eval "$as_ac_var=no"
10977 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10980 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10981 if test `eval echo '${'$as_ac_var'}'` = yes; then
10982 cat >>confdefs.h
<<_ACEOF
10983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10990 for ac_header
in maillock.h
10992 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10994 echo "$as_me:$LINENO: checking for $ac_header" >&5
10995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10997 echo $ECHO_N "(cached) $ECHO_C" >&6
10999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11002 # Is the header compilable?
11003 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11005 cat >conftest.
$ac_ext <<_ACEOF
11006 #line $LINENO "configure"
11009 cat confdefs.h
>>conftest.
$ac_ext
11010 cat >>conftest.
$ac_ext <<_ACEOF
11011 /* end confdefs.h. */
11012 $ac_includes_default
11013 #include <$ac_header>
11015 rm -f conftest.
$ac_objext
11016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11017 (eval $ac_compile) 2>&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); } &&
11021 { ac_try
='test -s conftest.$ac_objext'
11022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023 (eval $ac_try) 2>&5
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; }; then
11027 ac_header_compiler
=yes
11029 echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.
$ac_ext >&5
11032 ac_header_compiler
=no
11034 rm -f conftest.
$ac_objext conftest.
$ac_ext
11035 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11036 echo "${ECHO_T}$ac_header_compiler" >&6
11038 # Is the header present?
11039 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11040 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11041 cat >conftest.
$ac_ext <<_ACEOF
11042 #line $LINENO "configure"
11045 cat confdefs.h
>>conftest.
$ac_ext
11046 cat >>conftest.
$ac_ext <<_ACEOF
11047 /* end confdefs.h. */
11048 #include <$ac_header>
11050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11051 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11053 grep -v '^ *+' conftest.er1
>conftest.err
11055 cat conftest.err
>&5
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); } >/dev
/null
; then
11058 if test -s conftest.err
; then
11059 ac_cpp_err
=$ac_c_preproc_warn_flag
11066 if test -z "$ac_cpp_err"; then
11067 ac_header_preproc
=yes
11069 echo "$as_me: failed program was:" >&5
11070 sed 's/^/| /' conftest.
$ac_ext >&5
11072 ac_header_preproc
=no
11074 rm -f conftest.err conftest.
$ac_ext
11075 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11076 echo "${ECHO_T}$ac_header_preproc" >&6
11078 # So? What about this header?
11079 case $ac_header_compiler:$ac_header_preproc in
11081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11082 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11087 ## ------------------------------------ ##
11088 ## Report this to bug-autoconf@gnu.org. ##
11089 ## ------------------------------------ ##
11092 sed "s/^/$as_me: WARNING: /" >&2
11095 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11096 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11097 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11098 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11103 ## ------------------------------------ ##
11104 ## Report this to bug-autoconf@gnu.org. ##
11105 ## ------------------------------------ ##
11108 sed "s/^/$as_me: WARNING: /" >&2
11111 echo "$as_me:$LINENO: checking for $ac_header" >&5
11112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11114 echo $ECHO_N "(cached) $ECHO_C" >&6
11116 eval "$as_ac_Header=$ac_header_preproc"
11118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11119 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11123 cat >>confdefs.h
<<_ACEOF
11124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11192 for ac_func
in gethostname getdomainname dup2 \
11193 rename closedir mkdir
rmdir sysinfo \
11194 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
11195 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
11196 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
11197 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11198 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11199 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero memset
11201 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11202 echo "$as_me:$LINENO: checking for $ac_func" >&5
11203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11204 if eval "test \"\${$as_ac_var+set}\" = set"; then
11205 echo $ECHO_N "(cached) $ECHO_C" >&6
11207 cat >conftest.
$ac_ext <<_ACEOF
11208 #line $LINENO "configure"
11211 cat confdefs.h
>>conftest.
$ac_ext
11212 cat >>conftest.
$ac_ext <<_ACEOF
11213 /* end confdefs.h. */
11214 /* System header to define __stub macros and hopefully few prototypes,
11215 which can conflict with char $ac_func (); below.
11216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11217 <limits.h> exists even on freestanding compilers. */
11219 # include <limits.h>
11221 # include <assert.h>
11223 /* Override any gcc2 internal prototype to avoid an error. */
11228 /* We use char because int might match the return type of a gcc2
11229 builtin and then its argument prototype would still apply. */
11231 /* The GNU C library defines this for functions which it implements
11232 to always fail with ENOSYS. Some functions are actually named
11233 something starting with __ and the normal name is an alias. */
11234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11237 char (*f) () = $ac_func;
11246 return f != $ac_func;
11251 rm -f conftest.
$ac_objext conftest
$ac_exeext
11252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11253 (eval $ac_link) 2>&5
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); } &&
11257 { ac_try
='test -s conftest$ac_exeext'
11258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11259 (eval $ac_try) 2>&5
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); }; }; then
11263 eval "$as_ac_var=yes"
11265 echo "$as_me: failed program was:" >&5
11266 sed 's/^/| /' conftest.
$ac_ext >&5
11268 eval "$as_ac_var=no"
11270 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11273 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11274 if test `eval echo '${'$as_ac_var'}'` = yes; then
11275 cat >>confdefs.h
<<_ACEOF
11276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11284 for ac_header
in sys
/un.h
11286 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11288 echo "$as_me:$LINENO: checking for $ac_header" >&5
11289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11291 echo $ECHO_N "(cached) $ECHO_C" >&6
11293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11296 # Is the header compilable?
11297 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11298 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11299 cat >conftest.
$ac_ext <<_ACEOF
11300 #line $LINENO "configure"
11303 cat confdefs.h
>>conftest.
$ac_ext
11304 cat >>conftest.
$ac_ext <<_ACEOF
11305 /* end confdefs.h. */
11306 $ac_includes_default
11307 #include <$ac_header>
11309 rm -f conftest.
$ac_objext
11310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11311 (eval $ac_compile) 2>&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); } &&
11315 { ac_try
='test -s conftest.$ac_objext'
11316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11317 (eval $ac_try) 2>&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); }; }; then
11321 ac_header_compiler
=yes
11323 echo "$as_me: failed program was:" >&5
11324 sed 's/^/| /' conftest.
$ac_ext >&5
11326 ac_header_compiler
=no
11328 rm -f conftest.
$ac_objext conftest.
$ac_ext
11329 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11330 echo "${ECHO_T}$ac_header_compiler" >&6
11332 # Is the header present?
11333 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11335 cat >conftest.
$ac_ext <<_ACEOF
11336 #line $LINENO "configure"
11339 cat confdefs.h
>>conftest.
$ac_ext
11340 cat >>conftest.
$ac_ext <<_ACEOF
11341 /* end confdefs.h. */
11342 #include <$ac_header>
11344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11345 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11347 grep -v '^ *+' conftest.er1
>conftest.err
11349 cat conftest.err
>&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); } >/dev
/null
; then
11352 if test -s conftest.err
; then
11353 ac_cpp_err
=$ac_c_preproc_warn_flag
11360 if test -z "$ac_cpp_err"; then
11361 ac_header_preproc
=yes
11363 echo "$as_me: failed program was:" >&5
11364 sed 's/^/| /' conftest.
$ac_ext >&5
11366 ac_header_preproc
=no
11368 rm -f conftest.err conftest.
$ac_ext
11369 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11370 echo "${ECHO_T}$ac_header_preproc" >&6
11372 # So? What about this header?
11373 case $ac_header_compiler:$ac_header_preproc in
11375 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11376 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11378 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11381 ## ------------------------------------ ##
11382 ## Report this to bug-autoconf@gnu.org. ##
11383 ## ------------------------------------ ##
11386 sed "s/^/$as_me: WARNING: /" >&2
11389 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11390 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11391 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11392 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11394 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11397 ## ------------------------------------ ##
11398 ## Report this to bug-autoconf@gnu.org. ##
11399 ## ------------------------------------ ##
11402 sed "s/^/$as_me: WARNING: /" >&2
11405 echo "$as_me:$LINENO: checking for $ac_header" >&5
11406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11408 echo $ECHO_N "(cached) $ECHO_C" >&6
11410 eval "$as_ac_Header=$ac_header_preproc"
11412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11417 cat >>confdefs.h
<<_ACEOF
11418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11428 for ac_header
in sys
/time.h unistd.h
11430 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11432 echo "$as_me:$LINENO: checking for $ac_header" >&5
11433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11440 # Is the header compilable?
11441 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11442 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11443 cat >conftest.
$ac_ext <<_ACEOF
11444 #line $LINENO "configure"
11447 cat confdefs.h
>>conftest.
$ac_ext
11448 cat >>conftest.
$ac_ext <<_ACEOF
11449 /* end confdefs.h. */
11450 $ac_includes_default
11451 #include <$ac_header>
11453 rm -f conftest.
$ac_objext
11454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11455 (eval $ac_compile) 2>&5
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); } &&
11459 { ac_try
='test -s conftest.$ac_objext'
11460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11461 (eval $ac_try) 2>&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); }; }; then
11465 ac_header_compiler
=yes
11467 echo "$as_me: failed program was:" >&5
11468 sed 's/^/| /' conftest.
$ac_ext >&5
11470 ac_header_compiler
=no
11472 rm -f conftest.
$ac_objext conftest.
$ac_ext
11473 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11474 echo "${ECHO_T}$ac_header_compiler" >&6
11476 # Is the header present?
11477 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11478 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11479 cat >conftest.
$ac_ext <<_ACEOF
11480 #line $LINENO "configure"
11483 cat confdefs.h
>>conftest.
$ac_ext
11484 cat >>conftest.
$ac_ext <<_ACEOF
11485 /* end confdefs.h. */
11486 #include <$ac_header>
11488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11489 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11491 grep -v '^ *+' conftest.er1
>conftest.err
11493 cat conftest.err
>&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } >/dev
/null
; then
11496 if test -s conftest.err
; then
11497 ac_cpp_err
=$ac_c_preproc_warn_flag
11504 if test -z "$ac_cpp_err"; then
11505 ac_header_preproc
=yes
11507 echo "$as_me: failed program was:" >&5
11508 sed 's/^/| /' conftest.
$ac_ext >&5
11510 ac_header_preproc
=no
11512 rm -f conftest.err conftest.
$ac_ext
11513 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11514 echo "${ECHO_T}$ac_header_preproc" >&6
11516 # So? What about this header?
11517 case $ac_header_compiler:$ac_header_preproc in
11519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11525 ## ------------------------------------ ##
11526 ## Report this to bug-autoconf@gnu.org. ##
11527 ## ------------------------------------ ##
11530 sed "s/^/$as_me: WARNING: /" >&2
11533 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11534 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11535 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11536 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11538 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11541 ## ------------------------------------ ##
11542 ## Report this to bug-autoconf@gnu.org. ##
11543 ## ------------------------------------ ##
11546 sed "s/^/$as_me: WARNING: /" >&2
11549 echo "$as_me:$LINENO: checking for $ac_header" >&5
11550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11552 echo $ECHO_N "(cached) $ECHO_C" >&6
11554 eval "$as_ac_Header=$ac_header_preproc"
11556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11561 cat >>confdefs.h
<<_ACEOF
11562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11570 for ac_func
in alarm
11572 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11573 echo "$as_me:$LINENO: checking for $ac_func" >&5
11574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11575 if eval "test \"\${$as_ac_var+set}\" = set"; then
11576 echo $ECHO_N "(cached) $ECHO_C" >&6
11578 cat >conftest.
$ac_ext <<_ACEOF
11579 #line $LINENO "configure"
11582 cat confdefs.h
>>conftest.
$ac_ext
11583 cat >>conftest.
$ac_ext <<_ACEOF
11584 /* end confdefs.h. */
11585 /* System header to define __stub macros and hopefully few prototypes,
11586 which can conflict with char $ac_func (); below.
11587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11588 <limits.h> exists even on freestanding compilers. */
11590 # include <limits.h>
11592 # include <assert.h>
11594 /* Override any gcc2 internal prototype to avoid an error. */
11599 /* We use char because int might match the return type of a gcc2
11600 builtin and then its argument prototype would still apply. */
11602 /* The GNU C library defines this for functions which it implements
11603 to always fail with ENOSYS. Some functions are actually named
11604 something starting with __ and the normal name is an alias. */
11605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11608 char (*f) () = $ac_func;
11617 return f != $ac_func;
11622 rm -f conftest.
$ac_objext conftest
$ac_exeext
11623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11624 (eval $ac_link) 2>&5
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); } &&
11628 { ac_try
='test -s conftest$ac_exeext'
11629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11630 (eval $ac_try) 2>&5
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); }; }; then
11634 eval "$as_ac_var=yes"
11636 echo "$as_me: failed program was:" >&5
11637 sed 's/^/| /' conftest.
$ac_ext >&5
11639 eval "$as_ac_var=no"
11641 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11645 if test `eval echo '${'$as_ac_var'}'` = yes; then
11646 cat >>confdefs.h
<<_ACEOF
11647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11653 echo "$as_me:$LINENO: checking for working mktime" >&5
11654 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
11655 if test "${ac_cv_func_working_mktime+set}" = set; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
11658 if test "$cross_compiling" = yes; then
11659 ac_cv_func_working_mktime
=no
11661 cat >conftest.
$ac_ext <<_ACEOF
11662 #line $LINENO "configure"
11665 cat confdefs.h
>>conftest.
$ac_ext
11666 cat >>conftest.
$ac_ext <<_ACEOF
11667 /* end confdefs.h. */
11668 /* Test program from Paul Eggert and Tony Leneis. */
11669 #if TIME_WITH_SYS_TIME
11670 # include <sys/time.h>
11673 # if HAVE_SYS_TIME_H
11674 # include <sys/time.h>
11681 # include <unistd.h>
11685 # define alarm(X) /* empty */
11688 /* Work around redefinition to rpl_putenv by other config tests. */
11691 static time_t time_t_max;
11693 /* Values we'll use to set the TZ environment variable. */
11694 static const char *const tz_strings[] = {
11695 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11696 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11698 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11700 /* Fail if mktime fails to convert a date in the spring-forward gap.
11701 Based on a problem report from Andreas Jaeger. */
11703 spring_forward_gap ()
11705 /* glibc (up to about 1998-10-07) failed this test. */
11708 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11709 instead of "TZ=America/Vancouver" in order to detect the bug even
11710 on systems that don't support the Olson extension, or don't have the
11711 full zoneinfo tables installed. */
11712 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11721 if (mktime (&tm) == (time_t)-1)
11730 if ((lt = localtime (&now)) && mktime (lt) != now)
11732 now = time_t_max - now;
11733 if ((lt = localtime (&now)) && mktime (lt) != now)
11740 /* Based on code from Ariel Faigon. */
11750 if (tm.tm_mon != 2 || tm.tm_mday != 31)
11760 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11761 now = mktime (&tm);
11762 if (now != (time_t) -1)
11764 struct tm *lt = localtime (&now);
11766 && lt->tm_year == tm.tm_year
11767 && lt->tm_mon == tm.tm_mon
11768 && lt->tm_mday == tm.tm_mday
11769 && lt->tm_hour == tm.tm_hour
11770 && lt->tm_min == tm.tm_min
11771 && lt->tm_sec == tm.tm_sec
11772 && lt->tm_yday == tm.tm_yday
11773 && lt->tm_wday == tm.tm_wday
11774 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11775 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11786 /* This test makes some buggy mktime implementations loop.
11787 Give up after 60 seconds; a mktime slower than that
11788 isn't worth using anyway. */
11791 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11794 delta = time_t_max / 997; /* a suitable prime number */
11795 for (i = 0; i < N_STRINGS; i++)
11798 putenv (tz_strings[i]);
11800 for (t = 0; t <= time_t_max - delta; t += delta)
11802 mktime_test ((time_t) 60 * 60);
11803 mktime_test ((time_t) 60 * 60 * 24);
11805 for (j = 1; 0 < j; j *= 2)
11807 bigtime_test (j - 1);
11810 spring_forward_gap ();
11814 rm -f conftest
$ac_exeext
11815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11816 (eval $ac_link) 2>&5
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11821 (eval $ac_try) 2>&5
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; }; then
11825 ac_cv_func_working_mktime
=yes
11827 echo "$as_me: program exited with status $ac_status" >&5
11828 echo "$as_me: failed program was:" >&5
11829 sed 's/^/| /' conftest.
$ac_ext >&5
11831 ( exit $ac_status )
11832 ac_cv_func_working_mktime
=no
11834 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11837 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11838 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
11839 if test $ac_cv_func_working_mktime = no
; then
11840 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
11843 if test "$ac_cv_func_working_mktime" = no
; then
11845 cat >>confdefs.h
<<\_ACEOF
11846 #define BROKEN_MKTIME 1
11851 ac_have_func
=no
# yes means we've found a way to get the load average.
11853 # Make sure getloadavg.c is where it belongs, at configure-time.
11854 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11855 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
11856 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
11857 { (exit 1); exit 1; }; }
11861 # Check for getloadavg, but be sure not to touch the cache variable.
11862 (echo "$as_me:$LINENO: checking for getloadavg" >&5
11863 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
11864 if test "${ac_cv_func_getloadavg+set}" = set; then
11865 echo $ECHO_N "(cached) $ECHO_C" >&6
11867 cat >conftest.
$ac_ext <<_ACEOF
11868 #line $LINENO "configure"
11871 cat confdefs.h
>>conftest.
$ac_ext
11872 cat >>conftest.
$ac_ext <<_ACEOF
11873 /* end confdefs.h. */
11874 /* System header to define __stub macros and hopefully few prototypes,
11875 which can conflict with char getloadavg (); below.
11876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11877 <limits.h> exists even on freestanding compilers. */
11879 # include <limits.h>
11881 # include <assert.h>
11883 /* Override any gcc2 internal prototype to avoid an error. */
11888 /* We use char because int might match the return type of a gcc2
11889 builtin and then its argument prototype would still apply. */
11890 char getloadavg ();
11891 /* The GNU C library defines this for functions which it implements
11892 to always fail with ENOSYS. Some functions are actually named
11893 something starting with __ and the normal name is an alias. */
11894 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
11897 char (*f) () = getloadavg;
11906 return f != getloadavg;
11911 rm -f conftest.
$ac_objext conftest
$ac_exeext
11912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11913 (eval $ac_link) 2>&5
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); } &&
11917 { ac_try
='test -s conftest$ac_exeext'
11918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11919 (eval $ac_try) 2>&5
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); }; }; then
11923 ac_cv_func_getloadavg
=yes
11925 echo "$as_me: failed program was:" >&5
11926 sed 's/^/| /' conftest.
$ac_ext >&5
11928 ac_cv_func_getloadavg
=no
11930 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11932 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
11933 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
11934 if test $ac_cv_func_getloadavg = yes; then
11939 ) && ac_have_func
=yes
11941 # On HPUX9, an unprivileged user can get load averages through this function.
11943 for ac_func
in pstat_getdynamic
11945 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11946 echo "$as_me:$LINENO: checking for $ac_func" >&5
11947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11948 if eval "test \"\${$as_ac_var+set}\" = set"; then
11949 echo $ECHO_N "(cached) $ECHO_C" >&6
11951 cat >conftest.
$ac_ext <<_ACEOF
11952 #line $LINENO "configure"
11955 cat confdefs.h
>>conftest.
$ac_ext
11956 cat >>conftest.
$ac_ext <<_ACEOF
11957 /* end confdefs.h. */
11958 /* System header to define __stub macros and hopefully few prototypes,
11959 which can conflict with char $ac_func (); below.
11960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11961 <limits.h> exists even on freestanding compilers. */
11963 # include <limits.h>
11965 # include <assert.h>
11967 /* Override any gcc2 internal prototype to avoid an error. */
11972 /* We use char because int might match the return type of a gcc2
11973 builtin and then its argument prototype would still apply. */
11975 /* The GNU C library defines this for functions which it implements
11976 to always fail with ENOSYS. Some functions are actually named
11977 something starting with __ and the normal name is an alias. */
11978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11981 char (*f) () = $ac_func;
11990 return f != $ac_func;
11995 rm -f conftest.
$ac_objext conftest
$ac_exeext
11996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11997 (eval $ac_link) 2>&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); } &&
12001 { ac_try
='test -s conftest$ac_exeext'
12002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12003 (eval $ac_try) 2>&5
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); }; }; then
12007 eval "$as_ac_var=yes"
12009 echo "$as_me: failed program was:" >&5
12010 sed 's/^/| /' conftest.
$ac_ext >&5
12012 eval "$as_ac_var=no"
12014 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12017 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12018 if test `eval echo '${'$as_ac_var'}'` = yes; then
12019 cat >>confdefs.h
<<_ACEOF
12020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12027 # Solaris has libkstat which does not require root.
12029 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
12030 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
12031 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
12032 echo $ECHO_N "(cached) $ECHO_C" >&6
12034 ac_check_lib_save_LIBS
=$LIBS
12035 LIBS
="-lkstat $LIBS"
12036 cat >conftest.
$ac_ext <<_ACEOF
12037 #line $LINENO "configure"
12040 cat confdefs.h
>>conftest.
$ac_ext
12041 cat >>conftest.
$ac_ext <<_ACEOF
12042 /* end confdefs.h. */
12044 /* Override any gcc2 internal prototype to avoid an error. */
12048 /* We use char because int might match the return type of a gcc2
12049 builtin and then its argument prototype would still apply. */
12050 char kstat_open ();
12059 rm -f conftest.
$ac_objext conftest
$ac_exeext
12060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12061 (eval $ac_link) 2>&5
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); } &&
12065 { ac_try
='test -s conftest$ac_exeext'
12066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12067 (eval $ac_try) 2>&5
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); }; }; then
12071 ac_cv_lib_kstat_kstat_open
=yes
12073 echo "$as_me: failed program was:" >&5
12074 sed 's/^/| /' conftest.
$ac_ext >&5
12076 ac_cv_lib_kstat_kstat_open
=no
12078 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12079 LIBS
=$ac_check_lib_save_LIBS
12081 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
12082 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
12083 if test $ac_cv_lib_kstat_kstat_open = yes; then
12084 cat >>confdefs.h
<<_ACEOF
12085 #define HAVE_LIBKSTAT 1
12088 LIBS
="-lkstat $LIBS"
12092 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
12094 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12095 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12096 # to get the right answer into the cache.
12097 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12098 if test $ac_have_func = no
; then
12099 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
12100 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
12101 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
12102 echo $ECHO_N "(cached) $ECHO_C" >&6
12104 ac_check_lib_save_LIBS
=$LIBS
12106 cat >conftest.
$ac_ext <<_ACEOF
12107 #line $LINENO "configure"
12110 cat confdefs.h
>>conftest.
$ac_ext
12111 cat >>conftest.
$ac_ext <<_ACEOF
12112 /* end confdefs.h. */
12114 /* Override any gcc2 internal prototype to avoid an error. */
12118 /* We use char because int might match the return type of a gcc2
12119 builtin and then its argument prototype would still apply. */
12129 rm -f conftest.
$ac_objext conftest
$ac_exeext
12130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12131 (eval $ac_link) 2>&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } &&
12135 { ac_try
='test -s conftest$ac_exeext'
12136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12137 (eval $ac_try) 2>&5
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); }; }; then
12141 ac_cv_lib_elf_elf_begin
=yes
12143 echo "$as_me: failed program was:" >&5
12144 sed 's/^/| /' conftest.
$ac_ext >&5
12146 ac_cv_lib_elf_elf_begin
=no
12148 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12149 LIBS
=$ac_check_lib_save_LIBS
12151 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
12152 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
12153 if test $ac_cv_lib_elf_elf_begin = yes; then
12158 if test $ac_have_func = no
; then
12159 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
12160 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
12161 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
12162 echo $ECHO_N "(cached) $ECHO_C" >&6
12164 ac_check_lib_save_LIBS
=$LIBS
12166 cat >conftest.
$ac_ext <<_ACEOF
12167 #line $LINENO "configure"
12170 cat confdefs.h
>>conftest.
$ac_ext
12171 cat >>conftest.
$ac_ext <<_ACEOF
12172 /* end confdefs.h. */
12174 /* Override any gcc2 internal prototype to avoid an error. */
12178 /* We use char because int might match the return type of a gcc2
12179 builtin and then its argument prototype would still apply. */
12189 rm -f conftest.
$ac_objext conftest
$ac_exeext
12190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12191 (eval $ac_link) 2>&5
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); } &&
12195 { ac_try
='test -s conftest$ac_exeext'
12196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12197 (eval $ac_try) 2>&5
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); }; }; then
12201 ac_cv_lib_kvm_kvm_open
=yes
12203 echo "$as_me: failed program was:" >&5
12204 sed 's/^/| /' conftest.
$ac_ext >&5
12206 ac_cv_lib_kvm_kvm_open
=no
12208 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12209 LIBS
=$ac_check_lib_save_LIBS
12211 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
12212 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
12213 if test $ac_cv_lib_kvm_kvm_open = yes; then
12217 # Check for the 4.4BSD definition of getloadavg.
12218 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
12219 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
12220 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
12221 echo $ECHO_N "(cached) $ECHO_C" >&6
12223 ac_check_lib_save_LIBS
=$LIBS
12224 LIBS
="-lutil $LIBS"
12225 cat >conftest.
$ac_ext <<_ACEOF
12226 #line $LINENO "configure"
12229 cat confdefs.h
>>conftest.
$ac_ext
12230 cat >>conftest.
$ac_ext <<_ACEOF
12231 /* end confdefs.h. */
12233 /* Override any gcc2 internal prototype to avoid an error. */
12237 /* We use char because int might match the return type of a gcc2
12238 builtin and then its argument prototype would still apply. */
12239 char getloadavg ();
12248 rm -f conftest.
$ac_objext conftest
$ac_exeext
12249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12250 (eval $ac_link) 2>&5
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); } &&
12254 { ac_try
='test -s conftest$ac_exeext'
12255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12256 (eval $ac_try) 2>&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); }; }; then
12260 ac_cv_lib_util_getloadavg
=yes
12262 echo "$as_me: failed program was:" >&5
12263 sed 's/^/| /' conftest.
$ac_ext >&5
12265 ac_cv_lib_util_getloadavg
=no
12267 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12268 LIBS
=$ac_check_lib_save_LIBS
12270 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
12271 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
12272 if test $ac_cv_lib_util_getloadavg = yes; then
12273 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
12278 if test $ac_have_func = no
; then
12279 # There is a commonly available library for RS/6000 AIX.
12280 # Since it is not a standard part of AIX, it might be installed locally.
12281 ac_getloadavg_LIBS
=$LIBS
12282 LIBS
="-L/usr/local/lib $LIBS"
12283 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
12284 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
12285 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
12286 echo $ECHO_N "(cached) $ECHO_C" >&6
12288 ac_check_lib_save_LIBS
=$LIBS
12289 LIBS
="-lgetloadavg $LIBS"
12290 cat >conftest.
$ac_ext <<_ACEOF
12291 #line $LINENO "configure"
12294 cat confdefs.h
>>conftest.
$ac_ext
12295 cat >>conftest.
$ac_ext <<_ACEOF
12296 /* end confdefs.h. */
12298 /* Override any gcc2 internal prototype to avoid an error. */
12302 /* We use char because int might match the return type of a gcc2
12303 builtin and then its argument prototype would still apply. */
12304 char getloadavg ();
12313 rm -f conftest.
$ac_objext conftest
$ac_exeext
12314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12315 (eval $ac_link) 2>&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); } &&
12319 { ac_try
='test -s conftest$ac_exeext'
12320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321 (eval $ac_try) 2>&5
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); }; }; then
12325 ac_cv_lib_getloadavg_getloadavg
=yes
12327 echo "$as_me: failed program was:" >&5
12328 sed 's/^/| /' conftest.
$ac_ext >&5
12330 ac_cv_lib_getloadavg_getloadavg
=no
12332 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12333 LIBS
=$ac_check_lib_save_LIBS
12335 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12336 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
12337 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
12338 LIBS
="-lgetloadavg $LIBS"
12340 LIBS
=$ac_getloadavg_LIBS
12345 # Make sure it is really in the library, if we think we found it,
12346 # otherwise set up the replacement function.
12348 for ac_func
in getloadavg
12350 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12351 echo "$as_me:$LINENO: checking for $ac_func" >&5
12352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12353 if eval "test \"\${$as_ac_var+set}\" = set"; then
12354 echo $ECHO_N "(cached) $ECHO_C" >&6
12356 cat >conftest.
$ac_ext <<_ACEOF
12357 #line $LINENO "configure"
12360 cat confdefs.h
>>conftest.
$ac_ext
12361 cat >>conftest.
$ac_ext <<_ACEOF
12362 /* end confdefs.h. */
12363 /* System header to define __stub macros and hopefully few prototypes,
12364 which can conflict with char $ac_func (); below.
12365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12366 <limits.h> exists even on freestanding compilers. */
12368 # include <limits.h>
12370 # include <assert.h>
12372 /* Override any gcc2 internal prototype to avoid an error. */
12377 /* We use char because int might match the return type of a gcc2
12378 builtin and then its argument prototype would still apply. */
12380 /* The GNU C library defines this for functions which it implements
12381 to always fail with ENOSYS. Some functions are actually named
12382 something starting with __ and the normal name is an alias. */
12383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12386 char (*f) () = $ac_func;
12395 return f != $ac_func;
12400 rm -f conftest.
$ac_objext conftest
$ac_exeext
12401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12402 (eval $ac_link) 2>&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); } &&
12406 { ac_try
='test -s conftest$ac_exeext'
12407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12408 (eval $ac_try) 2>&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); }; }; then
12412 eval "$as_ac_var=yes"
12414 echo "$as_me: failed program was:" >&5
12415 sed 's/^/| /' conftest.
$ac_ext >&5
12417 eval "$as_ac_var=no"
12419 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12422 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12423 if test `eval echo '${'$as_ac_var'}'` = yes; then
12424 cat >>confdefs.h
<<_ACEOF
12425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12429 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
12431 cat >>confdefs.h
<<\_ACEOF
12432 #define C_GETLOADAVG 1
12435 # Figure out what our getloadavg.c needs.
12437 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12438 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12439 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12440 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12441 echo $ECHO_N "(cached) $ECHO_C" >&6
12443 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12444 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12446 # Is the header compilable?
12447 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
12448 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
12449 cat >conftest.
$ac_ext <<_ACEOF
12450 #line $LINENO "configure"
12453 cat confdefs.h
>>conftest.
$ac_ext
12454 cat >>conftest.
$ac_ext <<_ACEOF
12455 /* end confdefs.h. */
12456 $ac_includes_default
12457 #include <sys/dg_sys_info.h>
12459 rm -f conftest.
$ac_objext
12460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12461 (eval $ac_compile) 2>&5
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); } &&
12465 { ac_try
='test -s conftest.$ac_objext'
12466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12467 (eval $ac_try) 2>&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); }; }; then
12471 ac_header_compiler
=yes
12473 echo "$as_me: failed program was:" >&5
12474 sed 's/^/| /' conftest.
$ac_ext >&5
12476 ac_header_compiler
=no
12478 rm -f conftest.
$ac_objext conftest.
$ac_ext
12479 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12480 echo "${ECHO_T}$ac_header_compiler" >&6
12482 # Is the header present?
12483 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
12484 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
12485 cat >conftest.
$ac_ext <<_ACEOF
12486 #line $LINENO "configure"
12489 cat confdefs.h
>>conftest.
$ac_ext
12490 cat >>conftest.
$ac_ext <<_ACEOF
12491 /* end confdefs.h. */
12492 #include <sys/dg_sys_info.h>
12494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12495 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12497 grep -v '^ *+' conftest.er1
>conftest.err
12499 cat conftest.err
>&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); } >/dev
/null
; then
12502 if test -s conftest.err
; then
12503 ac_cpp_err
=$ac_c_preproc_warn_flag
12510 if test -z "$ac_cpp_err"; then
12511 ac_header_preproc
=yes
12513 echo "$as_me: failed program was:" >&5
12514 sed 's/^/| /' conftest.
$ac_ext >&5
12516 ac_header_preproc
=no
12518 rm -f conftest.err conftest.
$ac_ext
12519 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12520 echo "${ECHO_T}$ac_header_preproc" >&6
12522 # So? What about this header?
12523 case $ac_header_compiler:$ac_header_preproc in
12525 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
12526 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12527 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12528 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12531 ## ------------------------------------ ##
12532 ## Report this to bug-autoconf@gnu.org. ##
12533 ## ------------------------------------ ##
12536 sed "s/^/$as_me: WARNING: /" >&2
12539 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
12540 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
12541 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
12542 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
12543 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12544 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12547 ## ------------------------------------ ##
12548 ## Report this to bug-autoconf@gnu.org. ##
12549 ## ------------------------------------ ##
12552 sed "s/^/$as_me: WARNING: /" >&2
12555 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12556 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12557 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12558 echo $ECHO_N "(cached) $ECHO_C" >&6
12560 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
12562 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12563 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12566 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
12569 cat >>confdefs.h
<<\_ACEOF
12574 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
12575 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
12576 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
12577 echo $ECHO_N "(cached) $ECHO_C" >&6
12579 ac_check_lib_save_LIBS
=$LIBS
12581 cat >conftest.
$ac_ext <<_ACEOF
12582 #line $LINENO "configure"
12585 cat confdefs.h
>>conftest.
$ac_ext
12586 cat >>conftest.
$ac_ext <<_ACEOF
12587 /* end confdefs.h. */
12589 /* Override any gcc2 internal prototype to avoid an error. */
12593 /* We use char because int might match the return type of a gcc2
12594 builtin and then its argument prototype would still apply. */
12595 char dg_sys_info ();
12604 rm -f conftest.
$ac_objext conftest
$ac_exeext
12605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12606 (eval $ac_link) 2>&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); } &&
12610 { ac_try
='test -s conftest$ac_exeext'
12611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12612 (eval $ac_try) 2>&5
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); }; }; then
12616 ac_cv_lib_dgc_dg_sys_info
=yes
12618 echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.
$ac_ext >&5
12621 ac_cv_lib_dgc_dg_sys_info
=no
12623 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12624 LIBS
=$ac_check_lib_save_LIBS
12626 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12627 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
12628 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
12629 cat >>confdefs.h
<<_ACEOF
12630 #define HAVE_LIBDGC 1
12641 if test "${ac_cv_header_locale_h+set}" = set; then
12642 echo "$as_me:$LINENO: checking for locale.h" >&5
12643 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12644 if test "${ac_cv_header_locale_h+set}" = set; then
12645 echo $ECHO_N "(cached) $ECHO_C" >&6
12647 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12648 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12650 # Is the header compilable?
12651 echo "$as_me:$LINENO: checking locale.h usability" >&5
12652 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
12653 cat >conftest.
$ac_ext <<_ACEOF
12654 #line $LINENO "configure"
12657 cat confdefs.h
>>conftest.
$ac_ext
12658 cat >>conftest.
$ac_ext <<_ACEOF
12659 /* end confdefs.h. */
12660 $ac_includes_default
12661 #include <locale.h>
12663 rm -f conftest.
$ac_objext
12664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12665 (eval $ac_compile) 2>&5
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); } &&
12669 { ac_try
='test -s conftest.$ac_objext'
12670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12671 (eval $ac_try) 2>&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); }; }; then
12675 ac_header_compiler
=yes
12677 echo "$as_me: failed program was:" >&5
12678 sed 's/^/| /' conftest.
$ac_ext >&5
12680 ac_header_compiler
=no
12682 rm -f conftest.
$ac_objext conftest.
$ac_ext
12683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12684 echo "${ECHO_T}$ac_header_compiler" >&6
12686 # Is the header present?
12687 echo "$as_me:$LINENO: checking locale.h presence" >&5
12688 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
12689 cat >conftest.
$ac_ext <<_ACEOF
12690 #line $LINENO "configure"
12693 cat confdefs.h
>>conftest.
$ac_ext
12694 cat >>conftest.
$ac_ext <<_ACEOF
12695 /* end confdefs.h. */
12696 #include <locale.h>
12698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12699 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12701 grep -v '^ *+' conftest.er1
>conftest.err
12703 cat conftest.err
>&5
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); } >/dev
/null
; then
12706 if test -s conftest.err
; then
12707 ac_cpp_err
=$ac_c_preproc_warn_flag
12714 if test -z "$ac_cpp_err"; then
12715 ac_header_preproc
=yes
12717 echo "$as_me: failed program was:" >&5
12718 sed 's/^/| /' conftest.
$ac_ext >&5
12720 ac_header_preproc
=no
12722 rm -f conftest.err conftest.
$ac_ext
12723 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12724 echo "${ECHO_T}$ac_header_preproc" >&6
12726 # So? What about this header?
12727 case $ac_header_compiler:$ac_header_preproc in
12729 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
12730 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12731 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12732 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12735 ## ------------------------------------ ##
12736 ## Report this to bug-autoconf@gnu.org. ##
12737 ## ------------------------------------ ##
12740 sed "s/^/$as_me: WARNING: /" >&2
12743 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
12744 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
12745 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
12746 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
12747 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12748 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12751 ## ------------------------------------ ##
12752 ## Report this to bug-autoconf@gnu.org. ##
12753 ## ------------------------------------ ##
12756 sed "s/^/$as_me: WARNING: /" >&2
12759 echo "$as_me:$LINENO: checking for locale.h" >&5
12760 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12761 if test "${ac_cv_header_locale_h+set}" = set; then
12762 echo $ECHO_N "(cached) $ECHO_C" >&6
12764 ac_cv_header_locale_h
=$ac_header_preproc
12766 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12767 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12773 for ac_func
in setlocale
12775 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12776 echo "$as_me:$LINENO: checking for $ac_func" >&5
12777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12778 if eval "test \"\${$as_ac_var+set}\" = set"; then
12779 echo $ECHO_N "(cached) $ECHO_C" >&6
12781 cat >conftest.
$ac_ext <<_ACEOF
12782 #line $LINENO "configure"
12785 cat confdefs.h
>>conftest.
$ac_ext
12786 cat >>conftest.
$ac_ext <<_ACEOF
12787 /* end confdefs.h. */
12788 /* System header to define __stub macros and hopefully few prototypes,
12789 which can conflict with char $ac_func (); below.
12790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12791 <limits.h> exists even on freestanding compilers. */
12793 # include <limits.h>
12795 # include <assert.h>
12797 /* Override any gcc2 internal prototype to avoid an error. */
12802 /* We use char because int might match the return type of a gcc2
12803 builtin and then its argument prototype would still apply. */
12805 /* The GNU C library defines this for functions which it implements
12806 to always fail with ENOSYS. Some functions are actually named
12807 something starting with __ and the normal name is an alias. */
12808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12811 char (*f) () = $ac_func;
12820 return f != $ac_func;
12825 rm -f conftest.
$ac_objext conftest
$ac_exeext
12826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12827 (eval $ac_link) 2>&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); } &&
12831 { ac_try
='test -s conftest$ac_exeext'
12832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12833 (eval $ac_try) 2>&5
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; }; then
12837 eval "$as_ac_var=yes"
12839 echo "$as_me: failed program was:" >&5
12840 sed 's/^/| /' conftest.
$ac_ext >&5
12842 eval "$as_ac_var=no"
12844 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12847 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12848 if test `eval echo '${'$as_ac_var'}'` = yes; then
12849 cat >>confdefs.h
<<_ACEOF
12850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12857 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12858 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12859 # Irix 4.0.5F has the header but not the library.
12860 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
12863 cat >>confdefs.h
<<\_ACEOF
12869 if test $ac_have_func = no
; then
12870 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12871 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
12872 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
12873 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12874 echo $ECHO_N "(cached) $ECHO_C" >&6
12876 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
12877 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
12879 # Is the header compilable?
12880 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
12881 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
12882 cat >conftest.
$ac_ext <<_ACEOF
12883 #line $LINENO "configure"
12886 cat confdefs.h
>>conftest.
$ac_ext
12887 cat >>conftest.
$ac_ext <<_ACEOF
12888 /* end confdefs.h. */
12889 $ac_includes_default
12890 #include <inq_stats/cpustats.h>
12892 rm -f conftest.
$ac_objext
12893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12894 (eval $ac_compile) 2>&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); } &&
12898 { ac_try
='test -s conftest.$ac_objext'
12899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12900 (eval $ac_try) 2>&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); }; }; then
12904 ac_header_compiler
=yes
12906 echo "$as_me: failed program was:" >&5
12907 sed 's/^/| /' conftest.
$ac_ext >&5
12909 ac_header_compiler
=no
12911 rm -f conftest.
$ac_objext conftest.
$ac_ext
12912 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12913 echo "${ECHO_T}$ac_header_compiler" >&6
12915 # Is the header present?
12916 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
12917 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
12918 cat >conftest.
$ac_ext <<_ACEOF
12919 #line $LINENO "configure"
12922 cat confdefs.h
>>conftest.
$ac_ext
12923 cat >>conftest.
$ac_ext <<_ACEOF
12924 /* end confdefs.h. */
12925 #include <inq_stats/cpustats.h>
12927 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12928 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12930 grep -v '^ *+' conftest.er1
>conftest.err
12932 cat conftest.err
>&5
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); } >/dev
/null
; then
12935 if test -s conftest.err
; then
12936 ac_cpp_err
=$ac_c_preproc_warn_flag
12943 if test -z "$ac_cpp_err"; then
12944 ac_header_preproc
=yes
12946 echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.
$ac_ext >&5
12949 ac_header_preproc
=no
12951 rm -f conftest.err conftest.
$ac_ext
12952 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12953 echo "${ECHO_T}$ac_header_preproc" >&6
12955 # So? What about this header?
12956 case $ac_header_compiler:$ac_header_preproc in
12958 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
12959 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12960 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
12961 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
12964 ## ------------------------------------ ##
12965 ## Report this to bug-autoconf@gnu.org. ##
12966 ## ------------------------------------ ##
12969 sed "s/^/$as_me: WARNING: /" >&2
12972 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
12973 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
12974 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
12975 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
12976 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
12977 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
12980 ## ------------------------------------ ##
12981 ## Report this to bug-autoconf@gnu.org. ##
12982 ## ------------------------------------ ##
12985 sed "s/^/$as_me: WARNING: /" >&2
12988 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
12989 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
12990 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12991 echo $ECHO_N "(cached) $ECHO_C" >&6
12993 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
12995 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
12996 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
12999 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
13002 cat >>confdefs.h
<<\_ACEOF
13007 cat >>confdefs.h
<<\_ACEOF
13016 if test $ac_have_func = no
; then
13017 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13018 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13019 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13020 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13021 echo $ECHO_N "(cached) $ECHO_C" >&6
13023 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13024 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13026 # Is the header compilable?
13027 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
13028 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
13029 cat >conftest.
$ac_ext <<_ACEOF
13030 #line $LINENO "configure"
13033 cat confdefs.h
>>conftest.
$ac_ext
13034 cat >>conftest.
$ac_ext <<_ACEOF
13035 /* end confdefs.h. */
13036 $ac_includes_default
13037 #include <sys/cpustats.h>
13039 rm -f conftest.
$ac_objext
13040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13041 (eval $ac_compile) 2>&5
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); } &&
13045 { ac_try
='test -s conftest.$ac_objext'
13046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13047 (eval $ac_try) 2>&5
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); }; }; then
13051 ac_header_compiler
=yes
13053 echo "$as_me: failed program was:" >&5
13054 sed 's/^/| /' conftest.
$ac_ext >&5
13056 ac_header_compiler
=no
13058 rm -f conftest.
$ac_objext conftest.
$ac_ext
13059 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13060 echo "${ECHO_T}$ac_header_compiler" >&6
13062 # Is the header present?
13063 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
13064 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
13065 cat >conftest.
$ac_ext <<_ACEOF
13066 #line $LINENO "configure"
13069 cat confdefs.h
>>conftest.
$ac_ext
13070 cat >>conftest.
$ac_ext <<_ACEOF
13071 /* end confdefs.h. */
13072 #include <sys/cpustats.h>
13074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13075 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13077 grep -v '^ *+' conftest.er1
>conftest.err
13079 cat conftest.err
>&5
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); } >/dev
/null
; then
13082 if test -s conftest.err
; then
13083 ac_cpp_err
=$ac_c_preproc_warn_flag
13090 if test -z "$ac_cpp_err"; then
13091 ac_header_preproc
=yes
13093 echo "$as_me: failed program was:" >&5
13094 sed 's/^/| /' conftest.
$ac_ext >&5
13096 ac_header_preproc
=no
13098 rm -f conftest.err conftest.
$ac_ext
13099 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13100 echo "${ECHO_T}$ac_header_preproc" >&6
13102 # So? What about this header?
13103 case $ac_header_compiler:$ac_header_preproc in
13105 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13106 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13107 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13108 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13111 ## ------------------------------------ ##
13112 ## Report this to bug-autoconf@gnu.org. ##
13113 ## ------------------------------------ ##
13116 sed "s/^/$as_me: WARNING: /" >&2
13119 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
13120 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
13121 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
13122 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
13123 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13124 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13127 ## ------------------------------------ ##
13128 ## Report this to bug-autoconf@gnu.org. ##
13129 ## ------------------------------------ ##
13132 sed "s/^/$as_me: WARNING: /" >&2
13135 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13136 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13137 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13138 echo $ECHO_N "(cached) $ECHO_C" >&6
13140 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
13142 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13143 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13146 if test $ac_cv_header_sys_cpustats_h = yes; then
13147 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
13156 if test $ac_have_func = no
; then
13158 for ac_header
in mach
/mach.h
13160 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13162 echo "$as_me:$LINENO: checking for $ac_header" >&5
13163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13165 echo $ECHO_N "(cached) $ECHO_C" >&6
13167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13168 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13170 # Is the header compilable?
13171 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13172 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13173 cat >conftest.
$ac_ext <<_ACEOF
13174 #line $LINENO "configure"
13177 cat confdefs.h
>>conftest.
$ac_ext
13178 cat >>conftest.
$ac_ext <<_ACEOF
13179 /* end confdefs.h. */
13180 $ac_includes_default
13181 #include <$ac_header>
13183 rm -f conftest.
$ac_objext
13184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13185 (eval $ac_compile) 2>&5
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); } &&
13189 { ac_try
='test -s conftest.$ac_objext'
13190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13191 (eval $ac_try) 2>&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); }; }; then
13195 ac_header_compiler
=yes
13197 echo "$as_me: failed program was:" >&5
13198 sed 's/^/| /' conftest.
$ac_ext >&5
13200 ac_header_compiler
=no
13202 rm -f conftest.
$ac_objext conftest.
$ac_ext
13203 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13204 echo "${ECHO_T}$ac_header_compiler" >&6
13206 # Is the header present?
13207 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13209 cat >conftest.
$ac_ext <<_ACEOF
13210 #line $LINENO "configure"
13213 cat confdefs.h
>>conftest.
$ac_ext
13214 cat >>conftest.
$ac_ext <<_ACEOF
13215 /* end confdefs.h. */
13216 #include <$ac_header>
13218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13219 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13221 grep -v '^ *+' conftest.er1
>conftest.err
13223 cat conftest.err
>&5
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); } >/dev
/null
; then
13226 if test -s conftest.err
; then
13227 ac_cpp_err
=$ac_c_preproc_warn_flag
13234 if test -z "$ac_cpp_err"; then
13235 ac_header_preproc
=yes
13237 echo "$as_me: failed program was:" >&5
13238 sed 's/^/| /' conftest.
$ac_ext >&5
13240 ac_header_preproc
=no
13242 rm -f conftest.err conftest.
$ac_ext
13243 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13244 echo "${ECHO_T}$ac_header_preproc" >&6
13246 # So? What about this header?
13247 case $ac_header_compiler:$ac_header_preproc in
13249 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13250 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13255 ## ------------------------------------ ##
13256 ## Report this to bug-autoconf@gnu.org. ##
13257 ## ------------------------------------ ##
13260 sed "s/^/$as_me: WARNING: /" >&2
13263 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13264 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13265 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13266 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13271 ## ------------------------------------ ##
13272 ## Report this to bug-autoconf@gnu.org. ##
13273 ## ------------------------------------ ##
13276 sed "s/^/$as_me: WARNING: /" >&2
13279 echo "$as_me:$LINENO: checking for $ac_header" >&5
13280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13282 echo $ECHO_N "(cached) $ECHO_C" >&6
13284 eval "$as_ac_Header=$ac_header_preproc"
13286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13291 cat >>confdefs.h
<<_ACEOF
13292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13302 for ac_header
in nlist.h
13304 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13306 echo "$as_me:$LINENO: checking for $ac_header" >&5
13307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13309 echo $ECHO_N "(cached) $ECHO_C" >&6
13311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13314 # Is the header compilable?
13315 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13317 cat >conftest.
$ac_ext <<_ACEOF
13318 #line $LINENO "configure"
13321 cat confdefs.h
>>conftest.
$ac_ext
13322 cat >>conftest.
$ac_ext <<_ACEOF
13323 /* end confdefs.h. */
13324 $ac_includes_default
13325 #include <$ac_header>
13327 rm -f conftest.
$ac_objext
13328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13329 (eval $ac_compile) 2>&5
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); } &&
13333 { ac_try
='test -s conftest.$ac_objext'
13334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13335 (eval $ac_try) 2>&5
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); }; }; then
13339 ac_header_compiler
=yes
13341 echo "$as_me: failed program was:" >&5
13342 sed 's/^/| /' conftest.
$ac_ext >&5
13344 ac_header_compiler
=no
13346 rm -f conftest.
$ac_objext conftest.
$ac_ext
13347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13348 echo "${ECHO_T}$ac_header_compiler" >&6
13350 # Is the header present?
13351 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13353 cat >conftest.
$ac_ext <<_ACEOF
13354 #line $LINENO "configure"
13357 cat confdefs.h
>>conftest.
$ac_ext
13358 cat >>conftest.
$ac_ext <<_ACEOF
13359 /* end confdefs.h. */
13360 #include <$ac_header>
13362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13363 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13365 grep -v '^ *+' conftest.er1
>conftest.err
13367 cat conftest.err
>&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); } >/dev
/null
; then
13370 if test -s conftest.err
; then
13371 ac_cpp_err
=$ac_c_preproc_warn_flag
13378 if test -z "$ac_cpp_err"; then
13379 ac_header_preproc
=yes
13381 echo "$as_me: failed program was:" >&5
13382 sed 's/^/| /' conftest.
$ac_ext >&5
13384 ac_header_preproc
=no
13386 rm -f conftest.err conftest.
$ac_ext
13387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13388 echo "${ECHO_T}$ac_header_preproc" >&6
13390 # So? What about this header?
13391 case $ac_header_compiler:$ac_header_preproc in
13393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13399 ## ------------------------------------ ##
13400 ## Report this to bug-autoconf@gnu.org. ##
13401 ## ------------------------------------ ##
13404 sed "s/^/$as_me: WARNING: /" >&2
13407 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13409 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13410 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13415 ## ------------------------------------ ##
13416 ## Report this to bug-autoconf@gnu.org. ##
13417 ## ------------------------------------ ##
13420 sed "s/^/$as_me: WARNING: /" >&2
13423 echo "$as_me:$LINENO: checking for $ac_header" >&5
13424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13426 echo $ECHO_N "(cached) $ECHO_C" >&6
13428 eval "$as_ac_Header=$ac_header_preproc"
13430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13435 cat >>confdefs.h
<<_ACEOF
13436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13438 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
13439 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
13440 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
13441 echo $ECHO_N "(cached) $ECHO_C" >&6
13443 cat >conftest.
$ac_ext <<_ACEOF
13444 #line $LINENO "configure"
13447 cat confdefs.h
>>conftest.
$ac_ext
13448 cat >>conftest.
$ac_ext <<_ACEOF
13449 /* end confdefs.h. */
13455 static struct nlist ac_aggr;
13456 if (ac_aggr.n_un.n_name)
13462 rm -f conftest.
$ac_objext
13463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13464 (eval $ac_compile) 2>&5
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); } &&
13468 { ac_try
='test -s conftest.$ac_objext'
13469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470 (eval $ac_try) 2>&5
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); }; }; then
13474 ac_cv_member_struct_nlist_n_un_n_name
=yes
13476 echo "$as_me: failed program was:" >&5
13477 sed 's/^/| /' conftest.
$ac_ext >&5
13479 cat >conftest.
$ac_ext <<_ACEOF
13480 #line $LINENO "configure"
13483 cat confdefs.h
>>conftest.
$ac_ext
13484 cat >>conftest.
$ac_ext <<_ACEOF
13485 /* end confdefs.h. */
13491 static struct nlist ac_aggr;
13492 if (sizeof ac_aggr.n_un.n_name)
13498 rm -f conftest.
$ac_objext
13499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13500 (eval $ac_compile) 2>&5
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); } &&
13504 { ac_try
='test -s conftest.$ac_objext'
13505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13506 (eval $ac_try) 2>&5
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); }; }; then
13510 ac_cv_member_struct_nlist_n_un_n_name
=yes
13512 echo "$as_me: failed program was:" >&5
13513 sed 's/^/| /' conftest.
$ac_ext >&5
13515 ac_cv_member_struct_nlist_n_un_n_name
=no
13517 rm -f conftest.
$ac_objext conftest.
$ac_ext
13519 rm -f conftest.
$ac_objext conftest.
$ac_ext
13521 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
13522 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
13523 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
13525 cat >>confdefs.h
<<_ACEOF
13526 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13530 cat >>confdefs.h
<<\_ACEOF
13531 #define NLIST_NAME_UNION 1
13545 # Some definitions of getloadavg require that the program be installed setgid.
13546 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
13547 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
13548 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
13549 echo $ECHO_N "(cached) $ECHO_C" >&6
13551 cat >conftest.
$ac_ext <<_ACEOF
13552 #line $LINENO "configure"
13555 cat confdefs.h
>>conftest.
$ac_ext
13556 cat >>conftest.
$ac_ext <<_ACEOF
13557 /* end confdefs.h. */
13558 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13559 #ifdef LDAV_PRIVILEGED
13560 Yowza Am I SETGID yet
13563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13564 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
13565 ac_cv_func_getloadavg_setgid
=yes
13567 ac_cv_func_getloadavg_setgid
=no
13572 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
13573 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
13574 if test $ac_cv_func_getloadavg_setgid = yes; then
13577 cat >>confdefs.h
<<\_ACEOF
13578 #define GETLOADAVG_PRIVILEGED 1
13585 if test $ac_cv_func_getloadavg_setgid = yes; then
13586 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
13587 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
13588 if test "${ac_cv_group_kmem+set}" = set; then
13589 echo $ECHO_N "(cached) $ECHO_C" >&6
13591 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13592 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
13593 # If we got an error (system does not support symlinks), try without -L.
13594 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
13595 ac_cv_group_kmem
=`echo $ac_ls_output \
13596 | sed -ne 's/[ ][ ]*/ /g;
13597 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13601 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
13602 echo "${ECHO_T}$ac_cv_group_kmem" >&6
13603 KMEM_GROUP
=$ac_cv_group_kmem
13605 if test "x$ac_save_LIBS" = x
; then
13606 GETLOADAVG_LIBS
=$LIBS
13608 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
13614 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13615 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13616 if test "${ac_cv_sys_largefile_source+set}" = set; then
13617 echo $ECHO_N "(cached) $ECHO_C" >&6
13620 ac_cv_sys_largefile_source
=no
13621 cat >conftest.
$ac_ext <<_ACEOF
13622 #line $LINENO "configure"
13625 cat confdefs.h
>>conftest.
$ac_ext
13626 cat >>conftest.
$ac_ext <<_ACEOF
13627 /* end confdefs.h. */
13637 rm -f conftest.
$ac_objext
13638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13639 (eval $ac_compile) 2>&5
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); } &&
13643 { ac_try
='test -s conftest.$ac_objext'
13644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13645 (eval $ac_try) 2>&5
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); }; }; then
13651 echo "$as_me: failed program was:" >&5
13652 sed 's/^/| /' conftest.
$ac_ext >&5
13655 rm -f conftest.
$ac_objext conftest.
$ac_ext
13656 cat >conftest.
$ac_ext <<_ACEOF
13657 #line $LINENO "configure"
13660 cat confdefs.h
>>conftest.
$ac_ext
13661 cat >>conftest.
$ac_ext <<_ACEOF
13662 /* end confdefs.h. */
13663 #define _LARGEFILE_SOURCE 1
13673 rm -f conftest.
$ac_objext
13674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13675 (eval $ac_compile) 2>&5
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); } &&
13679 { ac_try
='test -s conftest.$ac_objext'
13680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13681 (eval $ac_try) 2>&5
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); }; }; then
13685 ac_cv_sys_largefile_source
=1; break
13687 echo "$as_me: failed program was:" >&5
13688 sed 's/^/| /' conftest.
$ac_ext >&5
13691 rm -f conftest.
$ac_objext conftest.
$ac_ext
13695 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13696 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13697 if test "$ac_cv_sys_largefile_source" != no
; then
13699 cat >>confdefs.h
<<_ACEOF
13700 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13706 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13707 # in glibc 2.1.3, but that breaks too many other things.
13708 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13709 echo "$as_me:$LINENO: checking for fseeko" >&5
13710 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13711 if test "${ac_cv_func_fseeko+set}" = set; then
13712 echo $ECHO_N "(cached) $ECHO_C" >&6
13714 cat >conftest.
$ac_ext <<_ACEOF
13715 #line $LINENO "configure"
13718 cat confdefs.h
>>conftest.
$ac_ext
13719 cat >>conftest.
$ac_ext <<_ACEOF
13720 /* end confdefs.h. */
13725 return fseeko && fseeko (stdin, 0, 0);
13730 rm -f conftest.
$ac_objext conftest
$ac_exeext
13731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13732 (eval $ac_link) 2>&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); } &&
13736 { ac_try
='test -s conftest$ac_exeext'
13737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13738 (eval $ac_try) 2>&5
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); }; }; then
13742 ac_cv_func_fseeko
=yes
13744 echo "$as_me: failed program was:" >&5
13745 sed 's/^/| /' conftest.
$ac_ext >&5
13747 ac_cv_func_fseeko
=no
13749 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13751 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13752 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13753 if test $ac_cv_func_fseeko = yes; then
13755 cat >>confdefs.h
<<\_ACEOF
13756 #define HAVE_FSEEKO 1
13762 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
13763 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
13764 if test "${ac_cv_func_getpgrp_void+set}" = set; then
13765 echo $ECHO_N "(cached) $ECHO_C" >&6
13767 # Use it with a single arg.
13768 cat >conftest.
$ac_ext <<_ACEOF
13769 #line $LINENO "configure"
13772 cat confdefs.h
>>conftest.
$ac_ext
13773 cat >>conftest.
$ac_ext <<_ACEOF
13774 /* end confdefs.h. */
13775 $ac_includes_default
13784 rm -f conftest.
$ac_objext
13785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13786 (eval $ac_compile) 2>&5
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); } &&
13790 { ac_try
='test -s conftest.$ac_objext'
13791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13792 (eval $ac_try) 2>&5
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); }; }; then
13796 ac_cv_func_getpgrp_void
=no
13798 echo "$as_me: failed program was:" >&5
13799 sed 's/^/| /' conftest.
$ac_ext >&5
13801 ac_cv_func_getpgrp_void
=yes
13803 rm -f conftest.
$ac_objext conftest.
$ac_ext
13806 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
13807 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
13808 if test $ac_cv_func_getpgrp_void = yes; then
13810 cat >>confdefs.h
<<\_ACEOF
13811 #define GETPGRP_VOID 1
13819 for ac_func
in grantpt
13821 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13822 echo "$as_me:$LINENO: checking for $ac_func" >&5
13823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13824 if eval "test \"\${$as_ac_var+set}\" = set"; then
13825 echo $ECHO_N "(cached) $ECHO_C" >&6
13827 cat >conftest.
$ac_ext <<_ACEOF
13828 #line $LINENO "configure"
13831 cat confdefs.h
>>conftest.
$ac_ext
13832 cat >>conftest.
$ac_ext <<_ACEOF
13833 /* end confdefs.h. */
13834 /* System header to define __stub macros and hopefully few prototypes,
13835 which can conflict with char $ac_func (); below.
13836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13837 <limits.h> exists even on freestanding compilers. */
13839 # include <limits.h>
13841 # include <assert.h>
13843 /* Override any gcc2 internal prototype to avoid an error. */
13848 /* We use char because int might match the return type of a gcc2
13849 builtin and then its argument prototype would still apply. */
13851 /* The GNU C library defines this for functions which it implements
13852 to always fail with ENOSYS. Some functions are actually named
13853 something starting with __ and the normal name is an alias. */
13854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13857 char (*f) () = $ac_func;
13866 return f != $ac_func;
13871 rm -f conftest.
$ac_objext conftest
$ac_exeext
13872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13873 (eval $ac_link) 2>&5
13875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876 (exit $ac_status); } &&
13877 { ac_try
='test -s conftest$ac_exeext'
13878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13879 (eval $ac_try) 2>&5
13881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); }; }; then
13883 eval "$as_ac_var=yes"
13885 echo "$as_me: failed program was:" >&5
13886 sed 's/^/| /' conftest.
$ac_ext >&5
13888 eval "$as_ac_var=no"
13890 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13893 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13894 if test `eval echo '${'$as_ac_var'}'` = yes; then
13895 cat >>confdefs.h
<<_ACEOF
13896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13903 # PTY-related GNU extensions.
13905 for ac_func
in getpt
13907 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13908 echo "$as_me:$LINENO: checking for $ac_func" >&5
13909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13910 if eval "test \"\${$as_ac_var+set}\" = set"; then
13911 echo $ECHO_N "(cached) $ECHO_C" >&6
13913 cat >conftest.
$ac_ext <<_ACEOF
13914 #line $LINENO "configure"
13917 cat confdefs.h
>>conftest.
$ac_ext
13918 cat >>conftest.
$ac_ext <<_ACEOF
13919 /* end confdefs.h. */
13920 /* System header to define __stub macros and hopefully few prototypes,
13921 which can conflict with char $ac_func (); below.
13922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13923 <limits.h> exists even on freestanding compilers. */
13925 # include <limits.h>
13927 # include <assert.h>
13929 /* Override any gcc2 internal prototype to avoid an error. */
13934 /* We use char because int might match the return type of a gcc2
13935 builtin and then its argument prototype would still apply. */
13937 /* The GNU C library defines this for functions which it implements
13938 to always fail with ENOSYS. Some functions are actually named
13939 something starting with __ and the normal name is an alias. */
13940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13943 char (*f) () = $ac_func;
13952 return f != $ac_func;
13957 rm -f conftest.
$ac_objext conftest
$ac_exeext
13958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13959 (eval $ac_link) 2>&5
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); } &&
13963 { ac_try
='test -s conftest$ac_exeext'
13964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13965 (eval $ac_try) 2>&5
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); }; }; then
13969 eval "$as_ac_var=yes"
13971 echo "$as_me: failed program was:" >&5
13972 sed 's/^/| /' conftest.
$ac_ext >&5
13974 eval "$as_ac_var=no"
13976 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13980 if test `eval echo '${'$as_ac_var'}'` = yes; then
13981 cat >>confdefs.h
<<_ACEOF
13982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13989 # Check this now, so that we will NOT find the above functions in ncurses.
13990 # That is because we have not set up to link ncurses in lib-src.
13991 # It's better to believe a function is not available
13992 # than to expect to find it in ncurses.
13994 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
13995 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
13996 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
13997 echo $ECHO_N "(cached) $ECHO_C" >&6
13999 ac_check_lib_save_LIBS
=$LIBS
14000 LIBS
="-lncurses $LIBS"
14001 cat >conftest.
$ac_ext <<_ACEOF
14002 #line $LINENO "configure"
14005 cat confdefs.h
>>conftest.
$ac_ext
14006 cat >>conftest.
$ac_ext <<_ACEOF
14007 /* end confdefs.h. */
14009 /* Override any gcc2 internal prototype to avoid an error. */
14013 /* We use char because int might match the return type of a gcc2
14014 builtin and then its argument prototype would still apply. */
14024 rm -f conftest.
$ac_objext conftest
$ac_exeext
14025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14026 (eval $ac_link) 2>&5
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); } &&
14030 { ac_try
='test -s conftest$ac_exeext'
14031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14032 (eval $ac_try) 2>&5
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); }; }; then
14036 ac_cv_lib_ncurses_tparm
=yes
14038 echo "$as_me: failed program was:" >&5
14039 sed 's/^/| /' conftest.
$ac_ext >&5
14041 ac_cv_lib_ncurses_tparm
=no
14043 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14044 LIBS
=$ac_check_lib_save_LIBS
14046 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
14047 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
14048 if test $ac_cv_lib_ncurses_tparm = yes; then
14049 cat >>confdefs.h
<<_ACEOF
14050 #define HAVE_LIBNCURSES 1
14053 LIBS
="-lncurses $LIBS"
14058 # Do we need the Hesiod library to provide the support routines?
14059 if test "$with_hesiod" = yes ; then
14060 # Don't set $LIBS here -- see comments above.
14062 echo "$as_me:$LINENO: checking for res_send" >&5
14063 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
14064 if test "${ac_cv_func_res_send+set}" = set; then
14065 echo $ECHO_N "(cached) $ECHO_C" >&6
14067 cat >conftest.
$ac_ext <<_ACEOF
14068 #line $LINENO "configure"
14071 cat confdefs.h
>>conftest.
$ac_ext
14072 cat >>conftest.
$ac_ext <<_ACEOF
14073 /* end confdefs.h. */
14074 /* System header to define __stub macros and hopefully few prototypes,
14075 which can conflict with char res_send (); below.
14076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14077 <limits.h> exists even on freestanding compilers. */
14079 # include <limits.h>
14081 # include <assert.h>
14083 /* Override any gcc2 internal prototype to avoid an error. */
14088 /* We use char because int might match the return type of a gcc2
14089 builtin and then its argument prototype would still apply. */
14091 /* The GNU C library defines this for functions which it implements
14092 to always fail with ENOSYS. Some functions are actually named
14093 something starting with __ and the normal name is an alias. */
14094 #if defined (__stub_res_send) || defined (__stub___res_send)
14097 char (*f) () = res_send;
14106 return f != res_send;
14111 rm -f conftest.
$ac_objext conftest
$ac_exeext
14112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14113 (eval $ac_link) 2>&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } &&
14117 { ac_try
='test -s conftest$ac_exeext'
14118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14119 (eval $ac_try) 2>&5
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }; }; then
14123 ac_cv_func_res_send
=yes
14125 echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.
$ac_ext >&5
14128 ac_cv_func_res_send
=no
14130 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14132 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
14133 echo "${ECHO_T}$ac_cv_func_res_send" >&6
14134 if test $ac_cv_func_res_send = yes; then
14137 echo "$as_me:$LINENO: checking for __res_send" >&5
14138 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
14139 if test "${ac_cv_func___res_send+set}" = set; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
14142 cat >conftest.
$ac_ext <<_ACEOF
14143 #line $LINENO "configure"
14146 cat confdefs.h
>>conftest.
$ac_ext
14147 cat >>conftest.
$ac_ext <<_ACEOF
14148 /* end confdefs.h. */
14149 /* System header to define __stub macros and hopefully few prototypes,
14150 which can conflict with char __res_send (); below.
14151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14152 <limits.h> exists even on freestanding compilers. */
14154 # include <limits.h>
14156 # include <assert.h>
14158 /* Override any gcc2 internal prototype to avoid an error. */
14163 /* We use char because int might match the return type of a gcc2
14164 builtin and then its argument prototype would still apply. */
14165 char __res_send ();
14166 /* The GNU C library defines this for functions which it implements
14167 to always fail with ENOSYS. Some functions are actually named
14168 something starting with __ and the normal name is an alias. */
14169 #if defined (__stub___res_send) || defined (__stub_____res_send)
14172 char (*f) () = __res_send;
14181 return f != __res_send;
14186 rm -f conftest.
$ac_objext conftest
$ac_exeext
14187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14188 (eval $ac_link) 2>&5
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); } &&
14192 { ac_try
='test -s conftest$ac_exeext'
14193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14194 (eval $ac_try) 2>&5
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); }; }; then
14198 ac_cv_func___res_send
=yes
14200 echo "$as_me: failed program was:" >&5
14201 sed 's/^/| /' conftest.
$ac_ext >&5
14203 ac_cv_func___res_send
=no
14205 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14207 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
14208 echo "${ECHO_T}$ac_cv_func___res_send" >&6
14209 if test $ac_cv_func___res_send = yes; then
14212 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
14213 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
14214 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
14215 echo $ECHO_N "(cached) $ECHO_C" >&6
14217 ac_check_lib_save_LIBS
=$LIBS
14218 LIBS
="-lresolv $LIBS"
14219 cat >conftest.
$ac_ext <<_ACEOF
14220 #line $LINENO "configure"
14223 cat confdefs.h
>>conftest.
$ac_ext
14224 cat >>conftest.
$ac_ext <<_ACEOF
14225 /* end confdefs.h. */
14227 /* Override any gcc2 internal prototype to avoid an error. */
14231 /* We use char because int might match the return type of a gcc2
14232 builtin and then its argument prototype would still apply. */
14242 rm -f conftest.
$ac_objext conftest
$ac_exeext
14243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14244 (eval $ac_link) 2>&5
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); } &&
14248 { ac_try
='test -s conftest$ac_exeext'
14249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14250 (eval $ac_try) 2>&5
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); }; }; then
14254 ac_cv_lib_resolv_res_send
=yes
14256 echo "$as_me: failed program was:" >&5
14257 sed 's/^/| /' conftest.
$ac_ext >&5
14259 ac_cv_lib_resolv_res_send
=no
14261 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14262 LIBS
=$ac_check_lib_save_LIBS
14264 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
14265 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
14266 if test $ac_cv_lib_resolv_res_send = yes; then
14269 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
14270 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
14271 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
14272 echo $ECHO_N "(cached) $ECHO_C" >&6
14274 ac_check_lib_save_LIBS
=$LIBS
14275 LIBS
="-lresolv $LIBS"
14276 cat >conftest.
$ac_ext <<_ACEOF
14277 #line $LINENO "configure"
14280 cat confdefs.h
>>conftest.
$ac_ext
14281 cat >>conftest.
$ac_ext <<_ACEOF
14282 /* end confdefs.h. */
14284 /* Override any gcc2 internal prototype to avoid an error. */
14288 /* We use char because int might match the return type of a gcc2
14289 builtin and then its argument prototype would still apply. */
14290 char __res_send ();
14299 rm -f conftest.
$ac_objext conftest
$ac_exeext
14300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14301 (eval $ac_link) 2>&5
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); } &&
14305 { ac_try
='test -s conftest$ac_exeext'
14306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14307 (eval $ac_try) 2>&5
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); }; }; then
14311 ac_cv_lib_resolv___res_send
=yes
14313 echo "$as_me: failed program was:" >&5
14314 sed 's/^/| /' conftest.
$ac_ext >&5
14316 ac_cv_lib_resolv___res_send
=no
14318 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14319 LIBS
=$ac_check_lib_save_LIBS
14321 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
14322 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
14323 if test $ac_cv_lib_resolv___res_send = yes; then
14333 if test "$resolv" = yes ; then
14336 cat >>confdefs.h
<<\_ACEOF
14337 #define HAVE_LIBRESOLV 1
14343 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
14344 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
14345 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
14346 echo $ECHO_N "(cached) $ECHO_C" >&6
14348 cat >conftest.
$ac_ext <<_ACEOF
14349 #line $LINENO "configure"
14352 cat confdefs.h
>>conftest.
$ac_ext
14353 cat >>conftest.
$ac_ext <<_ACEOF
14354 /* end confdefs.h. */
14355 /* System header to define __stub macros and hopefully few prototypes,
14356 which can conflict with char hes_getmailhost (); below.
14357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14358 <limits.h> exists even on freestanding compilers. */
14360 # include <limits.h>
14362 # include <assert.h>
14364 /* Override any gcc2 internal prototype to avoid an error. */
14369 /* We use char because int might match the return type of a gcc2
14370 builtin and then its argument prototype would still apply. */
14371 char hes_getmailhost ();
14372 /* The GNU C library defines this for functions which it implements
14373 to always fail with ENOSYS. Some functions are actually named
14374 something starting with __ and the normal name is an alias. */
14375 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
14378 char (*f) () = hes_getmailhost;
14387 return f != hes_getmailhost;
14392 rm -f conftest.
$ac_objext conftest
$ac_exeext
14393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14394 (eval $ac_link) 2>&5
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); } &&
14398 { ac_try
='test -s conftest$ac_exeext'
14399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14400 (eval $ac_try) 2>&5
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); }; }; then
14404 ac_cv_func_hes_getmailhost
=yes
14406 echo "$as_me: failed program was:" >&5
14407 sed 's/^/| /' conftest.
$ac_ext >&5
14409 ac_cv_func_hes_getmailhost
=no
14411 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14413 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
14414 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
14415 if test $ac_cv_func_hes_getmailhost = yes; then
14418 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
14419 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
14420 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
14421 echo $ECHO_N "(cached) $ECHO_C" >&6
14423 ac_check_lib_save_LIBS
=$LIBS
14424 LIBS
="-lhesiod $RESOLVLIB $LIBS"
14425 cat >conftest.
$ac_ext <<_ACEOF
14426 #line $LINENO "configure"
14429 cat confdefs.h
>>conftest.
$ac_ext
14430 cat >>conftest.
$ac_ext <<_ACEOF
14431 /* end confdefs.h. */
14433 /* Override any gcc2 internal prototype to avoid an error. */
14437 /* We use char because int might match the return type of a gcc2
14438 builtin and then its argument prototype would still apply. */
14439 char hes_getmailhost ();
14443 hes_getmailhost ();
14448 rm -f conftest.
$ac_objext conftest
$ac_exeext
14449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14450 (eval $ac_link) 2>&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); } &&
14454 { ac_try
='test -s conftest$ac_exeext'
14455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14456 (eval $ac_try) 2>&5
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); }; }; then
14460 ac_cv_lib_hesiod_hes_getmailhost
=yes
14462 echo "$as_me: failed program was:" >&5
14463 sed 's/^/| /' conftest.
$ac_ext >&5
14465 ac_cv_lib_hesiod_hes_getmailhost
=no
14467 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14468 LIBS
=$ac_check_lib_save_LIBS
14470 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14471 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
14472 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
14474 cat >>confdefs.h
<<\_ACEOF
14475 #define HAVE_LIBHESIOD 1
14486 # These tell us which Kerberos-related libraries to use.
14487 if test "${with_kerberos+set}" = set; then
14489 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
14490 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
14491 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
14492 echo $ECHO_N "(cached) $ECHO_C" >&6
14494 ac_check_lib_save_LIBS
=$LIBS
14495 LIBS
="-lcom_err $LIBS"
14496 cat >conftest.
$ac_ext <<_ACEOF
14497 #line $LINENO "configure"
14500 cat confdefs.h
>>conftest.
$ac_ext
14501 cat >>conftest.
$ac_ext <<_ACEOF
14502 /* end confdefs.h. */
14504 /* Override any gcc2 internal prototype to avoid an error. */
14508 /* We use char because int might match the return type of a gcc2
14509 builtin and then its argument prototype would still apply. */
14519 rm -f conftest.
$ac_objext conftest
$ac_exeext
14520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14521 (eval $ac_link) 2>&5
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); } &&
14525 { ac_try
='test -s conftest$ac_exeext'
14526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14527 (eval $ac_try) 2>&5
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); }; }; then
14531 ac_cv_lib_com_err_com_err
=yes
14533 echo "$as_me: failed program was:" >&5
14534 sed 's/^/| /' conftest.
$ac_ext >&5
14536 ac_cv_lib_com_err_com_err
=no
14538 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14539 LIBS
=$ac_check_lib_save_LIBS
14541 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
14542 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
14543 if test $ac_cv_lib_com_err_com_err = yes; then
14544 cat >>confdefs.h
<<_ACEOF
14545 #define HAVE_LIBCOM_ERR 1
14548 LIBS
="-lcom_err $LIBS"
14553 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14554 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
14555 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
14556 echo $ECHO_N "(cached) $ECHO_C" >&6
14558 ac_check_lib_save_LIBS
=$LIBS
14559 LIBS
="-lk5crypto $LIBS"
14560 cat >conftest.
$ac_ext <<_ACEOF
14561 #line $LINENO "configure"
14564 cat confdefs.h
>>conftest.
$ac_ext
14565 cat >>conftest.
$ac_ext <<_ACEOF
14566 /* end confdefs.h. */
14568 /* Override any gcc2 internal prototype to avoid an error. */
14572 /* We use char because int might match the return type of a gcc2
14573 builtin and then its argument prototype would still apply. */
14574 char mit_des_cbc_encrypt ();
14578 mit_des_cbc_encrypt ();
14583 rm -f conftest.
$ac_objext conftest
$ac_exeext
14584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14585 (eval $ac_link) 2>&5
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); } &&
14589 { ac_try
='test -s conftest$ac_exeext'
14590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14591 (eval $ac_try) 2>&5
14593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594 (exit $ac_status); }; }; then
14595 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
14597 echo "$as_me: failed program was:" >&5
14598 sed 's/^/| /' conftest.
$ac_ext >&5
14600 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
14602 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14603 LIBS
=$ac_check_lib_save_LIBS
14605 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14606 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
14607 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
14608 cat >>confdefs.h
<<_ACEOF
14609 #define HAVE_LIBK5CRYPTO 1
14612 LIBS
="-lk5crypto $LIBS"
14617 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14618 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
14619 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
14620 echo $ECHO_N "(cached) $ECHO_C" >&6
14622 ac_check_lib_save_LIBS
=$LIBS
14623 LIBS
="-lcrypto $LIBS"
14624 cat >conftest.
$ac_ext <<_ACEOF
14625 #line $LINENO "configure"
14628 cat confdefs.h
>>conftest.
$ac_ext
14629 cat >>conftest.
$ac_ext <<_ACEOF
14630 /* end confdefs.h. */
14632 /* Override any gcc2 internal prototype to avoid an error. */
14636 /* We use char because int might match the return type of a gcc2
14637 builtin and then its argument prototype would still apply. */
14638 char mit_des_cbc_encrypt ();
14642 mit_des_cbc_encrypt ();
14647 rm -f conftest.
$ac_objext conftest
$ac_exeext
14648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14649 (eval $ac_link) 2>&5
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); } &&
14653 { ac_try
='test -s conftest$ac_exeext'
14654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14655 (eval $ac_try) 2>&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); }; }; then
14659 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
14661 echo "$as_me: failed program was:" >&5
14662 sed 's/^/| /' conftest.
$ac_ext >&5
14664 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
14666 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14667 LIBS
=$ac_check_lib_save_LIBS
14669 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14670 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
14671 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
14672 cat >>confdefs.h
<<_ACEOF
14673 #define HAVE_LIBCRYPTO 1
14676 LIBS
="-lcrypto $LIBS"
14681 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
14682 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
14683 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
14684 echo $ECHO_N "(cached) $ECHO_C" >&6
14686 ac_check_lib_save_LIBS
=$LIBS
14687 LIBS
="-lkrb5 $LIBS"
14688 cat >conftest.
$ac_ext <<_ACEOF
14689 #line $LINENO "configure"
14692 cat confdefs.h
>>conftest.
$ac_ext
14693 cat >>conftest.
$ac_ext <<_ACEOF
14694 /* end confdefs.h. */
14696 /* Override any gcc2 internal prototype to avoid an error. */
14700 /* We use char because int might match the return type of a gcc2
14701 builtin and then its argument prototype would still apply. */
14702 char krb5_init_context ();
14706 krb5_init_context ();
14711 rm -f conftest.
$ac_objext conftest
$ac_exeext
14712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14713 (eval $ac_link) 2>&5
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); } &&
14717 { ac_try
='test -s conftest$ac_exeext'
14718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14719 (eval $ac_try) 2>&5
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); }; }; then
14723 ac_cv_lib_krb5_krb5_init_context
=yes
14725 echo "$as_me: failed program was:" >&5
14726 sed 's/^/| /' conftest.
$ac_ext >&5
14728 ac_cv_lib_krb5_krb5_init_context
=no
14730 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14731 LIBS
=$ac_check_lib_save_LIBS
14733 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14734 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
14735 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
14736 cat >>confdefs.h
<<_ACEOF
14737 #define HAVE_LIBKRB5 1
14740 LIBS
="-lkrb5 $LIBS"
14744 if test "${with_kerberos5+set}" != set; then
14746 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
14747 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
14748 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
14749 echo $ECHO_N "(cached) $ECHO_C" >&6
14751 ac_check_lib_save_LIBS
=$LIBS
14752 LIBS
="-ldes425 $LIBS"
14753 cat >conftest.
$ac_ext <<_ACEOF
14754 #line $LINENO "configure"
14757 cat confdefs.h
>>conftest.
$ac_ext
14758 cat >>conftest.
$ac_ext <<_ACEOF
14759 /* end confdefs.h. */
14761 /* Override any gcc2 internal prototype to avoid an error. */
14765 /* We use char because int might match the return type of a gcc2
14766 builtin and then its argument prototype would still apply. */
14767 char des_cbc_encrypt ();
14771 des_cbc_encrypt ();
14776 rm -f conftest.
$ac_objext conftest
$ac_exeext
14777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14778 (eval $ac_link) 2>&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); } &&
14782 { ac_try
='test -s conftest$ac_exeext'
14783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784 (eval $ac_try) 2>&5
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; }; then
14788 ac_cv_lib_des425_des_cbc_encrypt
=yes
14790 echo "$as_me: failed program was:" >&5
14791 sed 's/^/| /' conftest.
$ac_ext >&5
14793 ac_cv_lib_des425_des_cbc_encrypt
=no
14795 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14796 LIBS
=$ac_check_lib_save_LIBS
14798 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14799 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
14800 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
14801 cat >>confdefs.h
<<_ACEOF
14802 #define HAVE_LIBDES425 1
14805 LIBS
="-ldes425 $LIBS"
14809 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
14810 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
14811 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
14812 echo $ECHO_N "(cached) $ECHO_C" >&6
14814 ac_check_lib_save_LIBS
=$LIBS
14816 cat >conftest.
$ac_ext <<_ACEOF
14817 #line $LINENO "configure"
14820 cat confdefs.h
>>conftest.
$ac_ext
14821 cat >>conftest.
$ac_ext <<_ACEOF
14822 /* end confdefs.h. */
14824 /* Override any gcc2 internal prototype to avoid an error. */
14828 /* We use char because int might match the return type of a gcc2
14829 builtin and then its argument prototype would still apply. */
14830 char des_cbc_encrypt ();
14834 des_cbc_encrypt ();
14839 rm -f conftest.
$ac_objext conftest
$ac_exeext
14840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14841 (eval $ac_link) 2>&5
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); } &&
14845 { ac_try
='test -s conftest$ac_exeext'
14846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14847 (eval $ac_try) 2>&5
14849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850 (exit $ac_status); }; }; then
14851 ac_cv_lib_des_des_cbc_encrypt
=yes
14853 echo "$as_me: failed program was:" >&5
14854 sed 's/^/| /' conftest.
$ac_ext >&5
14856 ac_cv_lib_des_des_cbc_encrypt
=no
14858 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14859 LIBS
=$ac_check_lib_save_LIBS
14861 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14862 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
14863 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
14864 cat >>confdefs.h
<<_ACEOF
14865 #define HAVE_LIBDES 1
14875 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
14876 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
14877 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
14878 echo $ECHO_N "(cached) $ECHO_C" >&6
14880 ac_check_lib_save_LIBS
=$LIBS
14881 LIBS
="-lkrb4 $LIBS"
14882 cat >conftest.
$ac_ext <<_ACEOF
14883 #line $LINENO "configure"
14886 cat confdefs.h
>>conftest.
$ac_ext
14887 cat >>conftest.
$ac_ext <<_ACEOF
14888 /* end confdefs.h. */
14890 /* Override any gcc2 internal prototype to avoid an error. */
14894 /* We use char because int might match the return type of a gcc2
14895 builtin and then its argument prototype would still apply. */
14896 char krb_get_cred ();
14905 rm -f conftest.
$ac_objext conftest
$ac_exeext
14906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14907 (eval $ac_link) 2>&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); } &&
14911 { ac_try
='test -s conftest$ac_exeext'
14912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913 (eval $ac_try) 2>&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); }; }; then
14917 ac_cv_lib_krb4_krb_get_cred
=yes
14919 echo "$as_me: failed program was:" >&5
14920 sed 's/^/| /' conftest.
$ac_ext >&5
14922 ac_cv_lib_krb4_krb_get_cred
=no
14924 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14925 LIBS
=$ac_check_lib_save_LIBS
14927 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14928 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
14929 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
14930 cat >>confdefs.h
<<_ACEOF
14931 #define HAVE_LIBKRB4 1
14934 LIBS
="-lkrb4 $LIBS"
14938 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
14939 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
14940 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
14941 echo $ECHO_N "(cached) $ECHO_C" >&6
14943 ac_check_lib_save_LIBS
=$LIBS
14945 cat >conftest.
$ac_ext <<_ACEOF
14946 #line $LINENO "configure"
14949 cat confdefs.h
>>conftest.
$ac_ext
14950 cat >>conftest.
$ac_ext <<_ACEOF
14951 /* end confdefs.h. */
14953 /* Override any gcc2 internal prototype to avoid an error. */
14957 /* We use char because int might match the return type of a gcc2
14958 builtin and then its argument prototype would still apply. */
14959 char krb_get_cred ();
14968 rm -f conftest.
$ac_objext conftest
$ac_exeext
14969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14970 (eval $ac_link) 2>&5
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); } &&
14974 { ac_try
='test -s conftest$ac_exeext'
14975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14976 (eval $ac_try) 2>&5
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); }; }; then
14980 ac_cv_lib_krb_krb_get_cred
=yes
14982 echo "$as_me: failed program was:" >&5
14983 sed 's/^/| /' conftest.
$ac_ext >&5
14985 ac_cv_lib_krb_krb_get_cred
=no
14987 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14988 LIBS
=$ac_check_lib_save_LIBS
14990 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
14991 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
14992 if test $ac_cv_lib_krb_krb_get_cred = yes; then
14993 cat >>confdefs.h
<<_ACEOF
14994 #define HAVE_LIBKRB 1
15005 if test "${with_kerberos5+set}" = set; then
15007 for ac_header
in krb5.h
15009 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15011 echo "$as_me:$LINENO: checking for $ac_header" >&5
15012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15014 echo $ECHO_N "(cached) $ECHO_C" >&6
15016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15019 # Is the header compilable?
15020 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15022 cat >conftest.
$ac_ext <<_ACEOF
15023 #line $LINENO "configure"
15026 cat confdefs.h
>>conftest.
$ac_ext
15027 cat >>conftest.
$ac_ext <<_ACEOF
15028 /* end confdefs.h. */
15029 $ac_includes_default
15030 #include <$ac_header>
15032 rm -f conftest.
$ac_objext
15033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15034 (eval $ac_compile) 2>&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } &&
15038 { ac_try
='test -s conftest.$ac_objext'
15039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15040 (eval $ac_try) 2>&5
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; }; then
15044 ac_header_compiler
=yes
15046 echo "$as_me: failed program was:" >&5
15047 sed 's/^/| /' conftest.
$ac_ext >&5
15049 ac_header_compiler
=no
15051 rm -f conftest.
$ac_objext conftest.
$ac_ext
15052 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15053 echo "${ECHO_T}$ac_header_compiler" >&6
15055 # Is the header present?
15056 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15058 cat >conftest.
$ac_ext <<_ACEOF
15059 #line $LINENO "configure"
15062 cat confdefs.h
>>conftest.
$ac_ext
15063 cat >>conftest.
$ac_ext <<_ACEOF
15064 /* end confdefs.h. */
15065 #include <$ac_header>
15067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15068 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15070 grep -v '^ *+' conftest.er1
>conftest.err
15072 cat conftest.err
>&5
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); } >/dev
/null
; then
15075 if test -s conftest.err
; then
15076 ac_cpp_err
=$ac_c_preproc_warn_flag
15083 if test -z "$ac_cpp_err"; then
15084 ac_header_preproc
=yes
15086 echo "$as_me: failed program was:" >&5
15087 sed 's/^/| /' conftest.
$ac_ext >&5
15089 ac_header_preproc
=no
15091 rm -f conftest.err conftest.
$ac_ext
15092 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15093 echo "${ECHO_T}$ac_header_preproc" >&6
15095 # So? What about this header?
15096 case $ac_header_compiler:$ac_header_preproc in
15098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15104 ## ------------------------------------ ##
15105 ## Report this to bug-autoconf@gnu.org. ##
15106 ## ------------------------------------ ##
15109 sed "s/^/$as_me: WARNING: /" >&2
15112 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15113 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15114 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15115 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15117 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15120 ## ------------------------------------ ##
15121 ## Report this to bug-autoconf@gnu.org. ##
15122 ## ------------------------------------ ##
15125 sed "s/^/$as_me: WARNING: /" >&2
15128 echo "$as_me:$LINENO: checking for $ac_header" >&5
15129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15131 echo $ECHO_N "(cached) $ECHO_C" >&6
15133 eval "$as_ac_Header=$ac_header_preproc"
15135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15140 cat >>confdefs.h
<<_ACEOF
15141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15150 for ac_header
in des.h
15152 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15154 echo "$as_me:$LINENO: checking for $ac_header" >&5
15155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15157 echo $ECHO_N "(cached) $ECHO_C" >&6
15159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15162 # Is the header compilable?
15163 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15165 cat >conftest.
$ac_ext <<_ACEOF
15166 #line $LINENO "configure"
15169 cat confdefs.h
>>conftest.
$ac_ext
15170 cat >>conftest.
$ac_ext <<_ACEOF
15171 /* end confdefs.h. */
15172 $ac_includes_default
15173 #include <$ac_header>
15175 rm -f conftest.
$ac_objext
15176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15177 (eval $ac_compile) 2>&5
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); } &&
15181 { ac_try
='test -s conftest.$ac_objext'
15182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183 (eval $ac_try) 2>&5
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; }; then
15187 ac_header_compiler
=yes
15189 echo "$as_me: failed program was:" >&5
15190 sed 's/^/| /' conftest.
$ac_ext >&5
15192 ac_header_compiler
=no
15194 rm -f conftest.
$ac_objext conftest.
$ac_ext
15195 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15196 echo "${ECHO_T}$ac_header_compiler" >&6
15198 # Is the header present?
15199 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15200 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15201 cat >conftest.
$ac_ext <<_ACEOF
15202 #line $LINENO "configure"
15205 cat confdefs.h
>>conftest.
$ac_ext
15206 cat >>conftest.
$ac_ext <<_ACEOF
15207 /* end confdefs.h. */
15208 #include <$ac_header>
15210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15211 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15213 grep -v '^ *+' conftest.er1
>conftest.err
15215 cat conftest.err
>&5
15216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217 (exit $ac_status); } >/dev
/null
; then
15218 if test -s conftest.err
; then
15219 ac_cpp_err
=$ac_c_preproc_warn_flag
15226 if test -z "$ac_cpp_err"; then
15227 ac_header_preproc
=yes
15229 echo "$as_me: failed program was:" >&5
15230 sed 's/^/| /' conftest.
$ac_ext >&5
15232 ac_header_preproc
=no
15234 rm -f conftest.err conftest.
$ac_ext
15235 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15236 echo "${ECHO_T}$ac_header_preproc" >&6
15238 # So? What about this header?
15239 case $ac_header_compiler:$ac_header_preproc in
15241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15244 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15247 ## ------------------------------------ ##
15248 ## Report this to bug-autoconf@gnu.org. ##
15249 ## ------------------------------------ ##
15252 sed "s/^/$as_me: WARNING: /" >&2
15255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15258 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15263 ## ------------------------------------ ##
15264 ## Report this to bug-autoconf@gnu.org. ##
15265 ## ------------------------------------ ##
15268 sed "s/^/$as_me: WARNING: /" >&2
15271 echo "$as_me:$LINENO: checking for $ac_header" >&5
15272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15274 echo $ECHO_N "(cached) $ECHO_C" >&6
15276 eval "$as_ac_Header=$ac_header_preproc"
15278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15283 cat >>confdefs.h
<<_ACEOF
15284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15289 for ac_header
in kerberosIV
/des.h
15291 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15293 echo "$as_me:$LINENO: checking for $ac_header" >&5
15294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15296 echo $ECHO_N "(cached) $ECHO_C" >&6
15298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15301 # Is the header compilable?
15302 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15304 cat >conftest.
$ac_ext <<_ACEOF
15305 #line $LINENO "configure"
15308 cat confdefs.h
>>conftest.
$ac_ext
15309 cat >>conftest.
$ac_ext <<_ACEOF
15310 /* end confdefs.h. */
15311 $ac_includes_default
15312 #include <$ac_header>
15314 rm -f conftest.
$ac_objext
15315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15316 (eval $ac_compile) 2>&5
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); } &&
15320 { ac_try
='test -s conftest.$ac_objext'
15321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15322 (eval $ac_try) 2>&5
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); }; }; then
15326 ac_header_compiler
=yes
15328 echo "$as_me: failed program was:" >&5
15329 sed 's/^/| /' conftest.
$ac_ext >&5
15331 ac_header_compiler
=no
15333 rm -f conftest.
$ac_objext conftest.
$ac_ext
15334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15335 echo "${ECHO_T}$ac_header_compiler" >&6
15337 # Is the header present?
15338 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15340 cat >conftest.
$ac_ext <<_ACEOF
15341 #line $LINENO "configure"
15344 cat confdefs.h
>>conftest.
$ac_ext
15345 cat >>conftest.
$ac_ext <<_ACEOF
15346 /* end confdefs.h. */
15347 #include <$ac_header>
15349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15350 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15352 grep -v '^ *+' conftest.er1
>conftest.err
15354 cat conftest.err
>&5
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); } >/dev
/null
; then
15357 if test -s conftest.err
; then
15358 ac_cpp_err
=$ac_c_preproc_warn_flag
15365 if test -z "$ac_cpp_err"; then
15366 ac_header_preproc
=yes
15368 echo "$as_me: failed program was:" >&5
15369 sed 's/^/| /' conftest.
$ac_ext >&5
15371 ac_header_preproc
=no
15373 rm -f conftest.err conftest.
$ac_ext
15374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15375 echo "${ECHO_T}$ac_header_preproc" >&6
15377 # So? What about this header?
15378 case $ac_header_compiler:$ac_header_preproc in
15380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15386 ## ------------------------------------ ##
15387 ## Report this to bug-autoconf@gnu.org. ##
15388 ## ------------------------------------ ##
15391 sed "s/^/$as_me: WARNING: /" >&2
15394 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15395 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15396 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15397 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15402 ## ------------------------------------ ##
15403 ## Report this to bug-autoconf@gnu.org. ##
15404 ## ------------------------------------ ##
15407 sed "s/^/$as_me: WARNING: /" >&2
15410 echo "$as_me:$LINENO: checking for $ac_header" >&5
15411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15413 echo $ECHO_N "(cached) $ECHO_C" >&6
15415 eval "$as_ac_Header=$ac_header_preproc"
15417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15422 cat >>confdefs.h
<<_ACEOF
15423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15428 for ac_header
in kerberos
/des.h
15430 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15432 echo "$as_me:$LINENO: checking for $ac_header" >&5
15433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15435 echo $ECHO_N "(cached) $ECHO_C" >&6
15437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15440 # Is the header compilable?
15441 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15442 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15443 cat >conftest.
$ac_ext <<_ACEOF
15444 #line $LINENO "configure"
15447 cat confdefs.h
>>conftest.
$ac_ext
15448 cat >>conftest.
$ac_ext <<_ACEOF
15449 /* end confdefs.h. */
15450 $ac_includes_default
15451 #include <$ac_header>
15453 rm -f conftest.
$ac_objext
15454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15455 (eval $ac_compile) 2>&5
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); } &&
15459 { ac_try
='test -s conftest.$ac_objext'
15460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15461 (eval $ac_try) 2>&5
15463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464 (exit $ac_status); }; }; then
15465 ac_header_compiler
=yes
15467 echo "$as_me: failed program was:" >&5
15468 sed 's/^/| /' conftest.
$ac_ext >&5
15470 ac_header_compiler
=no
15472 rm -f conftest.
$ac_objext conftest.
$ac_ext
15473 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15474 echo "${ECHO_T}$ac_header_compiler" >&6
15476 # Is the header present?
15477 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15478 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15479 cat >conftest.
$ac_ext <<_ACEOF
15480 #line $LINENO "configure"
15483 cat confdefs.h
>>conftest.
$ac_ext
15484 cat >>conftest.
$ac_ext <<_ACEOF
15485 /* end confdefs.h. */
15486 #include <$ac_header>
15488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15489 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15491 grep -v '^ *+' conftest.er1
>conftest.err
15493 cat conftest.err
>&5
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); } >/dev
/null
; then
15496 if test -s conftest.err
; then
15497 ac_cpp_err
=$ac_c_preproc_warn_flag
15504 if test -z "$ac_cpp_err"; then
15505 ac_header_preproc
=yes
15507 echo "$as_me: failed program was:" >&5
15508 sed 's/^/| /' conftest.
$ac_ext >&5
15510 ac_header_preproc
=no
15512 rm -f conftest.err conftest.
$ac_ext
15513 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15514 echo "${ECHO_T}$ac_header_preproc" >&6
15516 # So? What about this header?
15517 case $ac_header_compiler:$ac_header_preproc in
15519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15525 ## ------------------------------------ ##
15526 ## Report this to bug-autoconf@gnu.org. ##
15527 ## ------------------------------------ ##
15530 sed "s/^/$as_me: WARNING: /" >&2
15533 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15534 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15535 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15536 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15538 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15541 ## ------------------------------------ ##
15542 ## Report this to bug-autoconf@gnu.org. ##
15543 ## ------------------------------------ ##
15546 sed "s/^/$as_me: WARNING: /" >&2
15549 echo "$as_me:$LINENO: checking for $ac_header" >&5
15550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15552 echo $ECHO_N "(cached) $ECHO_C" >&6
15554 eval "$as_ac_Header=$ac_header_preproc"
15556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15561 cat >>confdefs.h
<<_ACEOF
15562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15578 for ac_header
in krb.h
15580 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15582 echo "$as_me:$LINENO: checking for $ac_header" >&5
15583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15585 echo $ECHO_N "(cached) $ECHO_C" >&6
15587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15590 # Is the header compilable?
15591 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15592 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15593 cat >conftest.
$ac_ext <<_ACEOF
15594 #line $LINENO "configure"
15597 cat confdefs.h
>>conftest.
$ac_ext
15598 cat >>conftest.
$ac_ext <<_ACEOF
15599 /* end confdefs.h. */
15600 $ac_includes_default
15601 #include <$ac_header>
15603 rm -f conftest.
$ac_objext
15604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15605 (eval $ac_compile) 2>&5
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); } &&
15609 { ac_try
='test -s conftest.$ac_objext'
15610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15611 (eval $ac_try) 2>&5
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); }; }; then
15615 ac_header_compiler
=yes
15617 echo "$as_me: failed program was:" >&5
15618 sed 's/^/| /' conftest.
$ac_ext >&5
15620 ac_header_compiler
=no
15622 rm -f conftest.
$ac_objext conftest.
$ac_ext
15623 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15624 echo "${ECHO_T}$ac_header_compiler" >&6
15626 # Is the header present?
15627 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15629 cat >conftest.
$ac_ext <<_ACEOF
15630 #line $LINENO "configure"
15633 cat confdefs.h
>>conftest.
$ac_ext
15634 cat >>conftest.
$ac_ext <<_ACEOF
15635 /* end confdefs.h. */
15636 #include <$ac_header>
15638 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15639 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15641 grep -v '^ *+' conftest.er1
>conftest.err
15643 cat conftest.err
>&5
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); } >/dev
/null
; then
15646 if test -s conftest.err
; then
15647 ac_cpp_err
=$ac_c_preproc_warn_flag
15654 if test -z "$ac_cpp_err"; then
15655 ac_header_preproc
=yes
15657 echo "$as_me: failed program was:" >&5
15658 sed 's/^/| /' conftest.
$ac_ext >&5
15660 ac_header_preproc
=no
15662 rm -f conftest.err conftest.
$ac_ext
15663 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15664 echo "${ECHO_T}$ac_header_preproc" >&6
15666 # So? What about this header?
15667 case $ac_header_compiler:$ac_header_preproc in
15669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15672 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15675 ## ------------------------------------ ##
15676 ## Report this to bug-autoconf@gnu.org. ##
15677 ## ------------------------------------ ##
15680 sed "s/^/$as_me: WARNING: /" >&2
15683 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15684 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15685 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15686 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15688 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15691 ## ------------------------------------ ##
15692 ## Report this to bug-autoconf@gnu.org. ##
15693 ## ------------------------------------ ##
15696 sed "s/^/$as_me: WARNING: /" >&2
15699 echo "$as_me:$LINENO: checking for $ac_header" >&5
15700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15702 echo $ECHO_N "(cached) $ECHO_C" >&6
15704 eval "$as_ac_Header=$ac_header_preproc"
15706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15707 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15711 cat >>confdefs.h
<<_ACEOF
15712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15717 for ac_header
in kerberosIV
/krb.h
15719 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15721 echo "$as_me:$LINENO: checking for $ac_header" >&5
15722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15724 echo $ECHO_N "(cached) $ECHO_C" >&6
15726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15729 # Is the header compilable?
15730 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15731 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15732 cat >conftest.
$ac_ext <<_ACEOF
15733 #line $LINENO "configure"
15736 cat confdefs.h
>>conftest.
$ac_ext
15737 cat >>conftest.
$ac_ext <<_ACEOF
15738 /* end confdefs.h. */
15739 $ac_includes_default
15740 #include <$ac_header>
15742 rm -f conftest.
$ac_objext
15743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15744 (eval $ac_compile) 2>&5
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); } &&
15748 { ac_try
='test -s conftest.$ac_objext'
15749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15750 (eval $ac_try) 2>&5
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); }; }; then
15754 ac_header_compiler
=yes
15756 echo "$as_me: failed program was:" >&5
15757 sed 's/^/| /' conftest.
$ac_ext >&5
15759 ac_header_compiler
=no
15761 rm -f conftest.
$ac_objext conftest.
$ac_ext
15762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15763 echo "${ECHO_T}$ac_header_compiler" >&6
15765 # Is the header present?
15766 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15768 cat >conftest.
$ac_ext <<_ACEOF
15769 #line $LINENO "configure"
15772 cat confdefs.h
>>conftest.
$ac_ext
15773 cat >>conftest.
$ac_ext <<_ACEOF
15774 /* end confdefs.h. */
15775 #include <$ac_header>
15777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15778 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15780 grep -v '^ *+' conftest.er1
>conftest.err
15782 cat conftest.err
>&5
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); } >/dev
/null
; then
15785 if test -s conftest.err
; then
15786 ac_cpp_err
=$ac_c_preproc_warn_flag
15793 if test -z "$ac_cpp_err"; then
15794 ac_header_preproc
=yes
15796 echo "$as_me: failed program was:" >&5
15797 sed 's/^/| /' conftest.
$ac_ext >&5
15799 ac_header_preproc
=no
15801 rm -f conftest.err conftest.
$ac_ext
15802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15803 echo "${ECHO_T}$ac_header_preproc" >&6
15805 # So? What about this header?
15806 case $ac_header_compiler:$ac_header_preproc in
15808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15814 ## ------------------------------------ ##
15815 ## Report this to bug-autoconf@gnu.org. ##
15816 ## ------------------------------------ ##
15819 sed "s/^/$as_me: WARNING: /" >&2
15822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15823 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15825 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15830 ## ------------------------------------ ##
15831 ## Report this to bug-autoconf@gnu.org. ##
15832 ## ------------------------------------ ##
15835 sed "s/^/$as_me: WARNING: /" >&2
15838 echo "$as_me:$LINENO: checking for $ac_header" >&5
15839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15841 echo $ECHO_N "(cached) $ECHO_C" >&6
15843 eval "$as_ac_Header=$ac_header_preproc"
15845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15850 cat >>confdefs.h
<<_ACEOF
15851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15856 for ac_header
in kerberos
/krb.h
15858 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15860 echo "$as_me:$LINENO: checking for $ac_header" >&5
15861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15863 echo $ECHO_N "(cached) $ECHO_C" >&6
15865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15866 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15868 # Is the header compilable?
15869 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15871 cat >conftest.
$ac_ext <<_ACEOF
15872 #line $LINENO "configure"
15875 cat confdefs.h
>>conftest.
$ac_ext
15876 cat >>conftest.
$ac_ext <<_ACEOF
15877 /* end confdefs.h. */
15878 $ac_includes_default
15879 #include <$ac_header>
15881 rm -f conftest.
$ac_objext
15882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15883 (eval $ac_compile) 2>&5
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); } &&
15887 { ac_try
='test -s conftest.$ac_objext'
15888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15889 (eval $ac_try) 2>&5
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); }; }; then
15893 ac_header_compiler
=yes
15895 echo "$as_me: failed program was:" >&5
15896 sed 's/^/| /' conftest.
$ac_ext >&5
15898 ac_header_compiler
=no
15900 rm -f conftest.
$ac_objext conftest.
$ac_ext
15901 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15902 echo "${ECHO_T}$ac_header_compiler" >&6
15904 # Is the header present?
15905 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15906 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15907 cat >conftest.
$ac_ext <<_ACEOF
15908 #line $LINENO "configure"
15911 cat confdefs.h
>>conftest.
$ac_ext
15912 cat >>conftest.
$ac_ext <<_ACEOF
15913 /* end confdefs.h. */
15914 #include <$ac_header>
15916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15917 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15919 grep -v '^ *+' conftest.er1
>conftest.err
15921 cat conftest.err
>&5
15922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923 (exit $ac_status); } >/dev
/null
; then
15924 if test -s conftest.err
; then
15925 ac_cpp_err
=$ac_c_preproc_warn_flag
15932 if test -z "$ac_cpp_err"; then
15933 ac_header_preproc
=yes
15935 echo "$as_me: failed program was:" >&5
15936 sed 's/^/| /' conftest.
$ac_ext >&5
15938 ac_header_preproc
=no
15940 rm -f conftest.err conftest.
$ac_ext
15941 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15942 echo "${ECHO_T}$ac_header_preproc" >&6
15944 # So? What about this header?
15945 case $ac_header_compiler:$ac_header_preproc in
15947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15950 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15953 ## ------------------------------------ ##
15954 ## Report this to bug-autoconf@gnu.org. ##
15955 ## ------------------------------------ ##
15958 sed "s/^/$as_me: WARNING: /" >&2
15961 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15962 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15963 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15964 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15966 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15969 ## ------------------------------------ ##
15970 ## Report this to bug-autoconf@gnu.org. ##
15971 ## ------------------------------------ ##
15974 sed "s/^/$as_me: WARNING: /" >&2
15977 echo "$as_me:$LINENO: checking for $ac_header" >&5
15978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15980 echo $ECHO_N "(cached) $ECHO_C" >&6
15982 eval "$as_ac_Header=$ac_header_preproc"
15984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15989 cat >>confdefs.h
<<_ACEOF
15990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16007 for ac_header
in com_err.h
16009 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16011 echo "$as_me:$LINENO: checking for $ac_header" >&5
16012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16014 echo $ECHO_N "(cached) $ECHO_C" >&6
16016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16019 # Is the header compilable?
16020 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16022 cat >conftest.
$ac_ext <<_ACEOF
16023 #line $LINENO "configure"
16026 cat confdefs.h
>>conftest.
$ac_ext
16027 cat >>conftest.
$ac_ext <<_ACEOF
16028 /* end confdefs.h. */
16029 $ac_includes_default
16030 #include <$ac_header>
16032 rm -f conftest.
$ac_objext
16033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16034 (eval $ac_compile) 2>&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); } &&
16038 { ac_try
='test -s conftest.$ac_objext'
16039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16040 (eval $ac_try) 2>&5
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); }; }; then
16044 ac_header_compiler
=yes
16046 echo "$as_me: failed program was:" >&5
16047 sed 's/^/| /' conftest.
$ac_ext >&5
16049 ac_header_compiler
=no
16051 rm -f conftest.
$ac_objext conftest.
$ac_ext
16052 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16053 echo "${ECHO_T}$ac_header_compiler" >&6
16055 # Is the header present?
16056 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16058 cat >conftest.
$ac_ext <<_ACEOF
16059 #line $LINENO "configure"
16062 cat confdefs.h
>>conftest.
$ac_ext
16063 cat >>conftest.
$ac_ext <<_ACEOF
16064 /* end confdefs.h. */
16065 #include <$ac_header>
16067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16068 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16070 grep -v '^ *+' conftest.er1
>conftest.err
16072 cat conftest.err
>&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); } >/dev
/null
; then
16075 if test -s conftest.err
; then
16076 ac_cpp_err
=$ac_c_preproc_warn_flag
16083 if test -z "$ac_cpp_err"; then
16084 ac_header_preproc
=yes
16086 echo "$as_me: failed program was:" >&5
16087 sed 's/^/| /' conftest.
$ac_ext >&5
16089 ac_header_preproc
=no
16091 rm -f conftest.err conftest.
$ac_ext
16092 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16093 echo "${ECHO_T}$ac_header_preproc" >&6
16095 # So? What about this header?
16096 case $ac_header_compiler:$ac_header_preproc in
16098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16104 ## ------------------------------------ ##
16105 ## Report this to bug-autoconf@gnu.org. ##
16106 ## ------------------------------------ ##
16109 sed "s/^/$as_me: WARNING: /" >&2
16112 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16113 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16114 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16115 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16117 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16120 ## ------------------------------------ ##
16121 ## Report this to bug-autoconf@gnu.org. ##
16122 ## ------------------------------------ ##
16125 sed "s/^/$as_me: WARNING: /" >&2
16128 echo "$as_me:$LINENO: checking for $ac_header" >&5
16129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16131 echo $ECHO_N "(cached) $ECHO_C" >&6
16133 eval "$as_ac_Header=$ac_header_preproc"
16135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16140 cat >>confdefs.h
<<_ACEOF
16141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16150 # Solaris requires -lintl if you want strerror (which calls dgettext)
16151 # to return localized messages.
16153 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
16154 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
16155 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
16156 echo $ECHO_N "(cached) $ECHO_C" >&6
16158 ac_check_lib_save_LIBS
=$LIBS
16159 LIBS
="-lintl $LIBS"
16160 cat >conftest.
$ac_ext <<_ACEOF
16161 #line $LINENO "configure"
16164 cat confdefs.h
>>conftest.
$ac_ext
16165 cat >>conftest.
$ac_ext <<_ACEOF
16166 /* end confdefs.h. */
16168 /* Override any gcc2 internal prototype to avoid an error. */
16172 /* We use char because int might match the return type of a gcc2
16173 builtin and then its argument prototype would still apply. */
16183 rm -f conftest.
$ac_objext conftest
$ac_exeext
16184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16185 (eval $ac_link) 2>&5
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); } &&
16189 { ac_try
='test -s conftest$ac_exeext'
16190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16191 (eval $ac_try) 2>&5
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); }; }; then
16195 ac_cv_lib_intl_dgettext
=yes
16197 echo "$as_me: failed program was:" >&5
16198 sed 's/^/| /' conftest.
$ac_ext >&5
16200 ac_cv_lib_intl_dgettext
=no
16202 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16203 LIBS
=$ac_check_lib_save_LIBS
16205 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
16206 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
16207 if test $ac_cv_lib_intl_dgettext = yes; then
16208 cat >>confdefs.h
<<_ACEOF
16209 #define HAVE_LIBINTL 1
16212 LIBS
="-lintl $LIBS"
16217 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
16218 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
16219 if test "${emacs_cv_localtime_cache+set}" = set; then
16220 echo $ECHO_N "(cached) $ECHO_C" >&6
16222 if test x
$ac_cv_func_tzset = xyes
; then
16223 if test "$cross_compiling" = yes; then
16224 # If we have tzset, assume the worst when cross-compiling.
16225 emacs_cv_localtime_cache
=yes
16227 cat >conftest.
$ac_ext <<_ACEOF
16228 #line $LINENO "configure"
16231 cat confdefs.h
>>conftest.
$ac_ext
16232 cat >>conftest.
$ac_ext <<_ACEOF
16233 /* end confdefs.h. */
16235 extern char **environ;
16239 for (to = from = environ; (*to = *from); from++)
16240 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
16243 char TZ_GMT0[] = "TZ=GMT0";
16244 char TZ_PST8[] = "TZ=PST8";
16247 time_t now = time ((time_t *) 0);
16248 int hour_GMT0, hour_unset;
16249 if (putenv (TZ_GMT0) != 0)
16251 hour_GMT0 = localtime (&now)->tm_hour;
16253 hour_unset = localtime (&now)->tm_hour;
16254 if (putenv (TZ_PST8) != 0)
16256 if (localtime (&now)->tm_hour == hour_GMT0)
16259 if (localtime (&now)->tm_hour != hour_unset)
16264 rm -f conftest
$ac_exeext
16265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16266 (eval $ac_link) 2>&5
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16271 (eval $ac_try) 2>&5
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; }; then
16275 emacs_cv_localtime_cache
=no
16277 echo "$as_me: program exited with status $ac_status" >&5
16278 echo "$as_me: failed program was:" >&5
16279 sed 's/^/| /' conftest.
$ac_ext >&5
16281 ( exit $ac_status )
16282 emacs_cv_localtime_cache
=yes
16284 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16287 # If we lack tzset, report that localtime does not cache TZ,
16288 # since we can't invalidate the cache if we don't have tzset.
16289 emacs_cv_localtime_cache
=no
16292 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
16293 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
16294 if test $emacs_cv_localtime_cache = yes; then
16296 cat >>confdefs.h
<<\_ACEOF
16297 #define LOCALTIME_CACHE 1
16302 if test "x$HAVE_TIMEVAL" = xyes
; then
16304 for ac_func
in gettimeofday
16306 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16307 echo "$as_me:$LINENO: checking for $ac_func" >&5
16308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16309 if eval "test \"\${$as_ac_var+set}\" = set"; then
16310 echo $ECHO_N "(cached) $ECHO_C" >&6
16312 cat >conftest.
$ac_ext <<_ACEOF
16313 #line $LINENO "configure"
16316 cat confdefs.h
>>conftest.
$ac_ext
16317 cat >>conftest.
$ac_ext <<_ACEOF
16318 /* end confdefs.h. */
16319 /* System header to define __stub macros and hopefully few prototypes,
16320 which can conflict with char $ac_func (); below.
16321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16322 <limits.h> exists even on freestanding compilers. */
16324 # include <limits.h>
16326 # include <assert.h>
16328 /* Override any gcc2 internal prototype to avoid an error. */
16333 /* We use char because int might match the return type of a gcc2
16334 builtin and then its argument prototype would still apply. */
16336 /* The GNU C library defines this for functions which it implements
16337 to always fail with ENOSYS. Some functions are actually named
16338 something starting with __ and the normal name is an alias. */
16339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16342 char (*f) () = $ac_func;
16351 return f != $ac_func;
16356 rm -f conftest.
$ac_objext conftest
$ac_exeext
16357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16358 (eval $ac_link) 2>&5
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); } &&
16362 { ac_try
='test -s conftest$ac_exeext'
16363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16364 (eval $ac_try) 2>&5
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); }; }; then
16368 eval "$as_ac_var=yes"
16370 echo "$as_me: failed program was:" >&5
16371 sed 's/^/| /' conftest.
$ac_ext >&5
16373 eval "$as_ac_var=no"
16375 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16378 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16379 if test `eval echo '${'$as_ac_var'}'` = yes; then
16380 cat >>confdefs.h
<<_ACEOF
16381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16387 if test $ac_cv_func_gettimeofday = yes; then
16388 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
16389 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
16390 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
16391 echo $ECHO_N "(cached) $ECHO_C" >&6
16393 cat >conftest.
$ac_ext <<_ACEOF
16394 #line $LINENO "configure"
16397 cat confdefs.h
>>conftest.
$ac_ext
16398 cat >>conftest.
$ac_ext <<_ACEOF
16399 /* end confdefs.h. */
16401 #ifdef TIME_WITH_SYS_TIME
16402 #include <sys/time.h>
16405 #ifdef HAVE_SYS_TIME_H
16406 #include <sys/time.h>
16414 struct timeval time;
16415 gettimeofday (&time, 0);
16420 rm -f conftest.
$ac_objext
16421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16422 (eval $ac_compile) 2>&5
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); } &&
16426 { ac_try
='test -s conftest.$ac_objext'
16427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16428 (eval $ac_try) 2>&5
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); }; }; then
16432 emacs_cv_gettimeofday_two_arguments
=yes
16434 echo "$as_me: failed program was:" >&5
16435 sed 's/^/| /' conftest.
$ac_ext >&5
16437 emacs_cv_gettimeofday_two_arguments
=no
16439 rm -f conftest.
$ac_objext conftest.
$ac_ext
16441 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
16442 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
16443 if test $emacs_cv_gettimeofday_two_arguments = no
; then
16445 cat >>confdefs.h
<<\_ACEOF
16446 #define GETTIMEOFDAY_ONE_ARGUMENT 1
16453 if test "$ac_cv_func_gettimeofday" = yes; then
16454 echo "$as_me:$LINENO: checking for struct timezone" >&5
16455 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
16456 if test "${emacs_cv_struct_timezone+set}" = set; then
16457 echo $ECHO_N "(cached) $ECHO_C" >&6
16459 cat >conftest.
$ac_ext <<_ACEOF
16460 #line $LINENO "configure"
16463 cat confdefs.h
>>conftest.
$ac_ext
16464 cat >>conftest.
$ac_ext <<_ACEOF
16465 /* end confdefs.h. */
16466 #include <sys/time.h>
16470 struct timezone tz;
16475 rm -f conftest.
$ac_objext
16476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16477 (eval $ac_compile) 2>&5
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); } &&
16481 { ac_try
='test -s conftest.$ac_objext'
16482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16483 (eval $ac_try) 2>&5
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); }; }; then
16487 if test "$cross_compiling" = yes; then
16488 emacs_cv_struct_timezone
=yes
16490 cat >conftest.
$ac_ext <<_ACEOF
16491 #line $LINENO "configure"
16494 cat confdefs.h
>>conftest.
$ac_ext
16495 cat >>conftest.
$ac_ext <<_ACEOF
16496 /* end confdefs.h. */
16498 #ifdef TIME_WITH_SYS_TIME
16499 #include <sys/time.h>
16502 #ifdef HAVE_SYS_TIME_H
16503 #include <sys/time.h>
16509 struct timeval time;
16510 struct timezone dummy;
16511 exit (gettimeofday (&time, &dummy));
16514 rm -f conftest
$ac_exeext
16515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16516 (eval $ac_link) 2>&5
16518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16521 (eval $ac_try) 2>&5
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); }; }; then
16525 emacs_cv_struct_timezone
=yes
16527 echo "$as_me: program exited with status $ac_status" >&5
16528 echo "$as_me: failed program was:" >&5
16529 sed 's/^/| /' conftest.
$ac_ext >&5
16531 ( exit $ac_status )
16532 emacs_cv_struct_timezone
=no
16534 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16537 echo "$as_me: failed program was:" >&5
16538 sed 's/^/| /' conftest.
$ac_ext >&5
16540 emacs_cv_struct_timezone
=no
16542 rm -f conftest.
$ac_objext conftest.
$ac_ext
16544 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
16545 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
16549 echo "$as_me:$LINENO: checking for socket" >&5
16550 echo $ECHO_N "checking for socket... $ECHO_C" >&6
16551 if test "${ac_cv_func_socket+set}" = set; then
16552 echo $ECHO_N "(cached) $ECHO_C" >&6
16554 cat >conftest.
$ac_ext <<_ACEOF
16555 #line $LINENO "configure"
16558 cat confdefs.h
>>conftest.
$ac_ext
16559 cat >>conftest.
$ac_ext <<_ACEOF
16560 /* end confdefs.h. */
16561 /* System header to define __stub macros and hopefully few prototypes,
16562 which can conflict with char socket (); below.
16563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16564 <limits.h> exists even on freestanding compilers. */
16566 # include <limits.h>
16568 # include <assert.h>
16570 /* Override any gcc2 internal prototype to avoid an error. */
16575 /* We use char because int might match the return type of a gcc2
16576 builtin and then its argument prototype would still apply. */
16578 /* The GNU C library defines this for functions which it implements
16579 to always fail with ENOSYS. Some functions are actually named
16580 something starting with __ and the normal name is an alias. */
16581 #if defined (__stub_socket) || defined (__stub___socket)
16584 char (*f) () = socket;
16593 return f != socket;
16598 rm -f conftest.
$ac_objext conftest
$ac_exeext
16599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16600 (eval $ac_link) 2>&5
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); } &&
16604 { ac_try
='test -s conftest$ac_exeext'
16605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16606 (eval $ac_try) 2>&5
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; }; then
16610 ac_cv_func_socket
=yes
16612 echo "$as_me: failed program was:" >&5
16613 sed 's/^/| /' conftest.
$ac_ext >&5
16615 ac_cv_func_socket
=no
16617 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16619 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16620 echo "${ECHO_T}$ac_cv_func_socket" >&6
16621 if test $ac_cv_func_socket = yes; then
16627 if test $ok_so_far = yes; then
16628 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16629 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
16630 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
16631 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16632 echo $ECHO_N "(cached) $ECHO_C" >&6
16634 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
16635 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
16637 # Is the header compilable?
16638 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
16639 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
16640 cat >conftest.
$ac_ext <<_ACEOF
16641 #line $LINENO "configure"
16644 cat confdefs.h
>>conftest.
$ac_ext
16645 cat >>conftest.
$ac_ext <<_ACEOF
16646 /* end confdefs.h. */
16647 $ac_includes_default
16648 #include <netinet/in.h>
16650 rm -f conftest.
$ac_objext
16651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16652 (eval $ac_compile) 2>&5
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); } &&
16656 { ac_try
='test -s conftest.$ac_objext'
16657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658 (eval $ac_try) 2>&5
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; }; then
16662 ac_header_compiler
=yes
16664 echo "$as_me: failed program was:" >&5
16665 sed 's/^/| /' conftest.
$ac_ext >&5
16667 ac_header_compiler
=no
16669 rm -f conftest.
$ac_objext conftest.
$ac_ext
16670 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16671 echo "${ECHO_T}$ac_header_compiler" >&6
16673 # Is the header present?
16674 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
16675 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
16676 cat >conftest.
$ac_ext <<_ACEOF
16677 #line $LINENO "configure"
16680 cat confdefs.h
>>conftest.
$ac_ext
16681 cat >>conftest.
$ac_ext <<_ACEOF
16682 /* end confdefs.h. */
16683 #include <netinet/in.h>
16685 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16686 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16688 grep -v '^ *+' conftest.er1
>conftest.err
16690 cat conftest.err
>&5
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); } >/dev
/null
; then
16693 if test -s conftest.err
; then
16694 ac_cpp_err
=$ac_c_preproc_warn_flag
16701 if test -z "$ac_cpp_err"; then
16702 ac_header_preproc
=yes
16704 echo "$as_me: failed program was:" >&5
16705 sed 's/^/| /' conftest.
$ac_ext >&5
16707 ac_header_preproc
=no
16709 rm -f conftest.err conftest.
$ac_ext
16710 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16711 echo "${ECHO_T}$ac_header_preproc" >&6
16713 # So? What about this header?
16714 case $ac_header_compiler:$ac_header_preproc in
16716 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
16717 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16718 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
16719 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
16722 ## ------------------------------------ ##
16723 ## Report this to bug-autoconf@gnu.org. ##
16724 ## ------------------------------------ ##
16727 sed "s/^/$as_me: WARNING: /" >&2
16730 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
16731 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
16732 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
16733 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
16734 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
16735 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
16738 ## ------------------------------------ ##
16739 ## Report this to bug-autoconf@gnu.org. ##
16740 ## ------------------------------------ ##
16743 sed "s/^/$as_me: WARNING: /" >&2
16746 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
16747 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
16748 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16749 echo $ECHO_N "(cached) $ECHO_C" >&6
16751 ac_cv_header_netinet_in_h
=$ac_header_preproc
16753 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
16754 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
16757 if test $ac_cv_header_netinet_in_h = yes; then
16765 if test $ok_so_far = yes; then
16766 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16767 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
16768 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
16769 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16770 echo $ECHO_N "(cached) $ECHO_C" >&6
16772 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
16773 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
16775 # Is the header compilable?
16776 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
16777 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
16778 cat >conftest.
$ac_ext <<_ACEOF
16779 #line $LINENO "configure"
16782 cat confdefs.h
>>conftest.
$ac_ext
16783 cat >>conftest.
$ac_ext <<_ACEOF
16784 /* end confdefs.h. */
16785 $ac_includes_default
16786 #include <arpa/inet.h>
16788 rm -f conftest.
$ac_objext
16789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16790 (eval $ac_compile) 2>&5
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); } &&
16794 { ac_try
='test -s conftest.$ac_objext'
16795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16796 (eval $ac_try) 2>&5
16798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); }; }; then
16800 ac_header_compiler
=yes
16802 echo "$as_me: failed program was:" >&5
16803 sed 's/^/| /' conftest.
$ac_ext >&5
16805 ac_header_compiler
=no
16807 rm -f conftest.
$ac_objext conftest.
$ac_ext
16808 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16809 echo "${ECHO_T}$ac_header_compiler" >&6
16811 # Is the header present?
16812 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
16813 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
16814 cat >conftest.
$ac_ext <<_ACEOF
16815 #line $LINENO "configure"
16818 cat confdefs.h
>>conftest.
$ac_ext
16819 cat >>conftest.
$ac_ext <<_ACEOF
16820 /* end confdefs.h. */
16821 #include <arpa/inet.h>
16823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16824 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16826 grep -v '^ *+' conftest.er1
>conftest.err
16828 cat conftest.err
>&5
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); } >/dev
/null
; then
16831 if test -s conftest.err
; then
16832 ac_cpp_err
=$ac_c_preproc_warn_flag
16839 if test -z "$ac_cpp_err"; then
16840 ac_header_preproc
=yes
16842 echo "$as_me: failed program was:" >&5
16843 sed 's/^/| /' conftest.
$ac_ext >&5
16845 ac_header_preproc
=no
16847 rm -f conftest.err conftest.
$ac_ext
16848 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16849 echo "${ECHO_T}$ac_header_preproc" >&6
16851 # So? What about this header?
16852 case $ac_header_compiler:$ac_header_preproc in
16854 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
16855 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16856 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
16857 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
16860 ## ------------------------------------ ##
16861 ## Report this to bug-autoconf@gnu.org. ##
16862 ## ------------------------------------ ##
16865 sed "s/^/$as_me: WARNING: /" >&2
16868 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
16869 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
16870 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
16871 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
16872 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
16873 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
16876 ## ------------------------------------ ##
16877 ## Report this to bug-autoconf@gnu.org. ##
16878 ## ------------------------------------ ##
16881 sed "s/^/$as_me: WARNING: /" >&2
16884 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
16885 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
16886 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16887 echo $ECHO_N "(cached) $ECHO_C" >&6
16889 ac_cv_header_arpa_inet_h
=$ac_header_preproc
16891 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
16892 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
16895 if test $ac_cv_header_arpa_inet_h = yes; then
16903 if test $ok_so_far = yes; then
16905 cat >>confdefs.h
<<\_ACEOF
16906 #define HAVE_INET_SOCKETS 1
16911 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
16913 cat >>confdefs.h
<<\_ACEOF
16914 #define HAVE_AIX_SMT_EXP 1
16919 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
16920 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
16921 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
16922 echo "$as_me:$LINENO: result: yes" >&5
16923 echo "${ECHO_T}yes" >&6
16925 cat >>confdefs.h
<<\_ACEOF
16926 #define HAVE_DEV_PTMX 1
16930 echo "$as_me:$LINENO: result: no" >&5
16931 echo "${ECHO_T}no" >&6
16934 echo "$as_me:$LINENO: checking for pid_t" >&5
16935 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16936 if test "${ac_cv_type_pid_t+set}" = set; then
16937 echo $ECHO_N "(cached) $ECHO_C" >&6
16939 cat >conftest.
$ac_ext <<_ACEOF
16940 #line $LINENO "configure"
16943 cat confdefs.h
>>conftest.
$ac_ext
16944 cat >>conftest.
$ac_ext <<_ACEOF
16945 /* end confdefs.h. */
16946 $ac_includes_default
16952 if (sizeof (pid_t))
16958 rm -f conftest.
$ac_objext
16959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16960 (eval $ac_compile) 2>&5
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); } &&
16964 { ac_try
='test -s conftest.$ac_objext'
16965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16966 (eval $ac_try) 2>&5
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }; }; then
16970 ac_cv_type_pid_t
=yes
16972 echo "$as_me: failed program was:" >&5
16973 sed 's/^/| /' conftest.
$ac_ext >&5
16975 ac_cv_type_pid_t
=no
16977 rm -f conftest.
$ac_objext conftest.
$ac_ext
16979 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16980 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
16981 if test $ac_cv_type_pid_t = yes; then
16985 cat >>confdefs.h
<<_ACEOF
16993 for ac_header
in unistd.h vfork.h
16995 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16997 echo "$as_me:$LINENO: checking for $ac_header" >&5
16998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17000 echo $ECHO_N "(cached) $ECHO_C" >&6
17002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17005 # Is the header compilable?
17006 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17008 cat >conftest.
$ac_ext <<_ACEOF
17009 #line $LINENO "configure"
17012 cat confdefs.h
>>conftest.
$ac_ext
17013 cat >>conftest.
$ac_ext <<_ACEOF
17014 /* end confdefs.h. */
17015 $ac_includes_default
17016 #include <$ac_header>
17018 rm -f conftest.
$ac_objext
17019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17020 (eval $ac_compile) 2>&5
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); } &&
17024 { ac_try
='test -s conftest.$ac_objext'
17025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17026 (eval $ac_try) 2>&5
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); }; }; then
17030 ac_header_compiler
=yes
17032 echo "$as_me: failed program was:" >&5
17033 sed 's/^/| /' conftest.
$ac_ext >&5
17035 ac_header_compiler
=no
17037 rm -f conftest.
$ac_objext conftest.
$ac_ext
17038 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17039 echo "${ECHO_T}$ac_header_compiler" >&6
17041 # Is the header present?
17042 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17043 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17044 cat >conftest.
$ac_ext <<_ACEOF
17045 #line $LINENO "configure"
17048 cat confdefs.h
>>conftest.
$ac_ext
17049 cat >>conftest.
$ac_ext <<_ACEOF
17050 /* end confdefs.h. */
17051 #include <$ac_header>
17053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17054 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17056 grep -v '^ *+' conftest.er1
>conftest.err
17058 cat conftest.err
>&5
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); } >/dev
/null
; then
17061 if test -s conftest.err
; then
17062 ac_cpp_err
=$ac_c_preproc_warn_flag
17069 if test -z "$ac_cpp_err"; then
17070 ac_header_preproc
=yes
17072 echo "$as_me: failed program was:" >&5
17073 sed 's/^/| /' conftest.
$ac_ext >&5
17075 ac_header_preproc
=no
17077 rm -f conftest.err conftest.
$ac_ext
17078 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17079 echo "${ECHO_T}$ac_header_preproc" >&6
17081 # So? What about this header?
17082 case $ac_header_compiler:$ac_header_preproc in
17084 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17085 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17087 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17090 ## ------------------------------------ ##
17091 ## Report this to bug-autoconf@gnu.org. ##
17092 ## ------------------------------------ ##
17095 sed "s/^/$as_me: WARNING: /" >&2
17098 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17099 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17100 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17101 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17106 ## ------------------------------------ ##
17107 ## Report this to bug-autoconf@gnu.org. ##
17108 ## ------------------------------------ ##
17111 sed "s/^/$as_me: WARNING: /" >&2
17114 echo "$as_me:$LINENO: checking for $ac_header" >&5
17115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17117 echo $ECHO_N "(cached) $ECHO_C" >&6
17119 eval "$as_ac_Header=$ac_header_preproc"
17121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17126 cat >>confdefs.h
<<_ACEOF
17127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17136 for ac_func
in fork vfork
17138 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17139 echo "$as_me:$LINENO: checking for $ac_func" >&5
17140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17141 if eval "test \"\${$as_ac_var+set}\" = set"; then
17142 echo $ECHO_N "(cached) $ECHO_C" >&6
17144 cat >conftest.
$ac_ext <<_ACEOF
17145 #line $LINENO "configure"
17148 cat confdefs.h
>>conftest.
$ac_ext
17149 cat >>conftest.
$ac_ext <<_ACEOF
17150 /* end confdefs.h. */
17151 /* System header to define __stub macros and hopefully few prototypes,
17152 which can conflict with char $ac_func (); below.
17153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17154 <limits.h> exists even on freestanding compilers. */
17156 # include <limits.h>
17158 # include <assert.h>
17160 /* Override any gcc2 internal prototype to avoid an error. */
17165 /* We use char because int might match the return type of a gcc2
17166 builtin and then its argument prototype would still apply. */
17168 /* The GNU C library defines this for functions which it implements
17169 to always fail with ENOSYS. Some functions are actually named
17170 something starting with __ and the normal name is an alias. */
17171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17174 char (*f) () = $ac_func;
17183 return f != $ac_func;
17188 rm -f conftest.
$ac_objext conftest
$ac_exeext
17189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17190 (eval $ac_link) 2>&5
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); } &&
17194 { ac_try
='test -s conftest$ac_exeext'
17195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17196 (eval $ac_try) 2>&5
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); }; }; then
17200 eval "$as_ac_var=yes"
17202 echo "$as_me: failed program was:" >&5
17203 sed 's/^/| /' conftest.
$ac_ext >&5
17205 eval "$as_ac_var=no"
17207 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17210 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17211 if test `eval echo '${'$as_ac_var'}'` = yes; then
17212 cat >>confdefs.h
<<_ACEOF
17213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17219 if test "x$ac_cv_func_fork" = xyes
; then
17220 echo "$as_me:$LINENO: checking for working fork" >&5
17221 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17222 if test "${ac_cv_func_fork_works+set}" = set; then
17223 echo $ECHO_N "(cached) $ECHO_C" >&6
17225 if test "$cross_compiling" = yes; then
17226 ac_cv_func_fork_works
=cross
17228 cat >conftest.
$ac_ext <<_ACEOF
17229 /* By Ruediger Kuhlmann. */
17230 #include <sys/types.h>
17232 # include <unistd.h>
17234 /* Some systems only have a dummy stub for fork() */
17242 rm -f conftest
$ac_exeext
17243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17244 (eval $ac_link) 2>&5
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17249 (eval $ac_try) 2>&5
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); }; }; then
17253 ac_cv_func_fork_works
=yes
17255 echo "$as_me: program exited with status $ac_status" >&5
17256 echo "$as_me: failed program was:" >&5
17257 sed 's/^/| /' conftest.
$ac_ext >&5
17259 ( exit $ac_status )
17260 ac_cv_func_fork_works
=no
17262 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17265 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
17266 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17269 ac_cv_func_fork_works
=$ac_cv_func_fork
17271 if test "x$ac_cv_func_fork_works" = xcross
; then
17273 *-*-amigaos* |
*-*-msdosdjgpp*)
17274 # Override, as these systems have only a dummy fork() stub
17275 ac_cv_func_fork_works
=no
17278 ac_cv_func_fork_works
=yes
17281 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17282 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17284 ac_cv_func_vfork_works
=$ac_cv_func_vfork
17285 if test "x$ac_cv_func_vfork" = xyes
; then
17286 echo "$as_me:$LINENO: checking for working vfork" >&5
17287 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17288 if test "${ac_cv_func_vfork_works+set}" = set; then
17289 echo $ECHO_N "(cached) $ECHO_C" >&6
17291 if test "$cross_compiling" = yes; then
17292 ac_cv_func_vfork_works
=cross
17294 cat >conftest.
$ac_ext <<_ACEOF
17295 #line $LINENO "configure"
17298 cat confdefs.h
>>conftest.
$ac_ext
17299 cat >>conftest.
$ac_ext <<_ACEOF
17300 /* end confdefs.h. */
17301 /* Thanks to Paul Eggert for this test. */
17303 #include <stdlib.h>
17304 #include <sys/types.h>
17305 #include <sys/stat.h>
17306 #include <sys/wait.h>
17308 # include <unistd.h>
17311 # include <vfork.h>
17313 /* On some sparc systems, changes by the child to local and incoming
17314 argument registers are propagated back to the parent. The compiler
17315 is told about this with #include <vfork.h>, but some compilers
17316 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17317 static variable whose address is put into a register that is
17318 clobbered by the vfork. */
17321 sparc_address_test (int arg)
17323 sparc_address_test (arg) int arg;
17326 static pid_t child;
17344 pid_t parent = getpid ();
17347 sparc_address_test (0);
17352 /* Here is another test for sparc vfork register problems. This
17353 test uses lots of local variables, at least as many local
17354 variables as main has allocated so far including compiler
17355 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17356 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17357 reuse the register of parent for one of the local variables,
17358 since it will think that parent can't possibly be used any more
17359 in this routine. Assigning to the local variable will thus
17360 munge parent in the parent process. */
17362 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17363 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17364 /* Convince the compiler that p..p7 are live; otherwise, it might
17365 use the same hardware register for all 8 local variables. */
17366 if (p != p1 || p != p2 || p != p3 || p != p4
17367 || p != p5 || p != p6 || p != p7)
17370 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17371 from child file descriptors. If the child closes a descriptor
17372 before it execs or exits, this munges the parent's descriptor
17373 as well. Test for this by closing stdout in the child. */
17374 _exit(close(fileno(stdout)) != 0);
17379 while (wait(&status) != child)
17382 /* Was there some problem with vforking? */
17385 /* Did the child fail? (This shouldn't happen.) */
17388 /* Did the vfork/compiler bug occur? */
17389 || parent != getpid()
17391 /* Did the file descriptor bug occur? */
17392 || fstat(fileno(stdout), &st) != 0
17397 rm -f conftest
$ac_exeext
17398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17399 (eval $ac_link) 2>&5
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17404 (eval $ac_try) 2>&5
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); }; }; then
17408 ac_cv_func_vfork_works
=yes
17410 echo "$as_me: program exited with status $ac_status" >&5
17411 echo "$as_me: failed program was:" >&5
17412 sed 's/^/| /' conftest.
$ac_ext >&5
17414 ( exit $ac_status )
17415 ac_cv_func_vfork_works
=no
17417 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17420 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
17421 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17424 if test "x$ac_cv_func_fork_works" = xcross
; then
17425 ac_cv_func_vfork_works
=ac_cv_func_vfork
17426 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17427 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17430 if test "x$ac_cv_func_vfork_works" = xyes
; then
17432 cat >>confdefs.h
<<\_ACEOF
17433 #define HAVE_WORKING_VFORK 1
17438 cat >>confdefs.h
<<\_ACEOF
17443 if test "x$ac_cv_func_fork_works" = xyes
; then
17445 cat >>confdefs.h
<<\_ACEOF
17446 #define HAVE_WORKING_FORK 1
17452 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17453 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17454 if test "${emacs_cv_langinfo_codeset+set}" = set; then
17455 echo $ECHO_N "(cached) $ECHO_C" >&6
17457 cat >conftest.
$ac_ext <<_ACEOF
17458 #line $LINENO "configure"
17461 cat confdefs.h
>>conftest.
$ac_ext
17462 cat >>conftest.
$ac_ext <<_ACEOF
17463 /* end confdefs.h. */
17464 #include <langinfo.h>
17468 char* cs = nl_langinfo(CODESET);
17473 rm -f conftest.
$ac_objext conftest
$ac_exeext
17474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17475 (eval $ac_link) 2>&5
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); } &&
17479 { ac_try
='test -s conftest$ac_exeext'
17480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17481 (eval $ac_try) 2>&5
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); }; }; then
17485 emacs_cv_langinfo_codeset
=yes
17487 echo "$as_me: failed program was:" >&5
17488 sed 's/^/| /' conftest.
$ac_ext >&5
17490 emacs_cv_langinfo_codeset
=no
17492 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17495 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
17496 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
17497 if test $emacs_cv_langinfo_codeset = yes; then
17499 cat >>confdefs.h
<<\_ACEOF
17500 #define HAVE_LANGINFO_CODESET 1
17505 echo "$as_me:$LINENO: checking for size_t" >&5
17506 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17507 if test "${ac_cv_type_size_t+set}" = set; then
17508 echo $ECHO_N "(cached) $ECHO_C" >&6
17510 cat >conftest.
$ac_ext <<_ACEOF
17511 #line $LINENO "configure"
17514 cat confdefs.h
>>conftest.
$ac_ext
17515 cat >>conftest.
$ac_ext <<_ACEOF
17516 /* end confdefs.h. */
17517 $ac_includes_default
17523 if (sizeof (size_t))
17529 rm -f conftest.
$ac_objext
17530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17531 (eval $ac_compile) 2>&5
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); } &&
17535 { ac_try
='test -s conftest.$ac_objext'
17536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17537 (eval $ac_try) 2>&5
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); }; }; then
17541 ac_cv_type_size_t
=yes
17543 echo "$as_me: failed program was:" >&5
17544 sed 's/^/| /' conftest.
$ac_ext >&5
17546 ac_cv_type_size_t
=no
17548 rm -f conftest.
$ac_objext conftest.
$ac_ext
17550 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17551 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17552 if test $ac_cv_type_size_t = yes; then
17554 cat >>confdefs.h
<<_ACEOF
17555 #define HAVE_SIZE_T 1
17562 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
17563 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
17564 if test "${emacs_cv_c_restrict+set}" = set; then
17565 echo $ECHO_N "(cached) $ECHO_C" >&6
17567 cat >conftest.
$ac_ext <<_ACEOF
17568 #line $LINENO "configure"
17571 cat confdefs.h
>>conftest.
$ac_ext
17572 cat >>conftest.
$ac_ext <<_ACEOF
17573 /* end confdefs.h. */
17574 void fred (int *restrict x);
17583 rm -f conftest.
$ac_objext
17584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17585 (eval $ac_compile) 2>&5
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); } &&
17589 { ac_try
='test -s conftest.$ac_objext'
17590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17591 (eval $ac_try) 2>&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); }; }; then
17595 emacs_cv_c_restrict
=yes
17597 echo "$as_me: failed program was:" >&5
17598 sed 's/^/| /' conftest.
$ac_ext >&5
17600 cat >conftest.
$ac_ext <<_ACEOF
17601 #line $LINENO "configure"
17604 cat confdefs.h
>>conftest.
$ac_ext
17605 cat >>conftest.
$ac_ext <<_ACEOF
17606 /* end confdefs.h. */
17607 void fred (int *__restrict x);
17616 rm -f conftest.
$ac_objext
17617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17618 (eval $ac_compile) 2>&5
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); } &&
17622 { ac_try
='test -s conftest.$ac_objext'
17623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17624 (eval $ac_try) 2>&5
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); }; }; then
17628 emacs_cv_c_restrict
=__restrict
17630 echo "$as_me: failed program was:" >&5
17631 sed 's/^/| /' conftest.
$ac_ext >&5
17633 emacs_cv_c_restrict
=no
17635 rm -f conftest.
$ac_objext conftest.
$ac_ext
17637 rm -f conftest.
$ac_objext conftest.
$ac_ext
17639 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
17640 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
17641 case "$emacs_cv_c_restrict" in
17642 yes) emacs_restrict
=restrict
;;
17643 no
) emacs_restrict
="";;
17644 *) emacs_restrict
="$emacs_cv_c_restrict";;
17646 if test "$emacs_restrict" != __restrict
; then
17648 cat >>confdefs.h
<<_ACEOF
17649 #define __restrict $emacs_restrict
17654 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
17655 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
17656 if test "${emacs_cv_c_restrict_arr+set}" = set; then
17657 echo $ECHO_N "(cached) $ECHO_C" >&6
17659 cat >conftest.
$ac_ext <<_ACEOF
17660 #line $LINENO "configure"
17663 cat confdefs.h
>>conftest.
$ac_ext
17664 cat >>conftest.
$ac_ext <<_ACEOF
17665 /* end confdefs.h. */
17666 void fred (int x[__restrict]);
17675 rm -f conftest.
$ac_objext
17676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17677 (eval $ac_compile) 2>&5
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); } &&
17681 { ac_try
='test -s conftest.$ac_objext'
17682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17683 (eval $ac_try) 2>&5
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); }; }; then
17687 emacs_cv_c_restrict_arr
=yes
17689 echo "$as_me: failed program was:" >&5
17690 sed 's/^/| /' conftest.
$ac_ext >&5
17692 emacs_cv_c_restrict_arr
=no
17694 rm -f conftest.
$ac_objext conftest.
$ac_ext
17696 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
17697 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
17698 if test "$emacs_cv_c_restrict_arr" = yes; then
17700 cat >>confdefs.h
<<\_ACEOF
17701 #define __restrict_arr __restrict
17707 for ac_header
in nlist.h
17709 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17711 echo "$as_me:$LINENO: checking for $ac_header" >&5
17712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17714 echo $ECHO_N "(cached) $ECHO_C" >&6
17716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17719 # Is the header compilable?
17720 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17722 cat >conftest.
$ac_ext <<_ACEOF
17723 #line $LINENO "configure"
17726 cat confdefs.h
>>conftest.
$ac_ext
17727 cat >>conftest.
$ac_ext <<_ACEOF
17728 /* end confdefs.h. */
17729 $ac_includes_default
17730 #include <$ac_header>
17732 rm -f conftest.
$ac_objext
17733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17734 (eval $ac_compile) 2>&5
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); } &&
17738 { ac_try
='test -s conftest.$ac_objext'
17739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17740 (eval $ac_try) 2>&5
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); }; }; then
17744 ac_header_compiler
=yes
17746 echo "$as_me: failed program was:" >&5
17747 sed 's/^/| /' conftest.
$ac_ext >&5
17749 ac_header_compiler
=no
17751 rm -f conftest.
$ac_objext conftest.
$ac_ext
17752 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17753 echo "${ECHO_T}$ac_header_compiler" >&6
17755 # Is the header present?
17756 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17757 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17758 cat >conftest.
$ac_ext <<_ACEOF
17759 #line $LINENO "configure"
17762 cat confdefs.h
>>conftest.
$ac_ext
17763 cat >>conftest.
$ac_ext <<_ACEOF
17764 /* end confdefs.h. */
17765 #include <$ac_header>
17767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17768 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17770 grep -v '^ *+' conftest.er1
>conftest.err
17772 cat conftest.err
>&5
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); } >/dev
/null
; then
17775 if test -s conftest.err
; then
17776 ac_cpp_err
=$ac_c_preproc_warn_flag
17783 if test -z "$ac_cpp_err"; then
17784 ac_header_preproc
=yes
17786 echo "$as_me: failed program was:" >&5
17787 sed 's/^/| /' conftest.
$ac_ext >&5
17789 ac_header_preproc
=no
17791 rm -f conftest.err conftest.
$ac_ext
17792 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17793 echo "${ECHO_T}$ac_header_preproc" >&6
17795 # So? What about this header?
17796 case $ac_header_compiler:$ac_header_preproc in
17798 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17799 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17804 ## ------------------------------------ ##
17805 ## Report this to bug-autoconf@gnu.org. ##
17806 ## ------------------------------------ ##
17809 sed "s/^/$as_me: WARNING: /" >&2
17812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17820 ## ------------------------------------ ##
17821 ## Report this to bug-autoconf@gnu.org. ##
17822 ## ------------------------------------ ##
17825 sed "s/^/$as_me: WARNING: /" >&2
17828 echo "$as_me:$LINENO: checking for $ac_header" >&5
17829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17831 echo $ECHO_N "(cached) $ECHO_C" >&6
17833 eval "$as_ac_Header=$ac_header_preproc"
17835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17836 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17840 cat >>confdefs.h
<<_ACEOF
17841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17844 cat >>confdefs.h
<<\_ACEOF
17845 #define NLIST_STRUCT 1
17855 # Set up the CFLAGS for real compilation, so we can substitute it.
17856 CFLAGS
="$REAL_CFLAGS"
17857 CPPFLAGS
="$REAL_CPPFLAGS"
17859 #### Find out which version of Emacs this is.
17860 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
17861 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
17862 if test x
"${version}" = x
; then
17863 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
17864 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
17865 { (exit 1); exit 1; }; }
17868 ### Specify what sort of things we'll be editing into Makefile and config.h.
17869 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17905 cat >>confdefs.h
<<_ACEOF
17906 #define EMACS_CONFIGURATION "${canonical}"
17910 cat >>confdefs.h
<<_ACEOF
17911 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
17915 cat >>confdefs.h
<<_ACEOF
17916 #define config_machfile "${machfile}"
17920 cat >>confdefs.h
<<_ACEOF
17921 #define config_opsysfile "${opsysfile}"
17925 cat >>confdefs.h
<<_ACEOF
17926 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
17930 cat >>confdefs.h
<<_ACEOF
17931 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
17935 cat >>confdefs.h
<<_ACEOF
17936 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
17940 cat >>confdefs.h
<<_ACEOF
17941 #define UNEXEC_SRC ${UNEXEC_SRC}
17945 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17947 cat >>confdefs.h
<<\_ACEOF
17948 #define HAVE_X_WINDOWS 1
17952 if test "${USE_X_TOOLKIT}" != "none" ; then
17954 cat >>confdefs.h
<<\_ACEOF
17955 #define USE_X_TOOLKIT 1
17959 if test "${HAVE_X11}" = "yes" ; then
17961 cat >>confdefs.h
<<\_ACEOF
17966 if test "${HAVE_XFREE386}" = "yes" ; then
17968 cat >>confdefs.h
<<\_ACEOF
17969 #define HAVE_XFREE386 1
17973 if test "${HAVE_MENUS}" = "yes" ; then
17975 cat >>confdefs.h
<<\_ACEOF
17976 #define HAVE_MENUS 1
17980 if test "${GNU_MALLOC}" = "yes" ; then
17982 cat >>confdefs.h
<<\_ACEOF
17983 #define GNU_MALLOC 1
17987 if test "${REL_ALLOC}" = "yes" ; then
17989 cat >>confdefs.h
<<\_ACEOF
17990 #define REL_ALLOC 1
17999 #### Report on what we decided to do.
18000 #### Report GTK as a toolkit, even if it doesn't use Xt.
18001 #### It makes printing result more understandable as using GTK sets
18002 #### toolkit_scroll_bars to yes by default.
18003 if test "${HAVE_GTK}" = "yes"; then
18008 Configured for \`${canonical}'.
18010 Where should the build process find the source code? ${srcdir}
18011 What operating system and machine description files should Emacs use?
18012 \`${opsysfile}' and \`${machfile}'
18013 What compiler should emacs be built with? ${CC} ${CFLAGS}
18014 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
18015 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
18016 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
18017 What window system should Emacs use? ${window_system}
18018 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
18020 if test -n "${x_includes}"; then
18021 echo " Where do we find X Windows header files? ${x_includes}"
18023 echo " Where do we find X Windows header files? Standard dirs"
18025 if test -n "${x_libraries}"; then
18026 echo " Where do we find X Windows libraries? ${x_libraries}"
18028 echo " Where do we find X Windows libraries? Standard dirs"
18031 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
18032 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
18033 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
18034 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
18035 echo " Does Emacs use -lungif? ${HAVE_GIF}"
18036 echo " Does Emacs use -lpng? ${HAVE_PNG}"
18037 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
18040 # Remove any trailing slashes in these variables.
18041 test "${prefix}" != NONE
&&
18042 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
18043 test "${exec_prefix}" != NONE
&&
18044 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
18046 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
18047 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
18048 ## from Makefile.c can correctly provide the arg `-traditional' to the
18051 cat >conftest.
$ac_ext <<_ACEOF
18052 #line $LINENO "configure"
18055 cat confdefs.h
>>conftest.
$ac_ext
18056 cat >>conftest.
$ac_ext <<_ACEOF
18057 /* end confdefs.h. */
18060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18061 $EGREP "yes..yes" >/dev
/null
2>&1; then
18062 CPP_NEED_TRADITIONAL
=no
18064 CPP_NEED_TRADITIONAL
=yes
18069 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"
18070 ac_config_commands
="$ac_config_commands default"
18071 cat >confcache
<<\_ACEOF
18072 # This file is a shell script that caches the results of configure
18073 # tests run on this system so they can be shared between configure
18074 # scripts and configure runs, see configure's option --config-cache.
18075 # It is not useful on other systems. If it contains results you don't
18076 # want to keep, you may remove or edit it.
18078 # config.status only pays attention to the cache file if you give it
18079 # the --recheck option to rerun configure.
18081 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18082 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18083 # following values.
18087 # The following way of writing the cache mishandles newlines in values,
18088 # but we know of no workaround that is simple, portable, and efficient.
18089 # So, don't put newlines in cache variables' values.
18090 # Ultrix sh set writes to stderr and can't be redirected directly,
18091 # and sets the high bit in the cache file unless we assign to the vars.
18094 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18096 # `set' does not quote correctly, so add quotes (double-quote
18097 # substitution turns \\\\ into \\, and sed turns \\ into \).
18100 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18103 # `set' quotes correctly as required by POSIX, so do not add quotes.
18105 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18112 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18114 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18116 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
18117 if test -w $cache_file; then
18118 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18119 cat confcache
>$cache_file
18121 echo "not updating unwritable cache $cache_file"
18126 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
18127 # Let make expand exec_prefix.
18128 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
18130 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18131 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18132 # trailing colons and then remove the whole line if VPATH becomes empty
18133 # (actually we leave an empty line to preserve line numbers).
18134 if test "x$srcdir" = x.
; then
18135 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
18136 s/:*\$(srcdir):*/:/;
18137 s/:*\${srcdir}:*/:/;
18139 s/^\([^=]*=[ ]*\):*/\1/;
18145 DEFS
=-DHAVE_CONFIG_H
18149 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
18150 # 1. Remove the extension, and $U if already installed.
18151 ac_i
=`echo "$ac_i" |
18152 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18154 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
18155 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
18157 LIBOBJS
=$ac_libobjs
18159 LTLIBOBJS
=$ac_ltlibobjs
18163 : ${CONFIG_STATUS=./config.status}
18164 ac_clean_files_save
=$ac_clean_files
18165 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
18166 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18167 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18168 cat >$CONFIG_STATUS <<_ACEOF
18170 # Generated by $as_me.
18171 # Run this file to recreate the current configuration.
18172 # Compiler output produced by configure, useful for debugging
18173 # configure, is in config.log if it exists.
18176 ac_cs_recheck=false
18178 SHELL=\${CONFIG_SHELL-$SHELL}
18181 cat >>$CONFIG_STATUS <<\_ACEOF
18182 ## --------------------- ##
18183 ## M4sh Initialization. ##
18184 ## --------------------- ##
18186 # Be Bourne compatible
18187 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18190 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18191 # is contrary to our usage. Disable this feature.
18192 alias -g '${1+"$@"}'='"$@"'
18193 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
18197 # Support unset when possible.
18198 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
18205 # Work around bugs in pre-3.0 UWIN ksh.
18206 $as_unset ENV MAIL MAILPATH
18213 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18214 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18215 LC_TELEPHONE LC_TIME
18217 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18218 eval $as_var=C
; export $as_var
18224 # Required to use basename.
18225 if expr a
: '\(a\)' >/dev
/null
2>&1; then
18231 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
18232 as_basename
=basename
18238 # Name of the executable.
18239 as_me
=`$as_basename "$0" ||
18240 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18241 X"$0" : 'X\(//\)$' \| \
18242 X"$0" : 'X\(/\)$' \| \
18243 . : '\(.\)' 2>/dev/null ||
18245 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18246 /^X\/\(\/\/\)$/{ s//\1/; q; }
18247 /^X\/\(\/\).*/{ s//\1/; q; }
18251 # PATH needs CR, and LINENO needs CR and PATH.
18252 # Avoid depending upon Character Ranges.
18253 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18254 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18255 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18256 as_cr_digits
='0123456789'
18257 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18259 # The user is always right.
18260 if test "${PATH_SEPARATOR+set}" != set; then
18261 echo "#! /bin/sh" >conf$$.sh
18262 echo "exit 0" >>conf$$.sh
18264 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
18273 as_lineno_1
=$LINENO
18274 as_lineno_2
=$LINENO
18275 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
18276 test "x$as_lineno_1" != "x$as_lineno_2" &&
18277 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
18278 # Find who we are. Look in the path if we contain no path at all
18281 *[\\/]* ) as_myself
=$0 ;;
18282 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18283 for as_dir
in $PATH
18286 test -z "$as_dir" && as_dir
=.
18287 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
18292 # We did not find ourselves, most probably we were run as `sh COMMAND'
18293 # in which case we are not to be found in the path.
18294 if test "x$as_myself" = x
; then
18297 if test ! -f "$as_myself"; then
18298 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18299 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18300 { (exit 1); exit 1; }; }
18302 case $CONFIG_SHELL in
18304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18305 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
18308 test -z "$as_dir" && as_dir
=.
18309 for as_base
in sh bash ksh sh5
; do
18312 if ("$as_dir/$as_base" -c '
18313 as_lineno_1=$LINENO
18314 as_lineno_2=$LINENO
18315 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18316 test "x$as_lineno_1" != "x$as_lineno_2" &&
18317 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
18318 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
18319 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
18320 CONFIG_SHELL
=$as_dir/$as_base
18321 export CONFIG_SHELL
18322 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18330 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18331 # uniformly replaced by the line number. The first 'sed' inserts a
18332 # line-number line before each line; the second 'sed' does the real
18333 # work. The second script uses 'N' to pair each line-number line
18334 # with the numbered line, and appends trailing '-' during
18335 # substitution so that $LINENO is not a special case at line end.
18336 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18337 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18338 sed '=' <$as_myself |
18343 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18346 s,^['$as_cr_digits']*\n,,
18347 ' >$as_me.lineno
&&
18348 chmod +x
$as_me.lineno ||
18349 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18350 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18351 { (exit 1); exit 1; }; }
18353 # Don't try to exec as it changes $[0], causing all sort of problems
18354 # (the dirname of $[0] is not the place where we might find the
18355 # original and so on. Autoconf is especially sensible to this).
18357 # Exit status is that of the last command.
18362 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18363 *c
*,-n*) ECHO_N
= ECHO_C
='
18365 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
18366 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
18369 if expr a
: '\(a\)' >/dev
/null
2>&1; then
18375 rm -f conf$$ conf$$.exe conf$$.
file
18377 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18378 # We could just check for DJGPP; but this test a) works b) is more generic
18379 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18380 if test -f conf$$.exe
; then
18381 # Don't use ln at all; we don't have any links
18386 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18391 rm -f conf$$ conf$$.exe conf$$.
file
18393 if mkdir
-p .
2>/dev
/null
; then
18399 as_executable_p
="test -f"
18401 # Sed expression to map a string onto a valid CPP name.
18402 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18404 # Sed expression to map a string onto a valid variable name.
18405 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18409 # We need space, tab and new line, in precisely that order.
18419 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18420 # report actual input values of CONFIG_FILES etc. instead of their
18421 # values after options handling. Logging --version etc. is OK.
18425 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18426 ## Running $as_me. ##
18431 This file was extended by $as_me, which was
18432 generated by GNU Autoconf 2.57. Invocation command line was
18434 CONFIG_FILES = $CONFIG_FILES
18435 CONFIG_HEADERS = $CONFIG_HEADERS
18436 CONFIG_LINKS = $CONFIG_LINKS
18437 CONFIG_COMMANDS = $CONFIG_COMMANDS
18441 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18445 # Files that config.status was made for.
18446 if test -n "$ac_config_files"; then
18447 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18450 if test -n "$ac_config_headers"; then
18451 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18454 if test -n "$ac_config_links"; then
18455 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18458 if test -n "$ac_config_commands"; then
18459 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18462 cat >>$CONFIG_STATUS <<\_ACEOF
18465 \`$as_me' instantiates files from templates according to the
18466 current configuration.
18468 Usage: $0 [OPTIONS] [FILE]...
18470 -h, --help print this help, then exit
18471 -V, --version print version number, then exit
18472 -q, --quiet do not print progress messages
18473 -d, --debug don't remove temporary files
18474 --recheck update $as_me by reconfiguring in the same conditions
18475 --file=FILE[:TEMPLATE]
18476 instantiate the configuration file FILE
18477 --header=FILE[:TEMPLATE]
18478 instantiate the configuration header FILE
18480 Configuration files:
18483 Configuration headers:
18486 Configuration commands:
18489 Report bugs to <bug-autoconf@gnu.org>."
18492 cat >>$CONFIG_STATUS <<_ACEOF
18495 configured by $0, generated by GNU Autoconf 2.57,
18496 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18498 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18499 Free Software Foundation, Inc.
18500 This config.status script is free software; the Free Software Foundation
18501 gives unlimited permission to copy, distribute and modify it."
18506 cat >>$CONFIG_STATUS <<\_ACEOF
18507 # If no file are specified by the user, then we need to provide default
18508 # value. By we need to know if files were specified by the user.
18514 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
18515 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
18523 *) # This is not an option, so the user has probably given explicit
18526 ac_need_defaults
=false
;;
18530 # Handling of the options.
18532 cat >>$CONFIG_STATUS <<\_ACEOF
18533 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18535 --version |
--vers* |
-V )
18536 echo "$ac_cs_version"; exit 0 ;;
18538 # Conflict between --help and --header
18539 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18540 Try \`$0 --help' for more information." >&5
18541 echo "$as_me: error: ambiguous option: $1
18542 Try \`$0 --help' for more information." >&2;}
18543 { (exit 1); exit 1; }; };;
18544 --help |
--hel |
-h )
18545 echo "$ac_cs_usage"; exit 0 ;;
18546 --debug |
--d* |
-d )
18548 --file |
--fil |
--fi |
--f )
18550 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
18551 ac_need_defaults
=false
;;
18552 --header |
--heade |
--head |
--hea )
18554 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
18555 ac_need_defaults
=false
;;
18556 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18557 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18560 # This is an error.
18561 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18562 Try \`$0 --help' for more information." >&5
18563 echo "$as_me: error: unrecognized option: $1
18564 Try \`$0 --help' for more information." >&2;}
18565 { (exit 1); exit 1; }; } ;;
18567 *) ac_config_targets
="$ac_config_targets $1" ;;
18573 ac_configure_extra_args
=
18575 if $ac_cs_silent; then
18577 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18581 cat >>$CONFIG_STATUS <<_ACEOF
18582 if \$ac_cs_recheck; then
18583 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18584 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18589 cat >>$CONFIG_STATUS <<_ACEOF
18591 # INIT-COMMANDS section.
18594 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
18600 cat >>$CONFIG_STATUS <<\_ACEOF
18601 for ac_config_target
in $ac_config_targets
18603 case "$ac_config_target" in
18604 # Handling of arguments.
18605 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18606 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
18607 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
18608 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
18609 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
18610 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
18611 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
18612 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
18613 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
18614 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
18615 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
18616 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18617 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18618 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18619 { (exit 1); exit 1; }; };;
18623 # If the user did not use the arguments to specify the items to instantiate,
18624 # then the envvar interface is used. Set only those that are not.
18625 # We use the long form for the default assignment because of an extremely
18626 # bizarre bug on SunOS 4.1.3.
18627 if $ac_need_defaults; then
18628 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18629 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18630 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18633 # Have a temporary directory for convenience. Make it in the build tree
18634 # simply because there is no reason to put it here, and in addition,
18635 # creating and moving files from /tmp can sometimes cause problems.
18636 # Create a temporary directory, and hook for its removal unless debugging.
18639 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18640 trap '{ (exit 1); exit 1; }' 1 2 13 15
18643 # Create a (secure) tmp directory for tmp files.
18646 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18647 test -n "$tmp" && test -d "$tmp"
18650 tmp
=.
/confstat$$
-$RANDOM
18651 (umask 077 && mkdir
$tmp)
18654 echo "$me: cannot create a temporary directory in ." >&2
18655 { (exit 1); exit 1; }
18660 cat >>$CONFIG_STATUS <<_ACEOF
18663 # CONFIG_FILES section.
18666 # No need to generate the scripts if there are no CONFIG_FILES.
18667 # This happens for instance when ./config.status config.h
18668 if test -n "\$CONFIG_FILES"; then
18669 # Protect against being on the right side of a sed subst in config.status.
18670 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18671 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18672 s,@SHELL@,$SHELL,;t t
18673 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18674 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18675 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18676 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18677 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18678 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18679 s,@exec_prefix@,$exec_prefix,;t t
18680 s,@prefix@,$prefix,;t t
18681 s,@program_transform_name@,$program_transform_name,;t t
18682 s,@bindir@,$bindir,;t t
18683 s,@sbindir@,$sbindir,;t t
18684 s,@libexecdir@,$libexecdir,;t t
18685 s,@datadir@,$datadir,;t t
18686 s,@sysconfdir@,$sysconfdir,;t t
18687 s,@sharedstatedir@,$sharedstatedir,;t t
18688 s,@localstatedir@,$localstatedir,;t t
18689 s,@libdir@,$libdir,;t t
18690 s,@includedir@,$includedir,;t t
18691 s,@oldincludedir@,$oldincludedir,;t t
18692 s,@infodir@,$infodir,;t t
18693 s,@mandir@,$mandir,;t t
18694 s,@build_alias@,$build_alias,;t t
18695 s,@host_alias@,$host_alias,;t t
18696 s,@target_alias@,$target_alias,;t t
18697 s,@DEFS@,$DEFS,;t t
18698 s,@ECHO_C@,$ECHO_C,;t t
18699 s,@ECHO_N@,$ECHO_N,;t t
18700 s,@ECHO_T@,$ECHO_T,;t t
18701 s,@LIBS@,$LIBS,;t t
18702 s,@build@,$build,;t t
18703 s,@build_cpu@,$build_cpu,;t t
18704 s,@build_vendor@,$build_vendor,;t t
18705 s,@build_os@,$build_os,;t t
18706 s,@host@,$host,;t t
18707 s,@host_cpu@,$host_cpu,;t t
18708 s,@host_vendor@,$host_vendor,;t t
18709 s,@host_os@,$host_os,;t t
18711 s,@CFLAGS@,$CFLAGS,;t t
18712 s,@LDFLAGS@,$LDFLAGS,;t t
18713 s,@CPPFLAGS@,$CPPFLAGS,;t t
18714 s,@ac_ct_CC@,$ac_ct_CC,;t t
18715 s,@EXEEXT@,$EXEEXT,;t t
18716 s,@OBJEXT@,$OBJEXT,;t t
18717 s,@LN_S@,$LN_S,;t t
18719 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18720 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18721 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18722 s,@RANLIB@,$RANLIB,;t t
18723 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18724 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
18725 s,@EGREP@,$EGREP,;t t
18726 s,@LIBSOUND@,$LIBSOUND,;t t
18727 s,@SET_MAKE@,$SET_MAKE,;t t
18728 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
18729 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
18730 s,@GTK_LIBS@,$GTK_LIBS,;t t
18731 s,@ALLOCA@,$ALLOCA,;t t
18732 s,@liblockfile@,$liblockfile,;t t
18733 s,@LIBOBJS@,$LIBOBJS,;t t
18734 s,@NEED_SETGID@,$NEED_SETGID,;t t
18735 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
18736 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
18737 s,@version@,$version,;t t
18738 s,@configuration@,$configuration,;t t
18739 s,@canonical@,$canonical,;t t
18740 s,@srcdir@,$srcdir,;t t
18741 s,@lispdir@,$lispdir,;t t
18742 s,@locallisppath@,$locallisppath,;t t
18743 s,@lisppath@,$lisppath,;t t
18744 s,@x_default_search_path@,$x_default_search_path,;t t
18745 s,@etcdir@,$etcdir,;t t
18746 s,@archlibdir@,$archlibdir,;t t
18747 s,@docdir@,$docdir,;t t
18748 s,@bitmapdir@,$bitmapdir,;t t
18749 s,@gamedir@,$gamedir,;t t
18750 s,@gameuser@,$gameuser,;t t
18751 s,@c_switch_system@,$c_switch_system,;t t
18752 s,@c_switch_machine@,$c_switch_machine,;t t
18753 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
18754 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
18755 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
18756 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
18757 s,@machfile@,$machfile,;t t
18758 s,@opsysfile@,$opsysfile,;t t
18759 s,@carbon_appdir@,$carbon_appdir,;t t
18760 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18765 cat >>$CONFIG_STATUS <<\_ACEOF
18766 # Split the substitutions into bite-sized pieces for seds with
18767 # small command number limits, like on Digital OSF/1 and HP-UX.
18768 ac_max_sed_lines
=48
18769 ac_sed_frag
=1 # Number of current file.
18770 ac_beg
=1 # First line for current file.
18771 ac_end
=$ac_max_sed_lines # Line after last line for current file.
18774 while $ac_more_lines; do
18775 if test $ac_beg -gt 1; then
18776 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
18778 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
18780 if test ! -s $tmp/subs.frag
; then
18781 ac_more_lines
=false
18783 # The purpose of the label and of the branching condition is to
18784 # speed up the sed processing (if there are no `@' at all, there
18785 # is no need to browse any of the substitutions).
18786 # These are the two extra sed commands mentioned above.
18788 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
18789 if test -z "$ac_sed_cmds"; then
18790 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
18792 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18794 ac_sed_frag
=`expr $ac_sed_frag + 1`
18796 ac_end
=`expr $ac_end + $ac_max_sed_lines`
18799 if test -z "$ac_sed_cmds"; then
18802 fi # test -n "$CONFIG_FILES"
18805 cat >>$CONFIG_STATUS <<\_ACEOF
18806 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
18807 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18809 - |
*:- |
*:-:* ) # input from stdin
18811 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18812 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18813 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18814 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18815 * ) ac_file_in
=$ac_file.
in ;;
18818 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18819 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
18820 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18821 X"$ac_file" : 'X\(//\)[^/]' \| \
18822 X"$ac_file" : 'X\(//\)$' \| \
18823 X"$ac_file" : 'X\(/\)' \| \
18824 . : '\(.\)' 2>/dev/null ||
18826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18827 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18828 /^X\(\/\/\)$/{ s//\1/; q; }
18829 /^X\(\/\).*/{ s//\1/; q; }
18831 { if $as_mkdir_p; then
18836 while test ! -d "$as_dir"; do
18837 as_dirs
="$as_dir $as_dirs"
18838 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
18839 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18840 X"$as_dir" : 'X\(//\)[^/]' \| \
18841 X"$as_dir" : 'X\(//\)$' \| \
18842 X"$as_dir" : 'X\(/\)' \| \
18843 . : '\(.\)' 2>/dev/null ||
18845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18846 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18847 /^X\(\/\/\)$/{ s//\1/; q; }
18848 /^X\(\/\).*/{ s//\1/; q; }
18851 test ! -n "$as_dirs" || mkdir
$as_dirs
18852 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18853 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18854 { (exit 1); exit 1; }; }; }
18858 if test "$ac_dir" != .
; then
18859 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18860 # A "../" for each directory in $ac_dir_suffix.
18861 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18863 ac_dir_suffix
= ac_top_builddir
=
18867 .
) # No --srcdir option. We are building in place.
18869 if test -z "$ac_top_builddir"; then
18872 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
18874 [\\/]* | ?
:[\\/]* ) # Absolute path.
18875 ac_srcdir
=$srcdir$ac_dir_suffix;
18876 ac_top_srcdir
=$srcdir ;;
18877 *) # Relative path.
18878 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
18879 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
18881 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18883 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
18884 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18885 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18886 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18890 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18891 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
18894 if test x
"$ac_file" != x-
; then
18895 { echo "$as_me:$LINENO: creating $ac_file" >&5
18896 echo "$as_me: creating $ac_file" >&6;}
18899 # Let's still pretend it is `configure' which instantiates (i.e., don't
18900 # use $as_me), people would be surprised to read:
18901 # /* config.h. Generated by config.status. */
18902 if test x
"$ac_file" = x-
; then
18905 configure_input
="$ac_file. "
18907 configure_input
=$configure_input"Generated from `echo $ac_file_in |
18908 sed 's,.*/,,'` by configure."
18910 # First look for the input files in the build tree, otherwise in the
18912 ac_file_inputs
=`IFS=:
18913 for f in $ac_file_in; do
18915 -) echo $tmp/stdin ;;
18917 # Absolute (can't be DOS-style, as IFS=:)
18918 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18919 echo "$as_me: error: cannot find input file: $f" >&2;}
18920 { (exit 1); exit 1; }; }
18923 if test -f "$f"; then
18926 elif test -f "$srcdir/$f"; then
18931 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18932 echo "$as_me: error: cannot find input file: $f" >&2;}
18933 { (exit 1); exit 1; }; }
18936 done` ||
{ (exit 1); exit 1; }
18938 cat >>$CONFIG_STATUS <<_ACEOF
18942 cat >>$CONFIG_STATUS <<\_ACEOF
18944 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18945 s
,@configure_input@
,$configure_input,;t t
18946 s
,@srcdir@
,$ac_srcdir,;t t
18947 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
18948 s
,@top_srcdir@
,$ac_top_srcdir,;t t
18949 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
18950 s
,@builddir@
,$ac_builddir,;t t
18951 s
,@abs_builddir@
,$ac_abs_builddir,;t t
18952 s
,@top_builddir@
,$ac_top_builddir,;t t
18953 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
18954 s
,@INSTALL@
,$ac_INSTALL,;t t
18955 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18957 if test x"$ac_file" != x-; then
18958 mv $tmp/out $ac_file
18966 cat >>$CONFIG_STATUS <<\_ACEOF
18969 # CONFIG_HEADER section.
18972 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
18973 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18975 # ac_d sets the value in "#define NAME VALUE" lines.
18976 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18977 ac_dB
='[ ].*$,\1#\2'
18980 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18981 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18982 ac_uB
='$,\1#\2define\3'
18986 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
18987 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18989 - |
*:- |
*:-:* ) # input from stdin
18991 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18992 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18993 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18994 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18995 * ) ac_file_in
=$ac_file.
in ;;
18998 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
18999 echo "$as_me: creating $ac_file" >&6;}
19001 # First look for the input files in the build tree, otherwise in the
19003 ac_file_inputs
=`IFS=:
19004 for f in $ac_file_in; do
19006 -) echo $tmp/stdin ;;
19008 # Absolute (can't be DOS-style, as IFS=:)
19009 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19010 echo "$as_me: error: cannot find input file: $f" >&2;}
19011 { (exit 1); exit 1; }; }
19014 if test -f "$f"; then
19017 elif test -f "$srcdir/$f"; then
19022 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19023 echo "$as_me: error: cannot find input file: $f" >&2;}
19024 { (exit 1); exit 1; }; }
19027 done` ||
{ (exit 1); exit 1; }
19028 # Remove the trailing spaces.
19029 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19033 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19034 # `conftest.undefs', that substitutes the proper values into
19035 # config.h.in to produce config.h. The first handles `#define'
19036 # templates, and the second `#undef' templates.
19037 # And first: Protect against being on the right side of a sed subst in
19038 # config.status. Protect against being in an unquoted here document
19039 # in config.status.
19040 rm -f conftest.defines conftest.undefs
19041 # Using a here document instead of a string reduces the quoting nightmare.
19042 # Putting comments in sed scripts is not portable.
19044 # `end' is used to avoid that the second main sed command (meant for
19045 # 0-ary CPP macros) applies to n-ary macro definitions.
19046 # See the Autoconf documentation for `clear'.
19047 cat >confdef2sed.
sed <<\_ACEOF
19052 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19054 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19057 # If some macros were called several times there might be several times
19058 # the same #defines, which is useless. Nevertheless, we may not want to
19059 # sort them, since we want the *last* AC-DEFINE to be honored.
19060 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19061 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19062 rm -f confdef2sed.sed
19064 # This sed command replaces #undef with comments. This is necessary, for
19065 # example, in the case of _POSIX_SOURCE, which is predefined and required
19066 # on some systems where configure will not decide to define it.
19067 cat >>conftest.undefs <<\_ACEOF
19068 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19071 # Break up conftest.defines because some shells have a limit on the size
19072 # of here documents, and old seds have small limits too (100 cmds).
19073 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19074 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19075 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19076 echo ' :' >>$CONFIG_STATUS
19077 rm -f conftest.tail
19078 while grep . conftest.defines >/dev/null
19080 # Write a limited-size here document to $tmp/defines.sed.
19081 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19082 # Speed up: don't consider the non `#define' lines.
19083 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19084 # Work around the forget-to-reset-the-flag bug.
19085 echo 't clr' >>$CONFIG_STATUS
19086 echo ': clr' >>$CONFIG_STATUS
19087 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
19089 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19091 mv $tmp/out $tmp/in
19093 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
19094 rm -f conftest.defines
19095 mv conftest.
tail conftest.defines
19097 rm -f conftest.defines
19098 echo ' fi # grep' >>$CONFIG_STATUS
19099 echo >>$CONFIG_STATUS
19101 # Break up conftest.undefs because some shells have a limit on the size
19102 # of here documents, and old seds have small limits too (100 cmds).
19103 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19104 rm -f conftest.
tail
19105 while grep . conftest.undefs
>/dev
/null
19107 # Write a limited-size here document to $tmp/undefs.sed.
19108 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19109 # Speed up: don't consider the non
`#undef'
19110 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19111 # Work around the forget-to-reset-the-flag bug.
19112 echo 't clr' >>$CONFIG_STATUS
19113 echo ': clr' >>$CONFIG_STATUS
19114 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19116 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19118 mv $tmp/out $tmp/in
19120 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19121 rm -f conftest.undefs
19122 mv conftest.tail conftest.undefs
19124 rm -f conftest.undefs
19126 cat >>$CONFIG_STATUS <<\_ACEOF
19127 # Let's still pretend it is `configure
' which instantiates (i.e., don't
19128 # use $as_me), people would be surprised to read:
19129 # /* config.h. Generated by config.status. */
19130 if test x
"$ac_file" = x-
; then
19131 echo "/* Generated by configure. */" >$tmp/config.h
19133 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19135 cat $tmp/in >>$tmp/config.h
19137 if test x
"$ac_file" != x-
; then
19138 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
19139 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19140 echo "$as_me: $ac_file is unchanged" >&6;}
19142 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
19143 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19144 X"$ac_file" : 'X\(//\)[^/]' \| \
19145 X"$ac_file" : 'X\(//\)$' \| \
19146 X"$ac_file" : 'X\(/\)' \| \
19147 . : '\(.\)' 2>/dev/null ||
19149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19150 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19151 /^X\(\/\/\)$/{ s//\1/; q; }
19152 /^X\(\/\).*/{ s//\1/; q; }
19154 { if $as_mkdir_p; then
19159 while test ! -d "$as_dir"; do
19160 as_dirs
="$as_dir $as_dirs"
19161 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
19162 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19163 X"$as_dir" : 'X\(//\)[^/]' \| \
19164 X"$as_dir" : 'X\(//\)$' \| \
19165 X"$as_dir" : 'X\(/\)' \| \
19166 . : '\(.\)' 2>/dev/null ||
19168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19169 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19170 /^X\(\/\/\)$/{ s//\1/; q; }
19171 /^X\(\/\).*/{ s//\1/; q; }
19174 test ! -n "$as_dirs" || mkdir
$as_dirs
19175 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19176 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19177 { (exit 1); exit 1; }; }; }
19180 mv $tmp/config.h
$ac_file
19184 rm -f $tmp/config.h
19188 cat >>$CONFIG_STATUS <<\_ACEOF
19191 # CONFIG_COMMANDS section.
19193 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
19194 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
19195 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19196 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
19197 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19198 X"$ac_dest" : 'X\(//\)[^/]' \| \
19199 X"$ac_dest" : 'X\(//\)$' \| \
19200 X"$ac_dest" : 'X\(/\)' \| \
19201 . : '\(.\)' 2>/dev/null ||
19203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19204 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19205 /^X\(\/\/\)$/{ s//\1/; q; }
19206 /^X\(\/\).*/{ s//\1/; q; }
19210 if test "$ac_dir" != .
; then
19211 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19212 # A "../" for each directory in $ac_dir_suffix.
19213 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19215 ac_dir_suffix
= ac_top_builddir
=
19219 .
) # No --srcdir option. We are building in place.
19221 if test -z "$ac_top_builddir"; then
19224 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
19226 [\\/]* | ?
:[\\/]* ) # Absolute path.
19227 ac_srcdir
=$srcdir$ac_dir_suffix;
19228 ac_top_srcdir
=$srcdir ;;
19229 *) # Relative path.
19230 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
19231 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
19233 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19235 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
19236 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19237 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19238 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19241 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19242 echo "$as_me: executing $ac_dest commands" >&6;}
19246 ### Make the necessary directories, if they don't exist.
19247 for dir
in etc lisp
; do
19248 test -d ${dir} || mkdir
${dir}
19251 # Build src/Makefile from ${srcdir}/src/Makefile.c
19252 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
19253 # This must be done after src/config.h is built, since we rely on that file.
19255 # Now get this: Some word that is part of the ${srcdir} directory name
19256 # or the ${configuration} value might, just might, happen to be an
19257 # identifier like `sun4' or `i386' or something, and be predefined by
19258 # the C preprocessor to some helpful value like 1, or maybe the empty
19259 # string. Needless to say consequent macro substitutions are less
19260 # than conducive to the makefile finding the correct directory.
19261 undefs
="`echo $top_srcdir $configuration $canonical |
19262 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
19263 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
19266 echo creating src
/epaths.h
19267 ${MAKE-make} epaths-force
19269 # As of 2000-11-19, newest development versions of GNU cpp preprocess
19270 # `..' to `. .' unless invoked with -traditional
19272 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
19273 CPPFLAGS
="$CPPFLAGS -traditional"
19276 echo creating lib-src
/Makefile
19278 rm -f junk.c junk1.c junk2.c
19279 sed -e '/start of cpp stuff/q' \
19280 < Makefile.c
> junk1.c
19281 sed -e '1,/start of cpp stuff/d'\
19282 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19283 < Makefile.c
> junk.c
19284 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
19285 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19286 cat junk1.c junk2.c
> Makefile.new
19287 rm -f junk.c junk1.c junk2.c
19288 chmod 444 Makefile.new
19289 mv -f Makefile.new Makefile
19292 echo creating src
/Makefile
19294 rm -f junk.c junk1.c junk2.c
19295 sed -e '/start of cpp stuff/q' \
19296 < Makefile.c
> junk1.c
19297 sed -e '1,/start of cpp stuff/d'\
19298 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19299 < Makefile.c
> junk.c
19300 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
19301 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19302 cat junk1.c junk2.c
> Makefile.new
19303 rm -f junk.c junk1.c junk2.c
19304 chmod 444 Makefile.new
19305 mv -f Makefile.new Makefile
19308 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
19309 echo creating src
/.gdbinit
19310 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
19313 # This is how we know whether to re-run configure in certain cases.
19314 touch src
/config.stamp
19321 cat >>$CONFIG_STATUS <<\_ACEOF
19323 { (exit 0); exit 0; }
19325 chmod +x
$CONFIG_STATUS
19326 ac_clean_files
=$ac_clean_files_save
19329 # configure is writing to config.log, and then calls config.status.
19330 # config.status does its own redirection, appending to config.log.
19331 # Unfortunately, on DOS this fails, as config.log is still kept open
19332 # by configure, so config.status won't be able to write to it; its
19333 # output is simply discarded. So we exec the FD to /dev/null,
19334 # effectively closing config.log, so it can be properly (re)opened and
19335 # appended to by config.status. When coming back to configure, we
19336 # need to make the FD available again.
19337 if test "$no_create" != yes; then
19339 ac_config_status_args
=
19340 test "$silent" = yes &&
19341 ac_config_status_args
="$ac_config_status_args --quiet"
19343 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19345 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19346 # would make configure fail if this is the last instruction.
19347 $ac_cs_success ||
{ (exit 1); exit 1; }