2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
24 # Support unset when possible.
25 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
224 as_executable_p
="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix
=/usr
/local
254 ac_config_libobj_dir
=.
259 SHELL
=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file
="src/lisp.h"
274 ac_config_libobj_dir
=src
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
840 --x-includes=DIR X include files are
in DIR
841 --x-libraries=DIR X library files are
in DIR
844 --build=BUILD configure
for building on BUILD
[guessed
]
845 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
849 if test -n "$ac_init_help"; then
854 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
855 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
856 --enable-carbon-app[=DIR
] [DIR
=/Application
]
857 specify
install directory
for Emacs.app on Mac OS X
858 --enable-maintainer-mode enable make rules and dependencies not useful
859 (and sometimes confusing
) to the casual installer
860 --disable-largefile omit support
for large files
863 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
864 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
865 --without-gcc don
't use GCC to compile Emacs if GCC is found
866 --without-pop don't support POP
mail retrieval with movemail
867 --with-kerberos support Kerberos-authenticated POP
868 --with-kerberos5 support Kerberos version
5 authenticated POP
869 --with-hesiod support Hesiod to get the POP server
host
870 --without-sound don
't compile with sound support
871 --with-x-toolkit=KIT use an X toolkit
872 (KIT = yes/lucid/athena/motif/gtk/no)
873 --with-xpm use -lXpm for displaying XPM images
874 --with-jpeg use -ljpeg for displaying JPEG images
875 --with-tiff use -ltiff for displaying TIFF images
876 --with-gif use -lungif for displaying GIF images
877 --with-png use -lpng for displaying PNG images
878 --with-gtk use GTK (same as --with-x-toolkit=gtk)
879 --with-pkg-config-prog Path to pkg-config to use for finding GTK
880 --without-toolkit-scroll-bars
881 don't use Motif or Xaw3d scroll bars
882 --without-xim don
't use X11 XIM
883 --without-carbon don't use Carbon GUI on Mac OS X
884 --with-x use the X Window System
886 Some influential environment variables
:
887 CC C compiler
command
888 CFLAGS C compiler flags
889 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
890 nonstandard directory
<lib dir
>
891 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
892 headers
in a nonstandard directory
<include dir
>
895 Use these variables to override the choices made by
`configure' or to help
896 it to find libraries and programs with nonstandard names/locations.
901 if test "$ac_init_help" = "recursive"; then
902 # If there are subdirs, report their specific --help.
904 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
905 test -d $ac_dir || continue
908 if test "$ac_dir" != .; then
909 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
910 # A "../" for each directory in $ac_dir_suffix.
911 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
913 ac_dir_suffix= ac_top_builddir=
917 .) # No --srcdir option. We are building in place.
919 if test -z "$ac_top_builddir"; then
922 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
924 [\\/]* | ?:[\\/]* ) # Absolute path.
925 ac_srcdir=$srcdir$ac_dir_suffix;
926 ac_top_srcdir=$srcdir ;;
928 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
929 ac_top_srcdir=$ac_top_builddir$srcdir ;;
931 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
933 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
934 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}.
&& pwd`
935 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
936 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
939 # Check for guested configure; otherwise get Cygnus style configure.
940 if test -f $ac_srcdir/configure.gnu; then
942 $SHELL $ac_srcdir/configure.gnu --help=recursive
943 elif test -f $ac_srcdir/configure; then
945 $SHELL $ac_srcdir/configure --help=recursive
946 elif test -f $ac_srcdir/configure.ac ||
947 test -f $ac_srcdir/configure.in; then
951 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
957 test -n "$ac_init_help" && exit 0
958 if $ac_init_version; then
961 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
962 Free Software Foundation, Inc.
963 This configure script is free software; the Free Software Foundation
964 gives unlimited permission to copy, distribute and modify it.
970 This file contains any messages produced by compilers while
971 running configure, to aid debugging if configure makes a mistake.
973 It was created by $as_me, which was
974 generated by GNU Autoconf 2.57. Invocation command line was
985 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
986 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
987 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
988 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
989 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
991 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
992 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
994 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
995 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
996 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
997 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
998 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
999 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1000 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1008 test -z "$as_dir" && as_dir=.
1009 echo "PATH: $as_dir"
1024 # Keep a trace of the command line.
1025 # Strip out --no-create and --no-recursion so they do not pile up.
1026 # Strip out --silent because we don't want to record it for future runs.
1027 # Also quote any args containing shell meta-characters.
1028 # Make two passes to allow for proper duplicate-argument suppression.
1033 ac_must_keep_next=false
1039 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1041 | -silent | --silent | --silen | --sile | --sil)
1043 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1044 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1047 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1049 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1050 if test $ac_must_keep_next = true; then
1051 ac_must_keep_next=false # Got value, back to normal.
1054 *=* | --config-cache | -C | -disable-* | --disable-* \
1055 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1056 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1057 | -with-* | --with-* | -without-* | --without-* | --x)
1058 case "$ac_configure_args0 " in
1059 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1062 -* ) ac_must_keep_next=true ;;
1065 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1066 # Get rid of the leading space.
1072 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1073 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1075 # When interrupted or exit'd, cleanup temporary files, and complete
1076 # config.log. We remove comments because anyway the quotes in there
1077 # would cause problems or look ugly.
1078 # WARNING: Be sure not to use single quotes in there, as some shells,
1079 # such as our DU 5.0 friend, will then `close
' the trap.
1080 trap 'exit_status
=$?
1081 # Save into config.log some information that might help in debugging.
1086 ## ---------------- ##
1087 ## Cache variables. ##
1088 ## ---------------- ##
1091 # The following way of writing the cache mishandles newlines in values,
1094 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1097 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1098 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1102 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1109 ## ----------------- ##
1110 ## Output variables. ##
1111 ## ----------------- ##
1114 for ac_var
in $ac_subst_vars
1116 eval ac_val
=$
`echo $ac_var`
1117 echo "$ac_var='"'"'$ac_val'"'"'"
1121 if test -n "$ac_subst_files"; then
1128 for ac_var
in $ac_subst_files
1130 eval ac_val
=$
`echo $ac_var`
1131 echo "$ac_var='"'"'$ac_val'"'"'"
1136 if test -s confdefs.h
; then
1143 sed "/^$/d" confdefs.h |
sort
1146 test "$ac_signal" != 0 &&
1147 echo "$as_me: caught signal $ac_signal"
1148 echo "$as_me: exit $exit_status"
1150 rm -f core
*.core
&&
1151 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1154 for ac_signal in 1 2 13 15; do
1155 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1159 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1160 rm -rf conftest* confdefs.h
1161 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1164 # Predefined preprocessor variables.
1166 cat >>confdefs.h <<_ACEOF
1167 #define PACKAGE_NAME "$PACKAGE_NAME"
1171 cat >>confdefs.h <<_ACEOF
1172 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1176 cat >>confdefs.h <<_ACEOF
1177 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_STRING "$PACKAGE_STRING"
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1191 # Let the site file select an alternate cache file if it wants to.
1192 # Prefer explicitly selected file to automatically selected ones.
1193 if test -z "$CONFIG_SITE"; then
1194 if test "x$prefix" != xNONE; then
1195 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1197 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1200 for ac_site_file in $CONFIG_SITE; do
1201 if test -r "$ac_site_file"; then
1202 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1203 echo "$as_me: loading site script $ac_site_file" >&6;}
1204 sed 's
/^
/|
/' "$ac_site_file" >&5
1209 if test -r "$cache_file"; then
1210 # Some versions of bash will fail to source /dev/null (special
1211 # files actually), so we avoid doing that.
1212 if test -f "$cache_file"; then
1213 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1214 echo "$as_me: loading cache $cache_file" >&6;}
1216 [\\/]* | ?:[\\/]* ) . $cache_file;;
1217 *) . ./$cache_file;;
1221 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1222 echo "$as_me: creating cache $cache_file" >&6;}
1226 # Check that the precious variables saved in the cache have kept the same
1228 ac_cache_corrupted=false
1229 for ac_var in `(set) 2>&1 |
1230 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1231 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1232 eval ac_new_set=\$ac_env_${ac_var}_set
1233 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1234 eval ac_new_val="\$ac_env_${ac_var}_value"
1235 case $ac_old_set,$ac_new_set in
1237 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1238 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1239 ac_cache_corrupted=: ;;
1241 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1242 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1243 ac_cache_corrupted=: ;;
1246 if test "x$ac_old_val" != "x$ac_new_val"; then
1247 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1248 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1249 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1250 echo "$as_me: former value: $ac_old_val" >&2;}
1251 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1252 echo "$as_me: current value: $ac_new_val" >&2;}
1253 ac_cache_corrupted=:
1256 # Pass precious variables to config.status.
1257 if test "$ac_new_set" = set; then
1259 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1260 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1261 *) ac_arg=$ac_var=$ac_new_val ;;
1263 case " $ac_configure_args " in
1264 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1265 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1269 if $ac_cache_corrupted; then
1270 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1271 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1272 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1273 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1274 { (exit 1); exit 1; }; }
1278 ac_cpp='$CPP $CPPFLAGS'
1279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1280 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1301 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1304 test "$program_prefix" != NONE &&
1305 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1306 # Use a double $ so make ignores it.
1307 test "$program_suffix" != NONE &&
1308 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1309 # Double any \ or $. echo might interpret backslashes.
1310 # By default was `s,x,x', remove it
if useless.
1311 cat <<\_ACEOF
>conftest.
sed
1312 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1314 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1318 lispdir
='${datadir}/emacs/${version}/lisp'
1319 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1320 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1321 lisppath
='${locallisppath}:${lispdir}'
1322 etcdir
='${datadir}/emacs/${version}/etc'
1323 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1324 docdir
='${datadir}/emacs/${version}/etc'
1325 gamedir
='${localstatedir}/games/emacs'
1330 # Check whether --with-gcc or --without-gcc was given.
1331 if test "${with_gcc+set}" = set; then
1336 # Check whether --with-pop or --without-pop was given.
1337 if test "${with_pop+set}" = set; then
1339 if test "$withval" = yes; then
1340 cat >>confdefs.h
<<\_ACEOF
1341 #define MAIL_USE_POP 1
1347 cat >>confdefs.h
<<\_ACEOF
1348 #define MAIL_USE_POP 1
1354 # Check whether --with-kerberos or --without-kerberos was given.
1355 if test "${with_kerberos+set}" = set; then
1356 withval
="$with_kerberos"
1357 cat >>confdefs.h
<<\_ACEOF
1364 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1365 if test "${with_kerberos5+set}" = set; then
1366 withval
="$with_kerberos5"
1367 if test "${with_kerberos5+set}" = set; then
1368 if test "${with_kerberos+set}" != set; then
1370 cat >>confdefs.h
<<\_ACEOF
1377 cat >>confdefs.h
<<\_ACEOF
1383 # Check whether --with-hesiod or --without-hesiod was given.
1384 if test "${with_hesiod+set}" = set; then
1385 withval
="$with_hesiod"
1387 cat >>confdefs.h
<<\_ACEOF
1394 # Check whether --with-sound or --without-sound was given.
1395 if test "${with_sound+set}" = set; then
1396 withval
="$with_sound"
1401 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1402 if test "${with_x_toolkit+set}" = set; then
1403 withval
="$with_x_toolkit"
1404 case "${withval}" in
1405 y | ye |
yes ) val
=athena
;;
1407 l | lu | luc | luci | lucid
) val
=lucid
;;
1408 a |
at | ath | athe | athen | athena
) val
=athena
;;
1409 m | mo | mot | moti | motif
) val
=motif
;;
1410 g | gt | gtk
) val
=gtk
;;
1412 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1413 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1414 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1415 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1416 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1417 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1418 { (exit 1); exit 1; }; }
1425 # Check whether --with-xpm or --without-xpm was given.
1426 if test "${with_xpm+set}" = set; then
1431 # Check whether --with-jpeg or --without-jpeg was given.
1432 if test "${with_jpeg+set}" = set; then
1433 withval
="$with_jpeg"
1437 # Check whether --with-tiff or --without-tiff was given.
1438 if test "${with_tiff+set}" = set; then
1439 withval
="$with_tiff"
1443 # Check whether --with-gif or --without-gif was given.
1444 if test "${with_gif+set}" = set; then
1449 # Check whether --with-png or --without-png was given.
1450 if test "${with_png+set}" = set; then
1455 # Check whether --with-gtk or --without-gtk was given.
1456 if test "${with_gtk+set}" = set; then
1461 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1462 if test "${with_pkg_config_prog+set}" = set; then
1463 withval
="$with_pkg_config_prog"
1467 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1468 if test "${with_toolkit_scroll_bars+set}" = set; then
1469 withval
="$with_toolkit_scroll_bars"
1473 # Check whether --with-xim or --without-xim was given.
1474 if test "${with_xim+set}" = set; then
1479 # Check whether --with-carbon or --without-carbon was given.
1480 if test "${with_carbon+set}" = set; then
1481 withval
="$with_carbon"
1484 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1485 if test "${enable_carbon_app+set}" = set; then
1486 enableval
="$enable_carbon_app"
1487 carbon_appdir_x
=${enableval}
1490 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1491 if test "${enable_maintainer_mode+set}" = set; then
1492 enableval
="$enable_maintainer_mode"
1493 USE_MAINTAINER_MODE
=$enableval
1495 USE_MAINTAINER_MODE
=no
1497 if test $USE_MAINTAINER_MODE = yes; then
1504 #### Make srcdir absolute, if it isn't already. It's important to
1505 #### avoid running the path through pwd unnecessarily, since pwd can
1506 #### give you automounter prefixes, which can go away. We do all this
1507 #### so Emacs can find its files when run uninstalled.
1508 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1513 ## We may be able to use the $PWD environment variable to make this
1514 ## absolute. But sometimes PWD is inaccurate.
1515 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1516 ## but that tested only for a well-formed and valid PWD,
1517 ## it did not object when PWD was well-formed and valid but just wrong.
1518 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1522 srcdir
="`(cd ${srcdir}; pwd)`"
1525 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1528 #### Check if the source directory already has a configured system in it.
1529 if test `pwd` != `(cd ${srcdir} && pwd)` \
1530 && test -f "${srcdir}/src/config.h" ; then
1531 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1532 as a build directory right now; it has been configured in its own
1533 right. To configure in another directory as well, you MUST
1534 use GNU make. If you do not have GNU make, then you must
1535 now do \`make distclean' in ${srcdir},
1536 and then run $0 again." >&5
1537 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1538 as a build directory right now; it has been configured in its own
1539 right. To configure in another directory as well, you MUST
1540 use GNU make. If you do not have GNU make, then you must
1541 now do \`make distclean' in ${srcdir},
1542 and then run $0 again." >&2;}
1544 extrasub
='/^VPATH[ ]*=/c\
1545 vpath %.c $(srcdir)\
1546 vpath %.h $(srcdir)\
1547 vpath %.y $(srcdir)\
1548 vpath %.l $(srcdir)\
1549 vpath %.s $(srcdir)\
1550 vpath %.in $(srcdir)\
1551 vpath %.texi $(srcdir)'
1554 #### Given the configuration name, set machfile and opsysfile to the
1555 #### names of the m/*.h and s/*.h files we should use.
1557 ### Canonicalize the configuration name.
1560 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1561 if test -f $ac_dir/install-sh
; then
1563 ac_install_sh
="$ac_aux_dir/install-sh -c"
1565 elif test -f $ac_dir/install.sh
; then
1567 ac_install_sh
="$ac_aux_dir/install.sh -c"
1569 elif test -f $ac_dir/shtool
; then
1571 ac_install_sh
="$ac_aux_dir/shtool install -c"
1575 if test -z "$ac_aux_dir"; then
1576 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1577 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1578 { (exit 1); exit 1; }; }
1580 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1581 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1582 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1584 # Make sure we can run config.sub.
1585 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1586 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1587 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1588 { (exit 1); exit 1; }; }
1590 echo "$as_me:$LINENO: checking build system type" >&5
1591 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1592 if test "${ac_cv_build+set}" = set; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1595 ac_cv_build_alias
=$build_alias
1596 test -z "$ac_cv_build_alias" &&
1597 ac_cv_build_alias
=`$ac_config_guess`
1598 test -z "$ac_cv_build_alias" &&
1599 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1600 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1601 { (exit 1); exit 1; }; }
1602 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1603 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1604 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1605 { (exit 1); exit 1; }; }
1608 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1609 echo "${ECHO_T}$ac_cv_build" >&6
1611 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1612 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1613 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1616 echo "$as_me:$LINENO: checking host system type" >&5
1617 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1618 if test "${ac_cv_host+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1621 ac_cv_host_alias
=$host_alias
1622 test -z "$ac_cv_host_alias" &&
1623 ac_cv_host_alias
=$ac_cv_build_alias
1624 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1625 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1626 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1627 { (exit 1); exit 1; }; }
1630 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1631 echo "${ECHO_T}$ac_cv_host" >&6
1633 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1634 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1635 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1639 configuration
=${host_alias-$host}
1643 ### If you add support for a new configuration, add code to this
1644 ### switch statement to recognize your configuration name and select
1645 ### the appropriate operating system and machine description files.
1647 ### You would hope that you could choose an m/*.h file pretty much
1648 ### based on the machine portion of the configuration name, and an s-
1649 ### file based on the operating system portion. However, it turns out
1650 ### that each m/*.h file is pretty manufacturer-specific - for
1651 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1652 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1653 ### machines. So we basically have to have a special case for each
1654 ### configuration name.
1656 ### As far as handling version numbers on operating systems is
1657 ### concerned, make sure things will fail in a fixable way. If
1658 ### /etc/MACHINES doesn't say anything about version numbers, be
1659 ### prepared to handle anything reasonably. If version numbers
1660 ### matter, be sure /etc/MACHINES says something about it.
1662 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1663 ### "System V Release 4"; he writes, "The old convention encouraged
1664 ### confusion between `system' and `release' levels'."
1666 machine
='' opsys
='' unported
=no
1667 case "${canonical}" in
1672 case "${canonical}" in
1673 alpha
*-*-freebsd*) machine
=alpha
;;
1674 i
[3456]86-*-freebsd*) machine
=intel386
;;
1681 if test -f /usr
/lib
/crti.o
; then
1683 cat >>confdefs.h
<<\_ACEOF
1689 case "${canonical}" in
1690 alpha
*-*-netbsd*) machine
=alpha
;;
1691 i
[3456]86-*-netbsd*) machine
=intel386
;;
1693 # This is somewhat bogus.
1694 machine
=hp9000s300
;;
1695 powerpc-apple-netbsd
*) machine
=macppc
;;
1696 mips-
*-netbsd*) machine
=pmax
;;
1697 mipsel-
*-netbsd*) machine
=pmax
;;
1698 mipseb-
*-netbsd*) machine
=pmax
;;
1699 ns32k-
*-netbsd*) machine
=ns32000
;;
1700 powerpc-
*-netbsd*) machine
=macppc
;;
1701 sparc
*-*-netbsd*) machine
=sparc
;;
1702 vax-
*-netbsd*) machine
=vax
;;
1703 arm-
*-netbsd*) machine
=arm
;;
1710 case "${canonical}" in
1711 alpha
*-*-openbsd*) machine
=alpha
;;
1712 i386-
*-openbsd*) machine
=intel386
;;
1713 m68k-
*-openbsd*) machine
=hp9000s300
;;
1714 mipsel-
*-openbsd*) machine
=pmax
;;
1715 ns32k-
*-openbsd*) machine
=ns32000
;;
1716 sparc-
*-openbsd*) machine
=sparc
;;
1717 vax-
*-openbsd*) machine
=vax
;;
1722 arm-acorn-riscix1.1
* )
1723 machine
=acorn opsys
=riscix1-1
1725 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1726 ## This name is riscix12 instead of riscix1.2
1727 ## to avoid a file name conflict on MSDOS.
1728 machine
=acorn opsys
=riscix12
1734 case "${canonical}" in
1735 i
[345]86-*-bsdi*) machine
=intel386
;;
1736 sparc-
*-bsdi*) machine
=sparc
;;
1737 powerpc-
*-bsdi*) machine
=macppc
;;
1739 case "${canonical}" in
1740 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1741 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1742 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1743 *-*-bsdi3* ) opsys
=bsdos3
;;
1744 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1749 ## Strictly speaking, we need the version of the alliant operating
1750 ## system to choose the right machine file, but currently the
1751 ## configuration name doesn't tell us enough to choose the right
1752 ## one; we need to give alliants their own operating system name to
1753 ## do this right. When someone cares, they can help us.
1755 machine
=alliant4 opsys
=bsd4-2
1758 machine
=alliant-2800 opsys
=bsd4-3
1761 ## Alpha (DEC) machines.
1763 machine
=alpha opsys
=osf1
1764 # This is needed to find X11R6.1 libraries for certain tests.
1765 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1766 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1767 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1768 # due to non-traditional preprocessing with the current compiler
1769 # defaults. OSF 4 can also have that compiler version, and there
1770 # seems always to have been a usable /usr/bin/cpp.
1771 NON_GNU_CPP
=/usr
/bin
/cpp
1772 case "${canonical}" in
1773 alpha
*-dec-osf[5-9]*)
1778 alpha
*-*-linux-gnu* )
1779 machine
=alpha opsys
=gnu-linux
1783 machine
=arm opsys
=gnu-linux
1788 machine
=macppc opsys
=gnu-linux
1793 machine
=altos opsys
=usg5-2
1798 machine
=amdahl opsys
=usg5-2-2
1801 ## Apollo, Domain/OS
1803 machine
=apollo opsys
=bsd4-3
1806 ## AT&T 3b2, 3b5, 3b15, 3b20
1808 machine
=att3b opsys
=usg5-2-2
1811 ## AT&T 3b1 - The Mighty Unix PC!
1813 machine
=7300 opsys
=usg5-2-2
1818 machine
=ibmrs6000 opsys
=aix3-2
1823 machine
=dpx2 opsys
=usg5-3
1828 machine
=sps7 opsys
=usg5-2
1831 ## CCI 5/32, 6/32 -- see "Tahoe".
1834 ## I don't know what configuration name to use for this; config.sub
1835 ## doesn't seem to know anything about it. Hey, Celerity users, get
1836 ## in touch with us!
1837 celerity-celerity-bsd
* )
1838 machine
=celerity opsys
=bsd4-2
1842 ## What operating systems does this chip run that Emacs has been
1846 ## We'll use the catch-all code at the bottom to guess the
1847 ## operating system.
1851 mips-compaq-nonstopux
* )
1852 machine
=nonstopux opsys
=nonstopux
1856 *-convex-bsd* |
*-convex-convexos* )
1857 machine
=convex opsys
=bsd4-3
1858 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1859 NON_GNU_CPP
="cc -E -P"
1863 i
[3456]86-cubix-sysv* )
1864 machine
=intel386 opsys
=usg5-3
1868 cydra
*-cydrome-sysv* )
1869 machine
=cydra5 opsys
=usg5-3
1872 ## Data General AViiON Machines
1873 ## DG changed naming conventions with the release of 5.4.4.10, they
1874 ## dropped the initial 5.4 but left the intervening R. Because of the
1875 ## R this shouldn't conflict with older versions of the OS (which I
1876 ## think were named like dgux4.*). In addition, DG new AViiONs series
1877 ## uses either Motorola M88k or Intel Pentium CPUs.
1878 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1879 machine
=aviion opsys
=dgux4
1881 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1882 ## This name is dgux5-4-3 instead of dgux5-4r3
1883 ## to avoid a file name conflict on MSDOS.
1884 machine
=aviion opsys
=dgux5-4-3
1886 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1887 machine
=aviion opsys
=dgux5-4r2
1890 machine
=aviion opsys
=dgux
1893 ## Data General AViiON Intel (x86) Machines
1894 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1895 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1896 i
[345]86-dg-dguxR4* )
1897 machine
=aviion-intel opsys
=dgux4
1901 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1902 machine
=pmax opsys
=bsd4-2
1904 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1905 machine
=pmax opsys
=bsd4-3
1908 machine
=pmax opsys
=ultrix4-3
1911 machine
=pmax opsys
=osf1
1913 mips-dec-mach_bsd4.3
* )
1914 machine
=pmax opsys
=mach-bsd4-3
1917 ## Motorola Delta machines
1918 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1919 machine
=delta opsys
=usg5-3
1920 if test -z "`type gnucc | grep 'not found'`"
1922 if test -s /etc
/167config
1923 then CC
="gnucc -m68040"
1924 else CC
="gnucc -m68881"
1927 if test -z "`type gcc | grep 'not found'`"
1933 m88k-motorola-sysv4
* )
1934 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1935 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1936 # I hope there are not other 4.0 versions for this machine
1937 # which really need usg5-4 instead.
1938 machine
=delta88k opsys
=usg5-4-2
1940 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1941 machine
=delta88k opsys
=usg5-3
1946 machine
=dual opsys
=usg5-2
1948 m68
*-dual-uniplus* )
1949 machine
=dual opsys
=unipl5-2
1954 machine
=elxsi opsys
=usg5-2
1959 machine
=ns16000 opsys
=umax
1962 ## The GEC 63 - apparently, this port isn't really finished yet.
1963 # I'm sure we finished off the last of the machines, though. -- fx
1965 ## Gould Power Node and NP1
1967 machine
=gould opsys
=bsd4-2
1970 machine
=gould opsys
=bsd4-3
1973 machine
=gould-np1 opsys
=bsd4-3
1976 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1977 ## as far as Emacs is concerned).
1979 # Build needs to be different on 7.0 and later releases
1980 case "`uname -r`" in
1981 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1982 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1984 NON_GNU_CPP
="/lib/cpp"
1986 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1988 machine
=nh3000 opsys
=cxux
1990 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1991 powerpc-harris-powerunix
)
1992 machine
=nh6000 opsys
=powerunix
1993 NON_GNU_CPP
="cc -Xo -E -P"
1995 ## SR2001/SR2201 running HI-UX/MPP
1996 hppa1.1
-hitachi-hiuxmpp* )
1997 machine
=sr2k opsys
=hiuxmpp
1999 hppa1.1
-hitachi-hiuxwe2* )
2000 machine
=sr2k opsys
=hiuxwe2
2003 xps
*-honeywell-sysv* )
2004 machine
=xps100 opsys
=usg5-2
2007 ## HP 9000 series 200 or 300
2009 machine
=hp9000s300 opsys
=bsd4-3
2011 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2013 case "`uname -r`" in
2014 ## Someone's system reports A.B8.05 for this.
2015 ## I wonder what other possibilities there are.
2016 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2017 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2018 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2019 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2020 *) machine
=hp9000s300 opsys
=hpux
;;
2024 ## HP 9000 series 700 and 800, running HP/UX
2026 machine
=hp800 opsys
=hpux
2029 machine
=hp800 opsys
=hpux8
2031 hppa
*-hp-hpux9shr* )
2032 machine
=hp800 opsys
=hpux9shr
2035 machine
=hp800 opsys
=hpux9
2037 hppa
*-hp-hpux10.2
* )
2038 machine
=hp800 opsys
=hpux10-20
2041 machine
=hp800 opsys
=hpux10
2043 hppa
*-hp-hpux1[1-9]* )
2044 machine
=hp800 opsys
=hpux11
2047 hppa
*-*-linux-gnu* )
2048 machine
=hp800 opsys
=gnu-linux
2051 ## HP 9000 series 700 and 800, running HP/UX
2053 ## Cross-compilation? Nah!
2054 case "`uname -r`" in
2055 ## Someone's system reports A.B8.05 for this.
2056 ## I wonder what other possibilities there are.
2057 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2058 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2059 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2060 *) machine
=hp800 opsys
=hpux10
;;
2064 machine
=hp800 opsys
=nextstep
2069 machine
=orion opsys
=bsd4-2
2071 clipper-orion-bsd
* )
2072 machine
=orion105 opsys
=bsd4-2
2076 i
[3456]86-ibm-aix1.1
* )
2077 machine
=ibmps2-aix opsys
=usg5-2-2
2079 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2080 machine
=ibmps2-aix opsys
=usg5-3
2083 machine
=ibm370aix opsys
=usg5-3
2086 machine
=ibms390 opsys
=gnu-linux
2088 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2089 machine
=ibmrs6000 opsys
=aix3-1
2091 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2092 machine
=ibmrs6000 opsys
=aix3-2-5
2094 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2095 machine
=ibmrs6000 opsys
=aix4-1
2097 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2098 machine
=ibmrs6000 opsys
=aix4-2
2100 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2101 machine
=ibmrs6000 opsys
=aix4-2
2103 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2104 machine
=ibmrs6000 opsys
=aix4
2106 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2107 machine
=ibmrs6000 opsys
=aix4-1
2109 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2110 machine
=ibmrs6000 opsys
=aix3-2
2113 machine
=ibmrt opsys
=bsd4-3
2116 machine
=ibmrt opsys
=bsd4-2
2119 machine
=ibmrt opsys
=bsd4-3
2122 machine
=ibmrt opsys
=bsd4-2
2125 machine
=ibmrt opsys
=bsd4-3
2128 machine
=ibmrt opsys
=bsd4-3
2131 machine
=ibmrt-aix opsys
=usg5-2-2
2134 ## Integrated Solutions `Optimum V'
2136 machine
=isi-ov opsys
=bsd4-2
2139 machine
=isi-ov opsys
=bsd4-3
2142 ## Intel 386 machines where we do care about the manufacturer
2143 i
[3456]86-intsys-sysv* )
2144 machine
=is386 opsys
=usg5-2-2
2148 i
[3456]86-prime-sysv* )
2149 machine
=i386 opsys
=usg5-3
2152 ## Sequent Symmetry running Dynix
2153 i
[3456]86-sequent-bsd* )
2154 machine
=symmetry opsys
=bsd4-3
2157 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2158 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2159 machine
=sequent-ptx opsys
=ptx4
2160 NON_GNU_CPP
=/lib
/cpp
2163 ## Sequent Symmetry running DYNIX/ptx
2164 ## Use the old cpp rather than the newer ANSI one.
2165 i
[3456]86-sequent-ptx* )
2166 machine
=sequent-ptx opsys
=ptx
2167 NON_GNU_CPP
="/lib/cpp"
2170 ## ncr machine running svr4.3.
2171 i
[3456]86-ncr-sysv4.3
)
2172 machine
=ncr386 opsys
=usg5-4-3
2175 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2176 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2177 i
[3456]86-ncr-sysv* )
2178 machine
=ncr386 opsys
=usg5-4-2
2181 ## Intel Paragon OSF/1
2183 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2188 machine
=i860 opsys
=usg5-4
2189 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2190 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2193 ## Macintosh PowerPC
2194 powerpc
*-*-linux-gnu* )
2195 machine
=macppc opsys
=gnu-linux
2198 ## Masscomp machines
2199 m68
*-masscomp-rtu* )
2200 machine
=masscomp opsys
=rtu
2203 ## Megatest machines
2204 m68
*-megatest-bsd* )
2205 machine
=mega68 opsys
=bsd4-2
2208 ## Workstations sold by MIPS
2209 ## This is not necessarily all workstations using the MIPS processor -
2210 ## Irises are produced by SGI, and DECstations by DEC.
2212 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2213 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2214 ## it gives for choosing between the alternatives seems to be "Use
2215 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2216 ## the BSD world." I'll assume that these are instructions for
2217 ## handling two odd situations, and that every other situation
2218 ## should use mips.h and usg5-2-2, they being listed first.
2221 ## Fall through to the general code at the bottom to decide on the OS.
2223 mips-mips-riscos4
* )
2224 machine
=mips4 opsys
=bsd4-3
2225 NON_GNU_CC
="cc -systype bsd43"
2226 NON_GNU_CPP
="cc -systype bsd43 -E"
2228 mips-mips-riscos5
* )
2229 machine
=mips4 opsys
=riscos5
2230 NON_GNU_CC
="cc -systype bsd43"
2231 NON_GNU_CPP
="cc -systype bsd43 -E"
2234 machine
=mips opsys
=bsd4-3
2237 machine
=mips opsys
=usg5-2-2
2241 m68
*-next-* | m68k-
*-nextstep* )
2242 machine
=m68k opsys
=nextstep
2245 ## The complete machine from National Semiconductor
2247 machine
=ns32000 opsys
=usg5-2
2251 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2252 machine
=tower32 opsys
=usg5-2-2
2254 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2255 machine
=tower32v3 opsys
=usg5-3
2260 machine
=ews4800 opsys
=ux4800
2263 ## Nixdorf Targon 31
2264 m68
*-nixdorf-sysv* )
2265 machine
=targon31 opsys
=usg5-2-2
2270 machine
=nu opsys
=usg5-2
2275 machine
=plexus opsys
=usg5-2
2279 ## I don't really have any idea what sort of processor the Pyramid has,
2280 ## so I'm assuming it is its own architecture.
2281 pyramid-pyramid-bsd
* )
2282 machine
=pyramid opsys
=bsd4-2
2286 ns32k-sequent-bsd4.2
* )
2287 machine
=sequent opsys
=bsd4-2
2289 ns32k-sequent-bsd4.3
* )
2290 machine
=sequent opsys
=bsd4-3
2294 mips-siemens-sysv
* | mips-sni-sysv
*)
2295 machine
=mips-siemens opsys
=usg5-4
2296 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2297 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2300 ## Silicon Graphics machines
2301 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2303 machine
=irist opsys
=iris3-5
2305 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2306 machine
=irist opsys
=iris3-6
2310 machine
=iris4d opsys
=irix3-3
2313 machine
=iris4d opsys
=irix4-0
2316 machine
=iris4d opsys
=irix6-5
2317 # Without defining _LANGUAGE_C, things get masked out in the headers
2318 # so that, for instance, grepping for `free' in stdlib.h fails and
2319 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2320 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2321 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2324 machine
=iris4d opsys
=irix6-0
2325 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2326 # but presumably it does no harm.
2327 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2328 # -32 probably isn't necessary in later v.6s -- anyone know which?
2329 NON_GCC_TEST_OPTIONS
=-32
2331 mips-sgi-irix5.
[01]* )
2332 machine
=iris4d opsys
=irix5-0
2334 mips-sgi-irix5
* | mips-sgi-irix
* )
2335 machine
=iris4d opsys
=irix5-2
2340 machine
=news opsys
=bsd4-2
2343 machine
=news opsys
=bsd4-3
2345 m68
*-sony-newsos3* | m68
*-sony-news3*)
2346 machine
=news opsys
=bsd4-3
2348 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2349 machine
=news-risc opsys
=bsd4-3
2351 mips-sony-newsos6
* )
2352 machine
=news-r6 opsys
=newsos6
2355 machine
=news-risc opsys
=newsos5
2360 machine
=stride opsys
=usg5-2
2364 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2365 machine
=sparc opsys
=gnu-linux
2368 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2369 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2370 | rs6000-
*-solaris2*)
2371 case "${canonical}" in
2372 m68
*-sunos1* ) machine
=sun1
;;
2373 m68
*-sunos2* ) machine
=sun2
;;
2374 m68
* ) machine
=sun3
;;
2375 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2376 i
[3456]86-*-* ) machine
=intel386
;;
2377 powerpcle
* ) machine
=powerpcle
;;
2378 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2379 sparc
* ) machine
=sparc
;;
2382 case "${canonical}" in
2383 ## The Sun386 didn't get past 4.0.
2384 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2385 *-sunos4.0
* ) opsys
=sunos4-0
;;
2386 *-sunos4.1.
[3-9]*noshare
)
2387 ## This name is sunos413 instead of sunos4-1-3
2388 ## to avoid a file name conflict on MSDOS.
2390 NON_GNU_CPP
=/usr
/lib
/cpp
2391 NON_GCC_TEST_OPTIONS
=-Bstatic
2392 GCC_TEST_OPTIONS
=-static
2394 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2396 NON_GNU_CPP
=/usr
/lib
/cpp
2398 *-sunos4* |
*-sunos )
2400 NON_GCC_TEST_OPTIONS
=-Bstatic
2401 GCC_TEST_OPTIONS
=-static
2403 *-sunos5.3
* |
*-solaris2.3
* )
2405 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2407 *-sunos5.4
* |
*-solaris2.4
* )
2409 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2412 *-sunos5.5
* |
*-solaris2.5
* )
2414 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2417 *-sunos5.6
* |
*-solaris2.6
* )
2419 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2422 *-sunos5* |
*-solaris* )
2424 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2428 ## Watch out for a compiler that we know will not work.
2429 case "${canonical}" in
2430 *-solaris* |
*-sunos5* )
2431 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2432 ## /usr/ucb/cc doesn't work;
2433 ## we should find some other compiler that does work.
2441 machine
=sparc opsys
=nextstep
2445 m68
*-tadpole-sysv* )
2446 machine
=tad68k opsys
=usg5-3
2450 tahoe-tahoe-bsd4.2
* )
2451 machine
=tahoe opsys
=bsd4-2
2453 tahoe-tahoe-bsd4.3
* )
2454 machine
=tahoe opsys
=bsd4-3
2457 ## Tandem Integrity S2
2459 machine
=tandem-s2 opsys
=usg5-3
2463 m88k-tektronix-sysv3
* )
2464 machine
=tekxd88 opsys
=usg5-3
2467 ## Tektronix 16000 box (6130?)
2468 ns16k-tektronix-bsd
* )
2469 machine
=ns16000 opsys
=bsd4-2
2472 ## src/m/tek4300.h hints that this is a m68k machine.
2473 m68
*-tektronix-bsd* )
2474 machine
=tek4300 opsys
=bsd4-3
2478 ## We seem to have lost the machine-description file titan.h!
2480 machine
=titan opsys
=usg5-3
2483 ## Ustation E30 (SS5E)
2484 m68
*-unisys-uniplus* )
2485 machine
=ustation opsystem
=unipl5-2
2491 case "${canonical}" in
2492 *-bsd4.1
* ) opsys
=bsd4-1
;;
2493 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2494 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2495 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2496 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2497 *-vms* ) opsys
=vms
;;
2503 ns16k-whitechapel-
* )
2505 ## We don't know what sort of OS runs on these; we'll let the
2506 ## operating system guessing code below try.
2511 machine
=wicat opsys
=usg5-2
2516 machine
=ia64 opsys
=gnu-linux
2519 ## Intel 386 machines where we don't care about the manufacturer
2522 case "${canonical}" in
2523 *-cygwin ) opsys
=cygwin
;;
2524 *-lynxos* ) opsys
=lynxos
;;
2525 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2526 *-isc2.2
* ) opsys
=isc2-2
;;
2527 *-isc4.0
* ) opsys
=isc4-0
;;
2528 *-isc4.
* ) opsys
=isc4-1
2529 GCC_TEST_OPTIONS
=-posix
2530 NON_GCC_TEST_OPTIONS
=-Xp
2532 *-isc* ) opsys
=isc3-0
;;
2533 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2534 *-esix* ) opsys
=esix
;;
2535 *-xenix* ) opsys
=xenix
;;
2536 *-linux-gnu* ) opsys
=gnu-linux
;;
2537 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2538 *-sco3.2v5
* ) opsys
=sco5
2539 NON_GNU_CPP
=/lib
/cpp
2540 # Prevent -belf from being passed to $CPP.
2541 # /lib/cpp does not accept it.
2542 OVERRIDE_CPPFLAGS
=" "
2544 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2545 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2546 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2547 *-386bsd* ) opsys
=386bsd
;;
2548 *-nextstep* ) opsys
=nextstep
;;
2549 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2553 ## m68k Linux-based GNU system
2555 machine
=m68k opsys
=gnu-linux
2558 ## Mips Linux-based GNU system
2559 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2560 machine
=mips opsys
=gnu-linux
2564 sparc-fujitsu-sysv4
* )
2565 machine
=sparc opsys
=uxpds
2566 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2571 f301-fujitsu-uxpv4.1
)
2572 machine
=f301 opsys
=uxpv
2575 ## Darwin / Mac OS X
2576 powerpc-apple-darwin
* )
2577 machine
=powermac opsys
=darwin
2578 # Define CPP as follows to make autoconf work correctly.
2579 CPP
="gcc -E -no-cpp-precomp"
2582 ## AMD x86-64 Linux-based GNU system
2583 x86_64-
*-linux-gnu* )
2584 machine
=amdx86-64 opsys
=gnu-linux
2592 ### If the code above didn't choose an operating system, just choose
2593 ### an operating system based on the configuration name. You really
2594 ### only want to use this when you have no idea what the right
2595 ### operating system is; if you know what operating systems a machine
2596 ### runs, it's cleaner to make it explicit in the case statement
2598 if test x
"${opsys}" = x
; then
2599 case "${canonical}" in
2600 *-gnu* ) opsys
=gnu
;;
2601 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2602 *-bsd4.2
) opsys
=bsd4-2
;;
2603 *-bsd4.3
) opsys
=bsd4-3
;;
2604 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2605 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2606 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2607 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2608 *-sysv4.2uw
* ) opsys
=unixware
;;
2609 *-sysv5uw* ) opsys
=unixware
;;
2610 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2611 *-sysv4.1
* |
*-sysvr4.1
* )
2612 NON_GNU_CPP
=/usr
/lib
/cpp
2614 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2615 if [ x
$NON_GNU_CPP = x
]; then
2616 if [ -f /usr
/ccs
/lib
/cpp
]; then
2617 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2619 NON_GNU_CPP
=/lib
/cpp
2623 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2632 if test $unported = yes; then
2633 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2634 Check \`etc/MACHINES' for recognized configuration names." >&5
2635 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2636 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2637 { (exit 1); exit 1; }; }
2640 machfile
="m/${machine}.h"
2641 opsysfile
="s/${opsys}.h"
2644 #### Choose a compiler.
2645 test -n "$CC" && cc_specified
=yes
2647 # Save the value of CFLAGS that the user specified.
2648 SPECIFIED_CFLAGS
="$CFLAGS"
2651 "yes" ) CC
="gcc" GCC
=yes ;;
2652 "no" ) : ${CC=cc} ;;
2656 ac_cpp
='$CPP $CPPFLAGS'
2657 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2658 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2659 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2660 if test -n "$ac_tool_prefix"; then
2661 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2662 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2663 echo "$as_me:$LINENO: checking for $ac_word" >&5
2664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2665 if test "${ac_cv_prog_CC+set}" = set; then
2666 echo $ECHO_N "(cached) $ECHO_C" >&6
2668 if test -n "$CC"; then
2669 ac_cv_prog_CC
="$CC" # Let the user override the test.
2671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2675 test -z "$as_dir" && as_dir
=.
2676 for ac_exec_ext
in '' $ac_executable_extensions; do
2677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2678 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2688 if test -n "$CC"; then
2689 echo "$as_me:$LINENO: result: $CC" >&5
2690 echo "${ECHO_T}$CC" >&6
2692 echo "$as_me:$LINENO: result: no" >&5
2693 echo "${ECHO_T}no" >&6
2697 if test -z "$ac_cv_prog_CC"; then
2699 # Extract the first word of "gcc", so it can be a program name with args.
2700 set dummy gcc
; ac_word
=$2
2701 echo "$as_me:$LINENO: checking for $ac_word" >&5
2702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2703 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2704 echo $ECHO_N "(cached) $ECHO_C" >&6
2706 if test -n "$ac_ct_CC"; then
2707 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2709 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2713 test -z "$as_dir" && as_dir
=.
2714 for ac_exec_ext
in '' $ac_executable_extensions; do
2715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2716 ac_cv_prog_ac_ct_CC
="gcc"
2717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2725 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2726 if test -n "$ac_ct_CC"; then
2727 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2728 echo "${ECHO_T}$ac_ct_CC" >&6
2730 echo "$as_me:$LINENO: result: no" >&5
2731 echo "${ECHO_T}no" >&6
2739 if test -z "$CC"; then
2740 if test -n "$ac_tool_prefix"; then
2741 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2742 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2743 echo "$as_me:$LINENO: checking for $ac_word" >&5
2744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2745 if test "${ac_cv_prog_CC+set}" = set; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2748 if test -n "$CC"; then
2749 ac_cv_prog_CC
="$CC" # Let the user override the test.
2751 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2755 test -z "$as_dir" && as_dir
=.
2756 for ac_exec_ext
in '' $ac_executable_extensions; do
2757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2758 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 if test -n "$CC"; then
2769 echo "$as_me:$LINENO: result: $CC" >&5
2770 echo "${ECHO_T}$CC" >&6
2772 echo "$as_me:$LINENO: result: no" >&5
2773 echo "${ECHO_T}no" >&6
2777 if test -z "$ac_cv_prog_CC"; then
2779 # Extract the first word of "cc", so it can be a program name with args.
2780 set dummy cc
; ac_word
=$2
2781 echo "$as_me:$LINENO: checking for $ac_word" >&5
2782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2783 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2784 echo $ECHO_N "(cached) $ECHO_C" >&6
2786 if test -n "$ac_ct_CC"; then
2787 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2789 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2793 test -z "$as_dir" && as_dir
=.
2794 for ac_exec_ext
in '' $ac_executable_extensions; do
2795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2796 ac_cv_prog_ac_ct_CC
="cc"
2797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2806 if test -n "$ac_ct_CC"; then
2807 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2808 echo "${ECHO_T}$ac_ct_CC" >&6
2810 echo "$as_me:$LINENO: result: no" >&5
2811 echo "${ECHO_T}no" >&6
2820 if test -z "$CC"; then
2821 # Extract the first word of "cc", so it can be a program name with args.
2822 set dummy cc
; ac_word
=$2
2823 echo "$as_me:$LINENO: checking for $ac_word" >&5
2824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2825 if test "${ac_cv_prog_CC+set}" = set; then
2826 echo $ECHO_N "(cached) $ECHO_C" >&6
2828 if test -n "$CC"; then
2829 ac_cv_prog_CC
="$CC" # Let the user override the test.
2832 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2836 test -z "$as_dir" && as_dir
=.
2837 for ac_exec_ext
in '' $ac_executable_extensions; do
2838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2839 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2840 ac_prog_rejected
=yes
2844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 if test $ac_prog_rejected = yes; then
2851 # We found a bogon in the path, so make sure we never use it.
2852 set dummy
$ac_cv_prog_CC
2854 if test $# != 0; then
2855 # We chose a different compiler from the bogus one.
2856 # However, it has the same basename, so the bogon will be chosen
2857 # first if we set CC to just the basename; use the full file name.
2859 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2865 if test -n "$CC"; then
2866 echo "$as_me:$LINENO: result: $CC" >&5
2867 echo "${ECHO_T}$CC" >&6
2869 echo "$as_me:$LINENO: result: no" >&5
2870 echo "${ECHO_T}no" >&6
2874 if test -z "$CC"; then
2875 if test -n "$ac_tool_prefix"; then
2878 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2879 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2880 echo "$as_me:$LINENO: checking for $ac_word" >&5
2881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2882 if test "${ac_cv_prog_CC+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 if test -n "$CC"; then
2886 ac_cv_prog_CC
="$CC" # Let the user override the test.
2888 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2892 test -z "$as_dir" && as_dir
=.
2893 for ac_exec_ext
in '' $ac_executable_extensions; do
2894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2895 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2905 if test -n "$CC"; then
2906 echo "$as_me:$LINENO: result: $CC" >&5
2907 echo "${ECHO_T}$CC" >&6
2909 echo "$as_me:$LINENO: result: no" >&5
2910 echo "${ECHO_T}no" >&6
2913 test -n "$CC" && break
2916 if test -z "$CC"; then
2920 # Extract the first word of "$ac_prog", so it can be a program name with args.
2921 set dummy
$ac_prog; ac_word
=$2
2922 echo "$as_me:$LINENO: checking for $ac_word" >&5
2923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2927 if test -n "$ac_ct_CC"; then
2928 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2930 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2934 test -z "$as_dir" && as_dir
=.
2935 for ac_exec_ext
in '' $ac_executable_extensions; do
2936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2937 ac_cv_prog_ac_ct_CC
="$ac_prog"
2938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2947 if test -n "$ac_ct_CC"; then
2948 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2949 echo "${ECHO_T}$ac_ct_CC" >&6
2951 echo "$as_me:$LINENO: result: no" >&5
2952 echo "${ECHO_T}no" >&6
2955 test -n "$ac_ct_CC" && break
2964 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2965 See \`config.log' for more details." >&5
2966 echo "$as_me: error: no acceptable C compiler found in \$PATH
2967 See \`config.log' for more details." >&2;}
2968 { (exit 1); exit 1; }; }
2970 # Provide some information about the compiler.
2971 echo "$as_me:$LINENO:" \
2972 "checking for C compiler version" >&5
2973 ac_compiler
=`set X $ac_compile; echo $2`
2974 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2975 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }
2979 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2980 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }
2984 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2985 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }
2990 cat >conftest.
$ac_ext <<_ACEOF
2991 #line $LINENO "configure"
2994 cat confdefs.h
>>conftest.
$ac_ext
2995 cat >>conftest.
$ac_ext <<_ACEOF
2996 /* end confdefs.h. */
3006 ac_clean_files_save
=$ac_clean_files
3007 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3008 # Try to create an executable without -o first, disregard a.out.
3009 # It will help us diagnose broken compilers, and finding out an intuition
3011 echo "$as_me:$LINENO: checking for C compiler default output" >&5
3012 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
3013 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3014 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3015 (eval $ac_link_default) 2>&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; then
3019 # Find the output, starting from the most likely. This scheme is
3020 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3023 # Be careful to initialize this variable, since it used to be cached.
3024 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3026 # b.out is created by i960 compilers.
3027 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3029 test -f "$ac_file" ||
continue
3031 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3034 # This is the source file.
3037 # We found the default executable, but exeext='' is most
3041 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3042 # FIXME: I believe we export ac_cv_exeext for Libtool,
3043 # but it would be cool to find out if it's true. Does anybody
3044 # maintain Libtool? --akim.
3052 echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.
$ac_ext >&5
3055 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3056 See \`config.log' for more details." >&5
3057 echo "$as_me: error: C compiler cannot create executables
3058 See \`config.log' for more details." >&2;}
3059 { (exit 77); exit 77; }; }
3062 ac_exeext
=$ac_cv_exeext
3063 echo "$as_me:$LINENO: result: $ac_file" >&5
3064 echo "${ECHO_T}$ac_file" >&6
3066 # Check the compiler produces executables we can run. If not, either
3067 # the compiler is broken, or we cross compile.
3068 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3069 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3070 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3071 # If not cross compiling, check that we can run a simple program.
3072 if test "$cross_compiling" != yes; then
3073 if { ac_try
='./$ac_file'
3074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); }; }; then
3081 if test "$cross_compiling" = maybe
; then
3084 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3085 If you meant to cross compile, use \`--host'.
3086 See \`config.log' for more details." >&5
3087 echo "$as_me: error: cannot run C compiled programs.
3088 If you meant to cross compile, use \`--host'.
3089 See \`config.log' for more details." >&2;}
3090 { (exit 1); exit 1; }; }
3094 echo "$as_me:$LINENO: result: yes" >&5
3095 echo "${ECHO_T}yes" >&6
3097 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3098 ac_clean_files
=$ac_clean_files_save
3099 # Check the compiler produces executables we can run. If not, either
3100 # the compiler is broken, or we cross compile.
3101 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3102 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3103 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3104 echo "${ECHO_T}$cross_compiling" >&6
3106 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3107 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3109 (eval $ac_link) 2>&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; then
3113 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3114 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3115 # work properly (i.e., refer to `conftest.exe'), while it won't with
3117 for ac_file
in conftest.exe conftest conftest.
*; do
3118 test -f "$ac_file" ||
continue
3120 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3121 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3128 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3129 See \`config.log' for more details." >&5
3130 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3131 See \`config.log' for more details." >&2;}
3132 { (exit 1); exit 1; }; }
3135 rm -f conftest
$ac_cv_exeext
3136 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3137 echo "${ECHO_T}$ac_cv_exeext" >&6
3139 rm -f conftest.
$ac_ext
3140 EXEEXT
=$ac_cv_exeext
3142 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3143 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3144 if test "${ac_cv_objext+set}" = set; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3147 cat >conftest.
$ac_ext <<_ACEOF
3148 #line $LINENO "configure"
3151 cat confdefs.h
>>conftest.
$ac_ext
3152 cat >>conftest.
$ac_ext <<_ACEOF
3153 /* end confdefs.h. */
3163 rm -f conftest.o conftest.obj
3164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3165 (eval $ac_compile) 2>&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; then
3169 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3171 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3172 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3177 echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.
$ac_ext >&5
3180 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3181 See \`config.log' for more details." >&5
3182 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3183 See \`config.log' for more details." >&2;}
3184 { (exit 1); exit 1; }; }
3187 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3189 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3190 echo "${ECHO_T}$ac_cv_objext" >&6
3191 OBJEXT
=$ac_cv_objext
3193 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3194 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3195 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 cat >conftest.
$ac_ext <<_ACEOF
3199 #line $LINENO "configure"
3202 cat confdefs.h
>>conftest.
$ac_ext
3203 cat >>conftest.
$ac_ext <<_ACEOF
3204 /* end confdefs.h. */
3217 rm -f conftest.
$ac_objext
3218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3219 (eval $ac_compile) 2>&5
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); } &&
3223 { ac_try
='test -s conftest.$ac_objext'
3224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }; }; then
3231 echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.
$ac_ext >&5
3236 rm -f conftest.
$ac_objext conftest.
$ac_ext
3237 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3240 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3241 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3242 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3243 ac_test_CFLAGS
=${CFLAGS+set}
3244 ac_save_CFLAGS
=$CFLAGS
3246 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3247 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3248 if test "${ac_cv_prog_cc_g+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3251 cat >conftest.
$ac_ext <<_ACEOF
3252 #line $LINENO "configure"
3255 cat confdefs.h
>>conftest.
$ac_ext
3256 cat >>conftest.
$ac_ext <<_ACEOF
3257 /* end confdefs.h. */
3267 rm -f conftest.
$ac_objext
3268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3269 (eval $ac_compile) 2>&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } &&
3273 { ac_try
='test -s conftest.$ac_objext'
3274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; }; then
3281 echo "$as_me: failed program was:" >&5
3282 sed 's/^/| /' conftest.
$ac_ext >&5
3286 rm -f conftest.
$ac_objext conftest.
$ac_ext
3288 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3289 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3290 if test "$ac_test_CFLAGS" = set; then
3291 CFLAGS
=$ac_save_CFLAGS
3292 elif test $ac_cv_prog_cc_g = yes; then
3293 if test "$GCC" = yes; then
3299 if test "$GCC" = yes; then
3305 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3306 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3307 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 ac_cv_prog_cc_stdc
=no
3312 cat >conftest.
$ac_ext <<_ACEOF
3313 #line $LINENO "configure"
3316 cat confdefs.h
>>conftest.
$ac_ext
3317 cat >>conftest.
$ac_ext <<_ACEOF
3318 /* end confdefs.h. */
3321 #include <sys/types.h>
3322 #include <sys/stat.h>
3323 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3324 struct buf { int x; };
3325 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3326 static char *e (p, i)
3332 static char *f (char * (*g) (char **, int), char **p, ...)
3337 s = g (p, va_arg (v,int));
3341 int test (int i, double x);
3342 struct s1 {int (*f) (int a);};
3343 struct s2 {int (*f) (double a);};
3344 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3350 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3355 # Don't try gcc -ansi; that turns off useful extensions and
3356 # breaks some systems' header files.
3357 # AIX -qlanglvl=ansi
3358 # Ultrix and OSF/1 -std1
3359 # HP-UX 10.20 and later -Ae
3360 # HP-UX older versions -Aa -D_HPUX_SOURCE
3361 # SVR4 -Xc -D__EXTENSIONS__
3362 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3364 CC
="$ac_save_CC $ac_arg"
3365 rm -f conftest.
$ac_objext
3366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3367 (eval $ac_compile) 2>&5
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); } &&
3371 { ac_try
='test -s conftest.$ac_objext'
3372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }; }; then
3377 ac_cv_prog_cc_stdc
=$ac_arg
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.
$ac_ext >&5
3384 rm -f conftest.
$ac_objext
3386 rm -f conftest.
$ac_ext conftest.
$ac_objext
3391 case "x$ac_cv_prog_cc_stdc" in
3393 echo "$as_me:$LINENO: result: none needed" >&5
3394 echo "${ECHO_T}none needed" >&6 ;;
3396 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3397 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3398 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3401 # Some people use a C++ compiler to compile C. Since we use `exit',
3402 # in C++ we need to declare it. In case someone uses the same compiler
3403 # for both compiling C and C++ we need to have the C++ compiler decide
3404 # the declaration of exit, since it's the most demanding environment.
3405 cat >conftest.
$ac_ext <<_ACEOF
3410 rm -f conftest.
$ac_objext
3411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3412 (eval $ac_compile) 2>&5
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); } &&
3416 { ac_try
='test -s conftest.$ac_objext'
3417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }; }; then
3422 for ac_declaration
in \
3424 'extern "C" void std::exit (int) throw (); using std::exit;' \
3425 'extern "C" void std::exit (int); using std::exit;' \
3426 'extern "C" void exit (int) throw ();' \
3427 'extern "C" void exit (int);' \
3430 cat >conftest.
$ac_ext <<_ACEOF
3431 #line $LINENO "configure"
3434 cat confdefs.h
>>conftest.
$ac_ext
3435 cat >>conftest.
$ac_ext <<_ACEOF
3436 /* end confdefs.h. */
3447 rm -f conftest.
$ac_objext
3448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3449 (eval $ac_compile) 2>&5
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); } &&
3453 { ac_try
='test -s conftest.$ac_objext'
3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; }; then
3461 echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.
$ac_ext >&5
3466 rm -f conftest.
$ac_objext conftest.
$ac_ext
3467 cat >conftest.
$ac_ext <<_ACEOF
3468 #line $LINENO "configure"
3471 cat confdefs.h
>>conftest.
$ac_ext
3472 cat >>conftest.
$ac_ext <<_ACEOF
3473 /* end confdefs.h. */
3483 rm -f conftest.
$ac_objext
3484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3485 (eval $ac_compile) 2>&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } &&
3489 { ac_try
='test -s conftest.$ac_objext'
3490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; }; then
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.
$ac_ext >&5
3501 rm -f conftest.
$ac_objext conftest.
$ac_ext
3504 if test -n "$ac_declaration"; then
3505 echo '#ifdef __cplusplus' >>confdefs.h
3506 echo $ac_declaration >>confdefs.h
3507 echo '#endif' >>confdefs.h
3511 echo "$as_me: failed program was:" >&5
3512 sed 's/^/| /' conftest.
$ac_ext >&5
3515 rm -f conftest.
$ac_objext conftest.
$ac_ext
3517 ac_cpp
='$CPP $CPPFLAGS'
3518 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3519 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3520 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3523 # On Suns, sometimes $CPP names a directory.
3524 if test -n "$CPP" && test -d "$CPP"; then
3528 #### Some systems specify a CPP to use unless we are using GCC.
3529 #### Now that we know whether we are using GCC, we can decide whether
3530 #### to use that one.
3531 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3536 #### Some systems specify a CC to use unless we are using GCC.
3537 #### Now that we know whether we are using GCC, we can decide whether
3538 #### to use that one.
3539 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3540 test x
$cc_specified != xyes
3545 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3547 CC
="$CC $GCC_TEST_OPTIONS"
3550 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3552 CC
="$CC $NON_GCC_TEST_OPTIONS"
3555 #### Some other nice autoconf tests.
3557 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3558 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3560 if test "$LN_S" = "ln -s"; then
3561 echo "$as_me:$LINENO: result: yes" >&5
3562 echo "${ECHO_T}yes" >&6
3564 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3565 echo "${ECHO_T}no, using $LN_S" >&6
3569 ac_cpp
='$CPP $CPPFLAGS'
3570 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3571 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3572 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3573 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3574 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3575 # On Suns, sometimes $CPP names a directory.
3576 if test -n "$CPP" && test -d "$CPP"; then
3579 if test -z "$CPP"; then
3580 if test "${ac_cv_prog_CPP+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 # Double quotes because CPP needs to be expanded
3584 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3587 for ac_c_preproc_warn_flag
in '' yes
3589 # Use a header file that comes with gcc, so configuring glibc
3590 # with a fresh cross-compiler works.
3591 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3592 # <limits.h> exists even on freestanding compilers.
3593 # On the NeXT, cc -E runs the code through the compiler's parser,
3594 # not just through cpp. "Syntax error" is here to catch this case.
3595 cat >conftest.
$ac_ext <<_ACEOF
3596 #line $LINENO "configure"
3599 cat confdefs.h
>>conftest.
$ac_ext
3600 cat >>conftest.
$ac_ext <<_ACEOF
3601 /* end confdefs.h. */
3603 # include <limits.h>
3605 # include <assert.h>
3609 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3610 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3612 grep -v '^ *+' conftest.er1
>conftest.err
3614 cat conftest.err
>&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } >/dev
/null
; then
3617 if test -s conftest.err
; then
3618 ac_cpp_err
=$ac_c_preproc_warn_flag
3625 if test -z "$ac_cpp_err"; then
3628 echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.
$ac_ext >&5
3631 # Broken: fails on valid input.
3634 rm -f conftest.err conftest.
$ac_ext
3636 # OK, works on sane cases. Now check whether non-existent headers
3637 # can be detected and how.
3638 cat >conftest.
$ac_ext <<_ACEOF
3639 #line $LINENO "configure"
3642 cat confdefs.h
>>conftest.
$ac_ext
3643 cat >>conftest.
$ac_ext <<_ACEOF
3644 /* end confdefs.h. */
3645 #include <ac_nonexistent.h>
3647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3648 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3650 grep -v '^ *+' conftest.er1
>conftest.err
3652 cat conftest.err
>&5
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); } >/dev
/null
; then
3655 if test -s conftest.err
; then
3656 ac_cpp_err
=$ac_c_preproc_warn_flag
3663 if test -z "$ac_cpp_err"; then
3664 # Broken: success on invalid input.
3667 echo "$as_me: failed program was:" >&5
3668 sed 's/^/| /' conftest.
$ac_ext >&5
3670 # Passes both tests.
3674 rm -f conftest.err conftest.
$ac_ext
3677 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3678 rm -f conftest.err conftest.
$ac_ext
3679 if $ac_preproc_ok; then
3691 echo "$as_me:$LINENO: result: $CPP" >&5
3692 echo "${ECHO_T}$CPP" >&6
3694 for ac_c_preproc_warn_flag
in '' yes
3696 # Use a header file that comes with gcc, so configuring glibc
3697 # with a fresh cross-compiler works.
3698 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3699 # <limits.h> exists even on freestanding compilers.
3700 # On the NeXT, cc -E runs the code through the compiler's parser,
3701 # not just through cpp. "Syntax error" is here to catch this case.
3702 cat >conftest.
$ac_ext <<_ACEOF
3703 #line $LINENO "configure"
3706 cat confdefs.h
>>conftest.
$ac_ext
3707 cat >>conftest.
$ac_ext <<_ACEOF
3708 /* end confdefs.h. */
3710 # include <limits.h>
3712 # include <assert.h>
3716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3717 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3719 grep -v '^ *+' conftest.er1
>conftest.err
3721 cat conftest.err
>&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } >/dev
/null
; then
3724 if test -s conftest.err
; then
3725 ac_cpp_err
=$ac_c_preproc_warn_flag
3732 if test -z "$ac_cpp_err"; then
3735 echo "$as_me: failed program was:" >&5
3736 sed 's/^/| /' conftest.
$ac_ext >&5
3738 # Broken: fails on valid input.
3741 rm -f conftest.err conftest.
$ac_ext
3743 # OK, works on sane cases. Now check whether non-existent headers
3744 # can be detected and how.
3745 cat >conftest.
$ac_ext <<_ACEOF
3746 #line $LINENO "configure"
3749 cat confdefs.h
>>conftest.
$ac_ext
3750 cat >>conftest.
$ac_ext <<_ACEOF
3751 /* end confdefs.h. */
3752 #include <ac_nonexistent.h>
3754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3755 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3757 grep -v '^ *+' conftest.er1
>conftest.err
3759 cat conftest.err
>&5
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); } >/dev
/null
; then
3762 if test -s conftest.err
; then
3763 ac_cpp_err
=$ac_c_preproc_warn_flag
3770 if test -z "$ac_cpp_err"; then
3771 # Broken: success on invalid input.
3774 echo "$as_me: failed program was:" >&5
3775 sed 's/^/| /' conftest.
$ac_ext >&5
3777 # Passes both tests.
3781 rm -f conftest.err conftest.
$ac_ext
3784 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3785 rm -f conftest.err conftest.
$ac_ext
3786 if $ac_preproc_ok; then
3789 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3790 See \`config.log' for more details." >&5
3791 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3792 See \`config.log' for more details." >&2;}
3793 { (exit 1); exit 1; }; }
3797 ac_cpp
='$CPP $CPPFLAGS'
3798 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3799 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3800 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3802 # Find a good install program. We prefer a C program (faster),
3803 # so one script is as good as another. But avoid the broken or
3804 # incompatible versions:
3805 # SysV /etc/install, /usr/sbin/install
3806 # SunOS /usr/etc/install
3807 # IRIX /sbin/install
3809 # AmigaOS /C/install, which installs bootblocks on floppy discs
3810 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3811 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3812 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3813 # ./install, which can be erroneously created by make from ./install.sh.
3814 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3815 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3816 if test -z "$INSTALL"; then
3817 if test "${ac_cv_path_install+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3824 test -z "$as_dir" && as_dir
=.
3825 # Account for people who put trailing slashes in PATH elements.
3827 .
/ | .
// |
/cC
/* | \
3828 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3831 # OSF1 and SCO ODT 3.0 have their own names for install.
3832 # Don't use installbsd from OSF since it installs stuff as root
3834 for ac_prog
in ginstall scoinst
install; do
3835 for ac_exec_ext
in '' $ac_executable_extensions; do
3836 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3837 if test $ac_prog = install &&
3838 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3839 # AIX install. It has an incompatible calling convention.
3841 elif test $ac_prog = install &&
3842 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3843 # program-specific install script used by HP pwplus--don't use.
3846 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3858 if test "${ac_cv_path_install+set}" = set; then
3859 INSTALL
=$ac_cv_path_install
3861 # As a last resort, use the slow shell script. We don't cache a
3862 # path for INSTALL within a source directory, because that will
3863 # break other packages using the cache if that directory is
3864 # removed, or if the path is relative.
3865 INSTALL
=$ac_install_sh
3868 echo "$as_me:$LINENO: result: $INSTALL" >&5
3869 echo "${ECHO_T}$INSTALL" >&6
3871 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3872 # It thinks the first close brace ends the variable substitution.
3873 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3875 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3877 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3879 if test "x$RANLIB" = x
; then
3880 if test -n "$ac_tool_prefix"; then
3881 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3882 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3883 echo "$as_me:$LINENO: checking for $ac_word" >&5
3884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3885 if test "${ac_cv_prog_RANLIB+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 if test -n "$RANLIB"; then
3889 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3895 test -z "$as_dir" && as_dir
=.
3896 for ac_exec_ext
in '' $ac_executable_extensions; do
3897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3898 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3907 RANLIB
=$ac_cv_prog_RANLIB
3908 if test -n "$RANLIB"; then
3909 echo "$as_me:$LINENO: result: $RANLIB" >&5
3910 echo "${ECHO_T}$RANLIB" >&6
3912 echo "$as_me:$LINENO: result: no" >&5
3913 echo "${ECHO_T}no" >&6
3917 if test -z "$ac_cv_prog_RANLIB"; then
3918 ac_ct_RANLIB
=$RANLIB
3919 # Extract the first word of "ranlib", so it can be a program name with args.
3920 set dummy ranlib
; ac_word
=$2
3921 echo "$as_me:$LINENO: checking for $ac_word" >&5
3922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3923 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 if test -n "$ac_ct_RANLIB"; then
3927 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3929 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3933 test -z "$as_dir" && as_dir
=.
3934 for ac_exec_ext
in '' $ac_executable_extensions; do
3935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3936 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3943 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3946 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3947 if test -n "$ac_ct_RANLIB"; then
3948 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3949 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3951 echo "$as_me:$LINENO: result: no" >&5
3952 echo "${ECHO_T}no" >&6
3955 RANLIB
=$ac_ct_RANLIB
3957 RANLIB
="$ac_cv_prog_RANLIB"
3961 # Extract the first word of "install-info", so it can be a program name with args.
3962 set dummy install-info
; ac_word
=$2
3963 echo "$as_me:$LINENO: checking for $ac_word" >&5
3964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3965 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 case $INSTALL_INFO in
3970 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
3973 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3977 test -z "$as_dir" && as_dir
=.
3978 for ac_exec_ext
in '' $ac_executable_extensions; do
3979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3980 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
3981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3990 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
3992 if test -n "$INSTALL_INFO"; then
3993 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3994 echo "${ECHO_T}$INSTALL_INFO" >&6
3996 echo "$as_me:$LINENO: result: no" >&5
3997 echo "${ECHO_T}no" >&6
4000 # Extract the first word of "install-info", so it can be a program name with args.
4001 set dummy install-info
; ac_word
=$2
4002 echo "$as_me:$LINENO: checking for $ac_word" >&5
4003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4004 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4007 case $INSTALL_INFO in
4009 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4012 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4013 for as_dir
in /usr
/sbin
4016 test -z "$as_dir" && as_dir
=.
4017 for ac_exec_ext
in '' $ac_executable_extensions; do
4018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4019 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4029 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4031 if test -n "$INSTALL_INFO"; then
4032 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4033 echo "${ECHO_T}$INSTALL_INFO" >&6
4035 echo "$as_me:$LINENO: result: no" >&5
4036 echo "${ECHO_T}no" >&6
4039 # Extract the first word of "install-info", so it can be a program name with args.
4040 set dummy install-info
; ac_word
=$2
4041 echo "$as_me:$LINENO: checking for $ac_word" >&5
4042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4043 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 case $INSTALL_INFO in
4048 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4051 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4055 test -z "$as_dir" && as_dir
=.
4056 for ac_exec_ext
in '' $ac_executable_extensions; do
4057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4058 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4065 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4069 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4071 if test -n "$INSTALL_INFO"; then
4072 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4073 echo "${ECHO_T}$INSTALL_INFO" >&6
4075 echo "$as_me:$LINENO: result: no" >&5
4076 echo "${ECHO_T}no" >&6
4081 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4083 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4086 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4088 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4093 echo "$as_me:$LINENO: checking for egrep" >&5
4094 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4095 if test "${ac_cv_prog_egrep+set}" = set; then
4096 echo $ECHO_N "(cached) $ECHO_C" >&6
4098 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4099 then ac_cv_prog_egrep
='grep -E'
4100 else ac_cv_prog_egrep
='egrep'
4103 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4104 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4105 EGREP
=$ac_cv_prog_egrep
4109 echo "$as_me:$LINENO: checking for AIX" >&5
4110 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4111 cat >conftest.
$ac_ext <<_ACEOF
4112 #line $LINENO "configure"
4115 cat confdefs.h
>>conftest.
$ac_ext
4116 cat >>conftest.
$ac_ext <<_ACEOF
4117 /* end confdefs.h. */
4123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4124 $EGREP "yes" >/dev
/null
2>&1; then
4125 echo "$as_me:$LINENO: result: yes" >&5
4126 echo "${ECHO_T}yes" >&6
4127 cat >>confdefs.h
<<\_ACEOF
4128 #define _ALL_SOURCE 1
4132 echo "$as_me:$LINENO: result: no" >&5
4133 echo "${ECHO_T}no" >&6
4139 #### Extract some information from the operating system and machine files.
4141 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4142 - which libraries the lib-src programs will want, and
4143 - whether the GNU malloc routines are usable..." >&5
4144 echo "$as_me: checking the machine- and system-dependent files to find out
4145 - which libraries the lib-src programs will want, and
4146 - whether the GNU malloc routines are usable..." >&6;}
4148 ### First figure out CFLAGS (which we use for running the compiler here)
4149 ### and REAL_CFLAGS (which we use for real compilation).
4150 ### The two are the same except on a few systems, where they are made
4151 ### different to work around various lossages. For example,
4152 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4153 ### as implying static linking.
4155 ### If the CFLAGS env var is specified, we use that value
4156 ### instead of the default.
4158 ### It's not important that this name contain the PID; you can't run
4159 ### two configures in the same directory and have anything work
4161 tempcname
="conftest.c"
4164 #include "'${srcdir}'/src/'${opsysfile}'"
4165 #include "'${srcdir}'/src/'${machfile}'"
4166 #ifndef LIBS_MACHINE
4167 #define LIBS_MACHINE
4172 #ifndef C_SWITCH_SYSTEM
4173 #define C_SWITCH_SYSTEM
4175 #ifndef C_SWITCH_MACHINE
4176 #define C_SWITCH_MACHINE
4178 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4179 configure___ c_switch_system=C_SWITCH_SYSTEM
4180 configure___ c_switch_machine=C_SWITCH_MACHINE
4183 #define LIB_X11_LIB -lX11
4186 #ifndef LIBX11_MACHINE
4187 #define LIBX11_MACHINE
4190 #ifndef LIBX11_SYSTEM
4191 #define LIBX11_SYSTEM
4193 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4196 configure___ unexec=UNEXEC
4198 configure___ unexec=unexec.o
4201 #ifdef SYSTEM_MALLOC
4202 configure___ system_malloc=yes
4204 configure___ system_malloc=no
4207 #ifdef USE_MMAP_FOR_BUFFERS
4208 configure___ use_mmap_for_buffers=yes
4210 configure___ use_mmap_for_buffers=no
4213 #ifndef C_DEBUG_SWITCH
4214 #define C_DEBUG_SWITCH -g
4217 #ifndef C_OPTIMIZE_SWITCH
4219 #define C_OPTIMIZE_SWITCH -O2
4221 #define C_OPTIMIZE_SWITCH -O
4225 #ifndef LD_SWITCH_MACHINE
4226 #define LD_SWITCH_MACHINE
4229 #ifndef LD_SWITCH_SYSTEM
4230 #define LD_SWITCH_SYSTEM
4233 #ifndef LD_SWITCH_X_SITE_AUX
4234 #define LD_SWITCH_X_SITE_AUX
4237 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4238 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4240 #ifdef THIS_IS_CONFIGURE
4242 /* Get the CFLAGS for tests in configure. */
4244 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4246 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4249 #else /* not THIS_IS_CONFIGURE */
4251 /* Get the CFLAGS for real compilation. */
4253 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4255 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4258 #endif /* not THIS_IS_CONFIGURE */
4261 # The value of CPP is a quoted variable reference, so we need to do this
4262 # to get its actual value...
4263 CPP
=`eval "echo $CPP"`
4264 eval `${CPP} -Isrc ${tempcname} \
4265 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4266 if test "x$SPECIFIED_CFLAGS" = x
; then
4267 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4268 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4270 REAL_CFLAGS
="$CFLAGS"
4274 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4276 ### Make sure subsequent tests use flags consistent with the build flags.
4278 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4279 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4281 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4287 cat >>confdefs.h
<<\_ACEOF
4288 #define _GNU_SOURCE 1
4293 # Check whether --enable-largefile or --disable-largefile was given.
4294 if test "${enable_largefile+set}" = set; then
4295 enableval
="$enable_largefile"
4298 if test "$enable_largefile" != no
; then
4300 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4301 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4302 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4303 echo $ECHO_N "(cached) $ECHO_C" >&6
4305 ac_cv_sys_largefile_CC
=no
4306 if test "$GCC" != yes; then
4309 # IRIX 6.2 and later do not support large files by default,
4310 # so use the C compiler's -n32 option if that helps.
4311 cat >conftest.
$ac_ext <<_ACEOF
4312 #line $LINENO "configure"
4315 cat confdefs.h
>>conftest.
$ac_ext
4316 cat >>conftest.
$ac_ext <<_ACEOF
4317 /* end confdefs.h. */
4318 #include <sys/types.h>
4319 /* Check that off_t can represent 2**63 - 1 correctly.
4320 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4321 since some C++ compilers masquerading as C compilers
4322 incorrectly reject 9223372036854775807. */
4323 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4324 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4325 && LARGE_OFF_T % 2147483647 == 1)
4335 rm -f conftest.
$ac_objext
4336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4337 (eval $ac_compile) 2>&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); } &&
4341 { ac_try
='test -s conftest.$ac_objext'
4342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4349 echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.
$ac_ext >&5
4353 rm -f conftest.
$ac_objext
4355 rm -f conftest.
$ac_objext
4356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4357 (eval $ac_compile) 2>&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); } &&
4361 { ac_try
='test -s conftest.$ac_objext'
4362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; }; then
4367 ac_cv_sys_largefile_CC
=' -n32'; break
4369 echo "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.
$ac_ext >&5
4373 rm -f conftest.
$ac_objext
4377 rm -f conftest.
$ac_ext
4380 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4381 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4382 if test "$ac_cv_sys_largefile_CC" != no
; then
4383 CC
=$CC$ac_cv_sys_largefile_CC
4386 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4387 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4388 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 ac_cv_sys_file_offset_bits
=no
4393 cat >conftest.
$ac_ext <<_ACEOF
4394 #line $LINENO "configure"
4397 cat confdefs.h
>>conftest.
$ac_ext
4398 cat >>conftest.
$ac_ext <<_ACEOF
4399 /* end confdefs.h. */
4400 #include <sys/types.h>
4401 /* Check that off_t can represent 2**63 - 1 correctly.
4402 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4403 since some C++ compilers masquerading as C compilers
4404 incorrectly reject 9223372036854775807. */
4405 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4406 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4407 && LARGE_OFF_T % 2147483647 == 1)
4417 rm -f conftest.
$ac_objext
4418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4419 (eval $ac_compile) 2>&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); } &&
4423 { ac_try
='test -s conftest.$ac_objext'
4424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); }; }; then
4431 echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.
$ac_ext >&5
4435 rm -f conftest.
$ac_objext conftest.
$ac_ext
4436 cat >conftest.
$ac_ext <<_ACEOF
4437 #line $LINENO "configure"
4440 cat confdefs.h
>>conftest.
$ac_ext
4441 cat >>conftest.
$ac_ext <<_ACEOF
4442 /* end confdefs.h. */
4443 #define _FILE_OFFSET_BITS 64
4444 #include <sys/types.h>
4445 /* Check that off_t can represent 2**63 - 1 correctly.
4446 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4447 since some C++ compilers masquerading as C compilers
4448 incorrectly reject 9223372036854775807. */
4449 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4450 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4451 && LARGE_OFF_T % 2147483647 == 1)
4461 rm -f conftest.
$ac_objext
4462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4463 (eval $ac_compile) 2>&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } &&
4467 { ac_try
='test -s conftest.$ac_objext'
4468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; }; then
4473 ac_cv_sys_file_offset_bits
=64; break
4475 echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.
$ac_ext >&5
4479 rm -f conftest.
$ac_objext conftest.
$ac_ext
4483 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4484 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4485 if test "$ac_cv_sys_file_offset_bits" != no
; then
4487 cat >>confdefs.h
<<_ACEOF
4488 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4493 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4494 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4495 if test "${ac_cv_sys_large_files+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4499 ac_cv_sys_large_files
=no
4500 cat >conftest.
$ac_ext <<_ACEOF
4501 #line $LINENO "configure"
4504 cat confdefs.h
>>conftest.
$ac_ext
4505 cat >>conftest.
$ac_ext <<_ACEOF
4506 /* end confdefs.h. */
4507 #include <sys/types.h>
4508 /* Check that off_t can represent 2**63 - 1 correctly.
4509 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4510 since some C++ compilers masquerading as C compilers
4511 incorrectly reject 9223372036854775807. */
4512 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4513 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4514 && LARGE_OFF_T % 2147483647 == 1)
4524 rm -f conftest.
$ac_objext
4525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4526 (eval $ac_compile) 2>&5
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); } &&
4530 { ac_try
='test -s conftest.$ac_objext'
4531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); }; }; then
4538 echo "$as_me: failed program was:" >&5
4539 sed 's/^/| /' conftest.
$ac_ext >&5
4542 rm -f conftest.
$ac_objext conftest.
$ac_ext
4543 cat >conftest.
$ac_ext <<_ACEOF
4544 #line $LINENO "configure"
4547 cat confdefs.h
>>conftest.
$ac_ext
4548 cat >>conftest.
$ac_ext <<_ACEOF
4549 /* end confdefs.h. */
4550 #define _LARGE_FILES 1
4551 #include <sys/types.h>
4552 /* Check that off_t can represent 2**63 - 1 correctly.
4553 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4554 since some C++ compilers masquerading as C compilers
4555 incorrectly reject 9223372036854775807. */
4556 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4557 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4558 && LARGE_OFF_T % 2147483647 == 1)
4568 rm -f conftest.
$ac_objext
4569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4570 (eval $ac_compile) 2>&5
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); } &&
4574 { ac_try
='test -s conftest.$ac_objext'
4575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }; }; then
4580 ac_cv_sys_large_files
=1; break
4582 echo "$as_me: failed program was:" >&5
4583 sed 's/^/| /' conftest.
$ac_ext >&5
4586 rm -f conftest.
$ac_objext conftest.
$ac_ext
4590 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4591 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4592 if test "$ac_cv_sys_large_files" != no
; then
4594 cat >>confdefs.h
<<_ACEOF
4595 #define _LARGE_FILES $ac_cv_sys_large_files
4603 if test "${with_sound}" != "no"; then
4604 # Sound support for GNU/Linux and the free BSDs.
4605 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4606 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4607 if test "${ac_cv_header_stdc+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 cat >conftest.
$ac_ext <<_ACEOF
4611 #line $LINENO "configure"
4614 cat confdefs.h
>>conftest.
$ac_ext
4615 cat >>conftest.
$ac_ext <<_ACEOF
4616 /* end confdefs.h. */
4630 rm -f conftest.
$ac_objext
4631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4632 (eval $ac_compile) 2>&5
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); } &&
4636 { ac_try
='test -s conftest.$ac_objext'
4637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); }; }; then
4642 ac_cv_header_stdc
=yes
4644 echo "$as_me: failed program was:" >&5
4645 sed 's/^/| /' conftest.
$ac_ext >&5
4647 ac_cv_header_stdc
=no
4649 rm -f conftest.
$ac_objext conftest.
$ac_ext
4651 if test $ac_cv_header_stdc = yes; then
4652 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4653 cat >conftest.
$ac_ext <<_ACEOF
4654 #line $LINENO "configure"
4657 cat confdefs.h
>>conftest.
$ac_ext
4658 cat >>conftest.
$ac_ext <<_ACEOF
4659 /* end confdefs.h. */
4663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4664 $EGREP "memchr" >/dev
/null
2>&1; then
4667 ac_cv_header_stdc
=no
4673 if test $ac_cv_header_stdc = yes; then
4674 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4675 cat >conftest.
$ac_ext <<_ACEOF
4676 #line $LINENO "configure"
4679 cat confdefs.h
>>conftest.
$ac_ext
4680 cat >>conftest.
$ac_ext <<_ACEOF
4681 /* end confdefs.h. */
4685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4686 $EGREP "free" >/dev
/null
2>&1; then
4689 ac_cv_header_stdc
=no
4695 if test $ac_cv_header_stdc = yes; then
4696 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4697 if test "$cross_compiling" = yes; then
4700 cat >conftest.
$ac_ext <<_ACEOF
4701 #line $LINENO "configure"
4704 cat confdefs.h
>>conftest.
$ac_ext
4705 cat >>conftest.
$ac_ext <<_ACEOF
4706 /* end confdefs.h. */
4708 #if ((' ' & 0x0FF) == 0x020)
4709 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4710 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4712 # define ISLOWER(c) \
4713 (('a' <= (c) && (c) <= 'i') \
4714 || ('j' <= (c) && (c) <= 'r') \
4715 || ('s' <= (c) && (c) <= 'z'))
4716 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4719 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4724 for (i = 0; i < 256; i++)
4725 if (XOR (islower (i), ISLOWER (i))
4726 || toupper (i) != TOUPPER (i))
4731 rm -f conftest
$ac_exeext
4732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4733 (eval $ac_link) 2>&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; }; then
4744 echo "$as_me: program exited with status $ac_status" >&5
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.
$ac_ext >&5
4749 ac_cv_header_stdc
=no
4751 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4755 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4756 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4757 if test $ac_cv_header_stdc = yes; then
4759 cat >>confdefs.h
<<\_ACEOF
4760 #define STDC_HEADERS 1
4765 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4775 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4776 inttypes.h stdint.h unistd.h
4778 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4779 echo "$as_me:$LINENO: checking for $ac_header" >&5
4780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 cat >conftest.
$ac_ext <<_ACEOF
4785 #line $LINENO "configure"
4788 cat confdefs.h
>>conftest.
$ac_ext
4789 cat >>conftest.
$ac_ext <<_ACEOF
4790 /* end confdefs.h. */
4791 $ac_includes_default
4793 #include <$ac_header>
4795 rm -f conftest.
$ac_objext
4796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4797 (eval $ac_compile) 2>&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } &&
4801 { ac_try
='test -s conftest.$ac_objext'
4802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; }; then
4807 eval "$as_ac_Header=yes"
4809 echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.
$ac_ext >&5
4812 eval "$as_ac_Header=no"
4814 rm -f conftest.
$ac_objext conftest.
$ac_ext
4816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4819 cat >>confdefs.h
<<_ACEOF
4820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4831 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
4833 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4835 echo "$as_me:$LINENO: checking for $ac_header" >&5
4836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4843 # Is the header compilable?
4844 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4845 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4846 cat >conftest.
$ac_ext <<_ACEOF
4847 #line $LINENO "configure"
4850 cat confdefs.h
>>conftest.
$ac_ext
4851 cat >>conftest.
$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4853 $ac_includes_default
4854 #include <$ac_header>
4856 rm -f conftest.
$ac_objext
4857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4858 (eval $ac_compile) 2>&5
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); } &&
4862 { ac_try
='test -s conftest.$ac_objext'
4863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); }; }; then
4868 ac_header_compiler
=yes
4870 echo "$as_me: failed program was:" >&5
4871 sed 's/^/| /' conftest.
$ac_ext >&5
4873 ac_header_compiler
=no
4875 rm -f conftest.
$ac_objext conftest.
$ac_ext
4876 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4877 echo "${ECHO_T}$ac_header_compiler" >&6
4879 # Is the header present?
4880 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4882 cat >conftest.
$ac_ext <<_ACEOF
4883 #line $LINENO "configure"
4886 cat confdefs.h
>>conftest.
$ac_ext
4887 cat >>conftest.
$ac_ext <<_ACEOF
4888 /* end confdefs.h. */
4889 #include <$ac_header>
4891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4892 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4894 grep -v '^ *+' conftest.er1
>conftest.err
4896 cat conftest.err
>&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } >/dev
/null
; then
4899 if test -s conftest.err
; then
4900 ac_cpp_err
=$ac_c_preproc_warn_flag
4907 if test -z "$ac_cpp_err"; then
4908 ac_header_preproc
=yes
4910 echo "$as_me: failed program was:" >&5
4911 sed 's/^/| /' conftest.
$ac_ext >&5
4913 ac_header_preproc
=no
4915 rm -f conftest.err conftest.
$ac_ext
4916 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4917 echo "${ECHO_T}$ac_header_preproc" >&6
4919 # So? What about this header?
4920 case $ac_header_compiler:$ac_header_preproc in
4922 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4923 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4928 ## ------------------------------------ ##
4929 ## Report this to bug-autoconf@gnu.org. ##
4930 ## ------------------------------------ ##
4933 sed "s/^/$as_me: WARNING: /" >&2
4936 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4937 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4938 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4939 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4944 ## ------------------------------------ ##
4945 ## Report this to bug-autoconf@gnu.org. ##
4946 ## ------------------------------------ ##
4949 sed "s/^/$as_me: WARNING: /" >&2
4952 echo "$as_me:$LINENO: checking for $ac_header" >&5
4953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4957 eval "$as_ac_Header=$ac_header_preproc"
4959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4964 cat >>confdefs.h
<<_ACEOF
4965 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4972 # Emulation library used on NetBSD.
4973 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4974 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4975 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 ac_check_lib_save_LIBS
=$LIBS
4979 LIBS
="-lossaudio $LIBS"
4980 cat >conftest.
$ac_ext <<_ACEOF
4981 #line $LINENO "configure"
4984 cat confdefs.h
>>conftest.
$ac_ext
4985 cat >>conftest.
$ac_ext <<_ACEOF
4986 /* end confdefs.h. */
4988 /* Override any gcc2 internal prototype to avoid an error. */
4992 /* We use char because int might match the return type of a gcc2
4993 builtin and then its argument prototype would still apply. */
5003 rm -f conftest.
$ac_objext conftest
$ac_exeext
5004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5005 (eval $ac_link) 2>&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } &&
5009 { ac_try
='test -s conftest$ac_exeext'
5010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); }; }; then
5015 ac_cv_lib_ossaudio__oss_ioctl
=yes
5017 echo "$as_me: failed program was:" >&5
5018 sed 's/^/| /' conftest.
$ac_ext >&5
5020 ac_cv_lib_ossaudio__oss_ioctl
=no
5022 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5023 LIBS
=$ac_check_lib_save_LIBS
5025 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5026 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5027 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5059 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5060 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5061 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5062 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h
5064 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5066 echo "$as_me:$LINENO: checking for $ac_header" >&5
5067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5074 # Is the header compilable?
5075 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5077 cat >conftest.
$ac_ext <<_ACEOF
5078 #line $LINENO "configure"
5081 cat confdefs.h
>>conftest.
$ac_ext
5082 cat >>conftest.
$ac_ext <<_ACEOF
5083 /* end confdefs.h. */
5084 $ac_includes_default
5085 #include <$ac_header>
5087 rm -f conftest.
$ac_objext
5088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5089 (eval $ac_compile) 2>&5
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); } &&
5093 { ac_try
='test -s conftest.$ac_objext'
5094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); }; }; then
5099 ac_header_compiler
=yes
5101 echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.
$ac_ext >&5
5104 ac_header_compiler
=no
5106 rm -f conftest.
$ac_objext conftest.
$ac_ext
5107 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5108 echo "${ECHO_T}$ac_header_compiler" >&6
5110 # Is the header present?
5111 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5112 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5113 cat >conftest.
$ac_ext <<_ACEOF
5114 #line $LINENO "configure"
5117 cat confdefs.h
>>conftest.
$ac_ext
5118 cat >>conftest.
$ac_ext <<_ACEOF
5119 /* end confdefs.h. */
5120 #include <$ac_header>
5122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5123 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5125 grep -v '^ *+' conftest.er1
>conftest.err
5127 cat conftest.err
>&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } >/dev
/null
; then
5130 if test -s conftest.err
; then
5131 ac_cpp_err
=$ac_c_preproc_warn_flag
5138 if test -z "$ac_cpp_err"; then
5139 ac_header_preproc
=yes
5141 echo "$as_me: failed program was:" >&5
5142 sed 's/^/| /' conftest.
$ac_ext >&5
5144 ac_header_preproc
=no
5146 rm -f conftest.err conftest.
$ac_ext
5147 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5148 echo "${ECHO_T}$ac_header_preproc" >&6
5150 # So? What about this header?
5151 case $ac_header_compiler:$ac_header_preproc in
5153 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5156 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5159 ## ------------------------------------ ##
5160 ## Report this to bug-autoconf@gnu.org. ##
5161 ## ------------------------------------ ##
5164 sed "s/^/$as_me: WARNING: /" >&2
5167 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5168 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5169 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5170 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5175 ## ------------------------------------ ##
5176 ## Report this to bug-autoconf@gnu.org. ##
5177 ## ------------------------------------ ##
5180 sed "s/^/$as_me: WARNING: /" >&2
5183 echo "$as_me:$LINENO: checking for $ac_header" >&5
5184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5186 echo $ECHO_N "(cached) $ECHO_C" >&6
5188 eval "$as_ac_Header=$ac_header_preproc"
5190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5195 cat >>confdefs.h
<<_ACEOF
5196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5204 for ac_header
in term.h
5206 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5207 echo "$as_me:$LINENO: checking for $ac_header" >&5
5208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 cat >conftest.
$ac_ext <<_ACEOF
5213 #line $LINENO "configure"
5216 cat confdefs.h
>>conftest.
$ac_ext
5217 cat >>conftest.
$ac_ext <<_ACEOF
5218 /* end confdefs.h. */
5219 #include <$ac_header>
5221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5222 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5224 grep -v '^ *+' conftest.er1
>conftest.err
5226 cat conftest.err
>&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); } >/dev
/null
; then
5229 if test -s conftest.err
; then
5230 ac_cpp_err
=$ac_c_preproc_warn_flag
5237 if test -z "$ac_cpp_err"; then
5238 eval "$as_ac_Header=yes"
5240 echo "$as_me: failed program was:" >&5
5241 sed 's/^/| /' conftest.
$ac_ext >&5
5243 eval "$as_ac_Header=no"
5245 rm -f conftest.err conftest.
$ac_ext
5247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5250 cat >>confdefs.h
<<_ACEOF
5251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5258 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5259 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5260 if test "${ac_cv_header_stdc+set}" = set; then
5261 echo $ECHO_N "(cached) $ECHO_C" >&6
5263 cat >conftest.
$ac_ext <<_ACEOF
5264 #line $LINENO "configure"
5267 cat confdefs.h
>>conftest.
$ac_ext
5268 cat >>conftest.
$ac_ext <<_ACEOF
5269 /* end confdefs.h. */
5283 rm -f conftest.
$ac_objext
5284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5285 (eval $ac_compile) 2>&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } &&
5289 { ac_try
='test -s conftest.$ac_objext'
5290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }; }; then
5295 ac_cv_header_stdc
=yes
5297 echo "$as_me: failed program was:" >&5
5298 sed 's/^/| /' conftest.
$ac_ext >&5
5300 ac_cv_header_stdc
=no
5302 rm -f conftest.
$ac_objext conftest.
$ac_ext
5304 if test $ac_cv_header_stdc = yes; then
5305 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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. */
5316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5317 $EGREP "memchr" >/dev
/null
2>&1; then
5320 ac_cv_header_stdc
=no
5326 if test $ac_cv_header_stdc = yes; then
5327 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5328 cat >conftest.
$ac_ext <<_ACEOF
5329 #line $LINENO "configure"
5332 cat confdefs.h
>>conftest.
$ac_ext
5333 cat >>conftest.
$ac_ext <<_ACEOF
5334 /* end confdefs.h. */
5338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5339 $EGREP "free" >/dev
/null
2>&1; then
5342 ac_cv_header_stdc
=no
5348 if test $ac_cv_header_stdc = yes; then
5349 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5350 if test "$cross_compiling" = yes; then
5353 cat >conftest.
$ac_ext <<_ACEOF
5354 #line $LINENO "configure"
5357 cat confdefs.h
>>conftest.
$ac_ext
5358 cat >>conftest.
$ac_ext <<_ACEOF
5359 /* end confdefs.h. */
5361 #if ((' ' & 0x0FF) == 0x020)
5362 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5363 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5365 # define ISLOWER(c) \
5366 (('a' <= (c) && (c) <= 'i') \
5367 || ('j' <= (c) && (c) <= 'r') \
5368 || ('s' <= (c) && (c) <= 'z'))
5369 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5372 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5377 for (i = 0; i < 256; i++)
5378 if (XOR (islower (i), ISLOWER (i))
5379 || toupper (i) != TOUPPER (i))
5384 rm -f conftest
$ac_exeext
5385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5386 (eval $ac_link) 2>&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); }; }; then
5397 echo "$as_me: program exited with status $ac_status" >&5
5398 echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.
$ac_ext >&5
5402 ac_cv_header_stdc
=no
5404 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5408 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5409 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5410 if test $ac_cv_header_stdc = yes; then
5412 cat >>confdefs.h
<<\_ACEOF
5413 #define STDC_HEADERS 1
5418 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5419 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5420 if test "${ac_cv_header_time+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5423 cat >conftest.
$ac_ext <<_ACEOF
5424 #line $LINENO "configure"
5427 cat confdefs.h
>>conftest.
$ac_ext
5428 cat >>conftest.
$ac_ext <<_ACEOF
5429 /* end confdefs.h. */
5430 #include <sys/types.h>
5431 #include <sys/time.h>
5437 if ((struct tm *) 0)
5443 rm -f conftest.
$ac_objext
5444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5445 (eval $ac_compile) 2>&5
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); } &&
5449 { ac_try
='test -s conftest.$ac_objext'
5450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); }; }; then
5455 ac_cv_header_time
=yes
5457 echo "$as_me: failed program was:" >&5
5458 sed 's/^/| /' conftest.
$ac_ext >&5
5460 ac_cv_header_time
=no
5462 rm -f conftest.
$ac_objext conftest.
$ac_ext
5464 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5465 echo "${ECHO_T}$ac_cv_header_time" >&6
5466 if test $ac_cv_header_time = yes; then
5468 cat >>confdefs.h
<<\_ACEOF
5469 #define TIME_WITH_SYS_TIME 1
5474 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5475 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5476 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 cat >conftest.
$ac_ext <<_ACEOF
5480 #line $LINENO "configure"
5483 cat confdefs.h
>>conftest.
$ac_ext
5484 cat >>conftest.
$ac_ext <<_ACEOF
5485 /* end confdefs.h. */
5486 $ac_includes_default
5491 char *p = (char *) sys_siglist;
5498 rm -f conftest.
$ac_objext
5499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5500 (eval $ac_compile) 2>&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); } &&
5504 { ac_try
='test -s conftest.$ac_objext'
5505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); }; }; then
5510 ac_cv_have_decl_sys_siglist
=yes
5512 echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.
$ac_ext >&5
5515 ac_cv_have_decl_sys_siglist
=no
5517 rm -f conftest.
$ac_objext conftest.
$ac_ext
5519 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5520 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5521 if test $ac_cv_have_decl_sys_siglist = yes; then
5523 cat >>confdefs.h
<<_ACEOF
5524 #define HAVE_DECL_SYS_SIGLIST 1
5529 cat >>confdefs.h
<<_ACEOF
5530 #define HAVE_DECL_SYS_SIGLIST 0
5537 if test $ac_cv_have_decl_sys_siglist != yes; then
5538 # For Tru64, at least:
5539 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5540 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5541 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5544 cat >conftest.
$ac_ext <<_ACEOF
5545 #line $LINENO "configure"
5548 cat confdefs.h
>>conftest.
$ac_ext
5549 cat >>conftest.
$ac_ext <<_ACEOF
5550 /* end confdefs.h. */
5551 $ac_includes_default
5555 #ifndef __sys_siglist
5556 char *p = (char *) __sys_siglist;
5563 rm -f conftest.
$ac_objext
5564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5565 (eval $ac_compile) 2>&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); } &&
5569 { ac_try
='test -s conftest.$ac_objext'
5570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }; }; then
5575 ac_cv_have_decl___sys_siglist
=yes
5577 echo "$as_me: failed program was:" >&5
5578 sed 's/^/| /' conftest.
$ac_ext >&5
5580 ac_cv_have_decl___sys_siglist
=no
5582 rm -f conftest.
$ac_objext conftest.
$ac_ext
5584 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5585 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5586 if test $ac_cv_have_decl___sys_siglist = yes; then
5588 cat >>confdefs.h
<<_ACEOF
5589 #define HAVE_DECL___SYS_SIGLIST 1
5594 cat >>confdefs.h
<<_ACEOF
5595 #define HAVE_DECL___SYS_SIGLIST 0
5602 if test $ac_cv_have_decl___sys_siglist = yes; then
5604 cat >>confdefs.h
<<\_ACEOF
5605 #define sys_siglist __sys_siglist
5610 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5611 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5612 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 cat >conftest.
$ac_ext <<_ACEOF
5616 #line $LINENO "configure"
5619 cat confdefs.h
>>conftest.
$ac_ext
5620 cat >>conftest.
$ac_ext <<_ACEOF
5621 /* end confdefs.h. */
5622 #include <sys/types.h>
5623 #include <sys/wait.h>
5625 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5628 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5636 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5641 rm -f conftest.
$ac_objext
5642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5643 (eval $ac_compile) 2>&5
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); } &&
5647 { ac_try
='test -s conftest.$ac_objext'
5648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); }; }; then
5653 ac_cv_header_sys_wait_h
=yes
5655 echo "$as_me: failed program was:" >&5
5656 sed 's/^/| /' conftest.
$ac_ext >&5
5658 ac_cv_header_sys_wait_h
=no
5660 rm -f conftest.
$ac_objext conftest.
$ac_ext
5662 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5663 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5664 if test $ac_cv_header_sys_wait_h = yes; then
5666 cat >>confdefs.h
<<\_ACEOF
5667 #define HAVE_SYS_WAIT_H 1
5673 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5674 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5675 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5678 cat >conftest.
$ac_ext <<_ACEOF
5679 #line $LINENO "configure"
5682 cat confdefs.h
>>conftest.
$ac_ext
5683 cat >>conftest.
$ac_ext <<_ACEOF
5684 /* end confdefs.h. */
5685 #ifdef TIME_WITH_SYS_TIME
5686 #include <sys/time.h>
5689 #ifdef HAVE_SYS_TIME_H
5690 #include <sys/time.h>
5701 static struct utimbuf x; x.actime = x.modtime;
5706 rm -f conftest.
$ac_objext
5707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5708 (eval $ac_compile) 2>&5
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); } &&
5712 { ac_try
='test -s conftest.$ac_objext'
5713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); }; }; then
5718 emacs_cv_struct_utimbuf
=yes
5720 echo "$as_me: failed program was:" >&5
5721 sed 's/^/| /' conftest.
$ac_ext >&5
5723 emacs_cv_struct_utimbuf
=no
5725 rm -f conftest.
$ac_objext conftest.
$ac_ext
5727 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5728 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5729 if test $emacs_cv_struct_utimbuf = yes; then
5731 cat >>confdefs.h
<<\_ACEOF
5732 #define HAVE_STRUCT_UTIMBUF 1
5737 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5738 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5739 if test "${ac_cv_type_signal+set}" = set; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5742 cat >conftest.
$ac_ext <<_ACEOF
5743 #line $LINENO "configure"
5746 cat confdefs.h
>>conftest.
$ac_ext
5747 cat >>conftest.
$ac_ext <<_ACEOF
5748 /* end confdefs.h. */
5749 #include <sys/types.h>
5755 extern "C" void (*signal (int, void (*)(int)))(int);
5757 void (*signal ()) ();
5768 rm -f conftest.
$ac_objext
5769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5770 (eval $ac_compile) 2>&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); } &&
5774 { ac_try
='test -s conftest.$ac_objext'
5775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }; }; then
5780 ac_cv_type_signal
=void
5782 echo "$as_me: failed program was:" >&5
5783 sed 's/^/| /' conftest.
$ac_ext >&5
5785 ac_cv_type_signal
=int
5787 rm -f conftest.
$ac_objext conftest.
$ac_ext
5789 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5790 echo "${ECHO_T}$ac_cv_type_signal" >&6
5792 cat >>confdefs.h
<<_ACEOF
5793 #define RETSIGTYPE $ac_cv_type_signal
5798 echo "$as_me:$LINENO: checking for speed_t" >&5
5799 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5800 if test "${emacs_cv_speed_t+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 cat >conftest.
$ac_ext <<_ACEOF
5804 #line $LINENO "configure"
5807 cat confdefs.h
>>conftest.
$ac_ext
5808 cat >>conftest.
$ac_ext <<_ACEOF
5809 /* end confdefs.h. */
5810 #include <termios.h>
5819 rm -f conftest.
$ac_objext
5820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5821 (eval $ac_compile) 2>&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); } &&
5825 { ac_try
='test -s conftest.$ac_objext'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; }; then
5831 emacs_cv_speed_t
=yes
5833 echo "$as_me: failed program was:" >&5
5834 sed 's/^/| /' conftest.
$ac_ext >&5
5838 rm -f conftest.
$ac_objext conftest.
$ac_ext
5840 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5841 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5842 if test $emacs_cv_speed_t = yes; then
5844 cat >>confdefs.h
<<\_ACEOF
5845 #define HAVE_SPEED_T 1
5850 echo "$as_me:$LINENO: checking for struct timeval" >&5
5851 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5852 if test "${emacs_cv_struct_timeval+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5855 cat >conftest.
$ac_ext <<_ACEOF
5856 #line $LINENO "configure"
5859 cat confdefs.h
>>conftest.
$ac_ext
5860 cat >>conftest.
$ac_ext <<_ACEOF
5861 /* end confdefs.h. */
5862 #ifdef TIME_WITH_SYS_TIME
5863 #include <sys/time.h>
5866 #ifdef HAVE_SYS_TIME_H
5867 #include <sys/time.h>
5875 static struct timeval x; x.tv_sec = x.tv_usec;
5880 rm -f conftest.
$ac_objext
5881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5882 (eval $ac_compile) 2>&5
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); } &&
5886 { ac_try
='test -s conftest.$ac_objext'
5887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); }; }; then
5892 emacs_cv_struct_timeval
=yes
5894 echo "$as_me: failed program was:" >&5
5895 sed 's/^/| /' conftest.
$ac_ext >&5
5897 emacs_cv_struct_timeval
=no
5899 rm -f conftest.
$ac_objext conftest.
$ac_ext
5901 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5902 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5903 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
5904 if test $emacs_cv_struct_timeval = yes; then
5906 cat >>confdefs.h
<<\_ACEOF
5907 #define HAVE_TIMEVAL 1
5912 echo "$as_me:$LINENO: checking for struct exception" >&5
5913 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5914 if test "${emacs_cv_struct_exception+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5917 cat >conftest.
$ac_ext <<_ACEOF
5918 #line $LINENO "configure"
5921 cat confdefs.h
>>conftest.
$ac_ext
5922 cat >>conftest.
$ac_ext <<_ACEOF
5923 /* end confdefs.h. */
5928 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5933 rm -f conftest.
$ac_objext
5934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5935 (eval $ac_compile) 2>&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); } &&
5939 { ac_try
='test -s conftest.$ac_objext'
5940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; }; then
5945 emacs_cv_struct_exception
=yes
5947 echo "$as_me: failed program was:" >&5
5948 sed 's/^/| /' conftest.
$ac_ext >&5
5950 emacs_cv_struct_exception
=no
5952 rm -f conftest.
$ac_objext conftest.
$ac_ext
5954 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5955 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5956 HAVE_EXCEPTION
=$emacs_cv_struct_exception
5957 if test $emacs_cv_struct_exception != yes; then
5959 cat >>confdefs.h
<<\_ACEOF
5960 #define NO_MATHERR 1
5965 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5966 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5967 if test "${ac_cv_struct_tm+set}" = set; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5970 cat >conftest.
$ac_ext <<_ACEOF
5971 #line $LINENO "configure"
5974 cat confdefs.h
>>conftest.
$ac_ext
5975 cat >>conftest.
$ac_ext <<_ACEOF
5976 /* end confdefs.h. */
5977 #include <sys/types.h>
5983 struct tm *tp; tp->tm_sec;
5988 rm -f conftest.
$ac_objext
5989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5990 (eval $ac_compile) 2>&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } &&
5994 { ac_try
='test -s conftest.$ac_objext'
5995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }; }; then
6000 ac_cv_struct_tm
=time.h
6002 echo "$as_me: failed program was:" >&5
6003 sed 's/^/| /' conftest.
$ac_ext >&5
6005 ac_cv_struct_tm
=sys
/time.h
6007 rm -f conftest.
$ac_objext conftest.
$ac_ext
6009 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6010 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6011 if test $ac_cv_struct_tm = sys
/time.h
; then
6013 cat >>confdefs.h
<<\_ACEOF
6014 #define TM_IN_SYS_TIME 1
6019 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6020 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6021 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6024 cat >conftest.
$ac_ext <<_ACEOF
6025 #line $LINENO "configure"
6028 cat confdefs.h
>>conftest.
$ac_ext
6029 cat >>conftest.
$ac_ext <<_ACEOF
6030 /* end confdefs.h. */
6031 #include <sys/types.h>
6032 #include <$ac_cv_struct_tm>
6038 static struct tm ac_aggr;
6039 if (ac_aggr.tm_zone)
6045 rm -f conftest.
$ac_objext
6046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6047 (eval $ac_compile) 2>&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); } &&
6051 { ac_try
='test -s conftest.$ac_objext'
6052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); }; }; then
6057 ac_cv_member_struct_tm_tm_zone
=yes
6059 echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.
$ac_ext >&5
6062 cat >conftest.
$ac_ext <<_ACEOF
6063 #line $LINENO "configure"
6066 cat confdefs.h
>>conftest.
$ac_ext
6067 cat >>conftest.
$ac_ext <<_ACEOF
6068 /* end confdefs.h. */
6069 #include <sys/types.h>
6070 #include <$ac_cv_struct_tm>
6076 static struct tm ac_aggr;
6077 if (sizeof ac_aggr.tm_zone)
6083 rm -f conftest.
$ac_objext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6085 (eval $ac_compile) 2>&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); } &&
6089 { ac_try
='test -s conftest.$ac_objext'
6090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; }; then
6095 ac_cv_member_struct_tm_tm_zone
=yes
6097 echo "$as_me: failed program was:" >&5
6098 sed 's/^/| /' conftest.
$ac_ext >&5
6100 ac_cv_member_struct_tm_tm_zone
=no
6102 rm -f conftest.
$ac_objext conftest.
$ac_ext
6104 rm -f conftest.
$ac_objext conftest.
$ac_ext
6106 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6107 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6108 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6110 cat >>confdefs.h
<<_ACEOF
6111 #define HAVE_STRUCT_TM_TM_ZONE 1
6117 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6119 cat >>confdefs.h
<<\_ACEOF
6120 #define HAVE_TM_ZONE 1
6124 echo "$as_me:$LINENO: checking for tzname" >&5
6125 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6126 if test "${ac_cv_var_tzname+set}" = set; then
6127 echo $ECHO_N "(cached) $ECHO_C" >&6
6129 cat >conftest.
$ac_ext <<_ACEOF
6130 #line $LINENO "configure"
6133 cat confdefs.h
>>conftest.
$ac_ext
6134 cat >>conftest.
$ac_ext <<_ACEOF
6135 /* end confdefs.h. */
6137 #ifndef tzname /* For SGI. */
6138 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6149 rm -f conftest.
$ac_objext conftest
$ac_exeext
6150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6151 (eval $ac_link) 2>&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); } &&
6155 { ac_try
='test -s conftest$ac_exeext'
6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; }; then
6161 ac_cv_var_tzname
=yes
6163 echo "$as_me: failed program was:" >&5
6164 sed 's/^/| /' conftest.
$ac_ext >&5
6168 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6170 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6171 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6172 if test $ac_cv_var_tzname = yes; then
6174 cat >>confdefs.h
<<\_ACEOF
6175 #define HAVE_TZNAME 1
6181 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6182 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6183 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6186 cat >conftest.
$ac_ext <<_ACEOF
6187 #line $LINENO "configure"
6190 cat confdefs.h
>>conftest.
$ac_ext
6191 cat >>conftest.
$ac_ext <<_ACEOF
6192 /* end confdefs.h. */
6198 static struct tm ac_aggr;
6199 if (ac_aggr.tm_gmtoff)
6205 rm -f conftest.
$ac_objext
6206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6207 (eval $ac_compile) 2>&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); } &&
6211 { ac_try
='test -s conftest.$ac_objext'
6212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; }; then
6217 ac_cv_member_struct_tm_tm_gmtoff
=yes
6219 echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.
$ac_ext >&5
6222 cat >conftest.
$ac_ext <<_ACEOF
6223 #line $LINENO "configure"
6226 cat confdefs.h
>>conftest.
$ac_ext
6227 cat >>conftest.
$ac_ext <<_ACEOF
6228 /* end confdefs.h. */
6234 static struct tm ac_aggr;
6235 if (sizeof ac_aggr.tm_gmtoff)
6241 rm -f conftest.
$ac_objext
6242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6243 (eval $ac_compile) 2>&5
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); } &&
6247 { ac_try
='test -s conftest.$ac_objext'
6248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); }; }; then
6253 ac_cv_member_struct_tm_tm_gmtoff
=yes
6255 echo "$as_me: failed program was:" >&5
6256 sed 's/^/| /' conftest.
$ac_ext >&5
6258 ac_cv_member_struct_tm_tm_gmtoff
=no
6260 rm -f conftest.
$ac_objext conftest.
$ac_ext
6262 rm -f conftest.
$ac_objext conftest.
$ac_ext
6264 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6265 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6266 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6268 cat >>confdefs.h
<<\_ACEOF
6269 #define HAVE_TM_GMTOFF 1
6274 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6275 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6276 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6279 cat >conftest.
$ac_ext <<_ACEOF
6280 #line $LINENO "configure"
6283 cat confdefs.h
>>conftest.
$ac_ext
6284 cat >>conftest.
$ac_ext <<_ACEOF
6285 /* end confdefs.h. */
6291 static struct ifreq ac_aggr;
6292 if (ac_aggr.ifr_flags)
6298 rm -f conftest.
$ac_objext
6299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6300 (eval $ac_compile) 2>&5
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); } &&
6304 { ac_try
='test -s conftest.$ac_objext'
6305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); }; }; then
6310 ac_cv_member_struct_ifreq_ifr_flags
=yes
6312 echo "$as_me: failed program was:" >&5
6313 sed 's/^/| /' conftest.
$ac_ext >&5
6315 cat >conftest.
$ac_ext <<_ACEOF
6316 #line $LINENO "configure"
6319 cat confdefs.h
>>conftest.
$ac_ext
6320 cat >>conftest.
$ac_ext <<_ACEOF
6321 /* end confdefs.h. */
6327 static struct ifreq ac_aggr;
6328 if (sizeof ac_aggr.ifr_flags)
6334 rm -f conftest.
$ac_objext
6335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6336 (eval $ac_compile) 2>&5
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); } &&
6340 { ac_try
='test -s conftest.$ac_objext'
6341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); }; }; then
6346 ac_cv_member_struct_ifreq_ifr_flags
=yes
6348 echo "$as_me: failed program was:" >&5
6349 sed 's/^/| /' conftest.
$ac_ext >&5
6351 ac_cv_member_struct_ifreq_ifr_flags
=no
6353 rm -f conftest.
$ac_objext conftest.
$ac_ext
6355 rm -f conftest.
$ac_objext conftest.
$ac_ext
6357 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
6358 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
6359 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
6361 cat >>confdefs.h
<<_ACEOF
6362 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6367 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
6368 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
6369 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 cat >conftest.
$ac_ext <<_ACEOF
6373 #line $LINENO "configure"
6376 cat confdefs.h
>>conftest.
$ac_ext
6377 cat >>conftest.
$ac_ext <<_ACEOF
6378 /* end confdefs.h. */
6384 static struct ifreq ac_aggr;
6385 if (ac_aggr.ifr_hwaddr)
6391 rm -f conftest.
$ac_objext
6392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6393 (eval $ac_compile) 2>&5
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); } &&
6397 { ac_try
='test -s conftest.$ac_objext'
6398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; }; then
6403 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
6405 echo "$as_me: failed program was:" >&5
6406 sed 's/^/| /' conftest.
$ac_ext >&5
6408 cat >conftest.
$ac_ext <<_ACEOF
6409 #line $LINENO "configure"
6412 cat confdefs.h
>>conftest.
$ac_ext
6413 cat >>conftest.
$ac_ext <<_ACEOF
6414 /* end confdefs.h. */
6420 static struct ifreq ac_aggr;
6421 if (sizeof ac_aggr.ifr_hwaddr)
6427 rm -f conftest.
$ac_objext
6428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6429 (eval $ac_compile) 2>&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } &&
6433 { ac_try
='test -s conftest.$ac_objext'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }; then
6439 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.
$ac_ext >&5
6444 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
6446 rm -f conftest.
$ac_objext conftest.
$ac_ext
6448 rm -f conftest.
$ac_objext conftest.
$ac_ext
6450 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
6451 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
6452 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
6454 cat >>confdefs.h
<<_ACEOF
6455 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6460 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
6461 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
6462 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6465 cat >conftest.
$ac_ext <<_ACEOF
6466 #line $LINENO "configure"
6469 cat confdefs.h
>>conftest.
$ac_ext
6470 cat >>conftest.
$ac_ext <<_ACEOF
6471 /* end confdefs.h. */
6477 static struct ifreq ac_aggr;
6478 if (ac_aggr.ifr_netmask)
6484 rm -f conftest.
$ac_objext
6485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6486 (eval $ac_compile) 2>&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } &&
6490 { ac_try
='test -s conftest.$ac_objext'
6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; }; then
6496 ac_cv_member_struct_ifreq_ifr_netmask
=yes
6498 echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.
$ac_ext >&5
6501 cat >conftest.
$ac_ext <<_ACEOF
6502 #line $LINENO "configure"
6505 cat confdefs.h
>>conftest.
$ac_ext
6506 cat >>conftest.
$ac_ext <<_ACEOF
6507 /* end confdefs.h. */
6513 static struct ifreq ac_aggr;
6514 if (sizeof ac_aggr.ifr_netmask)
6520 rm -f conftest.
$ac_objext
6521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6522 (eval $ac_compile) 2>&5
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); } &&
6526 { ac_try
='test -s conftest.$ac_objext'
6527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); }; }; then
6532 ac_cv_member_struct_ifreq_ifr_netmask
=yes
6534 echo "$as_me: failed program was:" >&5
6535 sed 's/^/| /' conftest.
$ac_ext >&5
6537 ac_cv_member_struct_ifreq_ifr_netmask
=no
6539 rm -f conftest.
$ac_objext conftest.
$ac_ext
6541 rm -f conftest.
$ac_objext conftest.
$ac_ext
6543 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
6544 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
6545 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
6547 cat >>confdefs.h
<<_ACEOF
6548 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6553 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
6554 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
6555 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
6558 cat >conftest.
$ac_ext <<_ACEOF
6559 #line $LINENO "configure"
6562 cat confdefs.h
>>conftest.
$ac_ext
6563 cat >>conftest.
$ac_ext <<_ACEOF
6564 /* end confdefs.h. */
6570 static struct ifreq ac_aggr;
6571 if (ac_aggr.ifr_broadaddr)
6577 rm -f conftest.
$ac_objext
6578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6579 (eval $ac_compile) 2>&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } &&
6583 { ac_try
='test -s conftest.$ac_objext'
6584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; }; then
6589 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
6591 echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.
$ac_ext >&5
6594 cat >conftest.
$ac_ext <<_ACEOF
6595 #line $LINENO "configure"
6598 cat confdefs.h
>>conftest.
$ac_ext
6599 cat >>conftest.
$ac_ext <<_ACEOF
6600 /* end confdefs.h. */
6606 static struct ifreq ac_aggr;
6607 if (sizeof ac_aggr.ifr_broadaddr)
6613 rm -f conftest.
$ac_objext
6614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6615 (eval $ac_compile) 2>&5
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); } &&
6619 { ac_try
='test -s conftest.$ac_objext'
6620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); }; }; then
6625 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
6627 echo "$as_me: failed program was:" >&5
6628 sed 's/^/| /' conftest.
$ac_ext >&5
6630 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
6632 rm -f conftest.
$ac_objext conftest.
$ac_ext
6634 rm -f conftest.
$ac_objext conftest.
$ac_ext
6636 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
6637 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
6638 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
6640 cat >>confdefs.h
<<_ACEOF
6641 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6646 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
6647 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
6648 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6651 cat >conftest.
$ac_ext <<_ACEOF
6652 #line $LINENO "configure"
6655 cat confdefs.h
>>conftest.
$ac_ext
6656 cat >>conftest.
$ac_ext <<_ACEOF
6657 /* end confdefs.h. */
6663 static struct ifreq ac_aggr;
6664 if (ac_aggr.ifr_addr)
6670 rm -f conftest.
$ac_objext
6671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6672 (eval $ac_compile) 2>&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } &&
6676 { ac_try
='test -s conftest.$ac_objext'
6677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); }; }; then
6682 ac_cv_member_struct_ifreq_ifr_addr
=yes
6684 echo "$as_me: failed program was:" >&5
6685 sed 's/^/| /' conftest.
$ac_ext >&5
6687 cat >conftest.
$ac_ext <<_ACEOF
6688 #line $LINENO "configure"
6691 cat confdefs.h
>>conftest.
$ac_ext
6692 cat >>conftest.
$ac_ext <<_ACEOF
6693 /* end confdefs.h. */
6699 static struct ifreq ac_aggr;
6700 if (sizeof ac_aggr.ifr_addr)
6706 rm -f conftest.
$ac_objext
6707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6708 (eval $ac_compile) 2>&5
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); } &&
6712 { ac_try
='test -s conftest.$ac_objext'
6713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); }; }; then
6718 ac_cv_member_struct_ifreq_ifr_addr
=yes
6720 echo "$as_me: failed program was:" >&5
6721 sed 's/^/| /' conftest.
$ac_ext >&5
6723 ac_cv_member_struct_ifreq_ifr_addr
=no
6725 rm -f conftest.
$ac_objext conftest.
$ac_ext
6727 rm -f conftest.
$ac_objext conftest.
$ac_ext
6729 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
6730 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
6731 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
6733 cat >>confdefs.h
<<_ACEOF
6734 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6742 echo "$as_me:$LINENO: checking for function prototypes" >&5
6743 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6744 if test "$ac_cv_prog_cc_stdc" != no
; then
6745 echo "$as_me:$LINENO: result: yes" >&5
6746 echo "${ECHO_T}yes" >&6
6748 cat >>confdefs.h
<<\_ACEOF
6749 #define PROTOTYPES 1
6753 cat >>confdefs.h
<<\_ACEOF
6754 #define __PROTOTYPES 1
6758 echo "$as_me:$LINENO: result: no" >&5
6759 echo "${ECHO_T}no" >&6
6762 echo "$as_me:$LINENO: checking for working volatile" >&5
6763 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6764 if test "${ac_cv_c_volatile+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6767 cat >conftest.
$ac_ext <<_ACEOF
6768 #line $LINENO "configure"
6771 cat confdefs.h
>>conftest.
$ac_ext
6772 cat >>conftest.
$ac_ext <<_ACEOF
6773 /* end confdefs.h. */
6785 rm -f conftest.
$ac_objext
6786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6787 (eval $ac_compile) 2>&5
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); } &&
6791 { ac_try
='test -s conftest.$ac_objext'
6792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); }; }; then
6797 ac_cv_c_volatile
=yes
6799 echo "$as_me: failed program was:" >&5
6800 sed 's/^/| /' conftest.
$ac_ext >&5
6804 rm -f conftest.
$ac_objext conftest.
$ac_ext
6806 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6807 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6808 if test $ac_cv_c_volatile = no
; then
6810 cat >>confdefs.h
<<\_ACEOF
6816 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6817 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6818 if test "${ac_cv_c_const+set}" = set; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 cat >conftest.
$ac_ext <<_ACEOF
6822 #line $LINENO "configure"
6825 cat confdefs.h
>>conftest.
$ac_ext
6826 cat >>conftest.
$ac_ext <<_ACEOF
6827 /* end confdefs.h. */
6832 /* FIXME: Include the comments suggested by Paul. */
6834 /* Ultrix mips cc rejects this. */
6835 typedef int charset[2];
6837 /* SunOS 4.1.1 cc rejects this. */
6838 char const *const *ccp;
6840 /* NEC SVR4.0.2 mips cc rejects this. */
6841 struct point {int x, y;};
6842 static struct point const zero = {0,0};
6843 /* AIX XL C 1.02.0.0 rejects this.
6844 It does not let you subtract one const X* pointer from another in
6845 an arm of an if-expression whose if-part is not a constant
6847 const char *g = "string";
6848 ccp = &g + (g ? g-g : 0);
6849 /* HPUX 7.0 cc rejects these. */
6852 ccp = (char const *const *) p;
6853 { /* SCO 3.2v4 cc rejects this. */
6855 char const *s = 0 ? (char *) 0 : (char const *) 0;
6859 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6861 const int *foo = &x[0];
6864 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6865 typedef const int *iptr;
6869 { /* AIX XL C 1.02.0.0 rejects this saying
6870 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6871 struct s { int j; const int *ap[3]; };
6872 struct s *b; b->j = 5;
6874 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6883 rm -f conftest.
$ac_objext
6884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6885 (eval $ac_compile) 2>&5
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); } &&
6889 { ac_try
='test -s conftest.$ac_objext'
6890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; }; then
6897 echo "$as_me: failed program was:" >&5
6898 sed 's/^/| /' conftest.
$ac_ext >&5
6902 rm -f conftest.
$ac_objext conftest.
$ac_ext
6904 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6905 echo "${ECHO_T}$ac_cv_c_const" >&6
6906 if test $ac_cv_c_const = no
; then
6908 cat >>confdefs.h
<<\_ACEOF
6914 echo "$as_me:$LINENO: checking for void * support" >&5
6915 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
6916 if test "${emacs_cv_void_star+set}" = set; then
6917 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 cat >conftest.
$ac_ext <<_ACEOF
6920 #line $LINENO "configure"
6923 cat confdefs.h
>>conftest.
$ac_ext
6924 cat >>conftest.
$ac_ext <<_ACEOF
6925 /* end confdefs.h. */
6935 rm -f conftest.
$ac_objext
6936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6937 (eval $ac_compile) 2>&5
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); } &&
6941 { ac_try
='test -s conftest.$ac_objext'
6942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); }; }; then
6947 emacs_cv_void_star
=yes
6949 echo "$as_me: failed program was:" >&5
6950 sed 's/^/| /' conftest.
$ac_ext >&5
6952 emacs_cv_void_star
=no
6954 rm -f conftest.
$ac_objext conftest.
$ac_ext
6956 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6957 echo "${ECHO_T}$emacs_cv_void_star" >&6
6958 if test $emacs_cv_void_star = yes; then
6959 cat >>confdefs.h
<<\_ACEOF
6960 #define POINTER_TYPE void
6964 cat >>confdefs.h
<<\_ACEOF
6965 #define POINTER_TYPE char
6972 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6973 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6974 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
6975 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6978 cat >conftest.
make <<\_ACEOF
6980 @
echo 'ac_maketemp="$(MAKE)"'
6982 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6983 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6984 if test -n "$ac_maketemp"; then
6985 eval ac_cv_prog_make_
${ac_make}_set
=yes
6987 eval ac_cv_prog_make_
${ac_make}_set
=no
6991 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6992 echo "$as_me:$LINENO: result: yes" >&5
6993 echo "${ECHO_T}yes" >&6
6996 echo "$as_me:$LINENO: result: no" >&5
6997 echo "${ECHO_T}no" >&6
6998 SET_MAKE
="MAKE=${MAKE-make}"
7002 echo "$as_me:$LINENO: checking for long file names" >&5
7003 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7004 if test "${ac_cv_sys_long_file_names+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7007 ac_cv_sys_long_file_names
=yes
7008 # Test for long file names in all the places we know might matter:
7009 # . the current directory, where building will happen
7010 # $prefix/lib where we will be installing things
7011 # $exec_prefix/lib likewise
7012 # eval it to expand exec_prefix.
7013 # $TMPDIR if set, where it might want to write temporary files
7014 # if $TMPDIR is not set:
7015 # /tmp where it might want to write temporary files
7018 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7021 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
7023 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7024 test -d $ac_dir ||
continue
7025 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
7026 ac_xdir
=$ac_dir/cf$$
7027 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
7028 ac_tf1
=$ac_xdir/conftest9012345
7029 ac_tf2
=$ac_xdir/conftest9012346
7030 (echo 1 >$ac_tf1) 2>/dev
/null
7031 (echo 2 >$ac_tf2) 2>/dev
/null
7032 ac_val
=`cat $ac_tf1 2>/dev/null`
7033 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
7034 ac_cv_sys_long_file_names
=no
7035 rm -rf $ac_xdir 2>/dev
/null
7038 rm -rf $ac_xdir 2>/dev
/null
7041 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7042 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7043 if test $ac_cv_sys_long_file_names = yes; then
7045 cat >>confdefs.h
<<\_ACEOF
7046 #define HAVE_LONG_FILE_NAMES 1
7052 #### Choose a window system.
7054 echo "$as_me:$LINENO: checking for X" >&5
7055 echo $ECHO_N "checking for X... $ECHO_C" >&6
7058 # Check whether --with-x or --without-x was given.
7059 if test "${with_x+set}" = set; then
7063 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7064 if test "x$with_x" = xno
; then
7065 # The user explicitly disabled X.
7068 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
7069 # Both variables are already set.
7072 if test "${ac_cv_have_x+set}" = set; then
7073 echo $ECHO_N "(cached) $ECHO_C" >&6
7075 # One or both of the vars are not set, and there is no cached value.
7076 ac_x_includes
=no ac_x_libraries
=no
7078 if mkdir conftest.dir
; then
7080 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7081 cat >Imakefile
<<'_ACEOF'
7083 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7085 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7086 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7087 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7088 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7089 for ac_extension
in a so sl
; do
7090 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
7091 test -f $ac_im_libdir/libX11.
$ac_extension; then
7092 ac_im_usrlibdir
=$ac_im_libdir; break
7095 # Screen out bogus values from the imake configuration. They are
7096 # bogus both because they are the default anyway, and because
7097 # using them would break gcc on systems where it needs fixed includes.
7098 case $ac_im_incroot in
7100 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
7102 case $ac_im_usrlibdir in
7104 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
7111 # Standard set of common directories for X headers.
7112 # Check X11 before X11Rn because it is often a symlink to the current release.
7124 /usr/local/X11/include
7125 /usr/local/X11R6/include
7126 /usr/local/X11R5/include
7127 /usr/local/X11R4/include
7129 /usr/local/include/X11
7130 /usr/local/include/X11R6
7131 /usr/local/include/X11R5
7132 /usr/local/include/X11R4
7136 /usr/XFree86/include/X11
7140 /usr/unsupported/include
7142 /usr/local/x11r5/include
7143 /usr/lpp/Xamples/include
7145 /usr/openwin/include
7146 /usr/openwin/share/include'
7148 if test "$ac_x_includes" = no
; then
7149 # Guess where to find include files, by looking for Intrinsic.h.
7150 # First, try using that file with no special directory specified.
7151 cat >conftest.
$ac_ext <<_ACEOF
7152 #line $LINENO "configure"
7155 cat confdefs.h
>>conftest.
$ac_ext
7156 cat >>conftest.
$ac_ext <<_ACEOF
7157 /* end confdefs.h. */
7158 #include <X11/Intrinsic.h>
7160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7161 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7163 grep -v '^ *+' conftest.er1
>conftest.err
7165 cat conftest.err
>&5
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); } >/dev
/null
; then
7168 if test -s conftest.err
; then
7169 ac_cpp_err
=$ac_c_preproc_warn_flag
7176 if test -z "$ac_cpp_err"; then
7177 # We can compile using X headers with no special include directory.
7180 echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.
$ac_ext >&5
7183 for ac_dir
in $ac_x_header_dirs; do
7184 if test -r "$ac_dir/X11/Intrinsic.h"; then
7185 ac_x_includes
=$ac_dir
7190 rm -f conftest.err conftest.
$ac_ext
7191 fi # $ac_x_includes = no
7193 if test "$ac_x_libraries" = no
; then
7194 # Check for the libraries.
7195 # See if we find them without any special options.
7196 # Don't add to $LIBS permanently.
7199 cat >conftest.
$ac_ext <<_ACEOF
7200 #line $LINENO "configure"
7203 cat confdefs.h
>>conftest.
$ac_ext
7204 cat >>conftest.
$ac_ext <<_ACEOF
7205 /* end confdefs.h. */
7206 #include <X11/Intrinsic.h>
7215 rm -f conftest.
$ac_objext conftest
$ac_exeext
7216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7217 (eval $ac_link) 2>&5
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); } &&
7221 { ac_try
='test -s conftest$ac_exeext'
7222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); }; }; then
7228 # We can link X programs with no special library path.
7231 echo "$as_me: failed program was:" >&5
7232 sed 's/^/| /' conftest.
$ac_ext >&5
7235 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7237 # Don't even attempt the hair of trying to link an X program!
7238 for ac_extension
in a so sl
; do
7239 if test -r $ac_dir/libXt.
$ac_extension; then
7240 ac_x_libraries
=$ac_dir
7246 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7247 fi # $ac_x_libraries = no
7249 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
7250 # Didn't find X anywhere. Cache the known absence of X.
7251 ac_cv_have_x
="have_x=no"
7253 # Record where we found X for the cache.
7254 ac_cv_have_x
="have_x=yes \
7255 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7260 eval "$ac_cv_have_x"
7263 if test "$have_x" != yes; then
7264 echo "$as_me:$LINENO: result: $have_x" >&5
7265 echo "${ECHO_T}$have_x" >&6
7268 # If each of the values was on the command line, it overrides each guess.
7269 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
7270 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
7271 # Update the cache value to reflect the command line values.
7272 ac_cv_have_x
="have_x=yes \
7273 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7274 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7275 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7278 if test "$no_x" = yes; then
7284 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
7285 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7286 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7287 x_default_search_path
=""
7288 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
7290 ${x_library}/X11/%L/%T/%N%C%S:\
7291 ${x_library}/X11/%l/%T/%N%C%S:\
7292 ${x_library}/X11/%T/%N%C%S:\
7293 ${x_library}/X11/%L/%T/%N%S:\
7294 ${x_library}/X11/%l/%T/%N%S:\
7295 ${x_library}/X11/%T/%N%S"
7296 if test x
"${x_default_search_path}" = x
; then
7297 x_default_search_path
=${x_search_path}
7299 x_default_search_path
="${x_search_path}:${x_default_search_path}"
7303 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
7304 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7307 if test x
"${x_includes}" = x
; then
7308 bitmapdir
=/usr
/include
/X11
/bitmaps
7310 # accumulate include directories that have X11 bitmap subdirectories
7312 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7313 if test -d "${bmd}/X11/bitmaps"; then
7314 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
7316 if test -d "${bmd}/bitmaps"; then
7317 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
7320 if test ${bmd_acc} != "dummyval"; then
7321 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7325 case "${window_system}" in
7329 case "${with_x_toolkit}" in
7330 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
7331 motif
) USE_X_TOOLKIT
=MOTIF
;;
7333 USE_X_TOOLKIT
=none
;;
7334 no
) USE_X_TOOLKIT
=none
;;
7335 * ) USE_X_TOOLKIT
=maybe
;;
7345 ### If we're using X11, we should use the X menu package.
7348 yes ) HAVE_MENUS
=yes ;;
7351 if test "${opsys}" = "hpux9"; then
7352 case "${x_libraries}" in
7354 opsysfile
="s/hpux9-x11r4.h"
7359 if test "${opsys}" = "hpux9shr"; then
7360 case "${x_libraries}" in
7362 opsysfile
="s/hpux9shxr4.h"
7367 ### Compute the unexec source name from the object name.
7368 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
7370 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7371 # Assume not, until told otherwise.
7374 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
7375 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
7376 if test "${ac_cv_func_malloc_get_state+set}" = set; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 cat >conftest.
$ac_ext <<_ACEOF
7380 #line $LINENO "configure"
7383 cat confdefs.h
>>conftest.
$ac_ext
7384 cat >>conftest.
$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7386 /* System header to define __stub macros and hopefully few prototypes,
7387 which can conflict with char malloc_get_state (); below.
7388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7389 <limits.h> exists even on freestanding compilers. */
7391 # include <limits.h>
7393 # include <assert.h>
7395 /* Override any gcc2 internal prototype to avoid an error. */
7400 /* We use char because int might match the return type of a gcc2
7401 builtin and then its argument prototype would still apply. */
7402 char malloc_get_state ();
7403 /* The GNU C library defines this for functions which it implements
7404 to always fail with ENOSYS. Some functions are actually named
7405 something starting with __ and the normal name is an alias. */
7406 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
7409 char (*f) () = malloc_get_state;
7418 return f != malloc_get_state;
7423 rm -f conftest.
$ac_objext conftest
$ac_exeext
7424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7425 (eval $ac_link) 2>&5
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); } &&
7429 { ac_try
='test -s conftest$ac_exeext'
7430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); }; }; then
7435 ac_cv_func_malloc_get_state
=yes
7437 echo "$as_me: failed program was:" >&5
7438 sed 's/^/| /' conftest.
$ac_ext >&5
7440 ac_cv_func_malloc_get_state
=no
7442 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7444 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
7445 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
7446 if test $ac_cv_func_malloc_get_state = yes; then
7452 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
7453 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
7454 if test "${ac_cv_func_malloc_set_state+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7457 cat >conftest.
$ac_ext <<_ACEOF
7458 #line $LINENO "configure"
7461 cat confdefs.h
>>conftest.
$ac_ext
7462 cat >>conftest.
$ac_ext <<_ACEOF
7463 /* end confdefs.h. */
7464 /* System header to define __stub macros and hopefully few prototypes,
7465 which can conflict with char malloc_set_state (); below.
7466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7467 <limits.h> exists even on freestanding compilers. */
7469 # include <limits.h>
7471 # include <assert.h>
7473 /* Override any gcc2 internal prototype to avoid an error. */
7478 /* We use char because int might match the return type of a gcc2
7479 builtin and then its argument prototype would still apply. */
7480 char malloc_set_state ();
7481 /* The GNU C library defines this for functions which it implements
7482 to always fail with ENOSYS. Some functions are actually named
7483 something starting with __ and the normal name is an alias. */
7484 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
7487 char (*f) () = malloc_set_state;
7496 return f != malloc_set_state;
7501 rm -f conftest.
$ac_objext conftest
$ac_exeext
7502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7503 (eval $ac_link) 2>&5
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); } &&
7507 { ac_try
='test -s conftest$ac_exeext'
7508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); }; }; then
7513 ac_cv_func_malloc_set_state
=yes
7515 echo "$as_me: failed program was:" >&5
7516 sed 's/^/| /' conftest.
$ac_ext >&5
7518 ac_cv_func_malloc_set_state
=no
7520 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7522 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
7523 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
7524 if test $ac_cv_func_malloc_set_state = yes; then
7530 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7531 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
7532 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7533 echo $ECHO_N "(cached) $ECHO_C" >&6
7535 cat >conftest.
$ac_ext <<_ACEOF
7536 #line $LINENO "configure"
7539 cat confdefs.h
>>conftest.
$ac_ext
7540 cat >>conftest.
$ac_ext <<_ACEOF
7541 /* end confdefs.h. */
7542 extern void (* __after_morecore_hook)();
7546 __after_morecore_hook = 0
7551 rm -f conftest.
$ac_objext conftest
$ac_exeext
7552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7553 (eval $ac_link) 2>&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); } &&
7557 { ac_try
='test -s conftest$ac_exeext'
7558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); }; }; then
7563 emacs_cv_var___after_morecore_hook
=yes
7565 echo "$as_me: failed program was:" >&5
7566 sed 's/^/| /' conftest.
$ac_ext >&5
7568 emacs_cv_var___after_morecore_hook
=no
7570 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7572 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7573 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
7574 if test $emacs_cv_var___after_morecore_hook = no
; then
7577 if test "${system_malloc}" = "yes"; then
7580 (The GNU allocators don't work with this system configuration.)"
7582 if test "$doug_lea_malloc" = "yes" ; then
7583 if test "$GNU_MALLOC" = yes ; then
7585 (Using Doug Lea's new malloc from the GNU C Library.)"
7588 cat >>confdefs.h
<<\_ACEOF
7589 #define DOUG_LEA_MALLOC 1
7594 if test x
"${REL_ALLOC}" = x
; then
7595 REL_ALLOC
=${GNU_MALLOC}
7601 for ac_header
in stdlib.h unistd.h
7603 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7605 echo "$as_me:$LINENO: checking for $ac_header" >&5
7606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7613 # Is the header compilable?
7614 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7615 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7616 cat >conftest.
$ac_ext <<_ACEOF
7617 #line $LINENO "configure"
7620 cat confdefs.h
>>conftest.
$ac_ext
7621 cat >>conftest.
$ac_ext <<_ACEOF
7622 /* end confdefs.h. */
7623 $ac_includes_default
7624 #include <$ac_header>
7626 rm -f conftest.
$ac_objext
7627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7628 (eval $ac_compile) 2>&5
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); } &&
7632 { ac_try
='test -s conftest.$ac_objext'
7633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); }; }; then
7638 ac_header_compiler
=yes
7640 echo "$as_me: failed program was:" >&5
7641 sed 's/^/| /' conftest.
$ac_ext >&5
7643 ac_header_compiler
=no
7645 rm -f conftest.
$ac_objext conftest.
$ac_ext
7646 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7647 echo "${ECHO_T}$ac_header_compiler" >&6
7649 # Is the header present?
7650 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7651 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7652 cat >conftest.
$ac_ext <<_ACEOF
7653 #line $LINENO "configure"
7656 cat confdefs.h
>>conftest.
$ac_ext
7657 cat >>conftest.
$ac_ext <<_ACEOF
7658 /* end confdefs.h. */
7659 #include <$ac_header>
7661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7662 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7664 grep -v '^ *+' conftest.er1
>conftest.err
7666 cat conftest.err
>&5
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); } >/dev
/null
; then
7669 if test -s conftest.err
; then
7670 ac_cpp_err
=$ac_c_preproc_warn_flag
7677 if test -z "$ac_cpp_err"; then
7678 ac_header_preproc
=yes
7680 echo "$as_me: failed program was:" >&5
7681 sed 's/^/| /' conftest.
$ac_ext >&5
7683 ac_header_preproc
=no
7685 rm -f conftest.err conftest.
$ac_ext
7686 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7687 echo "${ECHO_T}$ac_header_preproc" >&6
7689 # So? What about this header?
7690 case $ac_header_compiler:$ac_header_preproc in
7692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7698 ## ------------------------------------ ##
7699 ## Report this to bug-autoconf@gnu.org. ##
7700 ## ------------------------------------ ##
7703 sed "s/^/$as_me: WARNING: /" >&2
7706 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7707 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7708 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7709 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7711 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7714 ## ------------------------------------ ##
7715 ## Report this to bug-autoconf@gnu.org. ##
7716 ## ------------------------------------ ##
7719 sed "s/^/$as_me: WARNING: /" >&2
7722 echo "$as_me:$LINENO: checking for $ac_header" >&5
7723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
7727 eval "$as_ac_Header=$ac_header_preproc"
7729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7734 cat >>confdefs.h
<<_ACEOF
7735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7743 for ac_func
in getpagesize
7745 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7746 echo "$as_me:$LINENO: checking for $ac_func" >&5
7747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7748 if eval "test \"\${$as_ac_var+set}\" = set"; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7751 cat >conftest.
$ac_ext <<_ACEOF
7752 #line $LINENO "configure"
7755 cat confdefs.h
>>conftest.
$ac_ext
7756 cat >>conftest.
$ac_ext <<_ACEOF
7757 /* end confdefs.h. */
7758 /* System header to define __stub macros and hopefully few prototypes,
7759 which can conflict with char $ac_func (); below.
7760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7761 <limits.h> exists even on freestanding compilers. */
7763 # include <limits.h>
7765 # include <assert.h>
7767 /* Override any gcc2 internal prototype to avoid an error. */
7772 /* We use char because int might match the return type of a gcc2
7773 builtin and then its argument prototype would still apply. */
7775 /* The GNU C library defines this for functions which it implements
7776 to always fail with ENOSYS. Some functions are actually named
7777 something starting with __ and the normal name is an alias. */
7778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7781 char (*f) () = $ac_func;
7790 return f != $ac_func;
7795 rm -f conftest.
$ac_objext conftest
$ac_exeext
7796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7797 (eval $ac_link) 2>&5
7799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); } &&
7801 { ac_try
='test -s conftest$ac_exeext'
7802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); }; }; then
7807 eval "$as_ac_var=yes"
7809 echo "$as_me: failed program was:" >&5
7810 sed 's/^/| /' conftest.
$ac_ext >&5
7812 eval "$as_ac_var=no"
7814 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7817 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7818 if test `eval echo '${'$as_ac_var'}'` = yes; then
7819 cat >>confdefs.h
<<_ACEOF
7820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7826 echo "$as_me:$LINENO: checking for working mmap" >&5
7827 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7828 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7829 echo $ECHO_N "(cached) $ECHO_C" >&6
7831 if test "$cross_compiling" = yes; then
7832 ac_cv_func_mmap_fixed_mapped
=no
7834 cat >conftest.
$ac_ext <<_ACEOF
7835 #line $LINENO "configure"
7838 cat confdefs.h
>>conftest.
$ac_ext
7839 cat >>conftest.
$ac_ext <<_ACEOF
7840 /* end confdefs.h. */
7841 $ac_includes_default
7842 /* malloc might have been renamed as rpl_malloc. */
7845 /* Thanks to Mike Haertel and Jim Avera for this test.
7846 Here is a matrix of mmap possibilities:
7847 mmap private not fixed
7848 mmap private fixed at somewhere currently unmapped
7849 mmap private fixed at somewhere already mapped
7850 mmap shared not fixed
7851 mmap shared fixed at somewhere currently unmapped
7852 mmap shared fixed at somewhere already mapped
7853 For private mappings, we should verify that changes cannot be read()
7854 back from the file, nor mmap's back from the file at a different
7855 address. (There have been systems where private was not correctly
7856 implemented like the infamous i386 svr4.0, and systems where the
7857 VM page cache was not coherent with the file system buffer cache
7858 like early versions of FreeBSD and possibly contemporary NetBSD.)
7859 For shared mappings, we should conversely verify that changes get
7860 propagated back to all the places they're supposed to be.
7862 Grep wants private fixed already mapped.
7863 The main things grep needs to know about mmap are:
7864 * does it exist and is it safe to write into the mmap'd area
7865 * how to use it (BSD variants) */
7868 #include <sys/mman.h>
7870 #if !STDC_HEADERS && !HAVE_STDLIB_H
7874 /* This mess was copied from the GNU getpagesize.h. */
7875 #if !HAVE_GETPAGESIZE
7876 /* Assume that all systems that can run configure have sys/param.h. */
7877 # if !HAVE_SYS_PARAM_H
7878 # define HAVE_SYS_PARAM_H 1
7881 # ifdef _SC_PAGESIZE
7882 # define getpagesize() sysconf(_SC_PAGESIZE)
7883 # else /* no _SC_PAGESIZE */
7884 # if HAVE_SYS_PARAM_H
7885 # include <sys/param.h>
7886 # ifdef EXEC_PAGESIZE
7887 # define getpagesize() EXEC_PAGESIZE
7888 # else /* no EXEC_PAGESIZE */
7890 # define getpagesize() NBPG * CLSIZE
7893 # endif /* no CLSIZE */
7894 # else /* no NBPG */
7896 # define getpagesize() NBPC
7897 # else /* no NBPC */
7899 # define getpagesize() PAGESIZE
7900 # endif /* PAGESIZE */
7901 # endif /* no NBPC */
7902 # endif /* no NBPG */
7903 # endif /* no EXEC_PAGESIZE */
7904 # else /* no HAVE_SYS_PARAM_H */
7905 # define getpagesize() 8192 /* punt totally */
7906 # endif /* no HAVE_SYS_PARAM_H */
7907 # endif /* no _SC_PAGESIZE */
7909 #endif /* no HAVE_GETPAGESIZE */
7914 char *data, *data2, *data3;
7918 pagesize = getpagesize ();
7920 /* First, make a file with some known garbage in it. */
7921 data = (char *) malloc (pagesize);
7924 for (i = 0; i < pagesize; ++i)
7925 *(data + i) = rand ();
7927 fd = creat ("conftest.mmap", 0600);
7930 if (write (fd, data, pagesize) != pagesize)
7934 /* Next, try to mmap the file at a fixed address which already has
7935 something else allocated at it. If we can, also make sure that
7936 we see the same garbage. */
7937 fd = open ("conftest.mmap", O_RDWR);
7940 data2 = (char *) malloc (2 * pagesize);
7943 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7944 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7945 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7947 for (i = 0; i < pagesize; ++i)
7948 if (*(data + i) != *(data2 + i))
7951 /* Finally, make sure that changes to the mapped area do not
7952 percolate back to the file as seen by read(). (This is a bug on
7953 some variants of i386 svr4.0.) */
7954 for (i = 0; i < pagesize; ++i)
7955 *(data2 + i) = *(data2 + i) + 1;
7956 data3 = (char *) malloc (pagesize);
7959 if (read (fd, data3, pagesize) != pagesize)
7961 for (i = 0; i < pagesize; ++i)
7962 if (*(data + i) != *(data3 + i))
7968 rm -f conftest
$ac_exeext
7969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7970 (eval $ac_link) 2>&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); }; }; then
7979 ac_cv_func_mmap_fixed_mapped
=yes
7981 echo "$as_me: program exited with status $ac_status" >&5
7982 echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.
$ac_ext >&5
7986 ac_cv_func_mmap_fixed_mapped
=no
7988 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7991 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7992 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7993 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7995 cat >>confdefs.h
<<\_ACEOF
8002 if test $use_mmap_for_buffers = yes; then
8006 LIBS
="$libsrc_libs $LIBS"
8009 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8010 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8011 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8012 echo $ECHO_N "(cached) $ECHO_C" >&6
8014 ac_check_lib_save_LIBS
=$LIBS
8016 cat >conftest.
$ac_ext <<_ACEOF
8017 #line $LINENO "configure"
8020 cat confdefs.h
>>conftest.
$ac_ext
8021 cat >>conftest.
$ac_ext <<_ACEOF
8022 /* end confdefs.h. */
8024 /* Override any gcc2 internal prototype to avoid an error. */
8028 /* We use char because int might match the return type of a gcc2
8029 builtin and then its argument prototype would still apply. */
8039 rm -f conftest.
$ac_objext conftest
$ac_exeext
8040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8041 (eval $ac_link) 2>&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } &&
8045 { ac_try
='test -s conftest$ac_exeext'
8046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); }; }; then
8051 ac_cv_lib_dnet_dnet_ntoa
=yes
8053 echo "$as_me: failed program was:" >&5
8054 sed 's/^/| /' conftest.
$ac_ext >&5
8056 ac_cv_lib_dnet_dnet_ntoa
=no
8058 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8059 LIBS
=$ac_check_lib_save_LIBS
8061 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8062 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8063 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8064 cat >>confdefs.h
<<_ACEOF
8065 #define HAVE_LIBDNET 1
8073 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
8074 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
8075 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
8076 echo $ECHO_N "(cached) $ECHO_C" >&6
8078 ac_check_lib_save_LIBS
=$LIBS
8080 cat >conftest.
$ac_ext <<_ACEOF
8081 #line $LINENO "configure"
8084 cat confdefs.h
>>conftest.
$ac_ext
8085 cat >>conftest.
$ac_ext <<_ACEOF
8086 /* end confdefs.h. */
8097 rm -f conftest.
$ac_objext conftest
$ac_exeext
8098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8099 (eval $ac_link) 2>&5
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); } &&
8103 { ac_try
='test -s conftest$ac_exeext'
8104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); }; }; then
8109 ac_cv_lib_Xbsd_main
=yes
8111 echo "$as_me: failed program was:" >&5
8112 sed 's/^/| /' conftest.
$ac_ext >&5
8114 ac_cv_lib_Xbsd_main
=no
8116 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8117 LIBS
=$ac_check_lib_save_LIBS
8119 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
8120 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
8121 if test $ac_cv_lib_Xbsd_main = yes; then
8122 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
8127 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
8128 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
8129 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
8130 echo $ECHO_N "(cached) $ECHO_C" >&6
8132 ac_check_lib_save_LIBS
=$LIBS
8133 LIBS
="-lpthreads $LIBS"
8134 cat >conftest.
$ac_ext <<_ACEOF
8135 #line $LINENO "configure"
8138 cat confdefs.h
>>conftest.
$ac_ext
8139 cat >>conftest.
$ac_ext <<_ACEOF
8140 /* end confdefs.h. */
8142 /* Override any gcc2 internal prototype to avoid an error. */
8146 /* We use char because int might match the return type of a gcc2
8147 builtin and then its argument prototype would still apply. */
8157 rm -f conftest.
$ac_objext conftest
$ac_exeext
8158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8159 (eval $ac_link) 2>&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); } &&
8163 { ac_try
='test -s conftest$ac_exeext'
8164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); }; }; then
8169 ac_cv_lib_pthreads_cma_open
=yes
8171 echo "$as_me: failed program was:" >&5
8172 sed 's/^/| /' conftest.
$ac_ext >&5
8174 ac_cv_lib_pthreads_cma_open
=no
8176 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8177 LIBS
=$ac_check_lib_save_LIBS
8179 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
8180 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
8181 if test $ac_cv_lib_pthreads_cma_open = yes; then
8182 cat >>confdefs.h
<<_ACEOF
8183 #define HAVE_LIBPTHREADS 1
8186 LIBS
="-lpthreads $LIBS"
8191 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
8192 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
8193 if test -d /usr
/X386
/include
; then
8195 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
8199 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
8200 echo "${ECHO_T}$HAVE_XFREE386" >&6
8205 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
8206 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
8207 if test "${gdb_cv_bigtoc+set}" = set; then
8208 echo $ECHO_N "(cached) $ECHO_C" >&6
8212 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
8213 *) gdb_cv_bigtoc
=-bbigtoc ;;
8216 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
8217 cat >conftest.
$ac_ext <<_ACEOF
8218 #line $LINENO "configure"
8221 cat confdefs.h
>>conftest.
$ac_ext
8222 cat >>conftest.
$ac_ext <<_ACEOF
8223 /* end confdefs.h. */
8233 rm -f conftest.
$ac_objext conftest
$ac_exeext
8234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8235 (eval $ac_link) 2>&5
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); } &&
8239 { ac_try
='test -s conftest$ac_exeext'
8240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); }; }; then
8247 echo "$as_me: failed program was:" >&5
8248 sed 's/^/| /' conftest.
$ac_ext >&5
8252 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8255 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
8256 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
8260 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8261 # used for the tests that follow. We set them back to REAL_CFLAGS and
8262 # REAL_CPPFLAGS later on.
8264 REAL_CPPFLAGS
="$CPPFLAGS"
8266 if test "${HAVE_X11}" = "yes"; then
8267 DEFS
="$C_SWITCH_X_SITE $DEFS"
8268 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
8270 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
8271 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
8273 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8274 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8275 # but it's more convenient here to set LD_RUN_PATH
8276 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8277 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8278 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8282 if test "${opsys}" = "gnu-linux"; then
8283 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
8284 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
8285 cat >conftest.
$ac_ext <<_ACEOF
8286 #line $LINENO "configure"
8289 cat confdefs.h
>>conftest.
$ac_ext
8290 cat >>conftest.
$ac_ext <<_ACEOF
8291 /* end confdefs.h. */
8296 XOpenDisplay ("foo");
8301 rm -f conftest.
$ac_objext conftest
$ac_exeext
8302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8303 (eval $ac_link) 2>&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } &&
8307 { ac_try
='test -s conftest$ac_exeext'
8308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); }; }; then
8313 xlinux_first_failure
=no
8315 echo "$as_me: failed program was:" >&5
8316 sed 's/^/| /' conftest.
$ac_ext >&5
8318 xlinux_first_failure
=yes
8320 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8321 if test "${xlinux_first_failure}" = "yes"; then
8322 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
8323 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
8324 OLD_CPPFLAGS
="$CPPFLAGS"
8326 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
8327 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
8328 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
8329 LIBS
="$LIBS -b i486-linuxaout"
8330 cat >conftest.
$ac_ext <<_ACEOF
8331 #line $LINENO "configure"
8334 cat confdefs.h
>>conftest.
$ac_ext
8335 cat >>conftest.
$ac_ext <<_ACEOF
8336 /* end confdefs.h. */
8341 XOpenDisplay ("foo");
8346 rm -f conftest.
$ac_objext conftest
$ac_exeext
8347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8348 (eval $ac_link) 2>&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); } &&
8352 { ac_try
='test -s conftest$ac_exeext'
8353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); }; }; then
8358 xlinux_second_failure
=no
8360 echo "$as_me: failed program was:" >&5
8361 sed 's/^/| /' conftest.
$ac_ext >&5
8363 xlinux_second_failure
=yes
8365 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8366 if test "${xlinux_second_failure}" = "yes"; then
8367 # If we get the same failure with -b, there is no use adding -b.
8368 # So take it out. This plays safe.
8369 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
8370 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
8371 CPPFLAGS
="$OLD_CPPFLAGS"
8373 echo "$as_me:$LINENO: result: no" >&5
8374 echo "${ECHO_T}no" >&6
8376 echo "$as_me:$LINENO: result: yes" >&5
8377 echo "${ECHO_T}yes" >&6
8380 echo "$as_me:$LINENO: result: no" >&5
8381 echo "${ECHO_T}no" >&6
8385 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8386 # header files included from there.
8387 echo "$as_me:$LINENO: checking for Xkb" >&5
8388 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
8389 cat >conftest.
$ac_ext <<_ACEOF
8390 #line $LINENO "configure"
8393 cat confdefs.h
>>conftest.
$ac_ext
8394 cat >>conftest.
$ac_ext <<_ACEOF
8395 /* end confdefs.h. */
8396 #include <X11/Xlib.h>
8397 #include <X11/XKBlib.h>
8401 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8406 rm -f conftest.
$ac_objext conftest
$ac_exeext
8407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8408 (eval $ac_link) 2>&5
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); } &&
8412 { ac_try
='test -s conftest$ac_exeext'
8413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); }; }; then
8420 echo "$as_me: failed program was:" >&5
8421 sed 's/^/| /' conftest.
$ac_ext >&5
8425 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8426 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
8427 echo "${ECHO_T}$emacs_xkb" >&6
8428 if test $emacs_xkb = yes; then
8430 cat >>confdefs.h
<<\_ACEOF
8431 #define HAVE_XKBGETKEYBOARD 1
8440 for ac_func
in XrmSetDatabase XScreenResourceString \
8441 XScreenNumberOfScreen XSetWMProtocols
8443 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8444 echo "$as_me:$LINENO: checking for $ac_func" >&5
8445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8446 if eval "test \"\${$as_ac_var+set}\" = set"; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8449 cat >conftest.
$ac_ext <<_ACEOF
8450 #line $LINENO "configure"
8453 cat confdefs.h
>>conftest.
$ac_ext
8454 cat >>conftest.
$ac_ext <<_ACEOF
8455 /* end confdefs.h. */
8456 /* System header to define __stub macros and hopefully few prototypes,
8457 which can conflict with char $ac_func (); below.
8458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8459 <limits.h> exists even on freestanding compilers. */
8461 # include <limits.h>
8463 # include <assert.h>
8465 /* Override any gcc2 internal prototype to avoid an error. */
8470 /* We use char because int might match the return type of a gcc2
8471 builtin and then its argument prototype would still apply. */
8473 /* The GNU C library defines this for functions which it implements
8474 to always fail with ENOSYS. Some functions are actually named
8475 something starting with __ and the normal name is an alias. */
8476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8479 char (*f) () = $ac_func;
8488 return f != $ac_func;
8493 rm -f conftest.
$ac_objext conftest
$ac_exeext
8494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8495 (eval $ac_link) 2>&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } &&
8499 { ac_try
='test -s conftest$ac_exeext'
8500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); }; }; then
8505 eval "$as_ac_var=yes"
8507 echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.
$ac_ext >&5
8510 eval "$as_ac_var=no"
8512 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8515 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8516 if test `eval echo '${'$as_ac_var'}'` = yes; then
8517 cat >>confdefs.h
<<_ACEOF
8518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8526 if test "${window_system}" = "x11"; then
8527 echo "$as_me:$LINENO: checking X11 version 6" >&5
8528 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
8529 if test "${emacs_cv_x11_version_6+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8532 cat >conftest.
$ac_ext <<_ACEOF
8533 #line $LINENO "configure"
8536 cat confdefs.h
>>conftest.
$ac_ext
8537 cat >>conftest.
$ac_ext <<_ACEOF
8538 /* end confdefs.h. */
8539 #include <X11/Xlib.h>
8543 #if XlibSpecificationRelease < 6
8551 rm -f conftest.
$ac_objext conftest
$ac_exeext
8552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8553 (eval $ac_link) 2>&5
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); } &&
8557 { ac_try
='test -s conftest$ac_exeext'
8558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); }; }; then
8563 emacs_cv_x11_version_6
=yes
8565 echo "$as_me: failed program was:" >&5
8566 sed 's/^/| /' conftest.
$ac_ext >&5
8568 emacs_cv_x11_version_6
=no
8570 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8573 if test $emacs_cv_x11_version_6 = yes; then
8574 echo "$as_me:$LINENO: result: 6 or newer" >&5
8575 echo "${ECHO_T}6 or newer" >&6
8577 cat >>confdefs.h
<<\_ACEOF
8578 #define HAVE_X11R6 1
8582 echo "$as_me:$LINENO: result: before 6" >&5
8583 echo "${ECHO_T}before 6" >&6
8587 if test "${window_system}" = "x11"; then
8588 echo "$as_me:$LINENO: checking X11 version 5" >&5
8589 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
8590 if test "${emacs_cv_x11_version_5+set}" = set; then
8591 echo $ECHO_N "(cached) $ECHO_C" >&6
8593 cat >conftest.
$ac_ext <<_ACEOF
8594 #line $LINENO "configure"
8597 cat confdefs.h
>>conftest.
$ac_ext
8598 cat >>conftest.
$ac_ext <<_ACEOF
8599 /* end confdefs.h. */
8600 #include <X11/Xlib.h>
8604 #if XlibSpecificationRelease < 5
8612 rm -f conftest.
$ac_objext conftest
$ac_exeext
8613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8614 (eval $ac_link) 2>&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); } &&
8618 { ac_try
='test -s conftest$ac_exeext'
8619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); }; }; then
8624 emacs_cv_x11_version_5
=yes
8626 echo "$as_me: failed program was:" >&5
8627 sed 's/^/| /' conftest.
$ac_ext >&5
8629 emacs_cv_x11_version_5
=no
8631 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8634 if test $emacs_cv_x11_version_5 = yes; then
8635 echo "$as_me:$LINENO: result: 5 or newer" >&5
8636 echo "${ECHO_T}5 or newer" >&6
8639 cat >>confdefs.h
<<\_ACEOF
8640 #define HAVE_X11R5 1
8645 echo "$as_me:$LINENO: result: before 5" >&5
8646 echo "${ECHO_T}before 5" >&6
8653 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
8654 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
8655 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
8656 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
8657 { (exit 1); exit 1; }; };
8661 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8663 if test "X${with_pkg_config_prog}" != X
; then
8664 PKG_CONFIG
="${with_pkg_config_prog}"
8669 if test -z "$PKG_CONFIG"; then
8670 # Extract the first word of "pkg-config", so it can be a program name with args.
8671 set dummy pkg-config
; ac_word
=$2
8672 echo "$as_me:$LINENO: checking for $ac_word" >&5
8673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8674 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8675 echo $ECHO_N "(cached) $ECHO_C" >&6
8679 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8682 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8686 test -z "$as_dir" && as_dir
=.
8687 for ac_exec_ext
in '' $ac_executable_extensions; do
8688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8689 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8696 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8700 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8702 if test -n "$PKG_CONFIG"; then
8703 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8704 echo "${ECHO_T}$PKG_CONFIG" >&6
8706 echo "$as_me:$LINENO: result: no" >&5
8707 echo "${ECHO_T}no" >&6
8712 if test "$PKG_CONFIG" = "no" ; then
8713 echo "*** The pkg-config script could not be found. Make sure it is"
8714 echo "*** in your path, or give the full path to pkg-config with"
8715 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
8716 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8718 PKG_CONFIG_MIN_VERSION
=0.9.0
8719 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8720 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
8721 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
8723 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
8724 echo "$as_me:$LINENO: result: yes" >&5
8725 echo "${ECHO_T}yes" >&6
8728 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
8729 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
8730 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
8731 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
8732 echo "${ECHO_T}$GTK_CFLAGS" >&6
8734 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
8735 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
8736 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
8737 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
8738 echo "${ECHO_T}$GTK_LIBS" >&6
8742 ## If we have a custom action on failure, don't print errors, but
8743 ## do set a variable so people can do so.
8744 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8745 echo $GTK_PKG_ERRORS
8751 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8752 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8756 if test $succeeded = yes; then
8759 { { 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
8760 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;}
8761 { (exit 1); exit 1; }; }
8766 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
8769 cat >>confdefs.h
<<\_ACEOF
8775 with_toolkit_scroll_bars
=yes
8778 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
8779 if test x
"${HAVE_X11R5}" = xyes
; then
8780 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
8781 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
8782 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
8783 echo $ECHO_N "(cached) $ECHO_C" >&6
8785 cat >conftest.
$ac_ext <<_ACEOF
8786 #line $LINENO "configure"
8789 cat confdefs.h
>>conftest.
$ac_ext
8790 cat >>conftest.
$ac_ext <<_ACEOF
8791 /* end confdefs.h. */
8793 #include <X11/Intrinsic.h>
8794 #include <X11/Xaw/Simple.h>
8803 rm -f conftest.
$ac_objext conftest
$ac_exeext
8804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8805 (eval $ac_link) 2>&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); } &&
8809 { ac_try
='test -s conftest$ac_exeext'
8810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); }; }; then
8815 emacs_cv_x11_version_5_with_xaw
=yes
8817 echo "$as_me: failed program was:" >&5
8818 sed 's/^/| /' conftest.
$ac_ext >&5
8820 emacs_cv_x11_version_5_with_xaw
=no
8822 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8825 if test $emacs_cv_x11_version_5_with_xaw = yes; then
8826 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
8827 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
8830 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
8831 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
8839 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
8841 if test "${USE_X_TOOLKIT}" != "none"; then
8842 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8843 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
8844 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8845 echo $ECHO_N "(cached) $ECHO_C" >&6
8847 cat >conftest.
$ac_ext <<_ACEOF
8848 #line $LINENO "configure"
8851 cat confdefs.h
>>conftest.
$ac_ext
8852 cat >>conftest.
$ac_ext <<_ACEOF
8853 /* end confdefs.h. */
8854 #include <X11/Intrinsic.h>
8858 #if XtSpecificationRelease < 6
8866 rm -f conftest.
$ac_objext conftest
$ac_exeext
8867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8868 (eval $ac_link) 2>&5
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); } &&
8872 { ac_try
='test -s conftest$ac_exeext'
8873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); }; }; then
8878 emacs_cv_x11_toolkit_version_6
=yes
8880 echo "$as_me: failed program was:" >&5
8881 sed 's/^/| /' conftest.
$ac_ext >&5
8883 emacs_cv_x11_toolkit_version_6
=no
8885 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8888 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
8889 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8890 echo "$as_me:$LINENO: result: 6 or newer" >&5
8891 echo "${ECHO_T}6 or newer" >&6
8893 cat >>confdefs.h
<<\_ACEOF
8894 #define HAVE_X11XTR6 1
8898 echo "$as_me:$LINENO: result: before 6" >&5
8899 echo "${ECHO_T}before 6" >&6
8903 if test x
$HAVE_X11XTR6 = xyes
; then
8904 LIBS
="-lXt -lSM -lICE $LIBS"
8909 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
8910 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
8911 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
8912 echo $ECHO_N "(cached) $ECHO_C" >&6
8914 ac_check_lib_save_LIBS
=$LIBS
8916 cat >conftest.
$ac_ext <<_ACEOF
8917 #line $LINENO "configure"
8920 cat confdefs.h
>>conftest.
$ac_ext
8921 cat >>conftest.
$ac_ext <<_ACEOF
8922 /* end confdefs.h. */
8924 /* Override any gcc2 internal prototype to avoid an error. */
8928 /* We use char because int might match the return type of a gcc2
8929 builtin and then its argument prototype would still apply. */
8930 char XmuConvertStandardSelection ();
8934 XmuConvertStandardSelection ();
8939 rm -f conftest.
$ac_objext conftest
$ac_exeext
8940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8941 (eval $ac_link) 2>&5
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); } &&
8945 { ac_try
='test -s conftest$ac_exeext'
8946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); }; }; then
8951 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
8953 echo "$as_me: failed program was:" >&5
8954 sed 's/^/| /' conftest.
$ac_ext >&5
8956 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
8958 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8959 LIBS
=$ac_check_lib_save_LIBS
8961 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8962 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
8963 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
8964 cat >>confdefs.h
<<_ACEOF
8965 #define HAVE_LIBXMU 1
8972 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
8975 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8976 if test "${HAVE_X11}" = "yes"; then
8977 if test "${USE_X_TOOLKIT}" != "none"; then
8979 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8980 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8981 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8982 echo $ECHO_N "(cached) $ECHO_C" >&6
8984 ac_check_lib_save_LIBS
=$LIBS
8986 cat >conftest.
$ac_ext <<_ACEOF
8987 #line $LINENO "configure"
8990 cat confdefs.h
>>conftest.
$ac_ext
8991 cat >>conftest.
$ac_ext <<_ACEOF
8992 /* end confdefs.h. */
8994 /* Override any gcc2 internal prototype to avoid an error. */
8998 /* We use char because int might match the return type of a gcc2
8999 builtin and then its argument prototype would still apply. */
9000 char XShapeQueryExtension ();
9004 XShapeQueryExtension ();
9009 rm -f conftest.
$ac_objext conftest
$ac_exeext
9010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9011 (eval $ac_link) 2>&5
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); } &&
9015 { ac_try
='test -s conftest$ac_exeext'
9016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); }; }; then
9021 ac_cv_lib_Xext_XShapeQueryExtension
=yes
9023 echo "$as_me: failed program was:" >&5
9024 sed 's/^/| /' conftest.
$ac_ext >&5
9026 ac_cv_lib_Xext_XShapeQueryExtension
=no
9028 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9029 LIBS
=$ac_check_lib_save_LIBS
9031 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9032 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
9033 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9034 cat >>confdefs.h
<<_ACEOF
9035 #define HAVE_LIBXEXT 1
9045 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9046 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
9047 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
9048 if test "${emacs_cv_lesstif+set}" = set; then
9049 echo $ECHO_N "(cached) $ECHO_C" >&6
9051 # We put this in CFLAGS temporarily to precede other -I options
9052 # that might be in CFLAGS temporarily.
9053 # We put this in CPPFLAGS where it precedes the other -I options.
9054 OLD_CPPFLAGS
=$CPPFLAGS
9056 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9057 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9058 cat >conftest.
$ac_ext <<_ACEOF
9059 #line $LINENO "configure"
9062 cat confdefs.h
>>conftest.
$ac_ext
9063 cat >>conftest.
$ac_ext <<_ACEOF
9064 /* end confdefs.h. */
9065 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9074 rm -f conftest.
$ac_objext
9075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9076 (eval $ac_compile) 2>&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); } &&
9080 { ac_try
='test -s conftest.$ac_objext'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; }; then
9086 emacs_cv_lesstif
=yes
9088 echo "$as_me: failed program was:" >&5
9089 sed 's/^/| /' conftest.
$ac_ext >&5
9093 rm -f conftest.
$ac_objext conftest.
$ac_ext
9095 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
9096 echo "${ECHO_T}$emacs_cv_lesstif" >&6
9097 if test $emacs_cv_lesstif = yes; then
9098 # Make sure this -I option remains in CPPFLAGS after it is set
9099 # back to REAL_CPPFLAGS.
9100 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9101 # have those other -I options anyway. Ultimately, having this
9102 # directory ultimately in CPPFLAGS will be enough.
9103 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9104 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9107 CPPFLAGS
=$OLD_CPPFLAGS
9109 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
9110 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
9111 if test "${emacs_cv_motif_version_2_1+set}" = set; then
9112 echo $ECHO_N "(cached) $ECHO_C" >&6
9114 cat >conftest.
$ac_ext <<_ACEOF
9115 #line $LINENO "configure"
9118 cat confdefs.h
>>conftest.
$ac_ext
9119 cat >>conftest.
$ac_ext <<_ACEOF
9120 /* end confdefs.h. */
9125 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9128 Motif version prior to 2.1.
9134 rm -f conftest.
$ac_objext
9135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9136 (eval $ac_compile) 2>&5
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); } &&
9140 { ac_try
='test -s conftest.$ac_objext'
9141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); }; }; then
9146 emacs_cv_motif_version_2_1
=yes
9148 echo "$as_me: failed program was:" >&5
9149 sed 's/^/| /' conftest.
$ac_ext >&5
9151 emacs_cv_motif_version_2_1
=no
9153 rm -f conftest.
$ac_objext conftest.
$ac_ext
9155 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
9156 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
9157 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
9158 if test $emacs_cv_motif_version_2_1 = yes; then
9161 cat >>confdefs.h
<<\_ACEOF
9162 #define HAVE_MOTIF_2_1 1
9165 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
9166 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
9167 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
9168 echo $ECHO_N "(cached) $ECHO_C" >&6
9170 ac_check_lib_save_LIBS
=$LIBS
9172 cat >conftest.
$ac_ext <<_ACEOF
9173 #line $LINENO "configure"
9176 cat confdefs.h
>>conftest.
$ac_ext
9177 cat >>conftest.
$ac_ext <<_ACEOF
9178 /* end confdefs.h. */
9180 /* Override any gcc2 internal prototype to avoid an error. */
9184 /* We use char because int might match the return type of a gcc2
9185 builtin and then its argument prototype would still apply. */
9186 char XpCreateContext ();
9195 rm -f conftest.
$ac_objext conftest
$ac_exeext
9196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9197 (eval $ac_link) 2>&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); } &&
9201 { ac_try
='test -s conftest$ac_exeext'
9202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); }; }; then
9207 ac_cv_lib_Xp_XpCreateContext
=yes
9209 echo "$as_me: failed program was:" >&5
9210 sed 's/^/| /' conftest.
$ac_ext >&5
9212 ac_cv_lib_Xp_XpCreateContext
=no
9214 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9215 LIBS
=$ac_check_lib_save_LIBS
9217 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9218 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
9219 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
9223 if test ${HAVE_LIBXP} = yes; then
9225 cat >>confdefs.h
<<\_ACEOF
9226 #define HAVE_LIBXP 1
9233 ### Is -lXaw3d available?
9235 if test "${HAVE_X11}" = "yes"; then
9236 if test "${USE_X_TOOLKIT}" != "none"; then
9237 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
9238 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
9239 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
9240 echo $ECHO_N "(cached) $ECHO_C" >&6
9242 cat >conftest.
$ac_ext <<_ACEOF
9243 #line $LINENO "configure"
9246 cat confdefs.h
>>conftest.
$ac_ext
9247 cat >>conftest.
$ac_ext <<_ACEOF
9248 /* end confdefs.h. */
9249 #include <X11/Xaw3d/Scrollbar.h>
9251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9252 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9254 grep -v '^ *+' conftest.er1
>conftest.err
9256 cat conftest.err
>&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); } >/dev
/null
; then
9259 if test -s conftest.err
; then
9260 ac_cpp_err
=$ac_c_preproc_warn_flag
9267 if test -z "$ac_cpp_err"; then
9268 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
9270 echo "$as_me: failed program was:" >&5
9271 sed 's/^/| /' conftest.
$ac_ext >&5
9273 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
9275 rm -f conftest.err conftest.
$ac_ext
9277 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
9278 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
9279 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
9280 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
9281 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
9282 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
9283 echo $ECHO_N "(cached) $ECHO_C" >&6
9285 ac_check_lib_save_LIBS
=$LIBS
9286 LIBS
="-lXaw3d $LIBS"
9287 cat >conftest.
$ac_ext <<_ACEOF
9288 #line $LINENO "configure"
9291 cat confdefs.h
>>conftest.
$ac_ext
9292 cat >>conftest.
$ac_ext <<_ACEOF
9293 /* end confdefs.h. */
9295 /* Override any gcc2 internal prototype to avoid an error. */
9299 /* We use char because int might match the return type of a gcc2
9300 builtin and then its argument prototype would still apply. */
9301 char XawScrollbarSetThumb ();
9305 XawScrollbarSetThumb ();
9310 rm -f conftest.
$ac_objext conftest
$ac_exeext
9311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9312 (eval $ac_link) 2>&5
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); } &&
9316 { ac_try
='test -s conftest$ac_exeext'
9317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); }; }; then
9322 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
9324 echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.
$ac_ext >&5
9327 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
9329 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9330 LIBS
=$ac_check_lib_save_LIBS
9332 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
9333 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
9334 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
9341 if test "${HAVE_XAW3D}" = "yes"; then
9343 cat >>confdefs.h
<<\_ACEOF
9344 #define HAVE_XAW3D 1
9353 USE_TOOLKIT_SCROLL_BARS
=no
9354 if test "${with_toolkit_scroll_bars}" != "no"; then
9355 if test "${USE_X_TOOLKIT}" != "none"; then
9356 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9357 cat >>confdefs.h
<<\_ACEOF
9358 #define USE_TOOLKIT_SCROLL_BARS 1
9362 USE_TOOLKIT_SCROLL_BARS
=yes
9363 elif test "${HAVE_XAW3D}" = "yes"; then
9364 cat >>confdefs.h
<<\_ACEOF
9365 #define USE_TOOLKIT_SCROLL_BARS 1
9368 USE_TOOLKIT_SCROLL_BARS
=yes
9370 elif test "${HAVE_GTK}" = "yes"; then
9371 cat >>confdefs.h
<<\_ACEOF
9372 #define USE_TOOLKIT_SCROLL_BARS 1
9375 USE_TOOLKIT_SCROLL_BARS
=yes
9379 cat >conftest.
$ac_ext <<_ACEOF
9380 #line $LINENO "configure"
9383 cat confdefs.h
>>conftest.
$ac_ext
9384 cat >>conftest.
$ac_ext <<_ACEOF
9385 /* end confdefs.h. */
9387 #include <X11/Xlib.h>
9388 #include <X11/Xresource.h>
9397 rm -f conftest.
$ac_objext
9398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9399 (eval $ac_compile) 2>&5
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); } &&
9403 { ac_try
='test -s conftest.$ac_objext'
9404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); }; }; then
9411 cat >>confdefs.h
<<\_ACEOF
9416 echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.
$ac_ext >&5
9421 rm -f conftest.
$ac_objext conftest.
$ac_ext
9424 if test "${with_xim}" != "no"; then
9426 cat >>confdefs.h
<<\_ACEOF
9433 if test "${HAVE_XIM}" != "no"; then
9435 if test "$GCC" = yes; then
9436 CFLAGS
="$CFLAGS --pedantic-errors"
9438 cat >conftest.
$ac_ext <<_ACEOF
9439 #line $LINENO "configure"
9442 cat confdefs.h
>>conftest.
$ac_ext
9443 cat >>conftest.
$ac_ext <<_ACEOF
9444 /* end confdefs.h. */
9446 #include <X11/Xlib.h>
9447 #include <X11/Xresource.h>
9456 XPointer *client_data;
9458 /* If we're not using GCC, it's probably not XFree86, and this is
9459 probably right, but we can't use something like --pedantic-errors. */
9460 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9461 char*, XIMProc, XPointer*);
9463 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9469 rm -f conftest.
$ac_objext
9470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9471 (eval $ac_compile) 2>&5
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); } &&
9475 { ac_try
='test -s conftest.$ac_objext'
9476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); }; }; then
9481 emacs_cv_arg6_star
=yes
9483 echo "$as_me: failed program was:" >&5
9484 sed 's/^/| /' conftest.
$ac_ext >&5
9487 rm -f conftest.
$ac_objext conftest.
$ac_ext
9489 if test "$emacs_cv_arg6_star" = yes; then
9490 cat >>confdefs.h
<<\_ACEOF
9491 #define XRegisterIMInstantiateCallback_arg6 XPointer*
9495 cat >>confdefs.h
<<\_ACEOF
9496 #define XRegisterIMInstantiateCallback_arg6 XPointer
9503 ### Use -lXpm if available, unless `--with-xpm=no'.
9505 if test "${HAVE_X11}" = "yes"; then
9506 if test "${with_xpm}" != "no"; then
9507 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9508 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9509 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
9510 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9511 echo $ECHO_N "(cached) $ECHO_C" >&6
9513 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
9514 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
9516 # Is the header compilable?
9517 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
9518 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
9519 cat >conftest.
$ac_ext <<_ACEOF
9520 #line $LINENO "configure"
9523 cat confdefs.h
>>conftest.
$ac_ext
9524 cat >>conftest.
$ac_ext <<_ACEOF
9525 /* end confdefs.h. */
9526 $ac_includes_default
9527 #include <X11/xpm.h>
9529 rm -f conftest.
$ac_objext
9530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9531 (eval $ac_compile) 2>&5
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); } &&
9535 { ac_try
='test -s conftest.$ac_objext'
9536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); }; }; then
9541 ac_header_compiler
=yes
9543 echo "$as_me: failed program was:" >&5
9544 sed 's/^/| /' conftest.
$ac_ext >&5
9546 ac_header_compiler
=no
9548 rm -f conftest.
$ac_objext conftest.
$ac_ext
9549 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9550 echo "${ECHO_T}$ac_header_compiler" >&6
9552 # Is the header present?
9553 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
9554 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
9555 cat >conftest.
$ac_ext <<_ACEOF
9556 #line $LINENO "configure"
9559 cat confdefs.h
>>conftest.
$ac_ext
9560 cat >>conftest.
$ac_ext <<_ACEOF
9561 /* end confdefs.h. */
9562 #include <X11/xpm.h>
9564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9565 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9567 grep -v '^ *+' conftest.er1
>conftest.err
9569 cat conftest.err
>&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); } >/dev
/null
; then
9572 if test -s conftest.err
; then
9573 ac_cpp_err
=$ac_c_preproc_warn_flag
9580 if test -z "$ac_cpp_err"; then
9581 ac_header_preproc
=yes
9583 echo "$as_me: failed program was:" >&5
9584 sed 's/^/| /' conftest.
$ac_ext >&5
9586 ac_header_preproc
=no
9588 rm -f conftest.err conftest.
$ac_ext
9589 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9590 echo "${ECHO_T}$ac_header_preproc" >&6
9592 # So? What about this header?
9593 case $ac_header_compiler:$ac_header_preproc in
9595 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
9596 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9597 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9598 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
9601 ## ------------------------------------ ##
9602 ## Report this to bug-autoconf@gnu.org. ##
9603 ## ------------------------------------ ##
9606 sed "s/^/$as_me: WARNING: /" >&2
9609 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
9610 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
9611 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
9612 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
9613 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9614 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
9617 ## ------------------------------------ ##
9618 ## Report this to bug-autoconf@gnu.org. ##
9619 ## ------------------------------------ ##
9622 sed "s/^/$as_me: WARNING: /" >&2
9625 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9626 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
9627 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9628 echo $ECHO_N "(cached) $ECHO_C" >&6
9630 ac_cv_header_X11_xpm_h
=$ac_header_preproc
9632 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
9633 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
9636 if test $ac_cv_header_X11_xpm_h = yes; then
9637 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
9638 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
9639 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
9642 ac_check_lib_save_LIBS
=$LIBS
9643 LIBS
="-lXpm -lX11 $LIBS"
9644 cat >conftest.
$ac_ext <<_ACEOF
9645 #line $LINENO "configure"
9648 cat confdefs.h
>>conftest.
$ac_ext
9649 cat >>conftest.
$ac_ext <<_ACEOF
9650 /* end confdefs.h. */
9652 /* Override any gcc2 internal prototype to avoid an error. */
9656 /* We use char because int might match the return type of a gcc2
9657 builtin and then its argument prototype would still apply. */
9658 char XpmReadFileToPixmap ();
9662 XpmReadFileToPixmap ();
9667 rm -f conftest.
$ac_objext conftest
$ac_exeext
9668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9669 (eval $ac_link) 2>&5
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); } &&
9673 { ac_try
='test -s conftest$ac_exeext'
9674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); }; }; then
9679 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
9681 echo "$as_me: failed program was:" >&5
9682 sed 's/^/| /' conftest.
$ac_ext >&5
9684 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
9686 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9687 LIBS
=$ac_check_lib_save_LIBS
9689 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9690 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
9691 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9698 if test "${HAVE_XPM}" = "yes"; then
9699 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9700 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
9701 cat >conftest.
$ac_ext <<_ACEOF
9702 #line $LINENO "configure"
9705 cat confdefs.h
>>conftest.
$ac_ext
9706 cat >>conftest.
$ac_ext <<_ACEOF
9707 /* end confdefs.h. */
9708 #include "X11/xpm.h"
9709 #ifndef XpmReturnAllocPixels
9710 no_return_alloc_pixels
9714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9715 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
9723 if test "${HAVE_XPM}" = "yes"; then
9724 echo "$as_me:$LINENO: result: yes" >&5
9725 echo "${ECHO_T}yes" >&6
9727 echo "$as_me:$LINENO: result: no" >&5
9728 echo "${ECHO_T}no" >&6
9733 if test "${HAVE_XPM}" = "yes"; then
9735 cat >>confdefs.h
<<\_ACEOF
9742 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9744 if test "${HAVE_X11}" = "yes"; then
9745 if test "${with_jpeg}" != "no"; then
9746 if test "${ac_cv_header_jerror_h+set}" = set; then
9747 echo "$as_me:$LINENO: checking for jerror.h" >&5
9748 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9749 if test "${ac_cv_header_jerror_h+set}" = set; then
9750 echo $ECHO_N "(cached) $ECHO_C" >&6
9752 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9753 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9755 # Is the header compilable?
9756 echo "$as_me:$LINENO: checking jerror.h usability" >&5
9757 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
9758 cat >conftest.
$ac_ext <<_ACEOF
9759 #line $LINENO "configure"
9762 cat confdefs.h
>>conftest.
$ac_ext
9763 cat >>conftest.
$ac_ext <<_ACEOF
9764 /* end confdefs.h. */
9765 $ac_includes_default
9768 rm -f conftest.
$ac_objext
9769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9770 (eval $ac_compile) 2>&5
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); } &&
9774 { ac_try
='test -s conftest.$ac_objext'
9775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; }; then
9780 ac_header_compiler
=yes
9782 echo "$as_me: failed program was:" >&5
9783 sed 's/^/| /' conftest.
$ac_ext >&5
9785 ac_header_compiler
=no
9787 rm -f conftest.
$ac_objext conftest.
$ac_ext
9788 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9789 echo "${ECHO_T}$ac_header_compiler" >&6
9791 # Is the header present?
9792 echo "$as_me:$LINENO: checking jerror.h presence" >&5
9793 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
9794 cat >conftest.
$ac_ext <<_ACEOF
9795 #line $LINENO "configure"
9798 cat confdefs.h
>>conftest.
$ac_ext
9799 cat >>conftest.
$ac_ext <<_ACEOF
9800 /* end confdefs.h. */
9803 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9804 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9806 grep -v '^ *+' conftest.er1
>conftest.err
9808 cat conftest.err
>&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); } >/dev
/null
; then
9811 if test -s conftest.err
; then
9812 ac_cpp_err
=$ac_c_preproc_warn_flag
9819 if test -z "$ac_cpp_err"; then
9820 ac_header_preproc
=yes
9822 echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.
$ac_ext >&5
9825 ac_header_preproc
=no
9827 rm -f conftest.err conftest.
$ac_ext
9828 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9829 echo "${ECHO_T}$ac_header_preproc" >&6
9831 # So? What about this header?
9832 case $ac_header_compiler:$ac_header_preproc in
9834 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
9835 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9836 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9837 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9840 ## ------------------------------------ ##
9841 ## Report this to bug-autoconf@gnu.org. ##
9842 ## ------------------------------------ ##
9845 sed "s/^/$as_me: WARNING: /" >&2
9848 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
9849 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
9850 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
9851 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
9852 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9853 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9856 ## ------------------------------------ ##
9857 ## Report this to bug-autoconf@gnu.org. ##
9858 ## ------------------------------------ ##
9861 sed "s/^/$as_me: WARNING: /" >&2
9864 echo "$as_me:$LINENO: checking for jerror.h" >&5
9865 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9866 if test "${ac_cv_header_jerror_h+set}" = set; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9869 ac_cv_header_jerror_h
=$ac_header_preproc
9871 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9872 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9875 if test $ac_cv_header_jerror_h = yes; then
9876 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9877 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
9878 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9879 echo $ECHO_N "(cached) $ECHO_C" >&6
9881 ac_check_lib_save_LIBS
=$LIBS
9883 cat >conftest.
$ac_ext <<_ACEOF
9884 #line $LINENO "configure"
9887 cat confdefs.h
>>conftest.
$ac_ext
9888 cat >>conftest.
$ac_ext <<_ACEOF
9889 /* end confdefs.h. */
9891 /* Override any gcc2 internal prototype to avoid an error. */
9895 /* We use char because int might match the return type of a gcc2
9896 builtin and then its argument prototype would still apply. */
9897 char jpeg_destroy_compress ();
9901 jpeg_destroy_compress ();
9906 rm -f conftest.
$ac_objext conftest
$ac_exeext
9907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9908 (eval $ac_link) 2>&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); } &&
9912 { ac_try
='test -s conftest$ac_exeext'
9913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); }; }; then
9918 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
9920 echo "$as_me: failed program was:" >&5
9921 sed 's/^/| /' conftest.
$ac_ext >&5
9923 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
9925 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9926 LIBS
=$ac_check_lib_save_LIBS
9928 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9929 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
9930 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
9940 if test "${HAVE_JPEG}" = "yes"; then
9941 cat >>confdefs.h
<<\_ACEOF
9945 cat >conftest.
$ac_ext <<_ACEOF
9946 #line $LINENO "configure"
9949 cat confdefs.h
>>conftest.
$ac_ext
9950 cat >>conftest.
$ac_ext <<_ACEOF
9951 /* end confdefs.h. */
9952 #include <jpeglib.h>
9953 version=JPEG_LIB_VERSION
9956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9957 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
9958 cat >>confdefs.h
<<\_ACEOF
9963 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
9964 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9972 ### Use -lpng if available, unless `--with-png=no'.
9974 if test "${HAVE_X11}" = "yes"; then
9975 if test "${with_png}" != "no"; then
9976 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
9977 # in /usr/include/libpng.
9980 for ac_header
in png.h libpng
/png.h
9982 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9984 echo "$as_me:$LINENO: checking for $ac_header" >&5
9985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9987 echo $ECHO_N "(cached) $ECHO_C" >&6
9989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9990 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9992 # Is the header compilable?
9993 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9994 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9995 cat >conftest.
$ac_ext <<_ACEOF
9996 #line $LINENO "configure"
9999 cat confdefs.h
>>conftest.
$ac_ext
10000 cat >>conftest.
$ac_ext <<_ACEOF
10001 /* end confdefs.h. */
10002 $ac_includes_default
10003 #include <$ac_header>
10005 rm -f conftest.
$ac_objext
10006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10007 (eval $ac_compile) 2>&5
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); } &&
10011 { ac_try
='test -s conftest.$ac_objext'
10012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10013 (eval $ac_try) 2>&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); }; }; then
10017 ac_header_compiler
=yes
10019 echo "$as_me: failed program was:" >&5
10020 sed 's/^/| /' conftest.
$ac_ext >&5
10022 ac_header_compiler
=no
10024 rm -f conftest.
$ac_objext conftest.
$ac_ext
10025 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10026 echo "${ECHO_T}$ac_header_compiler" >&6
10028 # Is the header present?
10029 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10031 cat >conftest.
$ac_ext <<_ACEOF
10032 #line $LINENO "configure"
10035 cat confdefs.h
>>conftest.
$ac_ext
10036 cat >>conftest.
$ac_ext <<_ACEOF
10037 /* end confdefs.h. */
10038 #include <$ac_header>
10040 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10041 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10043 grep -v '^ *+' conftest.er1
>conftest.err
10045 cat conftest.err
>&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); } >/dev
/null
; then
10048 if test -s conftest.err
; then
10049 ac_cpp_err
=$ac_c_preproc_warn_flag
10056 if test -z "$ac_cpp_err"; then
10057 ac_header_preproc
=yes
10059 echo "$as_me: failed program was:" >&5
10060 sed 's/^/| /' conftest.
$ac_ext >&5
10062 ac_header_preproc
=no
10064 rm -f conftest.err conftest.
$ac_ext
10065 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10066 echo "${ECHO_T}$ac_header_preproc" >&6
10068 # So? What about this header?
10069 case $ac_header_compiler:$ac_header_preproc in
10071 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10072 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10077 ## ------------------------------------ ##
10078 ## Report this to bug-autoconf@gnu.org. ##
10079 ## ------------------------------------ ##
10082 sed "s/^/$as_me: WARNING: /" >&2
10085 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10086 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10087 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10088 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10093 ## ------------------------------------ ##
10094 ## Report this to bug-autoconf@gnu.org. ##
10095 ## ------------------------------------ ##
10098 sed "s/^/$as_me: WARNING: /" >&2
10101 echo "$as_me:$LINENO: checking for $ac_header" >&5
10102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10104 echo $ECHO_N "(cached) $ECHO_C" >&6
10106 eval "$as_ac_Header=$ac_header_preproc"
10108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10113 cat >>confdefs.h
<<_ACEOF
10114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10121 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
10122 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
10123 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
10124 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
10125 echo $ECHO_N "(cached) $ECHO_C" >&6
10127 ac_check_lib_save_LIBS
=$LIBS
10128 LIBS
="-lpng -lz -lm $LIBS"
10129 cat >conftest.
$ac_ext <<_ACEOF
10130 #line $LINENO "configure"
10133 cat confdefs.h
>>conftest.
$ac_ext
10134 cat >>conftest.
$ac_ext <<_ACEOF
10135 /* end confdefs.h. */
10137 /* Override any gcc2 internal prototype to avoid an error. */
10141 /* We use char because int might match the return type of a gcc2
10142 builtin and then its argument prototype would still apply. */
10143 char png_get_channels ();
10147 png_get_channels ();
10152 rm -f conftest.
$ac_objext conftest
$ac_exeext
10153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10154 (eval $ac_link) 2>&5
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); } &&
10158 { ac_try
='test -s conftest$ac_exeext'
10159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160 (eval $ac_try) 2>&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }; }; then
10164 ac_cv_lib_png_png_get_channels
=yes
10166 echo "$as_me: failed program was:" >&5
10167 sed 's/^/| /' conftest.
$ac_ext >&5
10169 ac_cv_lib_png_png_get_channels
=no
10171 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10172 LIBS
=$ac_check_lib_save_LIBS
10174 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
10175 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
10176 if test $ac_cv_lib_png_png_get_channels = yes; then
10183 if test "${HAVE_PNG}" = "yes"; then
10185 cat >>confdefs.h
<<\_ACEOF
10192 ### Use -ltiff if available, unless `--with-tiff=no'.
10194 if test "${HAVE_X11}" = "yes"; then
10195 if test "${with_tiff}" != "no"; then
10196 if test "${ac_cv_header_tiffio_h+set}" = set; then
10197 echo "$as_me:$LINENO: checking for tiffio.h" >&5
10198 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
10199 if test "${ac_cv_header_tiffio_h+set}" = set; then
10200 echo $ECHO_N "(cached) $ECHO_C" >&6
10202 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
10203 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
10205 # Is the header compilable?
10206 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
10207 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
10208 cat >conftest.
$ac_ext <<_ACEOF
10209 #line $LINENO "configure"
10212 cat confdefs.h
>>conftest.
$ac_ext
10213 cat >>conftest.
$ac_ext <<_ACEOF
10214 /* end confdefs.h. */
10215 $ac_includes_default
10216 #include <tiffio.h>
10218 rm -f conftest.
$ac_objext
10219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10220 (eval $ac_compile) 2>&5
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); } &&
10224 { ac_try
='test -s conftest.$ac_objext'
10225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226 (eval $ac_try) 2>&5
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); }; }; then
10230 ac_header_compiler
=yes
10232 echo "$as_me: failed program was:" >&5
10233 sed 's/^/| /' conftest.
$ac_ext >&5
10235 ac_header_compiler
=no
10237 rm -f conftest.
$ac_objext conftest.
$ac_ext
10238 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10239 echo "${ECHO_T}$ac_header_compiler" >&6
10241 # Is the header present?
10242 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
10243 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
10244 cat >conftest.
$ac_ext <<_ACEOF
10245 #line $LINENO "configure"
10248 cat confdefs.h
>>conftest.
$ac_ext
10249 cat >>conftest.
$ac_ext <<_ACEOF
10250 /* end confdefs.h. */
10251 #include <tiffio.h>
10253 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10254 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10256 grep -v '^ *+' conftest.er1
>conftest.err
10258 cat conftest.err
>&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); } >/dev
/null
; then
10261 if test -s conftest.err
; then
10262 ac_cpp_err
=$ac_c_preproc_warn_flag
10269 if test -z "$ac_cpp_err"; then
10270 ac_header_preproc
=yes
10272 echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.
$ac_ext >&5
10275 ac_header_preproc
=no
10277 rm -f conftest.err conftest.
$ac_ext
10278 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10279 echo "${ECHO_T}$ac_header_preproc" >&6
10281 # So? What about this header?
10282 case $ac_header_compiler:$ac_header_preproc in
10284 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
10285 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10286 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
10287 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
10290 ## ------------------------------------ ##
10291 ## Report this to bug-autoconf@gnu.org. ##
10292 ## ------------------------------------ ##
10295 sed "s/^/$as_me: WARNING: /" >&2
10298 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
10299 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
10300 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
10301 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
10302 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
10303 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
10306 ## ------------------------------------ ##
10307 ## Report this to bug-autoconf@gnu.org. ##
10308 ## ------------------------------------ ##
10311 sed "s/^/$as_me: WARNING: /" >&2
10314 echo "$as_me:$LINENO: checking for tiffio.h" >&5
10315 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
10316 if test "${ac_cv_header_tiffio_h+set}" = set; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
10319 ac_cv_header_tiffio_h
=$ac_header_preproc
10321 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
10322 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
10325 if test $ac_cv_header_tiffio_h = yes; then
10327 # At least one tiff package requires the jpeg library.
10328 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
10329 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
10330 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
10331 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
10332 echo $ECHO_N "(cached) $ECHO_C" >&6
10334 ac_check_lib_save_LIBS
=$LIBS
10335 LIBS
="-ltiff $tifflibs $LIBS"
10336 cat >conftest.
$ac_ext <<_ACEOF
10337 #line $LINENO "configure"
10340 cat confdefs.h
>>conftest.
$ac_ext
10341 cat >>conftest.
$ac_ext <<_ACEOF
10342 /* end confdefs.h. */
10344 /* Override any gcc2 internal prototype to avoid an error. */
10348 /* We use char because int might match the return type of a gcc2
10349 builtin and then its argument prototype would still apply. */
10350 char TIFFGetVersion ();
10359 rm -f conftest.
$ac_objext conftest
$ac_exeext
10360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10361 (eval $ac_link) 2>&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); } &&
10365 { ac_try
='test -s conftest$ac_exeext'
10366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367 (eval $ac_try) 2>&5
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); }; }; then
10371 ac_cv_lib_tiff_TIFFGetVersion
=yes
10373 echo "$as_me: failed program was:" >&5
10374 sed 's/^/| /' conftest.
$ac_ext >&5
10376 ac_cv_lib_tiff_TIFFGetVersion
=no
10378 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10379 LIBS
=$ac_check_lib_save_LIBS
10381 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10382 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
10383 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
10392 if test "${HAVE_TIFF}" = "yes"; then
10394 cat >>confdefs.h
<<\_ACEOF
10395 #define HAVE_TIFF 1
10401 ### Use -lgif if available, unless `--with-gif=no'.
10403 if test "${HAVE_X11}" = "yes"; then
10404 if test "${with_gif}" != "no"; then
10405 if test "${ac_cv_header_gif_lib_h+set}" = set; then
10406 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
10407 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
10408 if test "${ac_cv_header_gif_lib_h+set}" = set; then
10409 echo $ECHO_N "(cached) $ECHO_C" >&6
10411 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
10412 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
10414 # Is the header compilable?
10415 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
10416 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
10417 cat >conftest.
$ac_ext <<_ACEOF
10418 #line $LINENO "configure"
10421 cat confdefs.h
>>conftest.
$ac_ext
10422 cat >>conftest.
$ac_ext <<_ACEOF
10423 /* end confdefs.h. */
10424 $ac_includes_default
10425 #include <gif_lib.h>
10427 rm -f conftest.
$ac_objext
10428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10429 (eval $ac_compile) 2>&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); } &&
10433 { ac_try
='test -s conftest.$ac_objext'
10434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10435 (eval $ac_try) 2>&5
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); }; }; then
10439 ac_header_compiler
=yes
10441 echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.
$ac_ext >&5
10444 ac_header_compiler
=no
10446 rm -f conftest.
$ac_objext conftest.
$ac_ext
10447 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10448 echo "${ECHO_T}$ac_header_compiler" >&6
10450 # Is the header present?
10451 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
10452 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
10453 cat >conftest.
$ac_ext <<_ACEOF
10454 #line $LINENO "configure"
10457 cat confdefs.h
>>conftest.
$ac_ext
10458 cat >>conftest.
$ac_ext <<_ACEOF
10459 /* end confdefs.h. */
10460 #include <gif_lib.h>
10462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10463 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10465 grep -v '^ *+' conftest.er1
>conftest.err
10467 cat conftest.err
>&5
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); } >/dev
/null
; then
10470 if test -s conftest.err
; then
10471 ac_cpp_err
=$ac_c_preproc_warn_flag
10478 if test -z "$ac_cpp_err"; then
10479 ac_header_preproc
=yes
10481 echo "$as_me: failed program was:" >&5
10482 sed 's/^/| /' conftest.
$ac_ext >&5
10484 ac_header_preproc
=no
10486 rm -f conftest.err conftest.
$ac_ext
10487 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10488 echo "${ECHO_T}$ac_header_preproc" >&6
10490 # So? What about this header?
10491 case $ac_header_compiler:$ac_header_preproc in
10493 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10494 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10495 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
10496 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
10499 ## ------------------------------------ ##
10500 ## Report this to bug-autoconf@gnu.org. ##
10501 ## ------------------------------------ ##
10504 sed "s/^/$as_me: WARNING: /" >&2
10507 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
10508 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
10509 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
10510 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
10511 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
10512 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
10515 ## ------------------------------------ ##
10516 ## Report this to bug-autoconf@gnu.org. ##
10517 ## ------------------------------------ ##
10520 sed "s/^/$as_me: WARNING: /" >&2
10523 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
10524 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
10525 if test "${ac_cv_header_gif_lib_h+set}" = set; then
10526 echo $ECHO_N "(cached) $ECHO_C" >&6
10528 ac_cv_header_gif_lib_h
=$ac_header_preproc
10530 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
10531 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
10534 if test $ac_cv_header_gif_lib_h = yes; then
10535 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10536 # Earlier versions can crash Emacs.
10537 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
10538 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
10539 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
10540 echo $ECHO_N "(cached) $ECHO_C" >&6
10542 ac_check_lib_save_LIBS
=$LIBS
10543 LIBS
="-lungif $LIBS"
10544 cat >conftest.
$ac_ext <<_ACEOF
10545 #line $LINENO "configure"
10548 cat confdefs.h
>>conftest.
$ac_ext
10549 cat >>conftest.
$ac_ext <<_ACEOF
10550 /* end confdefs.h. */
10552 /* Override any gcc2 internal prototype to avoid an error. */
10556 /* We use char because int might match the return type of a gcc2
10557 builtin and then its argument prototype would still apply. */
10558 char EGifPutExtensionLast ();
10562 EGifPutExtensionLast ();
10567 rm -f conftest.
$ac_objext conftest
$ac_exeext
10568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10569 (eval $ac_link) 2>&5
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); } &&
10573 { ac_try
='test -s conftest$ac_exeext'
10574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10575 (eval $ac_try) 2>&5
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); }; }; then
10579 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
10581 echo "$as_me: failed program was:" >&5
10582 sed 's/^/| /' conftest.
$ac_ext >&5
10584 ac_cv_lib_ungif_EGifPutExtensionLast
=no
10586 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10587 LIBS
=$ac_check_lib_save_LIBS
10589 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10590 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
10591 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
10600 if test "${HAVE_GIF}" = "yes"; then
10602 cat >>confdefs.h
<<\_ACEOF
10609 ### Use Mac OS X Carbon API to implement GUI.
10611 if test "${with_carbon}" != "no"; then
10612 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10613 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10614 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10615 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10616 echo $ECHO_N "(cached) $ECHO_C" >&6
10618 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10619 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10621 # Is the header compilable?
10622 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
10623 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
10624 cat >conftest.
$ac_ext <<_ACEOF
10625 #line $LINENO "configure"
10628 cat confdefs.h
>>conftest.
$ac_ext
10629 cat >>conftest.
$ac_ext <<_ACEOF
10630 /* end confdefs.h. */
10631 $ac_includes_default
10632 #include <Carbon/Carbon.h>
10634 rm -f conftest.
$ac_objext
10635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10636 (eval $ac_compile) 2>&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); } &&
10640 { ac_try
='test -s conftest.$ac_objext'
10641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10642 (eval $ac_try) 2>&5
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); }; }; then
10646 ac_header_compiler
=yes
10648 echo "$as_me: failed program was:" >&5
10649 sed 's/^/| /' conftest.
$ac_ext >&5
10651 ac_header_compiler
=no
10653 rm -f conftest.
$ac_objext conftest.
$ac_ext
10654 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10655 echo "${ECHO_T}$ac_header_compiler" >&6
10657 # Is the header present?
10658 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
10659 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
10660 cat >conftest.
$ac_ext <<_ACEOF
10661 #line $LINENO "configure"
10664 cat confdefs.h
>>conftest.
$ac_ext
10665 cat >>conftest.
$ac_ext <<_ACEOF
10666 /* end confdefs.h. */
10667 #include <Carbon/Carbon.h>
10669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10670 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10672 grep -v '^ *+' conftest.er1
>conftest.err
10674 cat conftest.err
>&5
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); } >/dev
/null
; then
10677 if test -s conftest.err
; then
10678 ac_cpp_err
=$ac_c_preproc_warn_flag
10685 if test -z "$ac_cpp_err"; then
10686 ac_header_preproc
=yes
10688 echo "$as_me: failed program was:" >&5
10689 sed 's/^/| /' conftest.
$ac_ext >&5
10691 ac_header_preproc
=no
10693 rm -f conftest.err conftest.
$ac_ext
10694 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10695 echo "${ECHO_T}$ac_header_preproc" >&6
10697 # So? What about this header?
10698 case $ac_header_compiler:$ac_header_preproc in
10700 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
10701 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10702 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10703 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10706 ## ------------------------------------ ##
10707 ## Report this to bug-autoconf@gnu.org. ##
10708 ## ------------------------------------ ##
10711 sed "s/^/$as_me: WARNING: /" >&2
10714 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
10715 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
10716 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
10717 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
10718 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10719 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10722 ## ------------------------------------ ##
10723 ## Report this to bug-autoconf@gnu.org. ##
10724 ## ------------------------------------ ##
10727 sed "s/^/$as_me: WARNING: /" >&2
10730 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10731 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10732 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10733 echo $ECHO_N "(cached) $ECHO_C" >&6
10735 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
10737 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10738 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10741 if test $ac_cv_header_Carbon_Carbon_h = yes; then
10748 if test "${HAVE_CARBON}" = "yes"; then
10750 cat >>confdefs.h
<<\_ACEOF
10751 #define HAVE_CARBON 1
10755 ## Specify the install directory
10757 if test "${carbon_appdir_x}" != ""; then
10758 case ${carbon_appdir_x} in
10759 y | ye |
yes) carbon_appdir
=/Applications
;;
10760 * ) carbon_appdir
=${carbon_appdir_x} ;;
10763 # We also have mouse menus.
10767 ### Use session management (-lSM -lICE) if available
10769 if test "${HAVE_X11}" = "yes"; then
10770 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10771 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10772 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10773 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10774 echo $ECHO_N "(cached) $ECHO_C" >&6
10776 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10777 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10779 # Is the header compilable?
10780 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
10781 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
10782 cat >conftest.
$ac_ext <<_ACEOF
10783 #line $LINENO "configure"
10786 cat confdefs.h
>>conftest.
$ac_ext
10787 cat >>conftest.
$ac_ext <<_ACEOF
10788 /* end confdefs.h. */
10789 $ac_includes_default
10790 #include <X11/SM/SMlib.h>
10792 rm -f conftest.
$ac_objext
10793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10794 (eval $ac_compile) 2>&5
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); } &&
10798 { ac_try
='test -s conftest.$ac_objext'
10799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10800 (eval $ac_try) 2>&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); }; }; then
10804 ac_header_compiler
=yes
10806 echo "$as_me: failed program was:" >&5
10807 sed 's/^/| /' conftest.
$ac_ext >&5
10809 ac_header_compiler
=no
10811 rm -f conftest.
$ac_objext conftest.
$ac_ext
10812 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10813 echo "${ECHO_T}$ac_header_compiler" >&6
10815 # Is the header present?
10816 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
10817 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
10818 cat >conftest.
$ac_ext <<_ACEOF
10819 #line $LINENO "configure"
10822 cat confdefs.h
>>conftest.
$ac_ext
10823 cat >>conftest.
$ac_ext <<_ACEOF
10824 /* end confdefs.h. */
10825 #include <X11/SM/SMlib.h>
10827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10828 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10830 grep -v '^ *+' conftest.er1
>conftest.err
10832 cat conftest.err
>&5
10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); } >/dev
/null
; then
10835 if test -s conftest.err
; then
10836 ac_cpp_err
=$ac_c_preproc_warn_flag
10843 if test -z "$ac_cpp_err"; then
10844 ac_header_preproc
=yes
10846 echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.
$ac_ext >&5
10849 ac_header_preproc
=no
10851 rm -f conftest.err conftest.
$ac_ext
10852 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10853 echo "${ECHO_T}$ac_header_preproc" >&6
10855 # So? What about this header?
10856 case $ac_header_compiler:$ac_header_preproc in
10858 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10859 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10860 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10861 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10864 ## ------------------------------------ ##
10865 ## Report this to bug-autoconf@gnu.org. ##
10866 ## ------------------------------------ ##
10869 sed "s/^/$as_me: WARNING: /" >&2
10872 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
10873 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
10874 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
10875 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
10876 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10877 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10880 ## ------------------------------------ ##
10881 ## Report this to bug-autoconf@gnu.org. ##
10882 ## ------------------------------------ ##
10885 sed "s/^/$as_me: WARNING: /" >&2
10888 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10889 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10890 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10891 echo $ECHO_N "(cached) $ECHO_C" >&6
10893 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
10895 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10896 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10899 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
10900 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10901 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
10902 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10903 echo $ECHO_N "(cached) $ECHO_C" >&6
10905 ac_check_lib_save_LIBS
=$LIBS
10907 cat >conftest.
$ac_ext <<_ACEOF
10908 #line $LINENO "configure"
10911 cat confdefs.h
>>conftest.
$ac_ext
10912 cat >>conftest.
$ac_ext <<_ACEOF
10913 /* end confdefs.h. */
10915 /* Override any gcc2 internal prototype to avoid an error. */
10919 /* We use char because int might match the return type of a gcc2
10920 builtin and then its argument prototype would still apply. */
10921 char SmcOpenConnection ();
10925 SmcOpenConnection ();
10930 rm -f conftest.
$ac_objext conftest
$ac_exeext
10931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10932 (eval $ac_link) 2>&5
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); } &&
10936 { ac_try
='test -s conftest$ac_exeext'
10937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10938 (eval $ac_try) 2>&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; }; then
10942 ac_cv_lib_SM_SmcOpenConnection
=yes
10944 echo "$as_me: failed program was:" >&5
10945 sed 's/^/| /' conftest.
$ac_ext >&5
10947 ac_cv_lib_SM_SmcOpenConnection
=no
10949 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10950 LIBS
=$ac_check_lib_save_LIBS
10952 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10953 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
10954 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
10964 if test "${HAVE_X_SM}" = "yes"; then
10966 cat >>confdefs.h
<<\_ACEOF
10967 #define HAVE_X_SM 1
10972 *) LIBS
="-lSM -lICE $LIBS" ;;
10977 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10978 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
10979 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
10980 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
10981 echo $ECHO_N "(cached) $ECHO_C" >&6
10983 cat >conftest.
$ac_ext <<_ACEOF
10984 #line $LINENO "configure"
10987 cat confdefs.h
>>conftest.
$ac_ext
10988 cat >>conftest.
$ac_ext <<_ACEOF
10989 /* end confdefs.h. */
10999 rm -f conftest.
$ac_objext conftest
$ac_exeext
11000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11001 (eval $ac_link) 2>&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } &&
11005 { ac_try
='test -s conftest$ac_exeext'
11006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11007 (eval $ac_try) 2>&5
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); }; }; then
11011 emacs_cv_netdb_declares_h_errno
=yes
11013 echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.
$ac_ext >&5
11016 emacs_cv_netdb_declares_h_errno
=no
11018 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11020 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
11021 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
11022 if test $emacs_cv_netdb_declares_h_errno = yes; then
11024 cat >>confdefs.h
<<\_ACEOF
11025 #define HAVE_H_ERRNO 1
11030 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11031 # for constant arguments. Useless!
11032 echo "$as_me:$LINENO: checking for working alloca.h" >&5
11033 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11034 if test "${ac_cv_working_alloca_h+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11037 cat >conftest.
$ac_ext <<_ACEOF
11038 #line $LINENO "configure"
11041 cat confdefs.h
>>conftest.
$ac_ext
11042 cat >>conftest.
$ac_ext <<_ACEOF
11043 /* end confdefs.h. */
11044 #include <alloca.h>
11048 char *p = (char *) alloca (2 * sizeof (int));
11053 rm -f conftest.
$ac_objext conftest
$ac_exeext
11054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11055 (eval $ac_link) 2>&5
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); } &&
11059 { ac_try
='test -s conftest$ac_exeext'
11060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11061 (eval $ac_try) 2>&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); }; }; then
11065 ac_cv_working_alloca_h
=yes
11067 echo "$as_me: failed program was:" >&5
11068 sed 's/^/| /' conftest.
$ac_ext >&5
11070 ac_cv_working_alloca_h
=no
11072 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11074 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11075 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11076 if test $ac_cv_working_alloca_h = yes; then
11078 cat >>confdefs.h
<<\_ACEOF
11079 #define HAVE_ALLOCA_H 1
11084 echo "$as_me:$LINENO: checking for alloca" >&5
11085 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11086 if test "${ac_cv_func_alloca_works+set}" = set; then
11087 echo $ECHO_N "(cached) $ECHO_C" >&6
11089 cat >conftest.
$ac_ext <<_ACEOF
11090 #line $LINENO "configure"
11093 cat confdefs.h
>>conftest.
$ac_ext
11094 cat >>conftest.
$ac_ext <<_ACEOF
11095 /* end confdefs.h. */
11097 # define alloca __builtin_alloca
11100 # include <malloc.h>
11101 # define alloca _alloca
11104 # include <alloca.h>
11109 # ifndef alloca /* predefined by HP cc +Olibcalls */
11120 char *p = (char *) alloca (1);
11125 rm -f conftest.
$ac_objext conftest
$ac_exeext
11126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11127 (eval $ac_link) 2>&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); } &&
11131 { ac_try
='test -s conftest$ac_exeext'
11132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11133 (eval $ac_try) 2>&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); }; }; then
11137 ac_cv_func_alloca_works
=yes
11139 echo "$as_me: failed program was:" >&5
11140 sed 's/^/| /' conftest.
$ac_ext >&5
11142 ac_cv_func_alloca_works
=no
11144 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11146 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11147 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11149 if test $ac_cv_func_alloca_works = yes; then
11151 cat >>confdefs.h
<<\_ACEOF
11152 #define HAVE_ALLOCA 1
11156 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11157 # that cause trouble. Some versions do not even contain alloca or
11158 # contain a buggy version. If you still want to use their alloca,
11159 # use ar to extract alloca.o from them instead of compiling alloca.c.
11161 ALLOCA
=alloca.
$ac_objext
11163 cat >>confdefs.h
<<\_ACEOF
11168 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11169 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11170 if test "${ac_cv_os_cray+set}" = set; then
11171 echo $ECHO_N "(cached) $ECHO_C" >&6
11173 cat >conftest.
$ac_ext <<_ACEOF
11174 #line $LINENO "configure"
11177 cat confdefs.h
>>conftest.
$ac_ext
11178 cat >>conftest.
$ac_ext <<_ACEOF
11179 /* end confdefs.h. */
11180 #if defined(CRAY) && ! defined(CRAY2)
11187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11188 $EGREP "webecray" >/dev
/null
2>&1; then
11196 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11197 echo "${ECHO_T}$ac_cv_os_cray" >&6
11198 if test $ac_cv_os_cray = yes; then
11199 for ac_func
in _getb67 GETB67 getb67
; do
11200 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11201 echo "$as_me:$LINENO: checking for $ac_func" >&5
11202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11203 if eval "test \"\${$as_ac_var+set}\" = set"; then
11204 echo $ECHO_N "(cached) $ECHO_C" >&6
11206 cat >conftest.
$ac_ext <<_ACEOF
11207 #line $LINENO "configure"
11210 cat confdefs.h
>>conftest.
$ac_ext
11211 cat >>conftest.
$ac_ext <<_ACEOF
11212 /* end confdefs.h. */
11213 /* System header to define __stub macros and hopefully few prototypes,
11214 which can conflict with char $ac_func (); below.
11215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11216 <limits.h> exists even on freestanding compilers. */
11218 # include <limits.h>
11220 # include <assert.h>
11222 /* Override any gcc2 internal prototype to avoid an error. */
11227 /* We use char because int might match the return type of a gcc2
11228 builtin and then its argument prototype would still apply. */
11230 /* The GNU C library defines this for functions which it implements
11231 to always fail with ENOSYS. Some functions are actually named
11232 something starting with __ and the normal name is an alias. */
11233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11236 char (*f) () = $ac_func;
11245 return f != $ac_func;
11250 rm -f conftest.
$ac_objext conftest
$ac_exeext
11251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11252 (eval $ac_link) 2>&5
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); } &&
11256 { ac_try
='test -s conftest$ac_exeext'
11257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11258 (eval $ac_try) 2>&5
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); }; }; then
11262 eval "$as_ac_var=yes"
11264 echo "$as_me: failed program was:" >&5
11265 sed 's/^/| /' conftest.
$ac_ext >&5
11267 eval "$as_ac_var=no"
11269 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11273 if test `eval echo '${'$as_ac_var'}'` = yes; then
11275 cat >>confdefs.h
<<_ACEOF
11276 #define CRAY_STACKSEG_END $ac_func
11285 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11286 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11287 if test "${ac_cv_c_stack_direction+set}" = set; then
11288 echo $ECHO_N "(cached) $ECHO_C" >&6
11290 if test "$cross_compiling" = yes; then
11291 ac_cv_c_stack_direction
=0
11293 cat >conftest.
$ac_ext <<_ACEOF
11294 #line $LINENO "configure"
11297 cat confdefs.h
>>conftest.
$ac_ext
11298 cat >>conftest.
$ac_ext <<_ACEOF
11299 /* end confdefs.h. */
11301 find_stack_direction ()
11303 static char *addr = 0;
11308 return find_stack_direction ();
11311 return (&dummy > addr) ? 1 : -1;
11317 exit (find_stack_direction () < 0);
11320 rm -f conftest
$ac_exeext
11321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11322 (eval $ac_link) 2>&5
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11327 (eval $ac_try) 2>&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); }; }; then
11331 ac_cv_c_stack_direction
=1
11333 echo "$as_me: program exited with status $ac_status" >&5
11334 echo "$as_me: failed program was:" >&5
11335 sed 's/^/| /' conftest.
$ac_ext >&5
11337 ( exit $ac_status )
11338 ac_cv_c_stack_direction
=-1
11340 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11343 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11344 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11346 cat >>confdefs.h
<<_ACEOF
11347 #define STACK_DIRECTION $ac_cv_c_stack_direction
11354 # fmod, logb, and frexp are found in -lm on most systems.
11355 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
11357 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
11358 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
11359 if test "${ac_cv_lib_m_sqrt+set}" = set; then
11360 echo $ECHO_N "(cached) $ECHO_C" >&6
11362 ac_check_lib_save_LIBS
=$LIBS
11364 cat >conftest.
$ac_ext <<_ACEOF
11365 #line $LINENO "configure"
11368 cat confdefs.h
>>conftest.
$ac_ext
11369 cat >>conftest.
$ac_ext <<_ACEOF
11370 /* end confdefs.h. */
11372 /* Override any gcc2 internal prototype to avoid an error. */
11376 /* We use char because int might match the return type of a gcc2
11377 builtin and then its argument prototype would still apply. */
11387 rm -f conftest.
$ac_objext conftest
$ac_exeext
11388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11389 (eval $ac_link) 2>&5
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); } &&
11393 { ac_try
='test -s conftest$ac_exeext'
11394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11395 (eval $ac_try) 2>&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); }; }; then
11399 ac_cv_lib_m_sqrt
=yes
11401 echo "$as_me: failed program was:" >&5
11402 sed 's/^/| /' conftest.
$ac_ext >&5
11404 ac_cv_lib_m_sqrt
=no
11406 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11407 LIBS
=$ac_check_lib_save_LIBS
11409 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
11410 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
11411 if test $ac_cv_lib_m_sqrt = yes; then
11412 cat >>confdefs.h
<<_ACEOF
11413 #define HAVE_LIBM 1
11421 # Check for mail-locking functions in a "mail" library. Probably this should
11422 # have the same check as for liblockfile below.
11424 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
11425 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
11426 if test "${ac_cv_lib_mail_maillock+set}" = set; then
11427 echo $ECHO_N "(cached) $ECHO_C" >&6
11429 ac_check_lib_save_LIBS
=$LIBS
11430 LIBS
="-lmail $LIBS"
11431 cat >conftest.
$ac_ext <<_ACEOF
11432 #line $LINENO "configure"
11435 cat confdefs.h
>>conftest.
$ac_ext
11436 cat >>conftest.
$ac_ext <<_ACEOF
11437 /* end confdefs.h. */
11439 /* Override any gcc2 internal prototype to avoid an error. */
11443 /* We use char because int might match the return type of a gcc2
11444 builtin and then its argument prototype would still apply. */
11454 rm -f conftest.
$ac_objext conftest
$ac_exeext
11455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11456 (eval $ac_link) 2>&5
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); } &&
11460 { ac_try
='test -s conftest$ac_exeext'
11461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11462 (eval $ac_try) 2>&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); }; }; then
11466 ac_cv_lib_mail_maillock
=yes
11468 echo "$as_me: failed program was:" >&5
11469 sed 's/^/| /' conftest.
$ac_ext >&5
11471 ac_cv_lib_mail_maillock
=no
11473 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11474 LIBS
=$ac_check_lib_save_LIBS
11476 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
11477 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
11478 if test $ac_cv_lib_mail_maillock = yes; then
11479 cat >>confdefs.h
<<_ACEOF
11480 #define HAVE_LIBMAIL 1
11483 LIBS
="-lmail $LIBS"
11488 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
11489 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
11490 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
11491 echo $ECHO_N "(cached) $ECHO_C" >&6
11493 ac_check_lib_save_LIBS
=$LIBS
11494 LIBS
="-llockfile $LIBS"
11495 cat >conftest.
$ac_ext <<_ACEOF
11496 #line $LINENO "configure"
11499 cat confdefs.h
>>conftest.
$ac_ext
11500 cat >>conftest.
$ac_ext <<_ACEOF
11501 /* end confdefs.h. */
11503 /* Override any gcc2 internal prototype to avoid an error. */
11507 /* We use char because int might match the return type of a gcc2
11508 builtin and then its argument prototype would still apply. */
11518 rm -f conftest.
$ac_objext conftest
$ac_exeext
11519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11520 (eval $ac_link) 2>&5
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); } &&
11524 { ac_try
='test -s conftest$ac_exeext'
11525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526 (eval $ac_try) 2>&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }; }; then
11530 ac_cv_lib_lockfile_maillock
=yes
11532 echo "$as_me: failed program was:" >&5
11533 sed 's/^/| /' conftest.
$ac_ext >&5
11535 ac_cv_lib_lockfile_maillock
=no
11537 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11538 LIBS
=$ac_check_lib_save_LIBS
11540 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
11541 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
11542 if test $ac_cv_lib_lockfile_maillock = yes; then
11543 cat >>confdefs.h
<<_ACEOF
11544 #define HAVE_LIBLOCKFILE 1
11547 LIBS
="-llockfile $LIBS"
11551 # If we have the shared liblockfile, assume we must use it for mail
11552 # locking (e.g. Debian). If we couldn't link against liblockfile
11553 # (no liblockfile.a installed), ensure that we don't need to.
11554 if test "$ac_cv_lib_lockfile_maillock" = no
; then
11555 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11556 set dummy liblockfile.so
; ac_word
=$2
11557 echo "$as_me:$LINENO: checking for $ac_word" >&5
11558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11559 if test "${ac_cv_prog_liblockfile+set}" = set; then
11560 echo $ECHO_N "(cached) $ECHO_C" >&6
11562 if test -n "$liblockfile"; then
11563 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
11565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11566 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11567 for as_dir
in $as_dummy
11570 test -z "$as_dir" && as_dir
=.
11571 for ac_exec_ext
in '' $ac_executable_extensions; do
11572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11573 ac_cv_prog_liblockfile
="yes"
11574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11580 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
11583 liblockfile
=$ac_cv_prog_liblockfile
11584 if test -n "$liblockfile"; then
11585 echo "$as_me:$LINENO: result: $liblockfile" >&5
11586 echo "${ECHO_T}$liblockfile" >&6
11588 echo "$as_me:$LINENO: result: no" >&5
11589 echo "${ECHO_T}no" >&6
11592 if test $ac_cv_prog_liblockfile = yes; then
11593 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
11594 This probably means that movemail could lose mail.
11595 There may be a \`development' package to install containing liblockfile." >&5
11596 echo "$as_me: error: Shared liblockfile found but can't link against it.
11597 This probably means that movemail could lose mail.
11598 There may be a \`development' package to install containing liblockfile." >&2;}
11599 { (exit 1); exit 1; }; }
11604 for ac_func
in touchlock
11606 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11607 echo "$as_me:$LINENO: checking for $ac_func" >&5
11608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11609 if eval "test \"\${$as_ac_var+set}\" = set"; then
11610 echo $ECHO_N "(cached) $ECHO_C" >&6
11612 cat >conftest.
$ac_ext <<_ACEOF
11613 #line $LINENO "configure"
11616 cat confdefs.h
>>conftest.
$ac_ext
11617 cat >>conftest.
$ac_ext <<_ACEOF
11618 /* end confdefs.h. */
11619 /* System header to define __stub macros and hopefully few prototypes,
11620 which can conflict with char $ac_func (); below.
11621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11622 <limits.h> exists even on freestanding compilers. */
11624 # include <limits.h>
11626 # include <assert.h>
11628 /* Override any gcc2 internal prototype to avoid an error. */
11633 /* We use char because int might match the return type of a gcc2
11634 builtin and then its argument prototype would still apply. */
11636 /* The GNU C library defines this for functions which it implements
11637 to always fail with ENOSYS. Some functions are actually named
11638 something starting with __ and the normal name is an alias. */
11639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11642 char (*f) () = $ac_func;
11651 return f != $ac_func;
11656 rm -f conftest.
$ac_objext conftest
$ac_exeext
11657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11658 (eval $ac_link) 2>&5
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); } &&
11662 { ac_try
='test -s conftest$ac_exeext'
11663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11664 (eval $ac_try) 2>&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); }; }; then
11668 eval "$as_ac_var=yes"
11670 echo "$as_me: failed program was:" >&5
11671 sed 's/^/| /' conftest.
$ac_ext >&5
11673 eval "$as_ac_var=no"
11675 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11678 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11679 if test `eval echo '${'$as_ac_var'}'` = yes; then
11680 cat >>confdefs.h
<<_ACEOF
11681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11688 for ac_header
in maillock.h
11690 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11692 echo "$as_me:$LINENO: checking for $ac_header" >&5
11693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11695 echo $ECHO_N "(cached) $ECHO_C" >&6
11697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11698 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11700 # Is the header compilable?
11701 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11702 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11703 cat >conftest.
$ac_ext <<_ACEOF
11704 #line $LINENO "configure"
11707 cat confdefs.h
>>conftest.
$ac_ext
11708 cat >>conftest.
$ac_ext <<_ACEOF
11709 /* end confdefs.h. */
11710 $ac_includes_default
11711 #include <$ac_header>
11713 rm -f conftest.
$ac_objext
11714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11715 (eval $ac_compile) 2>&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } &&
11719 { ac_try
='test -s conftest.$ac_objext'
11720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721 (eval $ac_try) 2>&5
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); }; }; then
11725 ac_header_compiler
=yes
11727 echo "$as_me: failed program was:" >&5
11728 sed 's/^/| /' conftest.
$ac_ext >&5
11730 ac_header_compiler
=no
11732 rm -f conftest.
$ac_objext conftest.
$ac_ext
11733 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11734 echo "${ECHO_T}$ac_header_compiler" >&6
11736 # Is the header present?
11737 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11739 cat >conftest.
$ac_ext <<_ACEOF
11740 #line $LINENO "configure"
11743 cat confdefs.h
>>conftest.
$ac_ext
11744 cat >>conftest.
$ac_ext <<_ACEOF
11745 /* end confdefs.h. */
11746 #include <$ac_header>
11748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11749 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11751 grep -v '^ *+' conftest.er1
>conftest.err
11753 cat conftest.err
>&5
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); } >/dev
/null
; then
11756 if test -s conftest.err
; then
11757 ac_cpp_err
=$ac_c_preproc_warn_flag
11764 if test -z "$ac_cpp_err"; then
11765 ac_header_preproc
=yes
11767 echo "$as_me: failed program was:" >&5
11768 sed 's/^/| /' conftest.
$ac_ext >&5
11770 ac_header_preproc
=no
11772 rm -f conftest.err conftest.
$ac_ext
11773 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11774 echo "${ECHO_T}$ac_header_preproc" >&6
11776 # So? What about this header?
11777 case $ac_header_compiler:$ac_header_preproc in
11779 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11780 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11785 ## ------------------------------------ ##
11786 ## Report this to bug-autoconf@gnu.org. ##
11787 ## ------------------------------------ ##
11790 sed "s/^/$as_me: WARNING: /" >&2
11793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11801 ## ------------------------------------ ##
11802 ## Report this to bug-autoconf@gnu.org. ##
11803 ## ------------------------------------ ##
11806 sed "s/^/$as_me: WARNING: /" >&2
11809 echo "$as_me:$LINENO: checking for $ac_header" >&5
11810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11812 echo $ECHO_N "(cached) $ECHO_C" >&6
11814 eval "$as_ac_Header=$ac_header_preproc"
11816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11821 cat >>confdefs.h
<<_ACEOF
11822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11897 for ac_func
in gethostname getdomainname dup2 \
11898 rename closedir mkdir
rmdir sysinfo \
11899 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
11900 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
11901 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11902 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11903 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11904 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
11905 memset memcmp memmove difftime memcpy mempcpy mblen mbrlen posix_memalign
11907 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11908 echo "$as_me:$LINENO: checking for $ac_func" >&5
11909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11910 if eval "test \"\${$as_ac_var+set}\" = set"; then
11911 echo $ECHO_N "(cached) $ECHO_C" >&6
11913 cat >conftest.
$ac_ext <<_ACEOF
11914 #line $LINENO "configure"
11917 cat confdefs.h
>>conftest.
$ac_ext
11918 cat >>conftest.
$ac_ext <<_ACEOF
11919 /* end confdefs.h. */
11920 /* System header to define __stub macros and hopefully few prototypes,
11921 which can conflict with char $ac_func (); below.
11922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11923 <limits.h> exists even on freestanding compilers. */
11925 # include <limits.h>
11927 # include <assert.h>
11929 /* Override any gcc2 internal prototype to avoid an error. */
11934 /* We use char because int might match the return type of a gcc2
11935 builtin and then its argument prototype would still apply. */
11937 /* The GNU C library defines this for functions which it implements
11938 to always fail with ENOSYS. Some functions are actually named
11939 something starting with __ and the normal name is an alias. */
11940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11943 char (*f) () = $ac_func;
11952 return f != $ac_func;
11957 rm -f conftest.
$ac_objext conftest
$ac_exeext
11958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11959 (eval $ac_link) 2>&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); } &&
11963 { ac_try
='test -s conftest$ac_exeext'
11964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11965 (eval $ac_try) 2>&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); }; }; then
11969 eval "$as_ac_var=yes"
11971 echo "$as_me: failed program was:" >&5
11972 sed 's/^/| /' conftest.
$ac_ext >&5
11974 eval "$as_ac_var=no"
11976 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11980 if test `eval echo '${'$as_ac_var'}'` = yes; then
11981 cat >>confdefs.h
<<_ACEOF
11982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11990 for ac_header
in sys
/un.h
11992 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11994 echo "$as_me:$LINENO: checking for $ac_header" >&5
11995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11997 echo $ECHO_N "(cached) $ECHO_C" >&6
11999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12002 # Is the header compilable?
12003 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12005 cat >conftest.
$ac_ext <<_ACEOF
12006 #line $LINENO "configure"
12009 cat confdefs.h
>>conftest.
$ac_ext
12010 cat >>conftest.
$ac_ext <<_ACEOF
12011 /* end confdefs.h. */
12012 $ac_includes_default
12013 #include <$ac_header>
12015 rm -f conftest.
$ac_objext
12016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12017 (eval $ac_compile) 2>&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); } &&
12021 { ac_try
='test -s conftest.$ac_objext'
12022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12023 (eval $ac_try) 2>&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); }; }; then
12027 ac_header_compiler
=yes
12029 echo "$as_me: failed program was:" >&5
12030 sed 's/^/| /' conftest.
$ac_ext >&5
12032 ac_header_compiler
=no
12034 rm -f conftest.
$ac_objext conftest.
$ac_ext
12035 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12036 echo "${ECHO_T}$ac_header_compiler" >&6
12038 # Is the header present?
12039 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12040 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12041 cat >conftest.
$ac_ext <<_ACEOF
12042 #line $LINENO "configure"
12045 cat confdefs.h
>>conftest.
$ac_ext
12046 cat >>conftest.
$ac_ext <<_ACEOF
12047 /* end confdefs.h. */
12048 #include <$ac_header>
12050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12051 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12053 grep -v '^ *+' conftest.er1
>conftest.err
12055 cat conftest.err
>&5
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); } >/dev
/null
; then
12058 if test -s conftest.err
; then
12059 ac_cpp_err
=$ac_c_preproc_warn_flag
12066 if test -z "$ac_cpp_err"; then
12067 ac_header_preproc
=yes
12069 echo "$as_me: failed program was:" >&5
12070 sed 's/^/| /' conftest.
$ac_ext >&5
12072 ac_header_preproc
=no
12074 rm -f conftest.err conftest.
$ac_ext
12075 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12076 echo "${ECHO_T}$ac_header_preproc" >&6
12078 # So? What about this header?
12079 case $ac_header_compiler:$ac_header_preproc in
12081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12082 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12087 ## ------------------------------------ ##
12088 ## Report this to bug-autoconf@gnu.org. ##
12089 ## ------------------------------------ ##
12092 sed "s/^/$as_me: WARNING: /" >&2
12095 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12096 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12097 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12098 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12103 ## ------------------------------------ ##
12104 ## Report this to bug-autoconf@gnu.org. ##
12105 ## ------------------------------------ ##
12108 sed "s/^/$as_me: WARNING: /" >&2
12111 echo "$as_me:$LINENO: checking for $ac_header" >&5
12112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12114 echo $ECHO_N "(cached) $ECHO_C" >&6
12116 eval "$as_ac_Header=$ac_header_preproc"
12118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12119 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12123 cat >>confdefs.h
<<_ACEOF
12124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12134 for ac_header
in sys
/time.h unistd.h
12136 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12138 echo "$as_me:$LINENO: checking for $ac_header" >&5
12139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12141 echo $ECHO_N "(cached) $ECHO_C" >&6
12143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12146 # Is the header compilable?
12147 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12148 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12149 cat >conftest.
$ac_ext <<_ACEOF
12150 #line $LINENO "configure"
12153 cat confdefs.h
>>conftest.
$ac_ext
12154 cat >>conftest.
$ac_ext <<_ACEOF
12155 /* end confdefs.h. */
12156 $ac_includes_default
12157 #include <$ac_header>
12159 rm -f conftest.
$ac_objext
12160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12161 (eval $ac_compile) 2>&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); } &&
12165 { ac_try
='test -s conftest.$ac_objext'
12166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12167 (eval $ac_try) 2>&5
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); }; }; then
12171 ac_header_compiler
=yes
12173 echo "$as_me: failed program was:" >&5
12174 sed 's/^/| /' conftest.
$ac_ext >&5
12176 ac_header_compiler
=no
12178 rm -f conftest.
$ac_objext conftest.
$ac_ext
12179 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12180 echo "${ECHO_T}$ac_header_compiler" >&6
12182 # Is the header present?
12183 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12184 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12185 cat >conftest.
$ac_ext <<_ACEOF
12186 #line $LINENO "configure"
12189 cat confdefs.h
>>conftest.
$ac_ext
12190 cat >>conftest.
$ac_ext <<_ACEOF
12191 /* end confdefs.h. */
12192 #include <$ac_header>
12194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12195 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12197 grep -v '^ *+' conftest.er1
>conftest.err
12199 cat conftest.err
>&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); } >/dev
/null
; then
12202 if test -s conftest.err
; then
12203 ac_cpp_err
=$ac_c_preproc_warn_flag
12210 if test -z "$ac_cpp_err"; then
12211 ac_header_preproc
=yes
12213 echo "$as_me: failed program was:" >&5
12214 sed 's/^/| /' conftest.
$ac_ext >&5
12216 ac_header_preproc
=no
12218 rm -f conftest.err conftest.
$ac_ext
12219 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12220 echo "${ECHO_T}$ac_header_preproc" >&6
12222 # So? What about this header?
12223 case $ac_header_compiler:$ac_header_preproc in
12225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12231 ## ------------------------------------ ##
12232 ## Report this to bug-autoconf@gnu.org. ##
12233 ## ------------------------------------ ##
12236 sed "s/^/$as_me: WARNING: /" >&2
12239 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12240 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12241 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12242 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12244 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12247 ## ------------------------------------ ##
12248 ## Report this to bug-autoconf@gnu.org. ##
12249 ## ------------------------------------ ##
12252 sed "s/^/$as_me: WARNING: /" >&2
12255 echo "$as_me:$LINENO: checking for $ac_header" >&5
12256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12258 echo $ECHO_N "(cached) $ECHO_C" >&6
12260 eval "$as_ac_Header=$ac_header_preproc"
12262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12267 cat >>confdefs.h
<<_ACEOF
12268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12276 for ac_func
in alarm
12278 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12279 echo "$as_me:$LINENO: checking for $ac_func" >&5
12280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12281 if eval "test \"\${$as_ac_var+set}\" = set"; then
12282 echo $ECHO_N "(cached) $ECHO_C" >&6
12284 cat >conftest.
$ac_ext <<_ACEOF
12285 #line $LINENO "configure"
12288 cat confdefs.h
>>conftest.
$ac_ext
12289 cat >>conftest.
$ac_ext <<_ACEOF
12290 /* end confdefs.h. */
12291 /* System header to define __stub macros and hopefully few prototypes,
12292 which can conflict with char $ac_func (); below.
12293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12294 <limits.h> exists even on freestanding compilers. */
12296 # include <limits.h>
12298 # include <assert.h>
12300 /* Override any gcc2 internal prototype to avoid an error. */
12305 /* We use char because int might match the return type of a gcc2
12306 builtin and then its argument prototype would still apply. */
12308 /* The GNU C library defines this for functions which it implements
12309 to always fail with ENOSYS. Some functions are actually named
12310 something starting with __ and the normal name is an alias. */
12311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12314 char (*f) () = $ac_func;
12323 return f != $ac_func;
12328 rm -f conftest.
$ac_objext conftest
$ac_exeext
12329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12330 (eval $ac_link) 2>&5
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); } &&
12334 { ac_try
='test -s conftest$ac_exeext'
12335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12336 (eval $ac_try) 2>&5
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); }; }; then
12340 eval "$as_ac_var=yes"
12342 echo "$as_me: failed program was:" >&5
12343 sed 's/^/| /' conftest.
$ac_ext >&5
12345 eval "$as_ac_var=no"
12347 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12350 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12351 if test `eval echo '${'$as_ac_var'}'` = yes; then
12352 cat >>confdefs.h
<<_ACEOF
12353 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12359 echo "$as_me:$LINENO: checking for working mktime" >&5
12360 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
12361 if test "${ac_cv_func_working_mktime+set}" = set; then
12362 echo $ECHO_N "(cached) $ECHO_C" >&6
12364 if test "$cross_compiling" = yes; then
12365 ac_cv_func_working_mktime
=no
12367 cat >conftest.
$ac_ext <<_ACEOF
12368 #line $LINENO "configure"
12371 cat confdefs.h
>>conftest.
$ac_ext
12372 cat >>conftest.
$ac_ext <<_ACEOF
12373 /* end confdefs.h. */
12374 /* Test program from Paul Eggert and Tony Leneis. */
12375 #if TIME_WITH_SYS_TIME
12376 # include <sys/time.h>
12379 # if HAVE_SYS_TIME_H
12380 # include <sys/time.h>
12387 # include <unistd.h>
12391 # define alarm(X) /* empty */
12394 /* Work around redefinition to rpl_putenv by other config tests. */
12397 static time_t time_t_max;
12399 /* Values we'll use to set the TZ environment variable. */
12400 static const char *const tz_strings[] = {
12401 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
12402 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
12404 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
12406 /* Fail if mktime fails to convert a date in the spring-forward gap.
12407 Based on a problem report from Andreas Jaeger. */
12409 spring_forward_gap ()
12411 /* glibc (up to about 1998-10-07) failed this test. */
12414 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12415 instead of "TZ=America/Vancouver" in order to detect the bug even
12416 on systems that don't support the Olson extension, or don't have the
12417 full zoneinfo tables installed. */
12418 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
12427 if (mktime (&tm) == (time_t)-1)
12436 if ((lt = localtime (&now)) && mktime (lt) != now)
12438 now = time_t_max - now;
12439 if ((lt = localtime (&now)) && mktime (lt) != now)
12446 /* Based on code from Ariel Faigon. */
12456 if (tm.tm_mon != 2 || tm.tm_mday != 31)
12466 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12467 now = mktime (&tm);
12468 if (now != (time_t) -1)
12470 struct tm *lt = localtime (&now);
12472 && lt->tm_year == tm.tm_year
12473 && lt->tm_mon == tm.tm_mon
12474 && lt->tm_mday == tm.tm_mday
12475 && lt->tm_hour == tm.tm_hour
12476 && lt->tm_min == tm.tm_min
12477 && lt->tm_sec == tm.tm_sec
12478 && lt->tm_yday == tm.tm_yday
12479 && lt->tm_wday == tm.tm_wday
12480 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12481 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12492 /* This test makes some buggy mktime implementations loop.
12493 Give up after 60 seconds; a mktime slower than that
12494 isn't worth using anyway. */
12497 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
12500 delta = time_t_max / 997; /* a suitable prime number */
12501 for (i = 0; i < N_STRINGS; i++)
12504 putenv (tz_strings[i]);
12506 for (t = 0; t <= time_t_max - delta; t += delta)
12508 mktime_test ((time_t) 60 * 60);
12509 mktime_test ((time_t) 60 * 60 * 24);
12511 for (j = 1; 0 < j; j *= 2)
12513 bigtime_test (j - 1);
12516 spring_forward_gap ();
12520 rm -f conftest
$ac_exeext
12521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12522 (eval $ac_link) 2>&5
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12527 (eval $ac_try) 2>&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); }; }; then
12531 ac_cv_func_working_mktime
=yes
12533 echo "$as_me: program exited with status $ac_status" >&5
12534 echo "$as_me: failed program was:" >&5
12535 sed 's/^/| /' conftest.
$ac_ext >&5
12537 ( exit $ac_status )
12538 ac_cv_func_working_mktime
=no
12540 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12543 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
12544 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
12545 if test $ac_cv_func_working_mktime = no
; then
12546 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
12549 if test "$ac_cv_func_working_mktime" = no
; then
12551 cat >>confdefs.h
<<\_ACEOF
12552 #define BROKEN_MKTIME 1
12557 ac_have_func
=no
# yes means we've found a way to get the load average.
12559 # Make sure getloadavg.c is where it belongs, at configure-time.
12560 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12561 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
12562 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
12563 { (exit 1); exit 1; }; }
12567 # Check for getloadavg, but be sure not to touch the cache variable.
12568 (echo "$as_me:$LINENO: checking for getloadavg" >&5
12569 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
12570 if test "${ac_cv_func_getloadavg+set}" = set; then
12571 echo $ECHO_N "(cached) $ECHO_C" >&6
12573 cat >conftest.
$ac_ext <<_ACEOF
12574 #line $LINENO "configure"
12577 cat confdefs.h
>>conftest.
$ac_ext
12578 cat >>conftest.
$ac_ext <<_ACEOF
12579 /* end confdefs.h. */
12580 /* System header to define __stub macros and hopefully few prototypes,
12581 which can conflict with char getloadavg (); below.
12582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12583 <limits.h> exists even on freestanding compilers. */
12585 # include <limits.h>
12587 # include <assert.h>
12589 /* Override any gcc2 internal prototype to avoid an error. */
12594 /* We use char because int might match the return type of a gcc2
12595 builtin and then its argument prototype would still apply. */
12596 char getloadavg ();
12597 /* The GNU C library defines this for functions which it implements
12598 to always fail with ENOSYS. Some functions are actually named
12599 something starting with __ and the normal name is an alias. */
12600 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
12603 char (*f) () = getloadavg;
12612 return f != getloadavg;
12617 rm -f conftest.
$ac_objext conftest
$ac_exeext
12618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12619 (eval $ac_link) 2>&5
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); } &&
12623 { ac_try
='test -s conftest$ac_exeext'
12624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12625 (eval $ac_try) 2>&5
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); }; }; then
12629 ac_cv_func_getloadavg
=yes
12631 echo "$as_me: failed program was:" >&5
12632 sed 's/^/| /' conftest.
$ac_ext >&5
12634 ac_cv_func_getloadavg
=no
12636 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12638 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
12639 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
12640 if test $ac_cv_func_getloadavg = yes; then
12645 ) && ac_have_func
=yes
12647 # On HPUX9, an unprivileged user can get load averages through this function.
12649 for ac_func
in pstat_getdynamic
12651 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12652 echo "$as_me:$LINENO: checking for $ac_func" >&5
12653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12654 if eval "test \"\${$as_ac_var+set}\" = set"; then
12655 echo $ECHO_N "(cached) $ECHO_C" >&6
12657 cat >conftest.
$ac_ext <<_ACEOF
12658 #line $LINENO "configure"
12661 cat confdefs.h
>>conftest.
$ac_ext
12662 cat >>conftest.
$ac_ext <<_ACEOF
12663 /* end confdefs.h. */
12664 /* System header to define __stub macros and hopefully few prototypes,
12665 which can conflict with char $ac_func (); below.
12666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12667 <limits.h> exists even on freestanding compilers. */
12669 # include <limits.h>
12671 # include <assert.h>
12673 /* Override any gcc2 internal prototype to avoid an error. */
12678 /* We use char because int might match the return type of a gcc2
12679 builtin and then its argument prototype would still apply. */
12681 /* The GNU C library defines this for functions which it implements
12682 to always fail with ENOSYS. Some functions are actually named
12683 something starting with __ and the normal name is an alias. */
12684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12687 char (*f) () = $ac_func;
12696 return f != $ac_func;
12701 rm -f conftest.
$ac_objext conftest
$ac_exeext
12702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12703 (eval $ac_link) 2>&5
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); } &&
12707 { ac_try
='test -s conftest$ac_exeext'
12708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12709 (eval $ac_try) 2>&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; }; then
12713 eval "$as_ac_var=yes"
12715 echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.
$ac_ext >&5
12718 eval "$as_ac_var=no"
12720 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12723 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12724 if test `eval echo '${'$as_ac_var'}'` = yes; then
12725 cat >>confdefs.h
<<_ACEOF
12726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12733 # Solaris has libkstat which does not require root.
12735 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
12736 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
12737 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
12738 echo $ECHO_N "(cached) $ECHO_C" >&6
12740 ac_check_lib_save_LIBS
=$LIBS
12741 LIBS
="-lkstat $LIBS"
12742 cat >conftest.
$ac_ext <<_ACEOF
12743 #line $LINENO "configure"
12746 cat confdefs.h
>>conftest.
$ac_ext
12747 cat >>conftest.
$ac_ext <<_ACEOF
12748 /* end confdefs.h. */
12750 /* Override any gcc2 internal prototype to avoid an error. */
12754 /* We use char because int might match the return type of a gcc2
12755 builtin and then its argument prototype would still apply. */
12756 char kstat_open ();
12765 rm -f conftest.
$ac_objext conftest
$ac_exeext
12766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12767 (eval $ac_link) 2>&5
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); } &&
12771 { ac_try
='test -s conftest$ac_exeext'
12772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12773 (eval $ac_try) 2>&5
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); }; }; then
12777 ac_cv_lib_kstat_kstat_open
=yes
12779 echo "$as_me: failed program was:" >&5
12780 sed 's/^/| /' conftest.
$ac_ext >&5
12782 ac_cv_lib_kstat_kstat_open
=no
12784 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12785 LIBS
=$ac_check_lib_save_LIBS
12787 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
12788 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
12789 if test $ac_cv_lib_kstat_kstat_open = yes; then
12790 cat >>confdefs.h
<<_ACEOF
12791 #define HAVE_LIBKSTAT 1
12794 LIBS
="-lkstat $LIBS"
12798 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
12800 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12801 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12802 # to get the right answer into the cache.
12803 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12804 if test $ac_have_func = no
; then
12805 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
12806 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
12807 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
12808 echo $ECHO_N "(cached) $ECHO_C" >&6
12810 ac_check_lib_save_LIBS
=$LIBS
12812 cat >conftest.
$ac_ext <<_ACEOF
12813 #line $LINENO "configure"
12816 cat confdefs.h
>>conftest.
$ac_ext
12817 cat >>conftest.
$ac_ext <<_ACEOF
12818 /* end confdefs.h. */
12820 /* Override any gcc2 internal prototype to avoid an error. */
12824 /* We use char because int might match the return type of a gcc2
12825 builtin and then its argument prototype would still apply. */
12835 rm -f conftest.
$ac_objext conftest
$ac_exeext
12836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12837 (eval $ac_link) 2>&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); } &&
12841 { ac_try
='test -s conftest$ac_exeext'
12842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12843 (eval $ac_try) 2>&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); }; }; then
12847 ac_cv_lib_elf_elf_begin
=yes
12849 echo "$as_me: failed program was:" >&5
12850 sed 's/^/| /' conftest.
$ac_ext >&5
12852 ac_cv_lib_elf_elf_begin
=no
12854 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12855 LIBS
=$ac_check_lib_save_LIBS
12857 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
12858 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
12859 if test $ac_cv_lib_elf_elf_begin = yes; then
12864 if test $ac_have_func = no
; then
12865 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
12866 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
12867 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
12868 echo $ECHO_N "(cached) $ECHO_C" >&6
12870 ac_check_lib_save_LIBS
=$LIBS
12872 cat >conftest.
$ac_ext <<_ACEOF
12873 #line $LINENO "configure"
12876 cat confdefs.h
>>conftest.
$ac_ext
12877 cat >>conftest.
$ac_ext <<_ACEOF
12878 /* end confdefs.h. */
12880 /* Override any gcc2 internal prototype to avoid an error. */
12884 /* We use char because int might match the return type of a gcc2
12885 builtin and then its argument prototype would still apply. */
12895 rm -f conftest.
$ac_objext conftest
$ac_exeext
12896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12897 (eval $ac_link) 2>&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); } &&
12901 { ac_try
='test -s conftest$ac_exeext'
12902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12903 (eval $ac_try) 2>&5
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); }; }; then
12907 ac_cv_lib_kvm_kvm_open
=yes
12909 echo "$as_me: failed program was:" >&5
12910 sed 's/^/| /' conftest.
$ac_ext >&5
12912 ac_cv_lib_kvm_kvm_open
=no
12914 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12915 LIBS
=$ac_check_lib_save_LIBS
12917 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
12918 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
12919 if test $ac_cv_lib_kvm_kvm_open = yes; then
12923 # Check for the 4.4BSD definition of getloadavg.
12924 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
12925 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
12926 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
12927 echo $ECHO_N "(cached) $ECHO_C" >&6
12929 ac_check_lib_save_LIBS
=$LIBS
12930 LIBS
="-lutil $LIBS"
12931 cat >conftest.
$ac_ext <<_ACEOF
12932 #line $LINENO "configure"
12935 cat confdefs.h
>>conftest.
$ac_ext
12936 cat >>conftest.
$ac_ext <<_ACEOF
12937 /* end confdefs.h. */
12939 /* Override any gcc2 internal prototype to avoid an error. */
12943 /* We use char because int might match the return type of a gcc2
12944 builtin and then its argument prototype would still apply. */
12945 char getloadavg ();
12954 rm -f conftest.
$ac_objext conftest
$ac_exeext
12955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12956 (eval $ac_link) 2>&5
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); } &&
12960 { ac_try
='test -s conftest$ac_exeext'
12961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12962 (eval $ac_try) 2>&5
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); }; }; then
12966 ac_cv_lib_util_getloadavg
=yes
12968 echo "$as_me: failed program was:" >&5
12969 sed 's/^/| /' conftest.
$ac_ext >&5
12971 ac_cv_lib_util_getloadavg
=no
12973 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12974 LIBS
=$ac_check_lib_save_LIBS
12976 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
12977 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
12978 if test $ac_cv_lib_util_getloadavg = yes; then
12979 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
12984 if test $ac_have_func = no
; then
12985 # There is a commonly available library for RS/6000 AIX.
12986 # Since it is not a standard part of AIX, it might be installed locally.
12987 ac_getloadavg_LIBS
=$LIBS
12988 LIBS
="-L/usr/local/lib $LIBS"
12989 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
12990 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
12991 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
12992 echo $ECHO_N "(cached) $ECHO_C" >&6
12994 ac_check_lib_save_LIBS
=$LIBS
12995 LIBS
="-lgetloadavg $LIBS"
12996 cat >conftest.
$ac_ext <<_ACEOF
12997 #line $LINENO "configure"
13000 cat confdefs.h
>>conftest.
$ac_ext
13001 cat >>conftest.
$ac_ext <<_ACEOF
13002 /* end confdefs.h. */
13004 /* Override any gcc2 internal prototype to avoid an error. */
13008 /* We use char because int might match the return type of a gcc2
13009 builtin and then its argument prototype would still apply. */
13010 char getloadavg ();
13019 rm -f conftest.
$ac_objext conftest
$ac_exeext
13020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13021 (eval $ac_link) 2>&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); } &&
13025 { ac_try
='test -s conftest$ac_exeext'
13026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13027 (eval $ac_try) 2>&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); }; }; then
13031 ac_cv_lib_getloadavg_getloadavg
=yes
13033 echo "$as_me: failed program was:" >&5
13034 sed 's/^/| /' conftest.
$ac_ext >&5
13036 ac_cv_lib_getloadavg_getloadavg
=no
13038 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13039 LIBS
=$ac_check_lib_save_LIBS
13041 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
13042 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
13043 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
13044 LIBS
="-lgetloadavg $LIBS"
13046 LIBS
=$ac_getloadavg_LIBS
13051 # Make sure it is really in the library, if we think we found it,
13052 # otherwise set up the replacement function.
13054 for ac_func
in getloadavg
13056 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13057 echo "$as_me:$LINENO: checking for $ac_func" >&5
13058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13059 if eval "test \"\${$as_ac_var+set}\" = set"; then
13060 echo $ECHO_N "(cached) $ECHO_C" >&6
13062 cat >conftest.
$ac_ext <<_ACEOF
13063 #line $LINENO "configure"
13066 cat confdefs.h
>>conftest.
$ac_ext
13067 cat >>conftest.
$ac_ext <<_ACEOF
13068 /* end confdefs.h. */
13069 /* System header to define __stub macros and hopefully few prototypes,
13070 which can conflict with char $ac_func (); below.
13071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13072 <limits.h> exists even on freestanding compilers. */
13074 # include <limits.h>
13076 # include <assert.h>
13078 /* Override any gcc2 internal prototype to avoid an error. */
13083 /* We use char because int might match the return type of a gcc2
13084 builtin and then its argument prototype would still apply. */
13086 /* The GNU C library defines this for functions which it implements
13087 to always fail with ENOSYS. Some functions are actually named
13088 something starting with __ and the normal name is an alias. */
13089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13092 char (*f) () = $ac_func;
13101 return f != $ac_func;
13106 rm -f conftest.
$ac_objext conftest
$ac_exeext
13107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13108 (eval $ac_link) 2>&5
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); } &&
13112 { ac_try
='test -s conftest$ac_exeext'
13113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114 (eval $ac_try) 2>&5
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); }; }; then
13118 eval "$as_ac_var=yes"
13120 echo "$as_me: failed program was:" >&5
13121 sed 's/^/| /' conftest.
$ac_ext >&5
13123 eval "$as_ac_var=no"
13125 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13128 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13129 if test `eval echo '${'$as_ac_var'}'` = yes; then
13130 cat >>confdefs.h
<<_ACEOF
13131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13135 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
13137 cat >>confdefs.h
<<\_ACEOF
13138 #define C_GETLOADAVG 1
13141 # Figure out what our getloadavg.c needs.
13143 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
13144 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
13145 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
13146 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
13147 echo $ECHO_N "(cached) $ECHO_C" >&6
13149 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
13150 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
13152 # Is the header compilable?
13153 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
13154 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
13155 cat >conftest.
$ac_ext <<_ACEOF
13156 #line $LINENO "configure"
13159 cat confdefs.h
>>conftest.
$ac_ext
13160 cat >>conftest.
$ac_ext <<_ACEOF
13161 /* end confdefs.h. */
13162 $ac_includes_default
13163 #include <sys/dg_sys_info.h>
13165 rm -f conftest.
$ac_objext
13166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13167 (eval $ac_compile) 2>&5
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); } &&
13171 { ac_try
='test -s conftest.$ac_objext'
13172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13173 (eval $ac_try) 2>&5
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); }; }; then
13177 ac_header_compiler
=yes
13179 echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.
$ac_ext >&5
13182 ac_header_compiler
=no
13184 rm -f conftest.
$ac_objext conftest.
$ac_ext
13185 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13186 echo "${ECHO_T}$ac_header_compiler" >&6
13188 # Is the header present?
13189 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
13190 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
13191 cat >conftest.
$ac_ext <<_ACEOF
13192 #line $LINENO "configure"
13195 cat confdefs.h
>>conftest.
$ac_ext
13196 cat >>conftest.
$ac_ext <<_ACEOF
13197 /* end confdefs.h. */
13198 #include <sys/dg_sys_info.h>
13200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13201 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13203 grep -v '^ *+' conftest.er1
>conftest.err
13205 cat conftest.err
>&5
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); } >/dev
/null
; then
13208 if test -s conftest.err
; then
13209 ac_cpp_err
=$ac_c_preproc_warn_flag
13216 if test -z "$ac_cpp_err"; then
13217 ac_header_preproc
=yes
13219 echo "$as_me: failed program was:" >&5
13220 sed 's/^/| /' conftest.
$ac_ext >&5
13222 ac_header_preproc
=no
13224 rm -f conftest.err conftest.
$ac_ext
13225 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13226 echo "${ECHO_T}$ac_header_preproc" >&6
13228 # So? What about this header?
13229 case $ac_header_compiler:$ac_header_preproc in
13231 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
13232 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13233 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
13234 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
13237 ## ------------------------------------ ##
13238 ## Report this to bug-autoconf@gnu.org. ##
13239 ## ------------------------------------ ##
13242 sed "s/^/$as_me: WARNING: /" >&2
13245 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
13246 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
13247 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
13248 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
13249 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
13250 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
13253 ## ------------------------------------ ##
13254 ## Report this to bug-autoconf@gnu.org. ##
13255 ## ------------------------------------ ##
13258 sed "s/^/$as_me: WARNING: /" >&2
13261 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
13262 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
13263 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
13264 echo $ECHO_N "(cached) $ECHO_C" >&6
13266 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
13268 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
13269 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
13272 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
13275 cat >>confdefs.h
<<\_ACEOF
13280 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
13281 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
13282 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
13283 echo $ECHO_N "(cached) $ECHO_C" >&6
13285 ac_check_lib_save_LIBS
=$LIBS
13287 cat >conftest.
$ac_ext <<_ACEOF
13288 #line $LINENO "configure"
13291 cat confdefs.h
>>conftest.
$ac_ext
13292 cat >>conftest.
$ac_ext <<_ACEOF
13293 /* end confdefs.h. */
13295 /* Override any gcc2 internal prototype to avoid an error. */
13299 /* We use char because int might match the return type of a gcc2
13300 builtin and then its argument prototype would still apply. */
13301 char dg_sys_info ();
13310 rm -f conftest.
$ac_objext conftest
$ac_exeext
13311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13312 (eval $ac_link) 2>&5
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); } &&
13316 { ac_try
='test -s conftest$ac_exeext'
13317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13318 (eval $ac_try) 2>&5
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); }; }; then
13322 ac_cv_lib_dgc_dg_sys_info
=yes
13324 echo "$as_me: failed program was:" >&5
13325 sed 's/^/| /' conftest.
$ac_ext >&5
13327 ac_cv_lib_dgc_dg_sys_info
=no
13329 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13330 LIBS
=$ac_check_lib_save_LIBS
13332 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
13333 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
13334 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
13335 cat >>confdefs.h
<<_ACEOF
13336 #define HAVE_LIBDGC 1
13347 if test "${ac_cv_header_locale_h+set}" = set; then
13348 echo "$as_me:$LINENO: checking for locale.h" >&5
13349 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
13350 if test "${ac_cv_header_locale_h+set}" = set; then
13351 echo $ECHO_N "(cached) $ECHO_C" >&6
13353 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
13354 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
13356 # Is the header compilable?
13357 echo "$as_me:$LINENO: checking locale.h usability" >&5
13358 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
13359 cat >conftest.
$ac_ext <<_ACEOF
13360 #line $LINENO "configure"
13363 cat confdefs.h
>>conftest.
$ac_ext
13364 cat >>conftest.
$ac_ext <<_ACEOF
13365 /* end confdefs.h. */
13366 $ac_includes_default
13367 #include <locale.h>
13369 rm -f conftest.
$ac_objext
13370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13371 (eval $ac_compile) 2>&5
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); } &&
13375 { ac_try
='test -s conftest.$ac_objext'
13376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13377 (eval $ac_try) 2>&5
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); }; }; then
13381 ac_header_compiler
=yes
13383 echo "$as_me: failed program was:" >&5
13384 sed 's/^/| /' conftest.
$ac_ext >&5
13386 ac_header_compiler
=no
13388 rm -f conftest.
$ac_objext conftest.
$ac_ext
13389 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13390 echo "${ECHO_T}$ac_header_compiler" >&6
13392 # Is the header present?
13393 echo "$as_me:$LINENO: checking locale.h presence" >&5
13394 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
13395 cat >conftest.
$ac_ext <<_ACEOF
13396 #line $LINENO "configure"
13399 cat confdefs.h
>>conftest.
$ac_ext
13400 cat >>conftest.
$ac_ext <<_ACEOF
13401 /* end confdefs.h. */
13402 #include <locale.h>
13404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13405 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13407 grep -v '^ *+' conftest.er1
>conftest.err
13409 cat conftest.err
>&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); } >/dev
/null
; then
13412 if test -s conftest.err
; then
13413 ac_cpp_err
=$ac_c_preproc_warn_flag
13420 if test -z "$ac_cpp_err"; then
13421 ac_header_preproc
=yes
13423 echo "$as_me: failed program was:" >&5
13424 sed 's/^/| /' conftest.
$ac_ext >&5
13426 ac_header_preproc
=no
13428 rm -f conftest.err conftest.
$ac_ext
13429 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13430 echo "${ECHO_T}$ac_header_preproc" >&6
13432 # So? What about this header?
13433 case $ac_header_compiler:$ac_header_preproc in
13435 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
13436 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13437 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
13438 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
13441 ## ------------------------------------ ##
13442 ## Report this to bug-autoconf@gnu.org. ##
13443 ## ------------------------------------ ##
13446 sed "s/^/$as_me: WARNING: /" >&2
13449 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
13450 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
13451 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
13452 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
13453 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
13454 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
13457 ## ------------------------------------ ##
13458 ## Report this to bug-autoconf@gnu.org. ##
13459 ## ------------------------------------ ##
13462 sed "s/^/$as_me: WARNING: /" >&2
13465 echo "$as_me:$LINENO: checking for locale.h" >&5
13466 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
13467 if test "${ac_cv_header_locale_h+set}" = set; then
13468 echo $ECHO_N "(cached) $ECHO_C" >&6
13470 ac_cv_header_locale_h
=$ac_header_preproc
13472 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
13473 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
13479 for ac_func
in setlocale
13481 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13482 echo "$as_me:$LINENO: checking for $ac_func" >&5
13483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13484 if eval "test \"\${$as_ac_var+set}\" = set"; then
13485 echo $ECHO_N "(cached) $ECHO_C" >&6
13487 cat >conftest.
$ac_ext <<_ACEOF
13488 #line $LINENO "configure"
13491 cat confdefs.h
>>conftest.
$ac_ext
13492 cat >>conftest.
$ac_ext <<_ACEOF
13493 /* end confdefs.h. */
13494 /* System header to define __stub macros and hopefully few prototypes,
13495 which can conflict with char $ac_func (); below.
13496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13497 <limits.h> exists even on freestanding compilers. */
13499 # include <limits.h>
13501 # include <assert.h>
13503 /* Override any gcc2 internal prototype to avoid an error. */
13508 /* We use char because int might match the return type of a gcc2
13509 builtin and then its argument prototype would still apply. */
13511 /* The GNU C library defines this for functions which it implements
13512 to always fail with ENOSYS. Some functions are actually named
13513 something starting with __ and the normal name is an alias. */
13514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13517 char (*f) () = $ac_func;
13526 return f != $ac_func;
13531 rm -f conftest.
$ac_objext conftest
$ac_exeext
13532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13533 (eval $ac_link) 2>&5
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); } &&
13537 { ac_try
='test -s conftest$ac_exeext'
13538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13539 (eval $ac_try) 2>&5
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); }; }; then
13543 eval "$as_ac_var=yes"
13545 echo "$as_me: failed program was:" >&5
13546 sed 's/^/| /' conftest.
$ac_ext >&5
13548 eval "$as_ac_var=no"
13550 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13553 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13554 if test `eval echo '${'$as_ac_var'}'` = yes; then
13555 cat >>confdefs.h
<<_ACEOF
13556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13563 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13564 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13565 # Irix 4.0.5F has the header but not the library.
13566 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
13569 cat >>confdefs.h
<<\_ACEOF
13575 if test $ac_have_func = no
; then
13576 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13577 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13578 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13579 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13580 echo $ECHO_N "(cached) $ECHO_C" >&6
13582 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13583 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13585 # Is the header compilable?
13586 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
13587 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
13588 cat >conftest.
$ac_ext <<_ACEOF
13589 #line $LINENO "configure"
13592 cat confdefs.h
>>conftest.
$ac_ext
13593 cat >>conftest.
$ac_ext <<_ACEOF
13594 /* end confdefs.h. */
13595 $ac_includes_default
13596 #include <inq_stats/cpustats.h>
13598 rm -f conftest.
$ac_objext
13599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13600 (eval $ac_compile) 2>&5
13602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); } &&
13604 { ac_try
='test -s conftest.$ac_objext'
13605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13606 (eval $ac_try) 2>&5
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); }; }; then
13610 ac_header_compiler
=yes
13612 echo "$as_me: failed program was:" >&5
13613 sed 's/^/| /' conftest.
$ac_ext >&5
13615 ac_header_compiler
=no
13617 rm -f conftest.
$ac_objext conftest.
$ac_ext
13618 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13619 echo "${ECHO_T}$ac_header_compiler" >&6
13621 # Is the header present?
13622 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
13623 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
13624 cat >conftest.
$ac_ext <<_ACEOF
13625 #line $LINENO "configure"
13628 cat confdefs.h
>>conftest.
$ac_ext
13629 cat >>conftest.
$ac_ext <<_ACEOF
13630 /* end confdefs.h. */
13631 #include <inq_stats/cpustats.h>
13633 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13634 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13636 grep -v '^ *+' conftest.er1
>conftest.err
13638 cat conftest.err
>&5
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); } >/dev
/null
; then
13641 if test -s conftest.err
; then
13642 ac_cpp_err
=$ac_c_preproc_warn_flag
13649 if test -z "$ac_cpp_err"; then
13650 ac_header_preproc
=yes
13652 echo "$as_me: failed program was:" >&5
13653 sed 's/^/| /' conftest.
$ac_ext >&5
13655 ac_header_preproc
=no
13657 rm -f conftest.err conftest.
$ac_ext
13658 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13659 echo "${ECHO_T}$ac_header_preproc" >&6
13661 # So? What about this header?
13662 case $ac_header_compiler:$ac_header_preproc in
13664 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13665 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13666 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13667 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13670 ## ------------------------------------ ##
13671 ## Report this to bug-autoconf@gnu.org. ##
13672 ## ------------------------------------ ##
13675 sed "s/^/$as_me: WARNING: /" >&2
13678 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
13679 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
13680 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
13681 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
13682 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13683 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13686 ## ------------------------------------ ##
13687 ## Report this to bug-autoconf@gnu.org. ##
13688 ## ------------------------------------ ##
13691 sed "s/^/$as_me: WARNING: /" >&2
13694 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13695 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13696 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13697 echo $ECHO_N "(cached) $ECHO_C" >&6
13699 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
13701 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13702 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13705 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
13708 cat >>confdefs.h
<<\_ACEOF
13713 cat >>confdefs.h
<<\_ACEOF
13722 if test $ac_have_func = no
; then
13723 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13724 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13725 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13726 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13727 echo $ECHO_N "(cached) $ECHO_C" >&6
13729 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13730 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13732 # Is the header compilable?
13733 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
13734 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
13735 cat >conftest.
$ac_ext <<_ACEOF
13736 #line $LINENO "configure"
13739 cat confdefs.h
>>conftest.
$ac_ext
13740 cat >>conftest.
$ac_ext <<_ACEOF
13741 /* end confdefs.h. */
13742 $ac_includes_default
13743 #include <sys/cpustats.h>
13745 rm -f conftest.
$ac_objext
13746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13747 (eval $ac_compile) 2>&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } &&
13751 { ac_try
='test -s conftest.$ac_objext'
13752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13753 (eval $ac_try) 2>&5
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); }; }; then
13757 ac_header_compiler
=yes
13759 echo "$as_me: failed program was:" >&5
13760 sed 's/^/| /' conftest.
$ac_ext >&5
13762 ac_header_compiler
=no
13764 rm -f conftest.
$ac_objext conftest.
$ac_ext
13765 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13766 echo "${ECHO_T}$ac_header_compiler" >&6
13768 # Is the header present?
13769 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
13770 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
13771 cat >conftest.
$ac_ext <<_ACEOF
13772 #line $LINENO "configure"
13775 cat confdefs.h
>>conftest.
$ac_ext
13776 cat >>conftest.
$ac_ext <<_ACEOF
13777 /* end confdefs.h. */
13778 #include <sys/cpustats.h>
13780 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13781 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13783 grep -v '^ *+' conftest.er1
>conftest.err
13785 cat conftest.err
>&5
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); } >/dev
/null
; then
13788 if test -s conftest.err
; then
13789 ac_cpp_err
=$ac_c_preproc_warn_flag
13796 if test -z "$ac_cpp_err"; then
13797 ac_header_preproc
=yes
13799 echo "$as_me: failed program was:" >&5
13800 sed 's/^/| /' conftest.
$ac_ext >&5
13802 ac_header_preproc
=no
13804 rm -f conftest.err conftest.
$ac_ext
13805 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13806 echo "${ECHO_T}$ac_header_preproc" >&6
13808 # So? What about this header?
13809 case $ac_header_compiler:$ac_header_preproc in
13811 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13812 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13813 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13814 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13817 ## ------------------------------------ ##
13818 ## Report this to bug-autoconf@gnu.org. ##
13819 ## ------------------------------------ ##
13822 sed "s/^/$as_me: WARNING: /" >&2
13825 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
13826 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
13827 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
13828 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
13829 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13830 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13833 ## ------------------------------------ ##
13834 ## Report this to bug-autoconf@gnu.org. ##
13835 ## ------------------------------------ ##
13838 sed "s/^/$as_me: WARNING: /" >&2
13841 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13842 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13843 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13844 echo $ECHO_N "(cached) $ECHO_C" >&6
13846 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
13848 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13849 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13852 if test $ac_cv_header_sys_cpustats_h = yes; then
13853 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
13862 if test $ac_have_func = no
; then
13864 for ac_header
in mach
/mach.h
13866 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13868 echo "$as_me:$LINENO: checking for $ac_header" >&5
13869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13876 # Is the header compilable?
13877 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13879 cat >conftest.
$ac_ext <<_ACEOF
13880 #line $LINENO "configure"
13883 cat confdefs.h
>>conftest.
$ac_ext
13884 cat >>conftest.
$ac_ext <<_ACEOF
13885 /* end confdefs.h. */
13886 $ac_includes_default
13887 #include <$ac_header>
13889 rm -f conftest.
$ac_objext
13890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13891 (eval $ac_compile) 2>&5
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); } &&
13895 { ac_try
='test -s conftest.$ac_objext'
13896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13897 (eval $ac_try) 2>&5
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); }; }; then
13901 ac_header_compiler
=yes
13903 echo "$as_me: failed program was:" >&5
13904 sed 's/^/| /' conftest.
$ac_ext >&5
13906 ac_header_compiler
=no
13908 rm -f conftest.
$ac_objext conftest.
$ac_ext
13909 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13910 echo "${ECHO_T}$ac_header_compiler" >&6
13912 # Is the header present?
13913 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13914 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13915 cat >conftest.
$ac_ext <<_ACEOF
13916 #line $LINENO "configure"
13919 cat confdefs.h
>>conftest.
$ac_ext
13920 cat >>conftest.
$ac_ext <<_ACEOF
13921 /* end confdefs.h. */
13922 #include <$ac_header>
13924 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13925 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13927 grep -v '^ *+' conftest.er1
>conftest.err
13929 cat conftest.err
>&5
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); } >/dev
/null
; then
13932 if test -s conftest.err
; then
13933 ac_cpp_err
=$ac_c_preproc_warn_flag
13940 if test -z "$ac_cpp_err"; then
13941 ac_header_preproc
=yes
13943 echo "$as_me: failed program was:" >&5
13944 sed 's/^/| /' conftest.
$ac_ext >&5
13946 ac_header_preproc
=no
13948 rm -f conftest.err conftest.
$ac_ext
13949 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13950 echo "${ECHO_T}$ac_header_preproc" >&6
13952 # So? What about this header?
13953 case $ac_header_compiler:$ac_header_preproc in
13955 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13956 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13958 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13961 ## ------------------------------------ ##
13962 ## Report this to bug-autoconf@gnu.org. ##
13963 ## ------------------------------------ ##
13966 sed "s/^/$as_me: WARNING: /" >&2
13969 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13970 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13971 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13972 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13977 ## ------------------------------------ ##
13978 ## Report this to bug-autoconf@gnu.org. ##
13979 ## ------------------------------------ ##
13982 sed "s/^/$as_me: WARNING: /" >&2
13985 echo "$as_me:$LINENO: checking for $ac_header" >&5
13986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13988 echo $ECHO_N "(cached) $ECHO_C" >&6
13990 eval "$as_ac_Header=$ac_header_preproc"
13992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13996 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13997 cat >>confdefs.h
<<_ACEOF
13998 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14008 for ac_header
in nlist.h
14010 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14012 echo "$as_me:$LINENO: checking for $ac_header" >&5
14013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14015 echo $ECHO_N "(cached) $ECHO_C" >&6
14017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14020 # Is the header compilable?
14021 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14023 cat >conftest.
$ac_ext <<_ACEOF
14024 #line $LINENO "configure"
14027 cat confdefs.h
>>conftest.
$ac_ext
14028 cat >>conftest.
$ac_ext <<_ACEOF
14029 /* end confdefs.h. */
14030 $ac_includes_default
14031 #include <$ac_header>
14033 rm -f conftest.
$ac_objext
14034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14035 (eval $ac_compile) 2>&5
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); } &&
14039 { ac_try
='test -s conftest.$ac_objext'
14040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14041 (eval $ac_try) 2>&5
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); }; }; then
14045 ac_header_compiler
=yes
14047 echo "$as_me: failed program was:" >&5
14048 sed 's/^/| /' conftest.
$ac_ext >&5
14050 ac_header_compiler
=no
14052 rm -f conftest.
$ac_objext conftest.
$ac_ext
14053 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14054 echo "${ECHO_T}$ac_header_compiler" >&6
14056 # Is the header present?
14057 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14059 cat >conftest.
$ac_ext <<_ACEOF
14060 #line $LINENO "configure"
14063 cat confdefs.h
>>conftest.
$ac_ext
14064 cat >>conftest.
$ac_ext <<_ACEOF
14065 /* end confdefs.h. */
14066 #include <$ac_header>
14068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14069 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14071 grep -v '^ *+' conftest.er1
>conftest.err
14073 cat conftest.err
>&5
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); } >/dev
/null
; then
14076 if test -s conftest.err
; then
14077 ac_cpp_err
=$ac_c_preproc_warn_flag
14084 if test -z "$ac_cpp_err"; then
14085 ac_header_preproc
=yes
14087 echo "$as_me: failed program was:" >&5
14088 sed 's/^/| /' conftest.
$ac_ext >&5
14090 ac_header_preproc
=no
14092 rm -f conftest.err conftest.
$ac_ext
14093 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14094 echo "${ECHO_T}$ac_header_preproc" >&6
14096 # So? What about this header?
14097 case $ac_header_compiler:$ac_header_preproc in
14099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14102 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14105 ## ------------------------------------ ##
14106 ## Report this to bug-autoconf@gnu.org. ##
14107 ## ------------------------------------ ##
14110 sed "s/^/$as_me: WARNING: /" >&2
14113 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14114 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14115 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14116 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14121 ## ------------------------------------ ##
14122 ## Report this to bug-autoconf@gnu.org. ##
14123 ## ------------------------------------ ##
14126 sed "s/^/$as_me: WARNING: /" >&2
14129 echo "$as_me:$LINENO: checking for $ac_header" >&5
14130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14132 echo $ECHO_N "(cached) $ECHO_C" >&6
14134 eval "$as_ac_Header=$ac_header_preproc"
14136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14141 cat >>confdefs.h
<<_ACEOF
14142 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14144 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
14145 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
14146 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14149 cat >conftest.
$ac_ext <<_ACEOF
14150 #line $LINENO "configure"
14153 cat confdefs.h
>>conftest.
$ac_ext
14154 cat >>conftest.
$ac_ext <<_ACEOF
14155 /* end confdefs.h. */
14161 static struct nlist ac_aggr;
14162 if (ac_aggr.n_un.n_name)
14168 rm -f conftest.
$ac_objext
14169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14170 (eval $ac_compile) 2>&5
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); } &&
14174 { ac_try
='test -s conftest.$ac_objext'
14175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14176 (eval $ac_try) 2>&5
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; }; then
14180 ac_cv_member_struct_nlist_n_un_n_name
=yes
14182 echo "$as_me: failed program was:" >&5
14183 sed 's/^/| /' conftest.
$ac_ext >&5
14185 cat >conftest.
$ac_ext <<_ACEOF
14186 #line $LINENO "configure"
14189 cat confdefs.h
>>conftest.
$ac_ext
14190 cat >>conftest.
$ac_ext <<_ACEOF
14191 /* end confdefs.h. */
14197 static struct nlist ac_aggr;
14198 if (sizeof ac_aggr.n_un.n_name)
14204 rm -f conftest.
$ac_objext
14205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14206 (eval $ac_compile) 2>&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); } &&
14210 { ac_try
='test -s conftest.$ac_objext'
14211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14212 (eval $ac_try) 2>&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); }; }; then
14216 ac_cv_member_struct_nlist_n_un_n_name
=yes
14218 echo "$as_me: failed program was:" >&5
14219 sed 's/^/| /' conftest.
$ac_ext >&5
14221 ac_cv_member_struct_nlist_n_un_n_name
=no
14223 rm -f conftest.
$ac_objext conftest.
$ac_ext
14225 rm -f conftest.
$ac_objext conftest.
$ac_ext
14227 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
14228 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
14229 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
14231 cat >>confdefs.h
<<_ACEOF
14232 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
14236 cat >>confdefs.h
<<\_ACEOF
14237 #define NLIST_NAME_UNION 1
14251 # Some definitions of getloadavg require that the program be installed setgid.
14252 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
14253 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
14254 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
14255 echo $ECHO_N "(cached) $ECHO_C" >&6
14257 cat >conftest.
$ac_ext <<_ACEOF
14258 #line $LINENO "configure"
14261 cat confdefs.h
>>conftest.
$ac_ext
14262 cat >>conftest.
$ac_ext <<_ACEOF
14263 /* end confdefs.h. */
14264 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
14265 #ifdef LDAV_PRIVILEGED
14266 Yowza Am I SETGID yet
14269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14270 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
14271 ac_cv_func_getloadavg_setgid
=yes
14273 ac_cv_func_getloadavg_setgid
=no
14278 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
14279 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
14280 if test $ac_cv_func_getloadavg_setgid = yes; then
14283 cat >>confdefs.h
<<\_ACEOF
14284 #define GETLOADAVG_PRIVILEGED 1
14291 if test $ac_cv_func_getloadavg_setgid = yes; then
14292 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
14293 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
14294 if test "${ac_cv_group_kmem+set}" = set; then
14295 echo $ECHO_N "(cached) $ECHO_C" >&6
14297 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
14298 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
14299 # If we got an error (system does not support symlinks), try without -L.
14300 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
14301 ac_cv_group_kmem
=`echo $ac_ls_output \
14302 | sed -ne 's/[ ][ ]*/ /g;
14303 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
14307 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
14308 echo "${ECHO_T}$ac_cv_group_kmem" >&6
14309 KMEM_GROUP
=$ac_cv_group_kmem
14311 if test "x$ac_save_LIBS" = x
; then
14312 GETLOADAVG_LIBS
=$LIBS
14314 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
14320 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14321 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
14322 if test "${ac_cv_sys_largefile_source+set}" = set; then
14323 echo $ECHO_N "(cached) $ECHO_C" >&6
14326 ac_cv_sys_largefile_source
=no
14327 cat >conftest.
$ac_ext <<_ACEOF
14328 #line $LINENO "configure"
14331 cat confdefs.h
>>conftest.
$ac_ext
14332 cat >>conftest.
$ac_ext <<_ACEOF
14333 /* end confdefs.h. */
14343 rm -f conftest.
$ac_objext
14344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14345 (eval $ac_compile) 2>&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); } &&
14349 { ac_try
='test -s conftest.$ac_objext'
14350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14351 (eval $ac_try) 2>&5
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); }; }; then
14357 echo "$as_me: failed program was:" >&5
14358 sed 's/^/| /' conftest.
$ac_ext >&5
14361 rm -f conftest.
$ac_objext conftest.
$ac_ext
14362 cat >conftest.
$ac_ext <<_ACEOF
14363 #line $LINENO "configure"
14366 cat confdefs.h
>>conftest.
$ac_ext
14367 cat >>conftest.
$ac_ext <<_ACEOF
14368 /* end confdefs.h. */
14369 #define _LARGEFILE_SOURCE 1
14379 rm -f conftest.
$ac_objext
14380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14381 (eval $ac_compile) 2>&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } &&
14385 { ac_try
='test -s conftest.$ac_objext'
14386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387 (eval $ac_try) 2>&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); }; }; then
14391 ac_cv_sys_largefile_source
=1; break
14393 echo "$as_me: failed program was:" >&5
14394 sed 's/^/| /' conftest.
$ac_ext >&5
14397 rm -f conftest.
$ac_objext conftest.
$ac_ext
14401 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
14402 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
14403 if test "$ac_cv_sys_largefile_source" != no
; then
14405 cat >>confdefs.h
<<_ACEOF
14406 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14412 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14413 # in glibc 2.1.3, but that breaks too many other things.
14414 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14415 echo "$as_me:$LINENO: checking for fseeko" >&5
14416 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
14417 if test "${ac_cv_func_fseeko+set}" = set; then
14418 echo $ECHO_N "(cached) $ECHO_C" >&6
14420 cat >conftest.
$ac_ext <<_ACEOF
14421 #line $LINENO "configure"
14424 cat confdefs.h
>>conftest.
$ac_ext
14425 cat >>conftest.
$ac_ext <<_ACEOF
14426 /* end confdefs.h. */
14431 return fseeko && fseeko (stdin, 0, 0);
14436 rm -f conftest.
$ac_objext conftest
$ac_exeext
14437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14438 (eval $ac_link) 2>&5
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); } &&
14442 { ac_try
='test -s conftest$ac_exeext'
14443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444 (eval $ac_try) 2>&5
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; }; then
14448 ac_cv_func_fseeko
=yes
14450 echo "$as_me: failed program was:" >&5
14451 sed 's/^/| /' conftest.
$ac_ext >&5
14453 ac_cv_func_fseeko
=no
14455 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14457 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
14458 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
14459 if test $ac_cv_func_fseeko = yes; then
14461 cat >>confdefs.h
<<\_ACEOF
14462 #define HAVE_FSEEKO 1
14468 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
14469 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
14470 if test "${ac_cv_func_getpgrp_void+set}" = set; then
14471 echo $ECHO_N "(cached) $ECHO_C" >&6
14473 # Use it with a single arg.
14474 cat >conftest.
$ac_ext <<_ACEOF
14475 #line $LINENO "configure"
14478 cat confdefs.h
>>conftest.
$ac_ext
14479 cat >>conftest.
$ac_ext <<_ACEOF
14480 /* end confdefs.h. */
14481 $ac_includes_default
14490 rm -f conftest.
$ac_objext
14491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14492 (eval $ac_compile) 2>&5
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); } &&
14496 { ac_try
='test -s conftest.$ac_objext'
14497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14498 (eval $ac_try) 2>&5
14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); }; }; then
14502 ac_cv_func_getpgrp_void
=no
14504 echo "$as_me: failed program was:" >&5
14505 sed 's/^/| /' conftest.
$ac_ext >&5
14507 ac_cv_func_getpgrp_void
=yes
14509 rm -f conftest.
$ac_objext conftest.
$ac_ext
14512 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
14513 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
14514 if test $ac_cv_func_getpgrp_void = yes; then
14516 cat >>confdefs.h
<<\_ACEOF
14517 #define GETPGRP_VOID 1
14524 for ac_func
in strftime
14526 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14527 echo "$as_me:$LINENO: checking for $ac_func" >&5
14528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14529 if eval "test \"\${$as_ac_var+set}\" = set"; then
14530 echo $ECHO_N "(cached) $ECHO_C" >&6
14532 cat >conftest.
$ac_ext <<_ACEOF
14533 #line $LINENO "configure"
14536 cat confdefs.h
>>conftest.
$ac_ext
14537 cat >>conftest.
$ac_ext <<_ACEOF
14538 /* end confdefs.h. */
14539 /* System header to define __stub macros and hopefully few prototypes,
14540 which can conflict with char $ac_func (); below.
14541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14542 <limits.h> exists even on freestanding compilers. */
14544 # include <limits.h>
14546 # include <assert.h>
14548 /* Override any gcc2 internal prototype to avoid an error. */
14553 /* We use char because int might match the return type of a gcc2
14554 builtin and then its argument prototype would still apply. */
14556 /* The GNU C library defines this for functions which it implements
14557 to always fail with ENOSYS. Some functions are actually named
14558 something starting with __ and the normal name is an alias. */
14559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14562 char (*f) () = $ac_func;
14571 return f != $ac_func;
14576 rm -f conftest.
$ac_objext conftest
$ac_exeext
14577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14578 (eval $ac_link) 2>&5
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); } &&
14582 { ac_try
='test -s conftest$ac_exeext'
14583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584 (eval $ac_try) 2>&5
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; }; then
14588 eval "$as_ac_var=yes"
14590 echo "$as_me: failed program was:" >&5
14591 sed 's/^/| /' conftest.
$ac_ext >&5
14593 eval "$as_ac_var=no"
14595 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14598 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14599 if test `eval echo '${'$as_ac_var'}'` = yes; then
14600 cat >>confdefs.h
<<_ACEOF
14601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14605 # strftime is in -lintl on SCO UNIX.
14606 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14607 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
14608 if test "${ac_cv_lib_intl_strftime+set}" = set; then
14609 echo $ECHO_N "(cached) $ECHO_C" >&6
14611 ac_check_lib_save_LIBS
=$LIBS
14612 LIBS
="-lintl $LIBS"
14613 cat >conftest.
$ac_ext <<_ACEOF
14614 #line $LINENO "configure"
14617 cat confdefs.h
>>conftest.
$ac_ext
14618 cat >>conftest.
$ac_ext <<_ACEOF
14619 /* end confdefs.h. */
14621 /* Override any gcc2 internal prototype to avoid an error. */
14625 /* We use char because int might match the return type of a gcc2
14626 builtin and then its argument prototype would still apply. */
14636 rm -f conftest.
$ac_objext conftest
$ac_exeext
14637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14638 (eval $ac_link) 2>&5
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); } &&
14642 { ac_try
='test -s conftest$ac_exeext'
14643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14644 (eval $ac_try) 2>&5
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); }; }; then
14648 ac_cv_lib_intl_strftime
=yes
14650 echo "$as_me: failed program was:" >&5
14651 sed 's/^/| /' conftest.
$ac_ext >&5
14653 ac_cv_lib_intl_strftime
=no
14655 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14656 LIBS
=$ac_check_lib_save_LIBS
14658 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14659 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
14660 if test $ac_cv_lib_intl_strftime = yes; then
14661 cat >>confdefs.h
<<\_ACEOF
14662 #define HAVE_STRFTIME 1
14665 LIBS
="-lintl $LIBS"
14674 for ac_func
in grantpt
14676 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14677 echo "$as_me:$LINENO: checking for $ac_func" >&5
14678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14679 if eval "test \"\${$as_ac_var+set}\" = set"; then
14680 echo $ECHO_N "(cached) $ECHO_C" >&6
14682 cat >conftest.
$ac_ext <<_ACEOF
14683 #line $LINENO "configure"
14686 cat confdefs.h
>>conftest.
$ac_ext
14687 cat >>conftest.
$ac_ext <<_ACEOF
14688 /* end confdefs.h. */
14689 /* System header to define __stub macros and hopefully few prototypes,
14690 which can conflict with char $ac_func (); below.
14691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14692 <limits.h> exists even on freestanding compilers. */
14694 # include <limits.h>
14696 # include <assert.h>
14698 /* Override any gcc2 internal prototype to avoid an error. */
14703 /* We use char because int might match the return type of a gcc2
14704 builtin and then its argument prototype would still apply. */
14706 /* The GNU C library defines this for functions which it implements
14707 to always fail with ENOSYS. Some functions are actually named
14708 something starting with __ and the normal name is an alias. */
14709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14712 char (*f) () = $ac_func;
14721 return f != $ac_func;
14726 rm -f conftest.
$ac_objext conftest
$ac_exeext
14727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14728 (eval $ac_link) 2>&5
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); } &&
14732 { ac_try
='test -s conftest$ac_exeext'
14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; }; then
14738 eval "$as_ac_var=yes"
14740 echo "$as_me: failed program was:" >&5
14741 sed 's/^/| /' conftest.
$ac_ext >&5
14743 eval "$as_ac_var=no"
14745 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14748 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14749 if test `eval echo '${'$as_ac_var'}'` = yes; then
14750 cat >>confdefs.h
<<_ACEOF
14751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14758 # PTY-related GNU extensions.
14760 for ac_func
in getpt
14762 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14763 echo "$as_me:$LINENO: checking for $ac_func" >&5
14764 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14765 if eval "test \"\${$as_ac_var+set}\" = set"; then
14766 echo $ECHO_N "(cached) $ECHO_C" >&6
14768 cat >conftest.
$ac_ext <<_ACEOF
14769 #line $LINENO "configure"
14772 cat confdefs.h
>>conftest.
$ac_ext
14773 cat >>conftest.
$ac_ext <<_ACEOF
14774 /* end confdefs.h. */
14775 /* System header to define __stub macros and hopefully few prototypes,
14776 which can conflict with char $ac_func (); below.
14777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14778 <limits.h> exists even on freestanding compilers. */
14780 # include <limits.h>
14782 # include <assert.h>
14784 /* Override any gcc2 internal prototype to avoid an error. */
14789 /* We use char because int might match the return type of a gcc2
14790 builtin and then its argument prototype would still apply. */
14792 /* The GNU C library defines this for functions which it implements
14793 to always fail with ENOSYS. Some functions are actually named
14794 something starting with __ and the normal name is an alias. */
14795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14798 char (*f) () = $ac_func;
14807 return f != $ac_func;
14812 rm -f conftest.
$ac_objext conftest
$ac_exeext
14813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14814 (eval $ac_link) 2>&5
14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); } &&
14818 { ac_try
='test -s conftest$ac_exeext'
14819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14820 (eval $ac_try) 2>&5
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); }; }; then
14824 eval "$as_ac_var=yes"
14826 echo "$as_me: failed program was:" >&5
14827 sed 's/^/| /' conftest.
$ac_ext >&5
14829 eval "$as_ac_var=no"
14831 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14834 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14835 if test `eval echo '${'$as_ac_var'}'` = yes; then
14836 cat >>confdefs.h
<<_ACEOF
14837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14844 # Check this now, so that we will NOT find the above functions in ncurses.
14845 # That is because we have not set up to link ncurses in lib-src.
14846 # It's better to believe a function is not available
14847 # than to expect to find it in ncurses.
14849 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
14850 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
14851 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
14852 echo $ECHO_N "(cached) $ECHO_C" >&6
14854 ac_check_lib_save_LIBS
=$LIBS
14855 LIBS
="-lncurses $LIBS"
14856 cat >conftest.
$ac_ext <<_ACEOF
14857 #line $LINENO "configure"
14860 cat confdefs.h
>>conftest.
$ac_ext
14861 cat >>conftest.
$ac_ext <<_ACEOF
14862 /* end confdefs.h. */
14864 /* Override any gcc2 internal prototype to avoid an error. */
14868 /* We use char because int might match the return type of a gcc2
14869 builtin and then its argument prototype would still apply. */
14879 rm -f conftest.
$ac_objext conftest
$ac_exeext
14880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14881 (eval $ac_link) 2>&5
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); } &&
14885 { ac_try
='test -s conftest$ac_exeext'
14886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14887 (eval $ac_try) 2>&5
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); }; }; then
14891 ac_cv_lib_ncurses_tparm
=yes
14893 echo "$as_me: failed program was:" >&5
14894 sed 's/^/| /' conftest.
$ac_ext >&5
14896 ac_cv_lib_ncurses_tparm
=no
14898 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14899 LIBS
=$ac_check_lib_save_LIBS
14901 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
14902 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
14903 if test $ac_cv_lib_ncurses_tparm = yes; then
14904 cat >>confdefs.h
<<_ACEOF
14905 #define HAVE_LIBNCURSES 1
14908 LIBS
="-lncurses $LIBS"
14913 # Do we need the Hesiod library to provide the support routines?
14914 if test "$with_hesiod" = yes ; then
14915 # Don't set $LIBS here -- see comments above.
14917 echo "$as_me:$LINENO: checking for res_send" >&5
14918 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
14919 if test "${ac_cv_func_res_send+set}" = set; then
14920 echo $ECHO_N "(cached) $ECHO_C" >&6
14922 cat >conftest.
$ac_ext <<_ACEOF
14923 #line $LINENO "configure"
14926 cat confdefs.h
>>conftest.
$ac_ext
14927 cat >>conftest.
$ac_ext <<_ACEOF
14928 /* end confdefs.h. */
14929 /* System header to define __stub macros and hopefully few prototypes,
14930 which can conflict with char res_send (); below.
14931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14932 <limits.h> exists even on freestanding compilers. */
14934 # include <limits.h>
14936 # include <assert.h>
14938 /* Override any gcc2 internal prototype to avoid an error. */
14943 /* We use char because int might match the return type of a gcc2
14944 builtin and then its argument prototype would still apply. */
14946 /* The GNU C library defines this for functions which it implements
14947 to always fail with ENOSYS. Some functions are actually named
14948 something starting with __ and the normal name is an alias. */
14949 #if defined (__stub_res_send) || defined (__stub___res_send)
14952 char (*f) () = res_send;
14961 return f != res_send;
14966 rm -f conftest.
$ac_objext conftest
$ac_exeext
14967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14968 (eval $ac_link) 2>&5
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); } &&
14972 { ac_try
='test -s conftest$ac_exeext'
14973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14974 (eval $ac_try) 2>&5
14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); }; }; then
14978 ac_cv_func_res_send
=yes
14980 echo "$as_me: failed program was:" >&5
14981 sed 's/^/| /' conftest.
$ac_ext >&5
14983 ac_cv_func_res_send
=no
14985 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14987 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
14988 echo "${ECHO_T}$ac_cv_func_res_send" >&6
14989 if test $ac_cv_func_res_send = yes; then
14992 echo "$as_me:$LINENO: checking for __res_send" >&5
14993 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
14994 if test "${ac_cv_func___res_send+set}" = set; then
14995 echo $ECHO_N "(cached) $ECHO_C" >&6
14997 cat >conftest.
$ac_ext <<_ACEOF
14998 #line $LINENO "configure"
15001 cat confdefs.h
>>conftest.
$ac_ext
15002 cat >>conftest.
$ac_ext <<_ACEOF
15003 /* end confdefs.h. */
15004 /* System header to define __stub macros and hopefully few prototypes,
15005 which can conflict with char __res_send (); below.
15006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15007 <limits.h> exists even on freestanding compilers. */
15009 # include <limits.h>
15011 # include <assert.h>
15013 /* Override any gcc2 internal prototype to avoid an error. */
15018 /* We use char because int might match the return type of a gcc2
15019 builtin and then its argument prototype would still apply. */
15020 char __res_send ();
15021 /* The GNU C library defines this for functions which it implements
15022 to always fail with ENOSYS. Some functions are actually named
15023 something starting with __ and the normal name is an alias. */
15024 #if defined (__stub___res_send) || defined (__stub_____res_send)
15027 char (*f) () = __res_send;
15036 return f != __res_send;
15041 rm -f conftest.
$ac_objext conftest
$ac_exeext
15042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15043 (eval $ac_link) 2>&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); } &&
15047 { ac_try
='test -s conftest$ac_exeext'
15048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15049 (eval $ac_try) 2>&5
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); }; }; then
15053 ac_cv_func___res_send
=yes
15055 echo "$as_me: failed program was:" >&5
15056 sed 's/^/| /' conftest.
$ac_ext >&5
15058 ac_cv_func___res_send
=no
15060 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15062 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
15063 echo "${ECHO_T}$ac_cv_func___res_send" >&6
15064 if test $ac_cv_func___res_send = yes; then
15067 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
15068 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
15069 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
15070 echo $ECHO_N "(cached) $ECHO_C" >&6
15072 ac_check_lib_save_LIBS
=$LIBS
15073 LIBS
="-lresolv $LIBS"
15074 cat >conftest.
$ac_ext <<_ACEOF
15075 #line $LINENO "configure"
15078 cat confdefs.h
>>conftest.
$ac_ext
15079 cat >>conftest.
$ac_ext <<_ACEOF
15080 /* end confdefs.h. */
15082 /* Override any gcc2 internal prototype to avoid an error. */
15086 /* We use char because int might match the return type of a gcc2
15087 builtin and then its argument prototype would still apply. */
15097 rm -f conftest.
$ac_objext conftest
$ac_exeext
15098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15099 (eval $ac_link) 2>&5
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); } &&
15103 { ac_try
='test -s conftest$ac_exeext'
15104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15105 (eval $ac_try) 2>&5
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); }; }; then
15109 ac_cv_lib_resolv_res_send
=yes
15111 echo "$as_me: failed program was:" >&5
15112 sed 's/^/| /' conftest.
$ac_ext >&5
15114 ac_cv_lib_resolv_res_send
=no
15116 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15117 LIBS
=$ac_check_lib_save_LIBS
15119 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
15120 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
15121 if test $ac_cv_lib_resolv_res_send = yes; then
15124 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
15125 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
15126 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
15127 echo $ECHO_N "(cached) $ECHO_C" >&6
15129 ac_check_lib_save_LIBS
=$LIBS
15130 LIBS
="-lresolv $LIBS"
15131 cat >conftest.
$ac_ext <<_ACEOF
15132 #line $LINENO "configure"
15135 cat confdefs.h
>>conftest.
$ac_ext
15136 cat >>conftest.
$ac_ext <<_ACEOF
15137 /* end confdefs.h. */
15139 /* Override any gcc2 internal prototype to avoid an error. */
15143 /* We use char because int might match the return type of a gcc2
15144 builtin and then its argument prototype would still apply. */
15145 char __res_send ();
15154 rm -f conftest.
$ac_objext conftest
$ac_exeext
15155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15156 (eval $ac_link) 2>&5
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); } &&
15160 { ac_try
='test -s conftest$ac_exeext'
15161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15162 (eval $ac_try) 2>&5
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); }; }; then
15166 ac_cv_lib_resolv___res_send
=yes
15168 echo "$as_me: failed program was:" >&5
15169 sed 's/^/| /' conftest.
$ac_ext >&5
15171 ac_cv_lib_resolv___res_send
=no
15173 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15174 LIBS
=$ac_check_lib_save_LIBS
15176 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
15177 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
15178 if test $ac_cv_lib_resolv___res_send = yes; then
15188 if test "$resolv" = yes ; then
15191 cat >>confdefs.h
<<\_ACEOF
15192 #define HAVE_LIBRESOLV 1
15198 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
15199 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
15200 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
15201 echo $ECHO_N "(cached) $ECHO_C" >&6
15203 cat >conftest.
$ac_ext <<_ACEOF
15204 #line $LINENO "configure"
15207 cat confdefs.h
>>conftest.
$ac_ext
15208 cat >>conftest.
$ac_ext <<_ACEOF
15209 /* end confdefs.h. */
15210 /* System header to define __stub macros and hopefully few prototypes,
15211 which can conflict with char hes_getmailhost (); below.
15212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15213 <limits.h> exists even on freestanding compilers. */
15215 # include <limits.h>
15217 # include <assert.h>
15219 /* Override any gcc2 internal prototype to avoid an error. */
15224 /* We use char because int might match the return type of a gcc2
15225 builtin and then its argument prototype would still apply. */
15226 char hes_getmailhost ();
15227 /* The GNU C library defines this for functions which it implements
15228 to always fail with ENOSYS. Some functions are actually named
15229 something starting with __ and the normal name is an alias. */
15230 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
15233 char (*f) () = hes_getmailhost;
15242 return f != hes_getmailhost;
15247 rm -f conftest.
$ac_objext conftest
$ac_exeext
15248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15249 (eval $ac_link) 2>&5
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); } &&
15253 { ac_try
='test -s conftest$ac_exeext'
15254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15255 (eval $ac_try) 2>&5
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); }; }; then
15259 ac_cv_func_hes_getmailhost
=yes
15261 echo "$as_me: failed program was:" >&5
15262 sed 's/^/| /' conftest.
$ac_ext >&5
15264 ac_cv_func_hes_getmailhost
=no
15266 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15268 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
15269 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
15270 if test $ac_cv_func_hes_getmailhost = yes; then
15273 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
15274 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
15275 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
15276 echo $ECHO_N "(cached) $ECHO_C" >&6
15278 ac_check_lib_save_LIBS
=$LIBS
15279 LIBS
="-lhesiod $RESOLVLIB $LIBS"
15280 cat >conftest.
$ac_ext <<_ACEOF
15281 #line $LINENO "configure"
15284 cat confdefs.h
>>conftest.
$ac_ext
15285 cat >>conftest.
$ac_ext <<_ACEOF
15286 /* end confdefs.h. */
15288 /* Override any gcc2 internal prototype to avoid an error. */
15292 /* We use char because int might match the return type of a gcc2
15293 builtin and then its argument prototype would still apply. */
15294 char hes_getmailhost ();
15298 hes_getmailhost ();
15303 rm -f conftest.
$ac_objext conftest
$ac_exeext
15304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15305 (eval $ac_link) 2>&5
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 (exit $ac_status); } &&
15309 { ac_try
='test -s conftest$ac_exeext'
15310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15311 (eval $ac_try) 2>&5
15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 (exit $ac_status); }; }; then
15315 ac_cv_lib_hesiod_hes_getmailhost
=yes
15317 echo "$as_me: failed program was:" >&5
15318 sed 's/^/| /' conftest.
$ac_ext >&5
15320 ac_cv_lib_hesiod_hes_getmailhost
=no
15322 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15323 LIBS
=$ac_check_lib_save_LIBS
15325 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15326 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
15327 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
15329 cat >>confdefs.h
<<\_ACEOF
15330 #define HAVE_LIBHESIOD 1
15341 # These tell us which Kerberos-related libraries to use.
15342 if test "${with_kerberos+set}" = set; then
15344 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
15345 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
15346 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
15347 echo $ECHO_N "(cached) $ECHO_C" >&6
15349 ac_check_lib_save_LIBS
=$LIBS
15350 LIBS
="-lcom_err $LIBS"
15351 cat >conftest.
$ac_ext <<_ACEOF
15352 #line $LINENO "configure"
15355 cat confdefs.h
>>conftest.
$ac_ext
15356 cat >>conftest.
$ac_ext <<_ACEOF
15357 /* end confdefs.h. */
15359 /* Override any gcc2 internal prototype to avoid an error. */
15363 /* We use char because int might match the return type of a gcc2
15364 builtin and then its argument prototype would still apply. */
15374 rm -f conftest.
$ac_objext conftest
$ac_exeext
15375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15376 (eval $ac_link) 2>&5
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); } &&
15380 { ac_try
='test -s conftest$ac_exeext'
15381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15382 (eval $ac_try) 2>&5
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); }; }; then
15386 ac_cv_lib_com_err_com_err
=yes
15388 echo "$as_me: failed program was:" >&5
15389 sed 's/^/| /' conftest.
$ac_ext >&5
15391 ac_cv_lib_com_err_com_err
=no
15393 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15394 LIBS
=$ac_check_lib_save_LIBS
15396 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
15397 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
15398 if test $ac_cv_lib_com_err_com_err = yes; then
15399 cat >>confdefs.h
<<_ACEOF
15400 #define HAVE_LIBCOM_ERR 1
15403 LIBS
="-lcom_err $LIBS"
15408 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15409 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
15410 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
15411 echo $ECHO_N "(cached) $ECHO_C" >&6
15413 ac_check_lib_save_LIBS
=$LIBS
15414 LIBS
="-lk5crypto $LIBS"
15415 cat >conftest.
$ac_ext <<_ACEOF
15416 #line $LINENO "configure"
15419 cat confdefs.h
>>conftest.
$ac_ext
15420 cat >>conftest.
$ac_ext <<_ACEOF
15421 /* end confdefs.h. */
15423 /* Override any gcc2 internal prototype to avoid an error. */
15427 /* We use char because int might match the return type of a gcc2
15428 builtin and then its argument prototype would still apply. */
15429 char mit_des_cbc_encrypt ();
15433 mit_des_cbc_encrypt ();
15438 rm -f conftest.
$ac_objext conftest
$ac_exeext
15439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15440 (eval $ac_link) 2>&5
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); } &&
15444 { ac_try
='test -s conftest$ac_exeext'
15445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446 (eval $ac_try) 2>&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; }; then
15450 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
15452 echo "$as_me: failed program was:" >&5
15453 sed 's/^/| /' conftest.
$ac_ext >&5
15455 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
15457 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15458 LIBS
=$ac_check_lib_save_LIBS
15460 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15461 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
15462 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
15463 cat >>confdefs.h
<<_ACEOF
15464 #define HAVE_LIBK5CRYPTO 1
15467 LIBS
="-lk5crypto $LIBS"
15472 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15473 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
15474 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
15475 echo $ECHO_N "(cached) $ECHO_C" >&6
15477 ac_check_lib_save_LIBS
=$LIBS
15478 LIBS
="-lcrypto $LIBS"
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. */
15487 /* Override any gcc2 internal prototype to avoid an error. */
15491 /* We use char because int might match the return type of a gcc2
15492 builtin and then its argument prototype would still apply. */
15493 char mit_des_cbc_encrypt ();
15497 mit_des_cbc_encrypt ();
15502 rm -f conftest.
$ac_objext conftest
$ac_exeext
15503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15504 (eval $ac_link) 2>&5
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); } &&
15508 { ac_try
='test -s conftest$ac_exeext'
15509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15510 (eval $ac_try) 2>&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); }; }; then
15514 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
15516 echo "$as_me: failed program was:" >&5
15517 sed 's/^/| /' conftest.
$ac_ext >&5
15519 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
15521 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15522 LIBS
=$ac_check_lib_save_LIBS
15524 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15525 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
15526 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
15527 cat >>confdefs.h
<<_ACEOF
15528 #define HAVE_LIBCRYPTO 1
15531 LIBS
="-lcrypto $LIBS"
15536 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
15537 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
15538 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
15539 echo $ECHO_N "(cached) $ECHO_C" >&6
15541 ac_check_lib_save_LIBS
=$LIBS
15542 LIBS
="-lkrb5 $LIBS"
15543 cat >conftest.
$ac_ext <<_ACEOF
15544 #line $LINENO "configure"
15547 cat confdefs.h
>>conftest.
$ac_ext
15548 cat >>conftest.
$ac_ext <<_ACEOF
15549 /* end confdefs.h. */
15551 /* Override any gcc2 internal prototype to avoid an error. */
15555 /* We use char because int might match the return type of a gcc2
15556 builtin and then its argument prototype would still apply. */
15557 char krb5_init_context ();
15561 krb5_init_context ();
15566 rm -f conftest.
$ac_objext conftest
$ac_exeext
15567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15568 (eval $ac_link) 2>&5
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); } &&
15572 { ac_try
='test -s conftest$ac_exeext'
15573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15574 (eval $ac_try) 2>&5
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); }; }; then
15578 ac_cv_lib_krb5_krb5_init_context
=yes
15580 echo "$as_me: failed program was:" >&5
15581 sed 's/^/| /' conftest.
$ac_ext >&5
15583 ac_cv_lib_krb5_krb5_init_context
=no
15585 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15586 LIBS
=$ac_check_lib_save_LIBS
15588 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15589 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
15590 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
15591 cat >>confdefs.h
<<_ACEOF
15592 #define HAVE_LIBKRB5 1
15595 LIBS
="-lkrb5 $LIBS"
15599 if test "${with_kerberos5+set}" != set; then
15601 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
15602 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
15603 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
15604 echo $ECHO_N "(cached) $ECHO_C" >&6
15606 ac_check_lib_save_LIBS
=$LIBS
15607 LIBS
="-ldes425 $LIBS"
15608 cat >conftest.
$ac_ext <<_ACEOF
15609 #line $LINENO "configure"
15612 cat confdefs.h
>>conftest.
$ac_ext
15613 cat >>conftest.
$ac_ext <<_ACEOF
15614 /* end confdefs.h. */
15616 /* Override any gcc2 internal prototype to avoid an error. */
15620 /* We use char because int might match the return type of a gcc2
15621 builtin and then its argument prototype would still apply. */
15622 char des_cbc_encrypt ();
15626 des_cbc_encrypt ();
15631 rm -f conftest.
$ac_objext conftest
$ac_exeext
15632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15633 (eval $ac_link) 2>&5
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); } &&
15637 { ac_try
='test -s conftest$ac_exeext'
15638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15639 (eval $ac_try) 2>&5
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); }; }; then
15643 ac_cv_lib_des425_des_cbc_encrypt
=yes
15645 echo "$as_me: failed program was:" >&5
15646 sed 's/^/| /' conftest.
$ac_ext >&5
15648 ac_cv_lib_des425_des_cbc_encrypt
=no
15650 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15651 LIBS
=$ac_check_lib_save_LIBS
15653 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15654 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
15655 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
15656 cat >>confdefs.h
<<_ACEOF
15657 #define HAVE_LIBDES425 1
15660 LIBS
="-ldes425 $LIBS"
15664 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
15665 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
15666 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
15667 echo $ECHO_N "(cached) $ECHO_C" >&6
15669 ac_check_lib_save_LIBS
=$LIBS
15671 cat >conftest.
$ac_ext <<_ACEOF
15672 #line $LINENO "configure"
15675 cat confdefs.h
>>conftest.
$ac_ext
15676 cat >>conftest.
$ac_ext <<_ACEOF
15677 /* end confdefs.h. */
15679 /* Override any gcc2 internal prototype to avoid an error. */
15683 /* We use char because int might match the return type of a gcc2
15684 builtin and then its argument prototype would still apply. */
15685 char des_cbc_encrypt ();
15689 des_cbc_encrypt ();
15694 rm -f conftest.
$ac_objext conftest
$ac_exeext
15695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15696 (eval $ac_link) 2>&5
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); } &&
15700 { ac_try
='test -s conftest$ac_exeext'
15701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15702 (eval $ac_try) 2>&5
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); }; }; then
15706 ac_cv_lib_des_des_cbc_encrypt
=yes
15708 echo "$as_me: failed program was:" >&5
15709 sed 's/^/| /' conftest.
$ac_ext >&5
15711 ac_cv_lib_des_des_cbc_encrypt
=no
15713 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15714 LIBS
=$ac_check_lib_save_LIBS
15716 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15717 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
15718 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
15719 cat >>confdefs.h
<<_ACEOF
15720 #define HAVE_LIBDES 1
15730 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
15731 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
15732 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
15733 echo $ECHO_N "(cached) $ECHO_C" >&6
15735 ac_check_lib_save_LIBS
=$LIBS
15736 LIBS
="-lkrb4 $LIBS"
15737 cat >conftest.
$ac_ext <<_ACEOF
15738 #line $LINENO "configure"
15741 cat confdefs.h
>>conftest.
$ac_ext
15742 cat >>conftest.
$ac_ext <<_ACEOF
15743 /* end confdefs.h. */
15745 /* Override any gcc2 internal prototype to avoid an error. */
15749 /* We use char because int might match the return type of a gcc2
15750 builtin and then its argument prototype would still apply. */
15751 char krb_get_cred ();
15760 rm -f conftest.
$ac_objext conftest
$ac_exeext
15761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15762 (eval $ac_link) 2>&5
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); } &&
15766 { ac_try
='test -s conftest$ac_exeext'
15767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15768 (eval $ac_try) 2>&5
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); }; }; then
15772 ac_cv_lib_krb4_krb_get_cred
=yes
15774 echo "$as_me: failed program was:" >&5
15775 sed 's/^/| /' conftest.
$ac_ext >&5
15777 ac_cv_lib_krb4_krb_get_cred
=no
15779 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15780 LIBS
=$ac_check_lib_save_LIBS
15782 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15783 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
15784 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
15785 cat >>confdefs.h
<<_ACEOF
15786 #define HAVE_LIBKRB4 1
15789 LIBS
="-lkrb4 $LIBS"
15793 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
15794 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
15795 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
15796 echo $ECHO_N "(cached) $ECHO_C" >&6
15798 ac_check_lib_save_LIBS
=$LIBS
15800 cat >conftest.
$ac_ext <<_ACEOF
15801 #line $LINENO "configure"
15804 cat confdefs.h
>>conftest.
$ac_ext
15805 cat >>conftest.
$ac_ext <<_ACEOF
15806 /* end confdefs.h. */
15808 /* Override any gcc2 internal prototype to avoid an error. */
15812 /* We use char because int might match the return type of a gcc2
15813 builtin and then its argument prototype would still apply. */
15814 char krb_get_cred ();
15823 rm -f conftest.
$ac_objext conftest
$ac_exeext
15824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15825 (eval $ac_link) 2>&5
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); } &&
15829 { ac_try
='test -s conftest$ac_exeext'
15830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15831 (eval $ac_try) 2>&5
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); }; }; then
15835 ac_cv_lib_krb_krb_get_cred
=yes
15837 echo "$as_me: failed program was:" >&5
15838 sed 's/^/| /' conftest.
$ac_ext >&5
15840 ac_cv_lib_krb_krb_get_cred
=no
15842 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15843 LIBS
=$ac_check_lib_save_LIBS
15845 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
15846 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
15847 if test $ac_cv_lib_krb_krb_get_cred = yes; then
15848 cat >>confdefs.h
<<_ACEOF
15849 #define HAVE_LIBKRB 1
15860 if test "${with_kerberos5+set}" = set; then
15862 for ac_header
in krb5.h
15864 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15866 echo "$as_me:$LINENO: checking for $ac_header" >&5
15867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15869 echo $ECHO_N "(cached) $ECHO_C" >&6
15871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15874 # Is the header compilable?
15875 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15876 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15877 cat >conftest.
$ac_ext <<_ACEOF
15878 #line $LINENO "configure"
15881 cat confdefs.h
>>conftest.
$ac_ext
15882 cat >>conftest.
$ac_ext <<_ACEOF
15883 /* end confdefs.h. */
15884 $ac_includes_default
15885 #include <$ac_header>
15887 rm -f conftest.
$ac_objext
15888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15889 (eval $ac_compile) 2>&5
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); } &&
15893 { ac_try
='test -s conftest.$ac_objext'
15894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895 (eval $ac_try) 2>&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); }; }; then
15899 ac_header_compiler
=yes
15901 echo "$as_me: failed program was:" >&5
15902 sed 's/^/| /' conftest.
$ac_ext >&5
15904 ac_header_compiler
=no
15906 rm -f conftest.
$ac_objext conftest.
$ac_ext
15907 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15908 echo "${ECHO_T}$ac_header_compiler" >&6
15910 # Is the header present?
15911 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15912 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15913 cat >conftest.
$ac_ext <<_ACEOF
15914 #line $LINENO "configure"
15917 cat confdefs.h
>>conftest.
$ac_ext
15918 cat >>conftest.
$ac_ext <<_ACEOF
15919 /* end confdefs.h. */
15920 #include <$ac_header>
15922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15923 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15925 grep -v '^ *+' conftest.er1
>conftest.err
15927 cat conftest.err
>&5
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); } >/dev
/null
; then
15930 if test -s conftest.err
; then
15931 ac_cpp_err
=$ac_c_preproc_warn_flag
15938 if test -z "$ac_cpp_err"; then
15939 ac_header_preproc
=yes
15941 echo "$as_me: failed program was:" >&5
15942 sed 's/^/| /' conftest.
$ac_ext >&5
15944 ac_header_preproc
=no
15946 rm -f conftest.err conftest.
$ac_ext
15947 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15948 echo "${ECHO_T}$ac_header_preproc" >&6
15950 # So? What about this header?
15951 case $ac_header_compiler:$ac_header_preproc in
15953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15959 ## ------------------------------------ ##
15960 ## Report this to bug-autoconf@gnu.org. ##
15961 ## ------------------------------------ ##
15964 sed "s/^/$as_me: WARNING: /" >&2
15967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15970 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15972 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15975 ## ------------------------------------ ##
15976 ## Report this to bug-autoconf@gnu.org. ##
15977 ## ------------------------------------ ##
15980 sed "s/^/$as_me: WARNING: /" >&2
15983 echo "$as_me:$LINENO: checking for $ac_header" >&5
15984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15986 echo $ECHO_N "(cached) $ECHO_C" >&6
15988 eval "$as_ac_Header=$ac_header_preproc"
15990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15995 cat >>confdefs.h
<<_ACEOF
15996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16005 for ac_header
in des.h
16007 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16009 echo "$as_me:$LINENO: checking for $ac_header" >&5
16010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16012 echo $ECHO_N "(cached) $ECHO_C" >&6
16014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16017 # Is the header compilable?
16018 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16019 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16020 cat >conftest.
$ac_ext <<_ACEOF
16021 #line $LINENO "configure"
16024 cat confdefs.h
>>conftest.
$ac_ext
16025 cat >>conftest.
$ac_ext <<_ACEOF
16026 /* end confdefs.h. */
16027 $ac_includes_default
16028 #include <$ac_header>
16030 rm -f conftest.
$ac_objext
16031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16032 (eval $ac_compile) 2>&5
16034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035 (exit $ac_status); } &&
16036 { ac_try
='test -s conftest.$ac_objext'
16037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16038 (eval $ac_try) 2>&5
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); }; }; then
16042 ac_header_compiler
=yes
16044 echo "$as_me: failed program was:" >&5
16045 sed 's/^/| /' conftest.
$ac_ext >&5
16047 ac_header_compiler
=no
16049 rm -f conftest.
$ac_objext conftest.
$ac_ext
16050 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16051 echo "${ECHO_T}$ac_header_compiler" >&6
16053 # Is the header present?
16054 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16055 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16056 cat >conftest.
$ac_ext <<_ACEOF
16057 #line $LINENO "configure"
16060 cat confdefs.h
>>conftest.
$ac_ext
16061 cat >>conftest.
$ac_ext <<_ACEOF
16062 /* end confdefs.h. */
16063 #include <$ac_header>
16065 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16066 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16068 grep -v '^ *+' conftest.er1
>conftest.err
16070 cat conftest.err
>&5
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); } >/dev
/null
; then
16073 if test -s conftest.err
; then
16074 ac_cpp_err
=$ac_c_preproc_warn_flag
16081 if test -z "$ac_cpp_err"; then
16082 ac_header_preproc
=yes
16084 echo "$as_me: failed program was:" >&5
16085 sed 's/^/| /' conftest.
$ac_ext >&5
16087 ac_header_preproc
=no
16089 rm -f conftest.err conftest.
$ac_ext
16090 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16091 echo "${ECHO_T}$ac_header_preproc" >&6
16093 # So? What about this header?
16094 case $ac_header_compiler:$ac_header_preproc in
16096 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16102 ## ------------------------------------ ##
16103 ## Report this to bug-autoconf@gnu.org. ##
16104 ## ------------------------------------ ##
16107 sed "s/^/$as_me: WARNING: /" >&2
16110 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16112 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16113 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16118 ## ------------------------------------ ##
16119 ## Report this to bug-autoconf@gnu.org. ##
16120 ## ------------------------------------ ##
16123 sed "s/^/$as_me: WARNING: /" >&2
16126 echo "$as_me:$LINENO: checking for $ac_header" >&5
16127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16129 echo $ECHO_N "(cached) $ECHO_C" >&6
16131 eval "$as_ac_Header=$ac_header_preproc"
16133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16138 cat >>confdefs.h
<<_ACEOF
16139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16144 for ac_header
in kerberosIV
/des.h
16146 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16148 echo "$as_me:$LINENO: checking for $ac_header" >&5
16149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16151 echo $ECHO_N "(cached) $ECHO_C" >&6
16153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16156 # Is the header compilable?
16157 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16159 cat >conftest.
$ac_ext <<_ACEOF
16160 #line $LINENO "configure"
16163 cat confdefs.h
>>conftest.
$ac_ext
16164 cat >>conftest.
$ac_ext <<_ACEOF
16165 /* end confdefs.h. */
16166 $ac_includes_default
16167 #include <$ac_header>
16169 rm -f conftest.
$ac_objext
16170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16171 (eval $ac_compile) 2>&5
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); } &&
16175 { ac_try
='test -s conftest.$ac_objext'
16176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16177 (eval $ac_try) 2>&5
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); }; }; then
16181 ac_header_compiler
=yes
16183 echo "$as_me: failed program was:" >&5
16184 sed 's/^/| /' conftest.
$ac_ext >&5
16186 ac_header_compiler
=no
16188 rm -f conftest.
$ac_objext conftest.
$ac_ext
16189 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16190 echo "${ECHO_T}$ac_header_compiler" >&6
16192 # Is the header present?
16193 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16194 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16195 cat >conftest.
$ac_ext <<_ACEOF
16196 #line $LINENO "configure"
16199 cat confdefs.h
>>conftest.
$ac_ext
16200 cat >>conftest.
$ac_ext <<_ACEOF
16201 /* end confdefs.h. */
16202 #include <$ac_header>
16204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16205 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16207 grep -v '^ *+' conftest.er1
>conftest.err
16209 cat conftest.err
>&5
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); } >/dev
/null
; then
16212 if test -s conftest.err
; then
16213 ac_cpp_err
=$ac_c_preproc_warn_flag
16220 if test -z "$ac_cpp_err"; then
16221 ac_header_preproc
=yes
16223 echo "$as_me: failed program was:" >&5
16224 sed 's/^/| /' conftest.
$ac_ext >&5
16226 ac_header_preproc
=no
16228 rm -f conftest.err conftest.
$ac_ext
16229 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16230 echo "${ECHO_T}$ac_header_preproc" >&6
16232 # So? What about this header?
16233 case $ac_header_compiler:$ac_header_preproc in
16235 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16236 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16241 ## ------------------------------------ ##
16242 ## Report this to bug-autoconf@gnu.org. ##
16243 ## ------------------------------------ ##
16246 sed "s/^/$as_me: WARNING: /" >&2
16249 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16251 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16252 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16257 ## ------------------------------------ ##
16258 ## Report this to bug-autoconf@gnu.org. ##
16259 ## ------------------------------------ ##
16262 sed "s/^/$as_me: WARNING: /" >&2
16265 echo "$as_me:$LINENO: checking for $ac_header" >&5
16266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16268 echo $ECHO_N "(cached) $ECHO_C" >&6
16270 eval "$as_ac_Header=$ac_header_preproc"
16272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16277 cat >>confdefs.h
<<_ACEOF
16278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16283 for ac_header
in kerberos
/des.h
16285 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16287 echo "$as_me:$LINENO: checking for $ac_header" >&5
16288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16290 echo $ECHO_N "(cached) $ECHO_C" >&6
16292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16295 # Is the header compilable?
16296 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16297 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16298 cat >conftest.
$ac_ext <<_ACEOF
16299 #line $LINENO "configure"
16302 cat confdefs.h
>>conftest.
$ac_ext
16303 cat >>conftest.
$ac_ext <<_ACEOF
16304 /* end confdefs.h. */
16305 $ac_includes_default
16306 #include <$ac_header>
16308 rm -f conftest.
$ac_objext
16309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16310 (eval $ac_compile) 2>&5
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); } &&
16314 { ac_try
='test -s conftest.$ac_objext'
16315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16316 (eval $ac_try) 2>&5
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); }; }; then
16320 ac_header_compiler
=yes
16322 echo "$as_me: failed program was:" >&5
16323 sed 's/^/| /' conftest.
$ac_ext >&5
16325 ac_header_compiler
=no
16327 rm -f conftest.
$ac_objext conftest.
$ac_ext
16328 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16329 echo "${ECHO_T}$ac_header_compiler" >&6
16331 # Is the header present?
16332 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16334 cat >conftest.
$ac_ext <<_ACEOF
16335 #line $LINENO "configure"
16338 cat confdefs.h
>>conftest.
$ac_ext
16339 cat >>conftest.
$ac_ext <<_ACEOF
16340 /* end confdefs.h. */
16341 #include <$ac_header>
16343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16344 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16346 grep -v '^ *+' conftest.er1
>conftest.err
16348 cat conftest.err
>&5
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); } >/dev
/null
; then
16351 if test -s conftest.err
; then
16352 ac_cpp_err
=$ac_c_preproc_warn_flag
16359 if test -z "$ac_cpp_err"; then
16360 ac_header_preproc
=yes
16362 echo "$as_me: failed program was:" >&5
16363 sed 's/^/| /' conftest.
$ac_ext >&5
16365 ac_header_preproc
=no
16367 rm -f conftest.err conftest.
$ac_ext
16368 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16369 echo "${ECHO_T}$ac_header_preproc" >&6
16371 # So? What about this header?
16372 case $ac_header_compiler:$ac_header_preproc in
16374 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16375 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16380 ## ------------------------------------ ##
16381 ## Report this to bug-autoconf@gnu.org. ##
16382 ## ------------------------------------ ##
16385 sed "s/^/$as_me: WARNING: /" >&2
16388 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16389 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16390 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16391 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16396 ## ------------------------------------ ##
16397 ## Report this to bug-autoconf@gnu.org. ##
16398 ## ------------------------------------ ##
16401 sed "s/^/$as_me: WARNING: /" >&2
16404 echo "$as_me:$LINENO: checking for $ac_header" >&5
16405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16407 echo $ECHO_N "(cached) $ECHO_C" >&6
16409 eval "$as_ac_Header=$ac_header_preproc"
16411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16416 cat >>confdefs.h
<<_ACEOF
16417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16433 for ac_header
in krb.h
16435 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16437 echo "$as_me:$LINENO: checking for $ac_header" >&5
16438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16440 echo $ECHO_N "(cached) $ECHO_C" >&6
16442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16445 # Is the header compilable?
16446 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16447 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16448 cat >conftest.
$ac_ext <<_ACEOF
16449 #line $LINENO "configure"
16452 cat confdefs.h
>>conftest.
$ac_ext
16453 cat >>conftest.
$ac_ext <<_ACEOF
16454 /* end confdefs.h. */
16455 $ac_includes_default
16456 #include <$ac_header>
16458 rm -f conftest.
$ac_objext
16459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16460 (eval $ac_compile) 2>&5
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); } &&
16464 { ac_try
='test -s conftest.$ac_objext'
16465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16466 (eval $ac_try) 2>&5
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); }; }; then
16470 ac_header_compiler
=yes
16472 echo "$as_me: failed program was:" >&5
16473 sed 's/^/| /' conftest.
$ac_ext >&5
16475 ac_header_compiler
=no
16477 rm -f conftest.
$ac_objext conftest.
$ac_ext
16478 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16479 echo "${ECHO_T}$ac_header_compiler" >&6
16481 # Is the header present?
16482 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16483 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16484 cat >conftest.
$ac_ext <<_ACEOF
16485 #line $LINENO "configure"
16488 cat confdefs.h
>>conftest.
$ac_ext
16489 cat >>conftest.
$ac_ext <<_ACEOF
16490 /* end confdefs.h. */
16491 #include <$ac_header>
16493 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16494 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16496 grep -v '^ *+' conftest.er1
>conftest.err
16498 cat conftest.err
>&5
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); } >/dev
/null
; then
16501 if test -s conftest.err
; then
16502 ac_cpp_err
=$ac_c_preproc_warn_flag
16509 if test -z "$ac_cpp_err"; then
16510 ac_header_preproc
=yes
16512 echo "$as_me: failed program was:" >&5
16513 sed 's/^/| /' conftest.
$ac_ext >&5
16515 ac_header_preproc
=no
16517 rm -f conftest.err conftest.
$ac_ext
16518 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16519 echo "${ECHO_T}$ac_header_preproc" >&6
16521 # So? What about this header?
16522 case $ac_header_compiler:$ac_header_preproc in
16524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16525 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16530 ## ------------------------------------ ##
16531 ## Report this to bug-autoconf@gnu.org. ##
16532 ## ------------------------------------ ##
16535 sed "s/^/$as_me: WARNING: /" >&2
16538 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16539 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16540 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16541 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16546 ## ------------------------------------ ##
16547 ## Report this to bug-autoconf@gnu.org. ##
16548 ## ------------------------------------ ##
16551 sed "s/^/$as_me: WARNING: /" >&2
16554 echo "$as_me:$LINENO: checking for $ac_header" >&5
16555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16557 echo $ECHO_N "(cached) $ECHO_C" >&6
16559 eval "$as_ac_Header=$ac_header_preproc"
16561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16566 cat >>confdefs.h
<<_ACEOF
16567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16572 for ac_header
in kerberosIV
/krb.h
16574 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16576 echo "$as_me:$LINENO: checking for $ac_header" >&5
16577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16579 echo $ECHO_N "(cached) $ECHO_C" >&6
16581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16582 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16584 # Is the header compilable?
16585 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16586 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16587 cat >conftest.
$ac_ext <<_ACEOF
16588 #line $LINENO "configure"
16591 cat confdefs.h
>>conftest.
$ac_ext
16592 cat >>conftest.
$ac_ext <<_ACEOF
16593 /* end confdefs.h. */
16594 $ac_includes_default
16595 #include <$ac_header>
16597 rm -f conftest.
$ac_objext
16598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16599 (eval $ac_compile) 2>&5
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); } &&
16603 { ac_try
='test -s conftest.$ac_objext'
16604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16605 (eval $ac_try) 2>&5
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); }; }; then
16609 ac_header_compiler
=yes
16611 echo "$as_me: failed program was:" >&5
16612 sed 's/^/| /' conftest.
$ac_ext >&5
16614 ac_header_compiler
=no
16616 rm -f conftest.
$ac_objext conftest.
$ac_ext
16617 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16618 echo "${ECHO_T}$ac_header_compiler" >&6
16620 # Is the header present?
16621 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16623 cat >conftest.
$ac_ext <<_ACEOF
16624 #line $LINENO "configure"
16627 cat confdefs.h
>>conftest.
$ac_ext
16628 cat >>conftest.
$ac_ext <<_ACEOF
16629 /* end confdefs.h. */
16630 #include <$ac_header>
16632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16633 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16635 grep -v '^ *+' conftest.er1
>conftest.err
16637 cat conftest.err
>&5
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); } >/dev
/null
; then
16640 if test -s conftest.err
; then
16641 ac_cpp_err
=$ac_c_preproc_warn_flag
16648 if test -z "$ac_cpp_err"; then
16649 ac_header_preproc
=yes
16651 echo "$as_me: failed program was:" >&5
16652 sed 's/^/| /' conftest.
$ac_ext >&5
16654 ac_header_preproc
=no
16656 rm -f conftest.err conftest.
$ac_ext
16657 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16658 echo "${ECHO_T}$ac_header_preproc" >&6
16660 # So? What about this header?
16661 case $ac_header_compiler:$ac_header_preproc in
16663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16669 ## ------------------------------------ ##
16670 ## Report this to bug-autoconf@gnu.org. ##
16671 ## ------------------------------------ ##
16674 sed "s/^/$as_me: WARNING: /" >&2
16677 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16678 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16679 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16680 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16685 ## ------------------------------------ ##
16686 ## Report this to bug-autoconf@gnu.org. ##
16687 ## ------------------------------------ ##
16690 sed "s/^/$as_me: WARNING: /" >&2
16693 echo "$as_me:$LINENO: checking for $ac_header" >&5
16694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16696 echo $ECHO_N "(cached) $ECHO_C" >&6
16698 eval "$as_ac_Header=$ac_header_preproc"
16700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16705 cat >>confdefs.h
<<_ACEOF
16706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16711 for ac_header
in kerberos
/krb.h
16713 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16715 echo "$as_me:$LINENO: checking for $ac_header" >&5
16716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16718 echo $ECHO_N "(cached) $ECHO_C" >&6
16720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16723 # Is the header compilable?
16724 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16725 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16726 cat >conftest.
$ac_ext <<_ACEOF
16727 #line $LINENO "configure"
16730 cat confdefs.h
>>conftest.
$ac_ext
16731 cat >>conftest.
$ac_ext <<_ACEOF
16732 /* end confdefs.h. */
16733 $ac_includes_default
16734 #include <$ac_header>
16736 rm -f conftest.
$ac_objext
16737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16738 (eval $ac_compile) 2>&5
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); } &&
16742 { ac_try
='test -s conftest.$ac_objext'
16743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16744 (eval $ac_try) 2>&5
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); }; }; then
16748 ac_header_compiler
=yes
16750 echo "$as_me: failed program was:" >&5
16751 sed 's/^/| /' conftest.
$ac_ext >&5
16753 ac_header_compiler
=no
16755 rm -f conftest.
$ac_objext conftest.
$ac_ext
16756 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16757 echo "${ECHO_T}$ac_header_compiler" >&6
16759 # Is the header present?
16760 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16762 cat >conftest.
$ac_ext <<_ACEOF
16763 #line $LINENO "configure"
16766 cat confdefs.h
>>conftest.
$ac_ext
16767 cat >>conftest.
$ac_ext <<_ACEOF
16768 /* end confdefs.h. */
16769 #include <$ac_header>
16771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16772 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16774 grep -v '^ *+' conftest.er1
>conftest.err
16776 cat conftest.err
>&5
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); } >/dev
/null
; then
16779 if test -s conftest.err
; then
16780 ac_cpp_err
=$ac_c_preproc_warn_flag
16787 if test -z "$ac_cpp_err"; then
16788 ac_header_preproc
=yes
16790 echo "$as_me: failed program was:" >&5
16791 sed 's/^/| /' conftest.
$ac_ext >&5
16793 ac_header_preproc
=no
16795 rm -f conftest.err conftest.
$ac_ext
16796 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16797 echo "${ECHO_T}$ac_header_preproc" >&6
16799 # So? What about this header?
16800 case $ac_header_compiler:$ac_header_preproc in
16802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16808 ## ------------------------------------ ##
16809 ## Report this to bug-autoconf@gnu.org. ##
16810 ## ------------------------------------ ##
16813 sed "s/^/$as_me: WARNING: /" >&2
16816 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16817 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16818 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16819 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16824 ## ------------------------------------ ##
16825 ## Report this to bug-autoconf@gnu.org. ##
16826 ## ------------------------------------ ##
16829 sed "s/^/$as_me: WARNING: /" >&2
16832 echo "$as_me:$LINENO: checking for $ac_header" >&5
16833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16835 echo $ECHO_N "(cached) $ECHO_C" >&6
16837 eval "$as_ac_Header=$ac_header_preproc"
16839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16844 cat >>confdefs.h
<<_ACEOF
16845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16862 for ac_header
in com_err.h
16864 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16866 echo "$as_me:$LINENO: checking for $ac_header" >&5
16867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16869 echo $ECHO_N "(cached) $ECHO_C" >&6
16871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16874 # Is the header compilable?
16875 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16876 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16877 cat >conftest.
$ac_ext <<_ACEOF
16878 #line $LINENO "configure"
16881 cat confdefs.h
>>conftest.
$ac_ext
16882 cat >>conftest.
$ac_ext <<_ACEOF
16883 /* end confdefs.h. */
16884 $ac_includes_default
16885 #include <$ac_header>
16887 rm -f conftest.
$ac_objext
16888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16889 (eval $ac_compile) 2>&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); } &&
16893 { ac_try
='test -s conftest.$ac_objext'
16894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16895 (eval $ac_try) 2>&5
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); }; }; then
16899 ac_header_compiler
=yes
16901 echo "$as_me: failed program was:" >&5
16902 sed 's/^/| /' conftest.
$ac_ext >&5
16904 ac_header_compiler
=no
16906 rm -f conftest.
$ac_objext conftest.
$ac_ext
16907 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16908 echo "${ECHO_T}$ac_header_compiler" >&6
16910 # Is the header present?
16911 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16912 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16913 cat >conftest.
$ac_ext <<_ACEOF
16914 #line $LINENO "configure"
16917 cat confdefs.h
>>conftest.
$ac_ext
16918 cat >>conftest.
$ac_ext <<_ACEOF
16919 /* end confdefs.h. */
16920 #include <$ac_header>
16922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16923 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16925 grep -v '^ *+' conftest.er1
>conftest.err
16927 cat conftest.err
>&5
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); } >/dev
/null
; then
16930 if test -s conftest.err
; then
16931 ac_cpp_err
=$ac_c_preproc_warn_flag
16938 if test -z "$ac_cpp_err"; then
16939 ac_header_preproc
=yes
16941 echo "$as_me: failed program was:" >&5
16942 sed 's/^/| /' conftest.
$ac_ext >&5
16944 ac_header_preproc
=no
16946 rm -f conftest.err conftest.
$ac_ext
16947 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16948 echo "${ECHO_T}$ac_header_preproc" >&6
16950 # So? What about this header?
16951 case $ac_header_compiler:$ac_header_preproc in
16953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16959 ## ------------------------------------ ##
16960 ## Report this to bug-autoconf@gnu.org. ##
16961 ## ------------------------------------ ##
16964 sed "s/^/$as_me: WARNING: /" >&2
16967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16970 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16972 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16975 ## ------------------------------------ ##
16976 ## Report this to bug-autoconf@gnu.org. ##
16977 ## ------------------------------------ ##
16980 sed "s/^/$as_me: WARNING: /" >&2
16983 echo "$as_me:$LINENO: checking for $ac_header" >&5
16984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16986 echo $ECHO_N "(cached) $ECHO_C" >&6
16988 eval "$as_ac_Header=$ac_header_preproc"
16990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16995 cat >>confdefs.h
<<_ACEOF
16996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17005 # Solaris requires -lintl if you want strerror (which calls dgettext)
17006 # to return localized messages.
17008 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
17009 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
17010 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
17011 echo $ECHO_N "(cached) $ECHO_C" >&6
17013 ac_check_lib_save_LIBS
=$LIBS
17014 LIBS
="-lintl $LIBS"
17015 cat >conftest.
$ac_ext <<_ACEOF
17016 #line $LINENO "configure"
17019 cat confdefs.h
>>conftest.
$ac_ext
17020 cat >>conftest.
$ac_ext <<_ACEOF
17021 /* end confdefs.h. */
17023 /* Override any gcc2 internal prototype to avoid an error. */
17027 /* We use char because int might match the return type of a gcc2
17028 builtin and then its argument prototype would still apply. */
17038 rm -f conftest.
$ac_objext conftest
$ac_exeext
17039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17040 (eval $ac_link) 2>&5
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); } &&
17044 { ac_try
='test -s conftest$ac_exeext'
17045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17046 (eval $ac_try) 2>&5
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); }; }; then
17050 ac_cv_lib_intl_dgettext
=yes
17052 echo "$as_me: failed program was:" >&5
17053 sed 's/^/| /' conftest.
$ac_ext >&5
17055 ac_cv_lib_intl_dgettext
=no
17057 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17058 LIBS
=$ac_check_lib_save_LIBS
17060 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
17061 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
17062 if test $ac_cv_lib_intl_dgettext = yes; then
17063 cat >>confdefs.h
<<_ACEOF
17064 #define HAVE_LIBINTL 1
17067 LIBS
="-lintl $LIBS"
17072 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
17073 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
17074 if test "${emacs_cv_localtime_cache+set}" = set; then
17075 echo $ECHO_N "(cached) $ECHO_C" >&6
17077 if test x
$ac_cv_func_tzset = xyes
; then
17078 if test "$cross_compiling" = yes; then
17079 # If we have tzset, assume the worst when cross-compiling.
17080 emacs_cv_localtime_cache
=yes
17082 cat >conftest.
$ac_ext <<_ACEOF
17083 #line $LINENO "configure"
17086 cat confdefs.h
>>conftest.
$ac_ext
17087 cat >>conftest.
$ac_ext <<_ACEOF
17088 /* end confdefs.h. */
17090 extern char **environ;
17094 for (to = from = environ; (*to = *from); from++)
17095 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
17098 char TZ_GMT0[] = "TZ=GMT0";
17099 char TZ_PST8[] = "TZ=PST8";
17102 time_t now = time ((time_t *) 0);
17103 int hour_GMT0, hour_unset;
17104 if (putenv (TZ_GMT0) != 0)
17106 hour_GMT0 = localtime (&now)->tm_hour;
17108 hour_unset = localtime (&now)->tm_hour;
17109 if (putenv (TZ_PST8) != 0)
17111 if (localtime (&now)->tm_hour == hour_GMT0)
17114 if (localtime (&now)->tm_hour != hour_unset)
17119 rm -f conftest
$ac_exeext
17120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17121 (eval $ac_link) 2>&5
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17126 (eval $ac_try) 2>&5
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); }; }; then
17130 emacs_cv_localtime_cache
=no
17132 echo "$as_me: program exited with status $ac_status" >&5
17133 echo "$as_me: failed program was:" >&5
17134 sed 's/^/| /' conftest.
$ac_ext >&5
17136 ( exit $ac_status )
17137 emacs_cv_localtime_cache
=yes
17139 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17142 # If we lack tzset, report that localtime does not cache TZ,
17143 # since we can't invalidate the cache if we don't have tzset.
17144 emacs_cv_localtime_cache
=no
17147 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
17148 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
17149 if test $emacs_cv_localtime_cache = yes; then
17151 cat >>confdefs.h
<<\_ACEOF
17152 #define LOCALTIME_CACHE 1
17157 if test "x$HAVE_TIMEVAL" = xyes
; then
17159 for ac_func
in gettimeofday
17161 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17162 echo "$as_me:$LINENO: checking for $ac_func" >&5
17163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17164 if eval "test \"\${$as_ac_var+set}\" = set"; then
17165 echo $ECHO_N "(cached) $ECHO_C" >&6
17167 cat >conftest.
$ac_ext <<_ACEOF
17168 #line $LINENO "configure"
17171 cat confdefs.h
>>conftest.
$ac_ext
17172 cat >>conftest.
$ac_ext <<_ACEOF
17173 /* end confdefs.h. */
17174 /* System header to define __stub macros and hopefully few prototypes,
17175 which can conflict with char $ac_func (); below.
17176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17177 <limits.h> exists even on freestanding compilers. */
17179 # include <limits.h>
17181 # include <assert.h>
17183 /* Override any gcc2 internal prototype to avoid an error. */
17188 /* We use char because int might match the return type of a gcc2
17189 builtin and then its argument prototype would still apply. */
17191 /* The GNU C library defines this for functions which it implements
17192 to always fail with ENOSYS. Some functions are actually named
17193 something starting with __ and the normal name is an alias. */
17194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17197 char (*f) () = $ac_func;
17206 return f != $ac_func;
17211 rm -f conftest.
$ac_objext conftest
$ac_exeext
17212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17213 (eval $ac_link) 2>&5
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); } &&
17217 { ac_try
='test -s conftest$ac_exeext'
17218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17219 (eval $ac_try) 2>&5
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); }; }; then
17223 eval "$as_ac_var=yes"
17225 echo "$as_me: failed program was:" >&5
17226 sed 's/^/| /' conftest.
$ac_ext >&5
17228 eval "$as_ac_var=no"
17230 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17233 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17234 if test `eval echo '${'$as_ac_var'}'` = yes; then
17235 cat >>confdefs.h
<<_ACEOF
17236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17242 if test $ac_cv_func_gettimeofday = yes; then
17243 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
17244 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
17245 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
17246 echo $ECHO_N "(cached) $ECHO_C" >&6
17248 cat >conftest.
$ac_ext <<_ACEOF
17249 #line $LINENO "configure"
17252 cat confdefs.h
>>conftest.
$ac_ext
17253 cat >>conftest.
$ac_ext <<_ACEOF
17254 /* end confdefs.h. */
17256 #ifdef TIME_WITH_SYS_TIME
17257 #include <sys/time.h>
17260 #ifdef HAVE_SYS_TIME_H
17261 #include <sys/time.h>
17269 struct timeval time;
17270 gettimeofday (&time, 0);
17275 rm -f conftest.
$ac_objext
17276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17277 (eval $ac_compile) 2>&5
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); } &&
17281 { ac_try
='test -s conftest.$ac_objext'
17282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17283 (eval $ac_try) 2>&5
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); }; }; then
17287 emacs_cv_gettimeofday_two_arguments
=yes
17289 echo "$as_me: failed program was:" >&5
17290 sed 's/^/| /' conftest.
$ac_ext >&5
17292 emacs_cv_gettimeofday_two_arguments
=no
17294 rm -f conftest.
$ac_objext conftest.
$ac_ext
17296 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
17297 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
17298 if test $emacs_cv_gettimeofday_two_arguments = no
; then
17300 cat >>confdefs.h
<<\_ACEOF
17301 #define GETTIMEOFDAY_ONE_ARGUMENT 1
17308 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
17309 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
17310 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
17311 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
17312 echo $ECHO_N "(cached) $ECHO_C" >&6
17314 cat >conftest.
$ac_ext <<_ACEOF
17315 #line $LINENO "configure"
17318 cat confdefs.h
>>conftest.
$ac_ext
17319 cat >>conftest.
$ac_ext <<_ACEOF
17320 /* end confdefs.h. */
17321 #include <sys/types.h>
17322 #include <$ac_cv_struct_tm>
17328 static struct tm ac_aggr;
17329 if (ac_aggr.tm_zone)
17335 rm -f conftest.
$ac_objext
17336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17337 (eval $ac_compile) 2>&5
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); } &&
17341 { ac_try
='test -s conftest.$ac_objext'
17342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17343 (eval $ac_try) 2>&5
17345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346 (exit $ac_status); }; }; then
17347 ac_cv_member_struct_tm_tm_zone
=yes
17349 echo "$as_me: failed program was:" >&5
17350 sed 's/^/| /' conftest.
$ac_ext >&5
17352 cat >conftest.
$ac_ext <<_ACEOF
17353 #line $LINENO "configure"
17356 cat confdefs.h
>>conftest.
$ac_ext
17357 cat >>conftest.
$ac_ext <<_ACEOF
17358 /* end confdefs.h. */
17359 #include <sys/types.h>
17360 #include <$ac_cv_struct_tm>
17366 static struct tm ac_aggr;
17367 if (sizeof ac_aggr.tm_zone)
17373 rm -f conftest.
$ac_objext
17374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17375 (eval $ac_compile) 2>&5
17377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378 (exit $ac_status); } &&
17379 { ac_try
='test -s conftest.$ac_objext'
17380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17381 (eval $ac_try) 2>&5
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); }; }; then
17385 ac_cv_member_struct_tm_tm_zone
=yes
17387 echo "$as_me: failed program was:" >&5
17388 sed 's/^/| /' conftest.
$ac_ext >&5
17390 ac_cv_member_struct_tm_tm_zone
=no
17392 rm -f conftest.
$ac_objext conftest.
$ac_ext
17394 rm -f conftest.
$ac_objext conftest.
$ac_ext
17396 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
17397 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
17398 if test $ac_cv_member_struct_tm_tm_zone = yes; then
17400 cat >>confdefs.h
<<_ACEOF
17401 #define HAVE_STRUCT_TM_TM_ZONE 1
17407 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17409 cat >>confdefs.h
<<\_ACEOF
17410 #define HAVE_TM_ZONE 1
17414 echo "$as_me:$LINENO: checking for tzname" >&5
17415 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
17416 if test "${ac_cv_var_tzname+set}" = set; then
17417 echo $ECHO_N "(cached) $ECHO_C" >&6
17419 cat >conftest.
$ac_ext <<_ACEOF
17420 #line $LINENO "configure"
17423 cat confdefs.h
>>conftest.
$ac_ext
17424 cat >>conftest.
$ac_ext <<_ACEOF
17425 /* end confdefs.h. */
17427 #ifndef tzname /* For SGI. */
17428 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
17439 rm -f conftest.
$ac_objext conftest
$ac_exeext
17440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17441 (eval $ac_link) 2>&5
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); } &&
17445 { ac_try
='test -s conftest$ac_exeext'
17446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17447 (eval $ac_try) 2>&5
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); }; }; then
17451 ac_cv_var_tzname
=yes
17453 echo "$as_me: failed program was:" >&5
17454 sed 's/^/| /' conftest.
$ac_ext >&5
17456 ac_cv_var_tzname
=no
17458 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17460 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17461 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17462 if test $ac_cv_var_tzname = yes; then
17464 cat >>confdefs.h
<<\_ACEOF
17465 #define HAVE_TZNAME 1
17472 if test "$ac_cv_func_gettimeofday" = yes; then
17473 echo "$as_me:$LINENO: checking for struct timezone" >&5
17474 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
17475 if test "${emacs_cv_struct_timezone+set}" = set; then
17476 echo $ECHO_N "(cached) $ECHO_C" >&6
17478 cat >conftest.
$ac_ext <<_ACEOF
17479 #line $LINENO "configure"
17482 cat confdefs.h
>>conftest.
$ac_ext
17483 cat >>conftest.
$ac_ext <<_ACEOF
17484 /* end confdefs.h. */
17485 #include <sys/time.h>
17489 struct timezone tz;
17494 rm -f conftest.
$ac_objext
17495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17496 (eval $ac_compile) 2>&5
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); } &&
17500 { ac_try
='test -s conftest.$ac_objext'
17501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17502 (eval $ac_try) 2>&5
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); }; }; then
17506 if test "$cross_compiling" = yes; then
17507 emacs_cv_struct_timezone
=yes
17509 cat >conftest.
$ac_ext <<_ACEOF
17510 #line $LINENO "configure"
17513 cat confdefs.h
>>conftest.
$ac_ext
17514 cat >>conftest.
$ac_ext <<_ACEOF
17515 /* end confdefs.h. */
17517 #ifdef TIME_WITH_SYS_TIME
17518 #include <sys/time.h>
17521 #ifdef HAVE_SYS_TIME_H
17522 #include <sys/time.h>
17528 struct timeval time;
17529 struct timezone dummy;
17530 exit (gettimeofday (&time, &dummy));
17533 rm -f conftest
$ac_exeext
17534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17535 (eval $ac_link) 2>&5
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17540 (eval $ac_try) 2>&5
17542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); }; }; then
17544 emacs_cv_struct_timezone
=yes
17546 echo "$as_me: program exited with status $ac_status" >&5
17547 echo "$as_me: failed program was:" >&5
17548 sed 's/^/| /' conftest.
$ac_ext >&5
17550 ( exit $ac_status )
17551 emacs_cv_struct_timezone
=no
17553 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17556 echo "$as_me: failed program was:" >&5
17557 sed 's/^/| /' conftest.
$ac_ext >&5
17559 emacs_cv_struct_timezone
=no
17561 rm -f conftest.
$ac_objext conftest.
$ac_ext
17563 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
17564 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
17568 echo "$as_me:$LINENO: checking for socket" >&5
17569 echo $ECHO_N "checking for socket... $ECHO_C" >&6
17570 if test "${ac_cv_func_socket+set}" = set; then
17571 echo $ECHO_N "(cached) $ECHO_C" >&6
17573 cat >conftest.
$ac_ext <<_ACEOF
17574 #line $LINENO "configure"
17577 cat confdefs.h
>>conftest.
$ac_ext
17578 cat >>conftest.
$ac_ext <<_ACEOF
17579 /* end confdefs.h. */
17580 /* System header to define __stub macros and hopefully few prototypes,
17581 which can conflict with char socket (); below.
17582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17583 <limits.h> exists even on freestanding compilers. */
17585 # include <limits.h>
17587 # include <assert.h>
17589 /* Override any gcc2 internal prototype to avoid an error. */
17594 /* We use char because int might match the return type of a gcc2
17595 builtin and then its argument prototype would still apply. */
17597 /* The GNU C library defines this for functions which it implements
17598 to always fail with ENOSYS. Some functions are actually named
17599 something starting with __ and the normal name is an alias. */
17600 #if defined (__stub_socket) || defined (__stub___socket)
17603 char (*f) () = socket;
17612 return f != socket;
17617 rm -f conftest.
$ac_objext conftest
$ac_exeext
17618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17619 (eval $ac_link) 2>&5
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); } &&
17623 { ac_try
='test -s conftest$ac_exeext'
17624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17625 (eval $ac_try) 2>&5
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); }; }; then
17629 ac_cv_func_socket
=yes
17631 echo "$as_me: failed program was:" >&5
17632 sed 's/^/| /' conftest.
$ac_ext >&5
17634 ac_cv_func_socket
=no
17636 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17638 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17639 echo "${ECHO_T}$ac_cv_func_socket" >&6
17640 if test $ac_cv_func_socket = yes; then
17646 if test $ok_so_far = yes; then
17647 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17648 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17649 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17650 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17651 echo $ECHO_N "(cached) $ECHO_C" >&6
17653 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17654 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17656 # Is the header compilable?
17657 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
17658 echo $ECHO_N "checking netinet/in.h usability... $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 $ac_includes_default
17667 #include <netinet/in.h>
17669 rm -f conftest.
$ac_objext
17670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17671 (eval $ac_compile) 2>&5
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); } &&
17675 { ac_try
='test -s conftest.$ac_objext'
17676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17677 (eval $ac_try) 2>&5
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); }; }; then
17681 ac_header_compiler
=yes
17683 echo "$as_me: failed program was:" >&5
17684 sed 's/^/| /' conftest.
$ac_ext >&5
17686 ac_header_compiler
=no
17688 rm -f conftest.
$ac_objext conftest.
$ac_ext
17689 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17690 echo "${ECHO_T}$ac_header_compiler" >&6
17692 # Is the header present?
17693 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
17694 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
17695 cat >conftest.
$ac_ext <<_ACEOF
17696 #line $LINENO "configure"
17699 cat confdefs.h
>>conftest.
$ac_ext
17700 cat >>conftest.
$ac_ext <<_ACEOF
17701 /* end confdefs.h. */
17702 #include <netinet/in.h>
17704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17705 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17707 grep -v '^ *+' conftest.er1
>conftest.err
17709 cat conftest.err
>&5
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); } >/dev
/null
; then
17712 if test -s conftest.err
; then
17713 ac_cpp_err
=$ac_c_preproc_warn_flag
17720 if test -z "$ac_cpp_err"; then
17721 ac_header_preproc
=yes
17723 echo "$as_me: failed program was:" >&5
17724 sed 's/^/| /' conftest.
$ac_ext >&5
17726 ac_header_preproc
=no
17728 rm -f conftest.err conftest.
$ac_ext
17729 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17730 echo "${ECHO_T}$ac_header_preproc" >&6
17732 # So? What about this header?
17733 case $ac_header_compiler:$ac_header_preproc in
17735 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
17736 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17737 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
17738 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
17741 ## ------------------------------------ ##
17742 ## Report this to bug-autoconf@gnu.org. ##
17743 ## ------------------------------------ ##
17746 sed "s/^/$as_me: WARNING: /" >&2
17749 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
17750 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
17751 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
17752 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
17753 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
17754 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
17757 ## ------------------------------------ ##
17758 ## Report this to bug-autoconf@gnu.org. ##
17759 ## ------------------------------------ ##
17762 sed "s/^/$as_me: WARNING: /" >&2
17765 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17766 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17767 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17768 echo $ECHO_N "(cached) $ECHO_C" >&6
17770 ac_cv_header_netinet_in_h
=$ac_header_preproc
17772 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17773 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17776 if test $ac_cv_header_netinet_in_h = yes; then
17784 if test $ok_so_far = yes; then
17785 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17786 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17787 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17788 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17789 echo $ECHO_N "(cached) $ECHO_C" >&6
17791 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17792 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17794 # Is the header compilable?
17795 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
17796 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
17797 cat >conftest.
$ac_ext <<_ACEOF
17798 #line $LINENO "configure"
17801 cat confdefs.h
>>conftest.
$ac_ext
17802 cat >>conftest.
$ac_ext <<_ACEOF
17803 /* end confdefs.h. */
17804 $ac_includes_default
17805 #include <arpa/inet.h>
17807 rm -f conftest.
$ac_objext
17808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17809 (eval $ac_compile) 2>&5
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); } &&
17813 { ac_try
='test -s conftest.$ac_objext'
17814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17815 (eval $ac_try) 2>&5
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); }; }; then
17819 ac_header_compiler
=yes
17821 echo "$as_me: failed program was:" >&5
17822 sed 's/^/| /' conftest.
$ac_ext >&5
17824 ac_header_compiler
=no
17826 rm -f conftest.
$ac_objext conftest.
$ac_ext
17827 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17828 echo "${ECHO_T}$ac_header_compiler" >&6
17830 # Is the header present?
17831 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
17832 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
17833 cat >conftest.
$ac_ext <<_ACEOF
17834 #line $LINENO "configure"
17837 cat confdefs.h
>>conftest.
$ac_ext
17838 cat >>conftest.
$ac_ext <<_ACEOF
17839 /* end confdefs.h. */
17840 #include <arpa/inet.h>
17842 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17843 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17845 grep -v '^ *+' conftest.er1
>conftest.err
17847 cat conftest.err
>&5
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } >/dev
/null
; then
17850 if test -s conftest.err
; then
17851 ac_cpp_err
=$ac_c_preproc_warn_flag
17858 if test -z "$ac_cpp_err"; then
17859 ac_header_preproc
=yes
17861 echo "$as_me: failed program was:" >&5
17862 sed 's/^/| /' conftest.
$ac_ext >&5
17864 ac_header_preproc
=no
17866 rm -f conftest.err conftest.
$ac_ext
17867 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17868 echo "${ECHO_T}$ac_header_preproc" >&6
17870 # So? What about this header?
17871 case $ac_header_compiler:$ac_header_preproc in
17873 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
17874 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17875 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
17876 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
17879 ## ------------------------------------ ##
17880 ## Report this to bug-autoconf@gnu.org. ##
17881 ## ------------------------------------ ##
17884 sed "s/^/$as_me: WARNING: /" >&2
17887 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
17888 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
17889 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
17890 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
17891 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
17892 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
17895 ## ------------------------------------ ##
17896 ## Report this to bug-autoconf@gnu.org. ##
17897 ## ------------------------------------ ##
17900 sed "s/^/$as_me: WARNING: /" >&2
17903 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17904 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17905 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17906 echo $ECHO_N "(cached) $ECHO_C" >&6
17908 ac_cv_header_arpa_inet_h
=$ac_header_preproc
17910 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17911 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17914 if test $ac_cv_header_arpa_inet_h = yes; then
17922 if test $ok_so_far = yes; then
17924 cat >>confdefs.h
<<\_ACEOF
17925 #define HAVE_INET_SOCKETS 1
17932 for ac_header
in sys
/ioctl.h net
/if.h
17934 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17936 echo "$as_me:$LINENO: checking for $ac_header" >&5
17937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17939 echo $ECHO_N "(cached) $ECHO_C" >&6
17941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17944 # Is the header compilable?
17945 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17946 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17947 cat >conftest.
$ac_ext <<_ACEOF
17948 #line $LINENO "configure"
17951 cat confdefs.h
>>conftest.
$ac_ext
17952 cat >>conftest.
$ac_ext <<_ACEOF
17953 /* end confdefs.h. */
17954 $ac_includes_default
17955 #include <$ac_header>
17957 rm -f conftest.
$ac_objext
17958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17959 (eval $ac_compile) 2>&5
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); } &&
17963 { ac_try
='test -s conftest.$ac_objext'
17964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17965 (eval $ac_try) 2>&5
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); }; }; then
17969 ac_header_compiler
=yes
17971 echo "$as_me: failed program was:" >&5
17972 sed 's/^/| /' conftest.
$ac_ext >&5
17974 ac_header_compiler
=no
17976 rm -f conftest.
$ac_objext conftest.
$ac_ext
17977 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17978 echo "${ECHO_T}$ac_header_compiler" >&6
17980 # Is the header present?
17981 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17983 cat >conftest.
$ac_ext <<_ACEOF
17984 #line $LINENO "configure"
17987 cat confdefs.h
>>conftest.
$ac_ext
17988 cat >>conftest.
$ac_ext <<_ACEOF
17989 /* end confdefs.h. */
17990 #include <$ac_header>
17992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17993 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17995 grep -v '^ *+' conftest.er1
>conftest.err
17997 cat conftest.err
>&5
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); } >/dev
/null
; then
18000 if test -s conftest.err
; then
18001 ac_cpp_err
=$ac_c_preproc_warn_flag
18008 if test -z "$ac_cpp_err"; then
18009 ac_header_preproc
=yes
18011 echo "$as_me: failed program was:" >&5
18012 sed 's/^/| /' conftest.
$ac_ext >&5
18014 ac_header_preproc
=no
18016 rm -f conftest.err conftest.
$ac_ext
18017 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18018 echo "${ECHO_T}$ac_header_preproc" >&6
18020 # So? What about this header?
18021 case $ac_header_compiler:$ac_header_preproc in
18023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18026 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18029 ## ------------------------------------ ##
18030 ## Report this to bug-autoconf@gnu.org. ##
18031 ## ------------------------------------ ##
18034 sed "s/^/$as_me: WARNING: /" >&2
18037 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18038 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18039 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18040 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18045 ## ------------------------------------ ##
18046 ## Report this to bug-autoconf@gnu.org. ##
18047 ## ------------------------------------ ##
18050 sed "s/^/$as_me: WARNING: /" >&2
18053 echo "$as_me:$LINENO: checking for $ac_header" >&5
18054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18056 echo $ECHO_N "(cached) $ECHO_C" >&6
18058 eval "$as_ac_Header=$ac_header_preproc"
18060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18065 cat >>confdefs.h
<<_ACEOF
18066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18074 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
18076 cat >>confdefs.h
<<\_ACEOF
18077 #define HAVE_AIX_SMT_EXP 1
18082 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
18083 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
18084 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
18085 echo "$as_me:$LINENO: result: yes" >&5
18086 echo "${ECHO_T}yes" >&6
18088 cat >>confdefs.h
<<\_ACEOF
18089 #define HAVE_DEV_PTMX 1
18093 echo "$as_me:$LINENO: result: no" >&5
18094 echo "${ECHO_T}no" >&6
18097 echo "$as_me:$LINENO: checking for pid_t" >&5
18098 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
18099 if test "${ac_cv_type_pid_t+set}" = set; then
18100 echo $ECHO_N "(cached) $ECHO_C" >&6
18102 cat >conftest.
$ac_ext <<_ACEOF
18103 #line $LINENO "configure"
18106 cat confdefs.h
>>conftest.
$ac_ext
18107 cat >>conftest.
$ac_ext <<_ACEOF
18108 /* end confdefs.h. */
18109 $ac_includes_default
18115 if (sizeof (pid_t))
18121 rm -f conftest.
$ac_objext
18122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18123 (eval $ac_compile) 2>&5
18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); } &&
18127 { ac_try
='test -s conftest.$ac_objext'
18128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18129 (eval $ac_try) 2>&5
18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 (exit $ac_status); }; }; then
18133 ac_cv_type_pid_t
=yes
18135 echo "$as_me: failed program was:" >&5
18136 sed 's/^/| /' conftest.
$ac_ext >&5
18138 ac_cv_type_pid_t
=no
18140 rm -f conftest.
$ac_objext conftest.
$ac_ext
18142 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
18143 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
18144 if test $ac_cv_type_pid_t = yes; then
18148 cat >>confdefs.h
<<_ACEOF
18156 for ac_header
in unistd.h vfork.h
18158 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18160 echo "$as_me:$LINENO: checking for $ac_header" >&5
18161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18163 echo $ECHO_N "(cached) $ECHO_C" >&6
18165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18166 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18168 # Is the header compilable?
18169 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18171 cat >conftest.
$ac_ext <<_ACEOF
18172 #line $LINENO "configure"
18175 cat confdefs.h
>>conftest.
$ac_ext
18176 cat >>conftest.
$ac_ext <<_ACEOF
18177 /* end confdefs.h. */
18178 $ac_includes_default
18179 #include <$ac_header>
18181 rm -f conftest.
$ac_objext
18182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18183 (eval $ac_compile) 2>&5
18185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186 (exit $ac_status); } &&
18187 { ac_try
='test -s conftest.$ac_objext'
18188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18189 (eval $ac_try) 2>&5
18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); }; }; then
18193 ac_header_compiler
=yes
18195 echo "$as_me: failed program was:" >&5
18196 sed 's/^/| /' conftest.
$ac_ext >&5
18198 ac_header_compiler
=no
18200 rm -f conftest.
$ac_objext conftest.
$ac_ext
18201 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18202 echo "${ECHO_T}$ac_header_compiler" >&6
18204 # Is the header present?
18205 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18206 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18207 cat >conftest.
$ac_ext <<_ACEOF
18208 #line $LINENO "configure"
18211 cat confdefs.h
>>conftest.
$ac_ext
18212 cat >>conftest.
$ac_ext <<_ACEOF
18213 /* end confdefs.h. */
18214 #include <$ac_header>
18216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18217 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18219 grep -v '^ *+' conftest.er1
>conftest.err
18221 cat conftest.err
>&5
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); } >/dev
/null
; then
18224 if test -s conftest.err
; then
18225 ac_cpp_err
=$ac_c_preproc_warn_flag
18232 if test -z "$ac_cpp_err"; then
18233 ac_header_preproc
=yes
18235 echo "$as_me: failed program was:" >&5
18236 sed 's/^/| /' conftest.
$ac_ext >&5
18238 ac_header_preproc
=no
18240 rm -f conftest.err conftest.
$ac_ext
18241 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18242 echo "${ECHO_T}$ac_header_preproc" >&6
18244 # So? What about this header?
18245 case $ac_header_compiler:$ac_header_preproc in
18247 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18248 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18250 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18253 ## ------------------------------------ ##
18254 ## Report this to bug-autoconf@gnu.org. ##
18255 ## ------------------------------------ ##
18258 sed "s/^/$as_me: WARNING: /" >&2
18261 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18262 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18263 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18264 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18269 ## ------------------------------------ ##
18270 ## Report this to bug-autoconf@gnu.org. ##
18271 ## ------------------------------------ ##
18274 sed "s/^/$as_me: WARNING: /" >&2
18277 echo "$as_me:$LINENO: checking for $ac_header" >&5
18278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18280 echo $ECHO_N "(cached) $ECHO_C" >&6
18282 eval "$as_ac_Header=$ac_header_preproc"
18284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18289 cat >>confdefs.h
<<_ACEOF
18290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18299 for ac_func
in fork vfork
18301 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18302 echo "$as_me:$LINENO: checking for $ac_func" >&5
18303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18304 if eval "test \"\${$as_ac_var+set}\" = set"; then
18305 echo $ECHO_N "(cached) $ECHO_C" >&6
18307 cat >conftest.
$ac_ext <<_ACEOF
18308 #line $LINENO "configure"
18311 cat confdefs.h
>>conftest.
$ac_ext
18312 cat >>conftest.
$ac_ext <<_ACEOF
18313 /* end confdefs.h. */
18314 /* System header to define __stub macros and hopefully few prototypes,
18315 which can conflict with char $ac_func (); below.
18316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18317 <limits.h> exists even on freestanding compilers. */
18319 # include <limits.h>
18321 # include <assert.h>
18323 /* Override any gcc2 internal prototype to avoid an error. */
18328 /* We use char because int might match the return type of a gcc2
18329 builtin and then its argument prototype would still apply. */
18331 /* The GNU C library defines this for functions which it implements
18332 to always fail with ENOSYS. Some functions are actually named
18333 something starting with __ and the normal name is an alias. */
18334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18337 char (*f) () = $ac_func;
18346 return f != $ac_func;
18351 rm -f conftest.
$ac_objext conftest
$ac_exeext
18352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18353 (eval $ac_link) 2>&5
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); } &&
18357 { ac_try
='test -s conftest$ac_exeext'
18358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18359 (eval $ac_try) 2>&5
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); }; }; then
18363 eval "$as_ac_var=yes"
18365 echo "$as_me: failed program was:" >&5
18366 sed 's/^/| /' conftest.
$ac_ext >&5
18368 eval "$as_ac_var=no"
18370 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
18372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18373 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18374 if test `eval echo '${'$as_ac_var'}'` = yes; then
18375 cat >>confdefs.h
<<_ACEOF
18376 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18382 if test "x$ac_cv_func_fork" = xyes
; then
18383 echo "$as_me:$LINENO: checking for working fork" >&5
18384 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
18385 if test "${ac_cv_func_fork_works+set}" = set; then
18386 echo $ECHO_N "(cached) $ECHO_C" >&6
18388 if test "$cross_compiling" = yes; then
18389 ac_cv_func_fork_works
=cross
18391 cat >conftest.
$ac_ext <<_ACEOF
18392 /* By Ruediger Kuhlmann. */
18393 #include <sys/types.h>
18395 # include <unistd.h>
18397 /* Some systems only have a dummy stub for fork() */
18405 rm -f conftest
$ac_exeext
18406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18407 (eval $ac_link) 2>&5
18409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18412 (eval $ac_try) 2>&5
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); }; }; then
18416 ac_cv_func_fork_works
=yes
18418 echo "$as_me: program exited with status $ac_status" >&5
18419 echo "$as_me: failed program was:" >&5
18420 sed 's/^/| /' conftest.
$ac_ext >&5
18422 ( exit $ac_status )
18423 ac_cv_func_fork_works
=no
18425 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18428 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
18429 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
18432 ac_cv_func_fork_works
=$ac_cv_func_fork
18434 if test "x$ac_cv_func_fork_works" = xcross
; then
18436 *-*-amigaos* |
*-*-msdosdjgpp*)
18437 # Override, as these systems have only a dummy fork() stub
18438 ac_cv_func_fork_works
=no
18441 ac_cv_func_fork_works
=yes
18444 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18445 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18447 ac_cv_func_vfork_works
=$ac_cv_func_vfork
18448 if test "x$ac_cv_func_vfork" = xyes
; then
18449 echo "$as_me:$LINENO: checking for working vfork" >&5
18450 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
18451 if test "${ac_cv_func_vfork_works+set}" = set; then
18452 echo $ECHO_N "(cached) $ECHO_C" >&6
18454 if test "$cross_compiling" = yes; then
18455 ac_cv_func_vfork_works
=cross
18457 cat >conftest.
$ac_ext <<_ACEOF
18458 #line $LINENO "configure"
18461 cat confdefs.h
>>conftest.
$ac_ext
18462 cat >>conftest.
$ac_ext <<_ACEOF
18463 /* end confdefs.h. */
18464 /* Thanks to Paul Eggert for this test. */
18466 #include <stdlib.h>
18467 #include <sys/types.h>
18468 #include <sys/stat.h>
18469 #include <sys/wait.h>
18471 # include <unistd.h>
18474 # include <vfork.h>
18476 /* On some sparc systems, changes by the child to local and incoming
18477 argument registers are propagated back to the parent. The compiler
18478 is told about this with #include <vfork.h>, but some compilers
18479 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18480 static variable whose address is put into a register that is
18481 clobbered by the vfork. */
18484 sparc_address_test (int arg)
18486 sparc_address_test (arg) int arg;
18489 static pid_t child;
18507 pid_t parent = getpid ();
18510 sparc_address_test (0);
18515 /* Here is another test for sparc vfork register problems. This
18516 test uses lots of local variables, at least as many local
18517 variables as main has allocated so far including compiler
18518 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18519 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18520 reuse the register of parent for one of the local variables,
18521 since it will think that parent can't possibly be used any more
18522 in this routine. Assigning to the local variable will thus
18523 munge parent in the parent process. */
18525 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18526 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18527 /* Convince the compiler that p..p7 are live; otherwise, it might
18528 use the same hardware register for all 8 local variables. */
18529 if (p != p1 || p != p2 || p != p3 || p != p4
18530 || p != p5 || p != p6 || p != p7)
18533 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18534 from child file descriptors. If the child closes a descriptor
18535 before it execs or exits, this munges the parent's descriptor
18536 as well. Test for this by closing stdout in the child. */
18537 _exit(close(fileno(stdout)) != 0);
18542 while (wait(&status) != child)
18545 /* Was there some problem with vforking? */
18548 /* Did the child fail? (This shouldn't happen.) */
18551 /* Did the vfork/compiler bug occur? */
18552 || parent != getpid()
18554 /* Did the file descriptor bug occur? */
18555 || fstat(fileno(stdout), &st) != 0
18560 rm -f conftest
$ac_exeext
18561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18562 (eval $ac_link) 2>&5
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18567 (eval $ac_try) 2>&5
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); }; }; then
18571 ac_cv_func_vfork_works
=yes
18573 echo "$as_me: program exited with status $ac_status" >&5
18574 echo "$as_me: failed program was:" >&5
18575 sed 's/^/| /' conftest.
$ac_ext >&5
18577 ( exit $ac_status )
18578 ac_cv_func_vfork_works
=no
18580 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18583 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
18584 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
18587 if test "x$ac_cv_func_fork_works" = xcross
; then
18588 ac_cv_func_vfork_works
=ac_cv_func_vfork
18589 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18590 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18593 if test "x$ac_cv_func_vfork_works" = xyes
; then
18595 cat >>confdefs.h
<<\_ACEOF
18596 #define HAVE_WORKING_VFORK 1
18601 cat >>confdefs.h
<<\_ACEOF
18606 if test "x$ac_cv_func_fork_works" = xyes
; then
18608 cat >>confdefs.h
<<\_ACEOF
18609 #define HAVE_WORKING_FORK 1
18615 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
18616 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
18617 if test "${emacs_cv_langinfo_codeset+set}" = set; then
18618 echo $ECHO_N "(cached) $ECHO_C" >&6
18620 cat >conftest.
$ac_ext <<_ACEOF
18621 #line $LINENO "configure"
18624 cat confdefs.h
>>conftest.
$ac_ext
18625 cat >>conftest.
$ac_ext <<_ACEOF
18626 /* end confdefs.h. */
18627 #include <langinfo.h>
18631 char* cs = nl_langinfo(CODESET);
18636 rm -f conftest.
$ac_objext conftest
$ac_exeext
18637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18638 (eval $ac_link) 2>&5
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); } &&
18642 { ac_try
='test -s conftest$ac_exeext'
18643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18644 (eval $ac_try) 2>&5
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); }; }; then
18648 emacs_cv_langinfo_codeset
=yes
18650 echo "$as_me: failed program was:" >&5
18651 sed 's/^/| /' conftest.
$ac_ext >&5
18653 emacs_cv_langinfo_codeset
=no
18655 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
18658 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
18659 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
18660 if test $emacs_cv_langinfo_codeset = yes; then
18662 cat >>confdefs.h
<<\_ACEOF
18663 #define HAVE_LANGINFO_CODESET 1
18668 echo "$as_me:$LINENO: checking for size_t" >&5
18669 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18670 if test "${ac_cv_type_size_t+set}" = set; then
18671 echo $ECHO_N "(cached) $ECHO_C" >&6
18673 cat >conftest.
$ac_ext <<_ACEOF
18674 #line $LINENO "configure"
18677 cat confdefs.h
>>conftest.
$ac_ext
18678 cat >>conftest.
$ac_ext <<_ACEOF
18679 /* end confdefs.h. */
18680 $ac_includes_default
18686 if (sizeof (size_t))
18692 rm -f conftest.
$ac_objext
18693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18694 (eval $ac_compile) 2>&5
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); } &&
18698 { ac_try
='test -s conftest.$ac_objext'
18699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18700 (eval $ac_try) 2>&5
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); }; }; then
18704 ac_cv_type_size_t
=yes
18706 echo "$as_me: failed program was:" >&5
18707 sed 's/^/| /' conftest.
$ac_ext >&5
18709 ac_cv_type_size_t
=no
18711 rm -f conftest.
$ac_objext conftest.
$ac_ext
18713 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18714 echo "${ECHO_T}$ac_cv_type_size_t" >&6
18715 if test $ac_cv_type_size_t = yes; then
18717 cat >>confdefs.h
<<_ACEOF
18718 #define HAVE_SIZE_T 1
18725 echo "$as_me:$LINENO: checking for mbstate_t" >&5
18726 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
18727 if test "${ac_cv_type_mbstate_t+set}" = set; then
18728 echo $ECHO_N "(cached) $ECHO_C" >&6
18730 cat >conftest.
$ac_ext <<_ACEOF
18731 #line $LINENO "configure"
18734 cat confdefs.h
>>conftest.
$ac_ext
18735 cat >>conftest.
$ac_ext <<_ACEOF
18736 /* end confdefs.h. */
18737 $ac_includes_default
18738 # include <wchar.h>
18742 mbstate_t x; return sizeof x;
18747 rm -f conftest.
$ac_objext
18748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18749 (eval $ac_compile) 2>&5
18751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752 (exit $ac_status); } &&
18753 { ac_try
='test -s conftest.$ac_objext'
18754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18755 (eval $ac_try) 2>&5
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); }; }; then
18759 ac_cv_type_mbstate_t
=yes
18761 echo "$as_me: failed program was:" >&5
18762 sed 's/^/| /' conftest.
$ac_ext >&5
18764 ac_cv_type_mbstate_t
=no
18766 rm -f conftest.
$ac_objext conftest.
$ac_ext
18768 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
18769 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
18770 if test $ac_cv_type_mbstate_t = yes; then
18772 cat >>confdefs.h
<<\_ACEOF
18773 #define HAVE_MBSTATE_T 1
18778 cat >>confdefs.h
<<\_ACEOF
18779 #define mbstate_t int
18784 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
18785 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
18786 if test "${emacs_cv_c_restrict+set}" = set; then
18787 echo $ECHO_N "(cached) $ECHO_C" >&6
18789 cat >conftest.
$ac_ext <<_ACEOF
18790 #line $LINENO "configure"
18793 cat confdefs.h
>>conftest.
$ac_ext
18794 cat >>conftest.
$ac_ext <<_ACEOF
18795 /* end confdefs.h. */
18796 void fred (int *restrict x);
18805 rm -f conftest.
$ac_objext
18806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18807 (eval $ac_compile) 2>&5
18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810 (exit $ac_status); } &&
18811 { ac_try
='test -s conftest.$ac_objext'
18812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18813 (eval $ac_try) 2>&5
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); }; }; then
18817 emacs_cv_c_restrict
=yes
18819 echo "$as_me: failed program was:" >&5
18820 sed 's/^/| /' conftest.
$ac_ext >&5
18822 cat >conftest.
$ac_ext <<_ACEOF
18823 #line $LINENO "configure"
18826 cat confdefs.h
>>conftest.
$ac_ext
18827 cat >>conftest.
$ac_ext <<_ACEOF
18828 /* end confdefs.h. */
18829 void fred (int *__restrict x);
18838 rm -f conftest.
$ac_objext
18839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18840 (eval $ac_compile) 2>&5
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); } &&
18844 { ac_try
='test -s conftest.$ac_objext'
18845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18846 (eval $ac_try) 2>&5
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); }; }; then
18850 emacs_cv_c_restrict
=__restrict
18852 echo "$as_me: failed program was:" >&5
18853 sed 's/^/| /' conftest.
$ac_ext >&5
18855 emacs_cv_c_restrict
=no
18857 rm -f conftest.
$ac_objext conftest.
$ac_ext
18859 rm -f conftest.
$ac_objext conftest.
$ac_ext
18861 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
18862 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
18863 case "$emacs_cv_c_restrict" in
18864 yes) emacs_restrict
=restrict
;;
18865 no
) emacs_restrict
="";;
18866 *) emacs_restrict
="$emacs_cv_c_restrict";;
18868 if test "$emacs_restrict" != __restrict
; then
18870 cat >>confdefs.h
<<_ACEOF
18871 #define __restrict $emacs_restrict
18876 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
18877 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
18878 if test "${emacs_cv_c_restrict_arr+set}" = set; then
18879 echo $ECHO_N "(cached) $ECHO_C" >&6
18881 cat >conftest.
$ac_ext <<_ACEOF
18882 #line $LINENO "configure"
18885 cat confdefs.h
>>conftest.
$ac_ext
18886 cat >>conftest.
$ac_ext <<_ACEOF
18887 /* end confdefs.h. */
18888 void fred (int x[__restrict]);
18897 rm -f conftest.
$ac_objext
18898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18899 (eval $ac_compile) 2>&5
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); } &&
18903 { ac_try
='test -s conftest.$ac_objext'
18904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18905 (eval $ac_try) 2>&5
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); }; }; then
18909 emacs_cv_c_restrict_arr
=yes
18911 echo "$as_me: failed program was:" >&5
18912 sed 's/^/| /' conftest.
$ac_ext >&5
18914 emacs_cv_c_restrict_arr
=no
18916 rm -f conftest.
$ac_objext conftest.
$ac_ext
18918 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
18919 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
18920 if test "$emacs_cv_c_restrict_arr" = yes; then
18922 cat >>confdefs.h
<<\_ACEOF
18923 #define __restrict_arr __restrict
18930 # Set up the CFLAGS for real compilation, so we can substitute it.
18931 CFLAGS
="$REAL_CFLAGS"
18932 CPPFLAGS
="$REAL_CPPFLAGS"
18934 #### Find out which version of Emacs this is.
18935 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
18936 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
18937 if test x
"${version}" = x
; then
18938 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
18939 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
18940 { (exit 1); exit 1; }; }
18943 ### Specify what sort of things we'll be editing into Makefile and config.h.
18944 ### Use configuration here uncanonicalized to avoid exceeding size limits.
18980 cat >>confdefs.h
<<_ACEOF
18981 #define EMACS_CONFIGURATION "${canonical}"
18985 cat >>confdefs.h
<<_ACEOF
18986 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
18990 cat >>confdefs.h
<<_ACEOF
18991 #define config_machfile "${machfile}"
18995 cat >>confdefs.h
<<_ACEOF
18996 #define config_opsysfile "${opsysfile}"
19000 cat >>confdefs.h
<<_ACEOF
19001 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
19005 cat >>confdefs.h
<<_ACEOF
19006 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
19010 cat >>confdefs.h
<<_ACEOF
19011 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
19015 cat >>confdefs.h
<<_ACEOF
19016 #define UNEXEC_SRC ${UNEXEC_SRC}
19020 if test "${HAVE_X_WINDOWS}" = "yes" ; then
19022 cat >>confdefs.h
<<\_ACEOF
19023 #define HAVE_X_WINDOWS 1
19027 if test "${USE_X_TOOLKIT}" != "none" ; then
19029 cat >>confdefs.h
<<\_ACEOF
19030 #define USE_X_TOOLKIT 1
19034 if test "${HAVE_X11}" = "yes" ; then
19036 cat >>confdefs.h
<<\_ACEOF
19041 if test "${HAVE_XFREE386}" = "yes" ; then
19043 cat >>confdefs.h
<<\_ACEOF
19044 #define HAVE_XFREE386 1
19048 if test "${HAVE_MENUS}" = "yes" ; then
19050 cat >>confdefs.h
<<\_ACEOF
19051 #define HAVE_MENUS 1
19055 if test "${GNU_MALLOC}" = "yes" ; then
19057 cat >>confdefs.h
<<\_ACEOF
19058 #define GNU_MALLOC 1
19062 if test "${REL_ALLOC}" = "yes" ; then
19064 cat >>confdefs.h
<<\_ACEOF
19065 #define REL_ALLOC 1
19074 #### Report on what we decided to do.
19075 #### Report GTK as a toolkit, even if it doesn't use Xt.
19076 #### It makes printing result more understandable as using GTK sets
19077 #### toolkit_scroll_bars to yes by default.
19078 if test "${HAVE_GTK}" = "yes"; then
19083 Configured for \`${canonical}'.
19085 Where should the build process find the source code? ${srcdir}
19086 What operating system and machine description files should Emacs use?
19087 \`${opsysfile}' and \`${machfile}'
19088 What compiler should emacs be built with? ${CC} ${CFLAGS}
19089 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
19090 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
19091 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
19092 What window system should Emacs use? ${window_system}
19093 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
19095 if test -n "${x_includes}"; then
19096 echo " Where do we find X Windows header files? ${x_includes}"
19098 echo " Where do we find X Windows header files? Standard dirs"
19100 if test -n "${x_libraries}"; then
19101 echo " Where do we find X Windows libraries? ${x_libraries}"
19103 echo " Where do we find X Windows libraries? Standard dirs"
19106 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
19107 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
19108 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
19109 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
19110 echo " Does Emacs use -lungif? ${HAVE_GIF}"
19111 echo " Does Emacs use -lpng? ${HAVE_PNG}"
19112 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
19115 # Remove any trailing slashes in these variables.
19116 test "${prefix}" != NONE
&&
19117 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
19118 test "${exec_prefix}" != NONE
&&
19119 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
19121 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
19122 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
19123 ## from Makefile.c can correctly provide the arg `-traditional' to the
19126 cat >conftest.
$ac_ext <<_ACEOF
19127 #line $LINENO "configure"
19130 cat confdefs.h
>>conftest.
$ac_ext
19131 cat >>conftest.
$ac_ext <<_ACEOF
19132 /* end confdefs.h. */
19135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19136 $EGREP "yes..yes" >/dev
/null
2>&1; then
19137 CPP_NEED_TRADITIONAL
=no
19139 CPP_NEED_TRADITIONAL
=yes
19144 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"
19145 ac_config_commands
="$ac_config_commands default"
19146 cat >confcache
<<\_ACEOF
19147 # This file is a shell script that caches the results of configure
19148 # tests run on this system so they can be shared between configure
19149 # scripts and configure runs, see configure's option --config-cache.
19150 # It is not useful on other systems. If it contains results you don't
19151 # want to keep, you may remove or edit it.
19153 # config.status only pays attention to the cache file if you give it
19154 # the --recheck option to rerun configure.
19156 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19157 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19158 # following values.
19162 # The following way of writing the cache mishandles newlines in values,
19163 # but we know of no workaround that is simple, portable, and efficient.
19164 # So, don't put newlines in cache variables' values.
19165 # Ultrix sh set writes to stderr and can't be redirected directly,
19166 # and sets the high bit in the cache file unless we assign to the vars.
19169 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19171 # `set' does not quote correctly, so add quotes (double-quote
19172 # substitution turns \\\\ into \\, and sed turns \\ into \).
19175 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19178 # `set' quotes correctly as required by POSIX, so do not add quotes.
19180 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19187 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19189 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19191 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
19192 if test -w $cache_file; then
19193 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19194 cat confcache
>$cache_file
19196 echo "not updating unwritable cache $cache_file"
19201 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19202 # Let make expand exec_prefix.
19203 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19205 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19206 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19207 # trailing colons and then remove the whole line if VPATH becomes empty
19208 # (actually we leave an empty line to preserve line numbers).
19209 if test "x$srcdir" = x.
; then
19210 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
19211 s/:*\$(srcdir):*/:/;
19212 s/:*\${srcdir}:*/:/;
19214 s/^\([^=]*=[ ]*\):*/\1/;
19220 DEFS
=-DHAVE_CONFIG_H
19224 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19225 # 1. Remove the extension, and $U if already installed.
19226 ac_i
=`echo "$ac_i" |
19227 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19229 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
19230 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
19232 LIBOBJS
=$ac_libobjs
19234 LTLIBOBJS
=$ac_ltlibobjs
19238 : ${CONFIG_STATUS=./config.status}
19239 ac_clean_files_save
=$ac_clean_files
19240 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19241 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19242 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19243 cat >$CONFIG_STATUS <<_ACEOF
19245 # Generated by $as_me.
19246 # Run this file to recreate the current configuration.
19247 # Compiler output produced by configure, useful for debugging
19248 # configure, is in config.log if it exists.
19251 ac_cs_recheck=false
19253 SHELL=\${CONFIG_SHELL-$SHELL}
19256 cat >>$CONFIG_STATUS <<\_ACEOF
19257 ## --------------------- ##
19258 ## M4sh Initialization. ##
19259 ## --------------------- ##
19261 # Be Bourne compatible
19262 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19266 # is contrary to our usage. Disable this feature.
19267 alias -g '${1+"$@"}'='"$@"'
19268 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
19272 # Support unset when possible.
19273 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
19280 # Work around bugs in pre-3.0 UWIN ksh.
19281 $as_unset ENV MAIL MAILPATH
19288 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19289 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19290 LC_TELEPHONE LC_TIME
19292 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19293 eval $as_var=C
; export $as_var
19299 # Required to use basename.
19300 if expr a
: '\(a\)' >/dev
/null
2>&1; then
19306 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
19307 as_basename
=basename
19313 # Name of the executable.
19314 as_me
=`$as_basename "$0" ||
19315 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19316 X"$0" : 'X\(//\)$' \| \
19317 X"$0" : 'X\(/\)$' \| \
19318 . : '\(.\)' 2>/dev/null ||
19320 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19321 /^X\/\(\/\/\)$/{ s//\1/; q; }
19322 /^X\/\(\/\).*/{ s//\1/; q; }
19326 # PATH needs CR, and LINENO needs CR and PATH.
19327 # Avoid depending upon Character Ranges.
19328 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19329 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19330 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19331 as_cr_digits
='0123456789'
19332 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19334 # The user is always right.
19335 if test "${PATH_SEPARATOR+set}" != set; then
19336 echo "#! /bin/sh" >conf$$.sh
19337 echo "exit 0" >>conf$$.sh
19339 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
19348 as_lineno_1
=$LINENO
19349 as_lineno_2
=$LINENO
19350 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
19351 test "x$as_lineno_1" != "x$as_lineno_2" &&
19352 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
19353 # Find who we are. Look in the path if we contain no path at all
19356 *[\\/]* ) as_myself
=$0 ;;
19357 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19358 for as_dir
in $PATH
19361 test -z "$as_dir" && as_dir
=.
19362 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
19367 # We did not find ourselves, most probably we were run as `sh COMMAND'
19368 # in which case we are not to be found in the path.
19369 if test "x$as_myself" = x
; then
19372 if test ! -f "$as_myself"; then
19373 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19374 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19375 { (exit 1); exit 1; }; }
19377 case $CONFIG_SHELL in
19379 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19380 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
19383 test -z "$as_dir" && as_dir
=.
19384 for as_base
in sh bash ksh sh5
; do
19387 if ("$as_dir/$as_base" -c '
19388 as_lineno_1=$LINENO
19389 as_lineno_2=$LINENO
19390 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19391 test "x$as_lineno_1" != "x$as_lineno_2" &&
19392 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
19393 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
19394 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
19395 CONFIG_SHELL
=$as_dir/$as_base
19396 export CONFIG_SHELL
19397 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19405 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19406 # uniformly replaced by the line number. The first 'sed' inserts a
19407 # line-number line before each line; the second 'sed' does the real
19408 # work. The second script uses 'N' to pair each line-number line
19409 # with the numbered line, and appends trailing '-' during
19410 # substitution so that $LINENO is not a special case at line end.
19411 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19412 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19413 sed '=' <$as_myself |
19418 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19421 s,^['$as_cr_digits']*\n,,
19422 ' >$as_me.lineno
&&
19423 chmod +x
$as_me.lineno ||
19424 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19425 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19426 { (exit 1); exit 1; }; }
19428 # Don't try to exec as it changes $[0], causing all sort of problems
19429 # (the dirname of $[0] is not the place where we might find the
19430 # original and so on. Autoconf is especially sensible to this).
19432 # Exit status is that of the last command.
19437 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19438 *c
*,-n*) ECHO_N
= ECHO_C
='
19440 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
19441 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
19444 if expr a
: '\(a\)' >/dev
/null
2>&1; then
19450 rm -f conf$$ conf$$.exe conf$$.
file
19452 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19453 # We could just check for DJGPP; but this test a) works b) is more generic
19454 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19455 if test -f conf$$.exe
; then
19456 # Don't use ln at all; we don't have any links
19461 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19466 rm -f conf$$ conf$$.exe conf$$.
file
19468 if mkdir
-p .
2>/dev
/null
; then
19474 as_executable_p
="test -f"
19476 # Sed expression to map a string onto a valid CPP name.
19477 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19479 # Sed expression to map a string onto a valid variable name.
19480 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19484 # We need space, tab and new line, in precisely that order.
19494 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19495 # report actual input values of CONFIG_FILES etc. instead of their
19496 # values after options handling. Logging --version etc. is OK.
19500 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19501 ## Running $as_me. ##
19506 This file was extended by $as_me, which was
19507 generated by GNU Autoconf 2.57. Invocation command line was
19509 CONFIG_FILES = $CONFIG_FILES
19510 CONFIG_HEADERS = $CONFIG_HEADERS
19511 CONFIG_LINKS = $CONFIG_LINKS
19512 CONFIG_COMMANDS = $CONFIG_COMMANDS
19516 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19520 # Files that config.status was made for.
19521 if test -n "$ac_config_files"; then
19522 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19525 if test -n "$ac_config_headers"; then
19526 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19529 if test -n "$ac_config_links"; then
19530 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19533 if test -n "$ac_config_commands"; then
19534 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19537 cat >>$CONFIG_STATUS <<\_ACEOF
19540 \`$as_me' instantiates files from templates according to the
19541 current configuration.
19543 Usage: $0 [OPTIONS] [FILE]...
19545 -h, --help print this help, then exit
19546 -V, --version print version number, then exit
19547 -q, --quiet do not print progress messages
19548 -d, --debug don't remove temporary files
19549 --recheck update $as_me by reconfiguring in the same conditions
19550 --file=FILE[:TEMPLATE]
19551 instantiate the configuration file FILE
19552 --header=FILE[:TEMPLATE]
19553 instantiate the configuration header FILE
19555 Configuration files:
19558 Configuration headers:
19561 Configuration commands:
19564 Report bugs to <bug-autoconf@gnu.org>."
19567 cat >>$CONFIG_STATUS <<_ACEOF
19570 configured by $0, generated by GNU Autoconf 2.57,
19571 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19573 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19574 Free Software Foundation, Inc.
19575 This config.status script is free software; the Free Software Foundation
19576 gives unlimited permission to copy, distribute and modify it."
19581 cat >>$CONFIG_STATUS <<\_ACEOF
19582 # If no file are specified by the user, then we need to provide default
19583 # value. By we need to know if files were specified by the user.
19589 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
19590 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
19598 *) # This is not an option, so the user has probably given explicit
19601 ac_need_defaults
=false
;;
19605 # Handling of the options.
19607 cat >>$CONFIG_STATUS <<\_ACEOF
19608 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19610 --version |
--vers* |
-V )
19611 echo "$ac_cs_version"; exit 0 ;;
19613 # Conflict between --help and --header
19614 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19615 Try \`$0 --help' for more information." >&5
19616 echo "$as_me: error: ambiguous option: $1
19617 Try \`$0 --help' for more information." >&2;}
19618 { (exit 1); exit 1; }; };;
19619 --help |
--hel |
-h )
19620 echo "$ac_cs_usage"; exit 0 ;;
19621 --debug |
--d* |
-d )
19623 --file |
--fil |
--fi |
--f )
19625 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
19626 ac_need_defaults
=false
;;
19627 --header |
--heade |
--head |
--hea )
19629 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
19630 ac_need_defaults
=false
;;
19631 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19632 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19635 # This is an error.
19636 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19637 Try \`$0 --help' for more information." >&5
19638 echo "$as_me: error: unrecognized option: $1
19639 Try \`$0 --help' for more information." >&2;}
19640 { (exit 1); exit 1; }; } ;;
19642 *) ac_config_targets
="$ac_config_targets $1" ;;
19648 ac_configure_extra_args
=
19650 if $ac_cs_silent; then
19652 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19656 cat >>$CONFIG_STATUS <<_ACEOF
19657 if \$ac_cs_recheck; then
19658 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19659 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19664 cat >>$CONFIG_STATUS <<_ACEOF
19666 # INIT-COMMANDS section.
19669 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
19675 cat >>$CONFIG_STATUS <<\_ACEOF
19676 for ac_config_target
in $ac_config_targets
19678 case "$ac_config_target" in
19679 # Handling of arguments.
19680 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19681 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
19682 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
19683 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
19684 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
19685 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
19686 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
19687 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
19688 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
19689 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
19690 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
19691 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
19692 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19693 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19694 { (exit 1); exit 1; }; };;
19698 # If the user did not use the arguments to specify the items to instantiate,
19699 # then the envvar interface is used. Set only those that are not.
19700 # We use the long form for the default assignment because of an extremely
19701 # bizarre bug on SunOS 4.1.3.
19702 if $ac_need_defaults; then
19703 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19704 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
19705 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
19708 # Have a temporary directory for convenience. Make it in the build tree
19709 # simply because there is no reason to put it here, and in addition,
19710 # creating and moving files from /tmp can sometimes cause problems.
19711 # Create a temporary directory, and hook for its removal unless debugging.
19714 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19715 trap '{ (exit 1); exit 1; }' 1 2 13 15
19718 # Create a (secure) tmp directory for tmp files.
19721 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19722 test -n "$tmp" && test -d "$tmp"
19725 tmp
=.
/confstat$$
-$RANDOM
19726 (umask 077 && mkdir
$tmp)
19729 echo "$me: cannot create a temporary directory in ." >&2
19730 { (exit 1); exit 1; }
19735 cat >>$CONFIG_STATUS <<_ACEOF
19738 # CONFIG_FILES section.
19741 # No need to generate the scripts if there are no CONFIG_FILES.
19742 # This happens for instance when ./config.status config.h
19743 if test -n "\$CONFIG_FILES"; then
19744 # Protect against being on the right side of a sed subst in config.status.
19745 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19746 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19747 s,@SHELL@,$SHELL,;t t
19748 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19749 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19750 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19751 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19752 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19753 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19754 s,@exec_prefix@,$exec_prefix,;t t
19755 s,@prefix@,$prefix,;t t
19756 s,@program_transform_name@,$program_transform_name,;t t
19757 s,@bindir@,$bindir,;t t
19758 s,@sbindir@,$sbindir,;t t
19759 s,@libexecdir@,$libexecdir,;t t
19760 s,@datadir@,$datadir,;t t
19761 s,@sysconfdir@,$sysconfdir,;t t
19762 s,@sharedstatedir@,$sharedstatedir,;t t
19763 s,@localstatedir@,$localstatedir,;t t
19764 s,@libdir@,$libdir,;t t
19765 s,@includedir@,$includedir,;t t
19766 s,@oldincludedir@,$oldincludedir,;t t
19767 s,@infodir@,$infodir,;t t
19768 s,@mandir@,$mandir,;t t
19769 s,@build_alias@,$build_alias,;t t
19770 s,@host_alias@,$host_alias,;t t
19771 s,@target_alias@,$target_alias,;t t
19772 s,@DEFS@,$DEFS,;t t
19773 s,@ECHO_C@,$ECHO_C,;t t
19774 s,@ECHO_N@,$ECHO_N,;t t
19775 s,@ECHO_T@,$ECHO_T,;t t
19776 s,@LIBS@,$LIBS,;t t
19777 s,@MAINT@,$MAINT,;t t
19778 s,@build@,$build,;t t
19779 s,@build_cpu@,$build_cpu,;t t
19780 s,@build_vendor@,$build_vendor,;t t
19781 s,@build_os@,$build_os,;t t
19782 s,@host@,$host,;t t
19783 s,@host_cpu@,$host_cpu,;t t
19784 s,@host_vendor@,$host_vendor,;t t
19785 s,@host_os@,$host_os,;t t
19787 s,@CFLAGS@,$CFLAGS,;t t
19788 s,@LDFLAGS@,$LDFLAGS,;t t
19789 s,@CPPFLAGS@,$CPPFLAGS,;t t
19790 s,@ac_ct_CC@,$ac_ct_CC,;t t
19791 s,@EXEEXT@,$EXEEXT,;t t
19792 s,@OBJEXT@,$OBJEXT,;t t
19793 s,@LN_S@,$LN_S,;t t
19795 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19796 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19797 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19798 s,@RANLIB@,$RANLIB,;t t
19799 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19800 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
19801 s,@EGREP@,$EGREP,;t t
19802 s,@LIBSOUND@,$LIBSOUND,;t t
19803 s,@SET_MAKE@,$SET_MAKE,;t t
19804 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19805 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
19806 s,@GTK_LIBS@,$GTK_LIBS,;t t
19807 s,@ALLOCA@,$ALLOCA,;t t
19808 s,@liblockfile@,$liblockfile,;t t
19809 s,@LIBOBJS@,$LIBOBJS,;t t
19810 s,@NEED_SETGID@,$NEED_SETGID,;t t
19811 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
19812 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
19813 s,@version@,$version,;t t
19814 s,@configuration@,$configuration,;t t
19815 s,@canonical@,$canonical,;t t
19816 s,@srcdir@,$srcdir,;t t
19817 s,@lispdir@,$lispdir,;t t
19818 s,@locallisppath@,$locallisppath,;t t
19819 s,@lisppath@,$lisppath,;t t
19820 s,@x_default_search_path@,$x_default_search_path,;t t
19821 s,@etcdir@,$etcdir,;t t
19822 s,@archlibdir@,$archlibdir,;t t
19823 s,@docdir@,$docdir,;t t
19824 s,@bitmapdir@,$bitmapdir,;t t
19825 s,@gamedir@,$gamedir,;t t
19826 s,@gameuser@,$gameuser,;t t
19827 s,@c_switch_system@,$c_switch_system,;t t
19828 s,@c_switch_machine@,$c_switch_machine,;t t
19829 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
19830 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
19831 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
19832 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
19833 s,@machfile@,$machfile,;t t
19834 s,@opsysfile@,$opsysfile,;t t
19835 s,@carbon_appdir@,$carbon_appdir,;t t
19836 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19841 cat >>$CONFIG_STATUS <<\_ACEOF
19842 # Split the substitutions into bite-sized pieces for seds with
19843 # small command number limits, like on Digital OSF/1 and HP-UX.
19844 ac_max_sed_lines
=48
19845 ac_sed_frag
=1 # Number of current file.
19846 ac_beg
=1 # First line for current file.
19847 ac_end
=$ac_max_sed_lines # Line after last line for current file.
19850 while $ac_more_lines; do
19851 if test $ac_beg -gt 1; then
19852 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
19854 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
19856 if test ! -s $tmp/subs.frag
; then
19857 ac_more_lines
=false
19859 # The purpose of the label and of the branching condition is to
19860 # speed up the sed processing (if there are no `@' at all, there
19861 # is no need to browse any of the substitutions).
19862 # These are the two extra sed commands mentioned above.
19864 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
19865 if test -z "$ac_sed_cmds"; then
19866 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
19868 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19870 ac_sed_frag
=`expr $ac_sed_frag + 1`
19872 ac_end
=`expr $ac_end + $ac_max_sed_lines`
19875 if test -z "$ac_sed_cmds"; then
19878 fi # test -n "$CONFIG_FILES"
19881 cat >>$CONFIG_STATUS <<\_ACEOF
19882 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
19883 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19885 - |
*:- |
*:-:* ) # input from stdin
19887 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19888 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19889 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19890 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19891 * ) ac_file_in
=$ac_file.
in ;;
19894 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19895 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
19896 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19897 X"$ac_file" : 'X\(//\)[^/]' \| \
19898 X"$ac_file" : 'X\(//\)$' \| \
19899 X"$ac_file" : 'X\(/\)' \| \
19900 . : '\(.\)' 2>/dev/null ||
19902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19903 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19904 /^X\(\/\/\)$/{ s//\1/; q; }
19905 /^X\(\/\).*/{ s//\1/; q; }
19907 { if $as_mkdir_p; then
19912 while test ! -d "$as_dir"; do
19913 as_dirs
="$as_dir $as_dirs"
19914 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
19915 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19916 X"$as_dir" : 'X\(//\)[^/]' \| \
19917 X"$as_dir" : 'X\(//\)$' \| \
19918 X"$as_dir" : 'X\(/\)' \| \
19919 . : '\(.\)' 2>/dev/null ||
19921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19922 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19923 /^X\(\/\/\)$/{ s//\1/; q; }
19924 /^X\(\/\).*/{ s//\1/; q; }
19927 test ! -n "$as_dirs" || mkdir
$as_dirs
19928 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19929 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19930 { (exit 1); exit 1; }; }; }
19934 if test "$ac_dir" != .
; then
19935 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19936 # A "../" for each directory in $ac_dir_suffix.
19937 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19939 ac_dir_suffix
= ac_top_builddir
=
19943 .
) # No --srcdir option. We are building in place.
19945 if test -z "$ac_top_builddir"; then
19948 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
19950 [\\/]* | ?
:[\\/]* ) # Absolute path.
19951 ac_srcdir
=$srcdir$ac_dir_suffix;
19952 ac_top_srcdir
=$srcdir ;;
19953 *) # Relative path.
19954 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
19955 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
19957 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19959 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
19960 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19961 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19962 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19966 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
19967 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
19970 if test x
"$ac_file" != x-
; then
19971 { echo "$as_me:$LINENO: creating $ac_file" >&5
19972 echo "$as_me: creating $ac_file" >&6;}
19975 # Let's still pretend it is `configure' which instantiates (i.e., don't
19976 # use $as_me), people would be surprised to read:
19977 # /* config.h. Generated by config.status. */
19978 if test x
"$ac_file" = x-
; then
19981 configure_input
="$ac_file. "
19983 configure_input
=$configure_input"Generated from `echo $ac_file_in |
19984 sed 's,.*/,,'` by configure."
19986 # First look for the input files in the build tree, otherwise in the
19988 ac_file_inputs
=`IFS=:
19989 for f in $ac_file_in; do
19991 -) echo $tmp/stdin ;;
19993 # Absolute (can't be DOS-style, as IFS=:)
19994 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19995 echo "$as_me: error: cannot find input file: $f" >&2;}
19996 { (exit 1); exit 1; }; }
19999 if test -f "$f"; then
20002 elif test -f "$srcdir/$f"; then
20007 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20008 echo "$as_me: error: cannot find input file: $f" >&2;}
20009 { (exit 1); exit 1; }; }
20012 done` ||
{ (exit 1); exit 1; }
20014 cat >>$CONFIG_STATUS <<_ACEOF
20018 cat >>$CONFIG_STATUS <<\_ACEOF
20020 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20021 s
,@configure_input@
,$configure_input,;t t
20022 s
,@srcdir@
,$ac_srcdir,;t t
20023 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
20024 s
,@top_srcdir@
,$ac_top_srcdir,;t t
20025 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
20026 s
,@builddir@
,$ac_builddir,;t t
20027 s
,@abs_builddir@
,$ac_abs_builddir,;t t
20028 s
,@top_builddir@
,$ac_top_builddir,;t t
20029 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
20030 s
,@INSTALL@
,$ac_INSTALL,;t t
20031 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20033 if test x"$ac_file" != x-; then
20034 mv $tmp/out $ac_file
20042 cat >>$CONFIG_STATUS <<\_ACEOF
20045 # CONFIG_HEADER section.
20048 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
20049 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20051 # ac_d sets the value in "#define NAME VALUE" lines.
20052 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20053 ac_dB
='[ ].*$,\1#\2'
20056 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20057 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20058 ac_uB
='$,\1#\2define\3'
20062 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
20063 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20065 - |
*:- |
*:-:* ) # input from stdin
20067 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20068 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20069 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20070 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20071 * ) ac_file_in
=$ac_file.
in ;;
20074 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
20075 echo "$as_me: creating $ac_file" >&6;}
20077 # First look for the input files in the build tree, otherwise in the
20079 ac_file_inputs
=`IFS=:
20080 for f in $ac_file_in; do
20082 -) echo $tmp/stdin ;;
20084 # Absolute (can't be DOS-style, as IFS=:)
20085 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20086 echo "$as_me: error: cannot find input file: $f" >&2;}
20087 { (exit 1); exit 1; }; }
20090 if test -f "$f"; then
20093 elif test -f "$srcdir/$f"; then
20098 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20099 echo "$as_me: error: cannot find input file: $f" >&2;}
20100 { (exit 1); exit 1; }; }
20103 done` ||
{ (exit 1); exit 1; }
20104 # Remove the trailing spaces.
20105 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20109 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20110 # `conftest.undefs', that substitutes the proper values into
20111 # config.h.in to produce config.h. The first handles `#define'
20112 # templates, and the second `#undef' templates.
20113 # And first: Protect against being on the right side of a sed subst in
20114 # config.status. Protect against being in an unquoted here document
20115 # in config.status.
20116 rm -f conftest.defines conftest.undefs
20117 # Using a here document instead of a string reduces the quoting nightmare.
20118 # Putting comments in sed scripts is not portable.
20120 # `end' is used to avoid that the second main sed command (meant for
20121 # 0-ary CPP macros) applies to n-ary macro definitions.
20122 # See the Autoconf documentation for `clear'.
20123 cat >confdef2sed.
sed <<\_ACEOF
20128 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20130 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20133 # If some macros were called several times there might be several times
20134 # the same #defines, which is useless. Nevertheless, we may not want to
20135 # sort them, since we want the *last* AC-DEFINE to be honored.
20136 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20137 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20138 rm -f confdef2sed.sed
20140 # This sed command replaces #undef with comments. This is necessary, for
20141 # example, in the case of _POSIX_SOURCE, which is predefined and required
20142 # on some systems where configure will not decide to define it.
20143 cat >>conftest.undefs <<\_ACEOF
20144 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20147 # Break up conftest.defines because some shells have a limit on the size
20148 # of here documents, and old seds have small limits too (100 cmds).
20149 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20150 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20151 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20152 echo ' :' >>$CONFIG_STATUS
20153 rm -f conftest.tail
20154 while grep . conftest.defines >/dev/null
20156 # Write a limited-size here document to $tmp/defines.sed.
20157 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20158 # Speed up: don't consider the non `#define' lines.
20159 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20160 # Work around the forget-to-reset-the-flag bug.
20161 echo 't clr' >>$CONFIG_STATUS
20162 echo ': clr' >>$CONFIG_STATUS
20163 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
20165 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20167 mv $tmp/out $tmp/in
20169 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
20170 rm -f conftest.defines
20171 mv conftest.
tail conftest.defines
20173 rm -f conftest.defines
20174 echo ' fi # grep' >>$CONFIG_STATUS
20175 echo >>$CONFIG_STATUS
20177 # Break up conftest.undefs because some shells have a limit on the size
20178 # of here documents, and old seds have small limits too (100 cmds).
20179 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20180 rm -f conftest.
tail
20181 while grep . conftest.undefs
>/dev
/null
20183 # Write a limited-size here document to $tmp/undefs.sed.
20184 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20185 # Speed up: don't consider the non
`#undef'
20186 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20187 # Work around the forget-to-reset-the-flag bug.
20188 echo 't clr' >>$CONFIG_STATUS
20189 echo ': clr' >>$CONFIG_STATUS
20190 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20192 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20194 mv $tmp/out $tmp/in
20196 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20197 rm -f conftest.undefs
20198 mv conftest.tail conftest.undefs
20200 rm -f conftest.undefs
20202 cat >>$CONFIG_STATUS <<\_ACEOF
20203 # Let's still pretend it is `configure
' which instantiates (i.e., don't
20204 # use $as_me), people would be surprised to read:
20205 # /* config.h. Generated by config.status. */
20206 if test x
"$ac_file" = x-
; then
20207 echo "/* Generated by configure. */" >$tmp/config.h
20209 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20211 cat $tmp/in >>$tmp/config.h
20213 if test x
"$ac_file" != x-
; then
20214 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
20215 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20216 echo "$as_me: $ac_file is unchanged" >&6;}
20218 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
20219 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20220 X"$ac_file" : 'X\(//\)[^/]' \| \
20221 X"$ac_file" : 'X\(//\)$' \| \
20222 X"$ac_file" : 'X\(/\)' \| \
20223 . : '\(.\)' 2>/dev/null ||
20225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20226 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20227 /^X\(\/\/\)$/{ s//\1/; q; }
20228 /^X\(\/\).*/{ s//\1/; q; }
20230 { if $as_mkdir_p; then
20235 while test ! -d "$as_dir"; do
20236 as_dirs
="$as_dir $as_dirs"
20237 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20238 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20239 X"$as_dir" : 'X\(//\)[^/]' \| \
20240 X"$as_dir" : 'X\(//\)$' \| \
20241 X"$as_dir" : 'X\(/\)' \| \
20242 . : '\(.\)' 2>/dev/null ||
20244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20245 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20246 /^X\(\/\/\)$/{ s//\1/; q; }
20247 /^X\(\/\).*/{ s//\1/; q; }
20250 test ! -n "$as_dirs" || mkdir
$as_dirs
20251 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20252 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20253 { (exit 1); exit 1; }; }; }
20256 mv $tmp/config.h
$ac_file
20260 rm -f $tmp/config.h
20264 cat >>$CONFIG_STATUS <<\_ACEOF
20267 # CONFIG_COMMANDS section.
20269 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
20270 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
20271 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20272 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
20273 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20274 X"$ac_dest" : 'X\(//\)[^/]' \| \
20275 X"$ac_dest" : 'X\(//\)$' \| \
20276 X"$ac_dest" : 'X\(/\)' \| \
20277 . : '\(.\)' 2>/dev/null ||
20279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20280 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20281 /^X\(\/\/\)$/{ s//\1/; q; }
20282 /^X\(\/\).*/{ s//\1/; q; }
20286 if test "$ac_dir" != .
; then
20287 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20288 # A "../" for each directory in $ac_dir_suffix.
20289 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20291 ac_dir_suffix
= ac_top_builddir
=
20295 .
) # No --srcdir option. We are building in place.
20297 if test -z "$ac_top_builddir"; then
20300 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
20302 [\\/]* | ?
:[\\/]* ) # Absolute path.
20303 ac_srcdir
=$srcdir$ac_dir_suffix;
20304 ac_top_srcdir
=$srcdir ;;
20305 *) # Relative path.
20306 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
20307 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
20309 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20311 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
20312 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20313 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20314 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20317 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20318 echo "$as_me: executing $ac_dest commands" >&6;}
20322 ### Make the necessary directories, if they don't exist.
20323 for dir
in etc lisp
; do
20324 test -d ${dir} || mkdir
${dir}
20327 # Build src/Makefile from ${srcdir}/src/Makefile.c
20328 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
20329 # This must be done after src/config.h is built, since we rely on that file.
20331 # Now get this: Some word that is part of the ${srcdir} directory name
20332 # or the ${configuration} value might, just might, happen to be an
20333 # identifier like `sun4' or `i386' or something, and be predefined by
20334 # the C preprocessor to some helpful value like 1, or maybe the empty
20335 # string. Needless to say consequent macro substitutions are less
20336 # than conducive to the makefile finding the correct directory.
20337 undefs
="`echo $top_srcdir $configuration $canonical |
20338 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
20339 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
20342 echo creating src
/epaths.h
20343 ${MAKE-make} epaths-force
20345 # As of 2000-11-19, newest development versions of GNU cpp preprocess
20346 # `..' to `. .' unless invoked with -traditional
20348 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
20349 CPPFLAGS
="$CPPFLAGS -traditional"
20352 echo creating lib-src
/Makefile
20354 rm -f junk.c junk1.c junk2.c
20355 sed -e '/start of cpp stuff/q' \
20356 < Makefile.c
> junk1.c
20357 sed -e '1,/start of cpp stuff/d'\
20358 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
20359 < Makefile.c
> junk.c
20360 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
20361 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
20362 cat junk1.c junk2.c
> Makefile.new
20363 rm -f junk.c junk1.c junk2.c
20364 chmod 444 Makefile.new
20365 mv -f Makefile.new Makefile
20368 echo creating src
/Makefile
20370 rm -f junk.c junk1.c junk2.c
20371 sed -e '/start of cpp stuff/q' \
20372 < Makefile.c
> junk1.c
20373 sed -e '1,/start of cpp stuff/d'\
20374 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
20375 < Makefile.c
> junk.c
20376 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
20377 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
20378 cat junk1.c junk2.c
> Makefile.new
20379 rm -f junk.c junk1.c junk2.c
20380 chmod 444 Makefile.new
20381 mv -f Makefile.new Makefile
20384 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
20385 echo creating src
/.gdbinit
20386 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
20389 # This is how we know whether to re-run configure in certain cases.
20390 touch src
/config.stamp
20397 cat >>$CONFIG_STATUS <<\_ACEOF
20399 { (exit 0); exit 0; }
20401 chmod +x
$CONFIG_STATUS
20402 ac_clean_files
=$ac_clean_files_save
20405 # configure is writing to config.log, and then calls config.status.
20406 # config.status does its own redirection, appending to config.log.
20407 # Unfortunately, on DOS this fails, as config.log is still kept open
20408 # by configure, so config.status won't be able to write to it; its
20409 # output is simply discarded. So we exec the FD to /dev/null,
20410 # effectively closing config.log, so it can be properly (re)opened and
20411 # appended to by config.status. When coming back to configure, we
20412 # need to make the FD available again.
20413 if test "$no_create" != yes; then
20415 ac_config_status_args
=
20416 test "$silent" = yes &&
20417 ac_config_status_args
="$ac_config_status_args --quiet"
20419 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20421 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20422 # would make configure fail if this is the last instruction.
20423 $ac_cs_success ||
{ (exit 1); exit 1; }